This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/master by this push:
     new 702dad5  CAMEL-14878: Added unit test
702dad5 is described below

commit 702dad5d94c64ad299f12f6f460a43d942c1fb19
Author: Claus Ibsen <claus.ib...@gmail.com>
AuthorDate: Sat May 23 08:44:35 2020 +0200

    CAMEL-14878: Added unit test
---
 .../component/timer/TimerDelaySecondsTest.java     | 47 ++++++++++++++++++++++
 1 file changed, 47 insertions(+)

diff --git 
a/core/camel-core/src/test/java/org/apache/camel/component/timer/TimerDelaySecondsTest.java
 
b/core/camel-core/src/test/java/org/apache/camel/component/timer/TimerDelaySecondsTest.java
new file mode 100644
index 0000000..f157db8
--- /dev/null
+++ 
b/core/camel-core/src/test/java/org/apache/camel/component/timer/TimerDelaySecondsTest.java
@@ -0,0 +1,47 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.timer;
+
+import org.apache.camel.ContextTestSupport;
+import org.apache.camel.builder.RouteBuilder;
+import org.apache.camel.component.mock.MockEndpoint;
+import org.junit.Ignore;
+import org.junit.Test;
+
+// TODO: https://issues.apache.org/jira/browse/CAMEL-14878
+@Ignore
+public class TimerDelaySecondsTest extends ContextTestSupport {
+
+    @Test
+    public void testDelay() throws Exception {
+        MockEndpoint mock = getMockEndpoint("mock:result");
+        mock.expectedMinimumMessageCount(1);
+
+        assertMockEndpointsSatisfied();
+    }
+
+    @Override
+    protected RouteBuilder createRouteBuilder() throws Exception {
+        return new RouteBuilder() {
+            @Override
+            public void configure() throws Exception {
+                from("timer://foo?delay=1s").to("mock:result");
+
+            }
+        };
+    }
+}

Reply via email to