You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2008/08/08 06:36:56 UTC

svn commit: r683847 - in /activemq/camel/trunk: camel-core/src/test/java/org/apache/camel/component/file/ components/camel-spring/src/test/java/org/apache/camel/component/test/ components/camel-spring/src/test/resources/org/apache/camel/component/test/

Author: davsclaus
Date: Thu Aug  7 21:36:55 2008
New Revision: 683847

URL: http://svn.apache.org/viewvc?rev=683847&view=rev
Log:
Fixing failing tests on Bamboo

Modified:
    activemq/camel/trunk/camel-core/src/test/java/org/apache/camel/component/file/FileAsyncRouteTest.java
    activemq/camel/trunk/components/camel-spring/src/test/java/org/apache/camel/component/test/TestEndpointTest.java
    activemq/camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/component/test/TestEndpointTest-context.xml

Modified: activemq/camel/trunk/camel-core/src/test/java/org/apache/camel/component/file/FileAsyncRouteTest.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/test/java/org/apache/camel/component/file/FileAsyncRouteTest.java?rev=683847&r1=683846&r2=683847&view=diff
==============================================================================
--- activemq/camel/trunk/camel-core/src/test/java/org/apache/camel/component/file/FileAsyncRouteTest.java (original)
+++ activemq/camel/trunk/camel-core/src/test/java/org/apache/camel/component/file/FileAsyncRouteTest.java Thu Aug  7 21:36:55 2008
@@ -32,7 +32,7 @@
  */
 public class FileAsyncRouteTest extends ContextTestSupport {
     protected Object expectedBody = "Hello there!";
-    protected String uri = "file:target/test-async-inbox?delete=true&consumer.delay=10000&consumer.recurive=true";
+    protected String uri = "file:target/test-async-inbox?delete=true&consumer.delay=10000&consumer.recursive=true";
 
     CountDownLatch receivedLatch = new CountDownLatch(1);
     CountDownLatch processingLatch = new CountDownLatch(1);

Modified: activemq/camel/trunk/components/camel-spring/src/test/java/org/apache/camel/component/test/TestEndpointTest.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-spring/src/test/java/org/apache/camel/component/test/TestEndpointTest.java?rev=683847&r1=683846&r2=683847&view=diff
==============================================================================
--- activemq/camel/trunk/components/camel-spring/src/test/java/org/apache/camel/component/test/TestEndpointTest.java (original)
+++ activemq/camel/trunk/components/camel-spring/src/test/java/org/apache/camel/component/test/TestEndpointTest.java Thu Aug  7 21:36:55 2008
@@ -39,7 +39,7 @@
     @Autowired
     protected CamelContext camelContext;
 
-    @EndpointInject(uri = "test:file://src/test/data?noop=true&consumer.recursive=true")
+    @EndpointInject(uri = "test:file://src/test/data?noop=true&consumer.recursive=true&consumer.delay=2000")
     protected TestEndpoint endpoint;
 
     public void testMocksAreValid() throws Exception {
@@ -48,7 +48,6 @@
 
         MockEndpoint.assertIsSatisfied(camelContext);
 
-
         // lets show the endpoints in the test
         List<MockEndpoint> list = CamelContextHelper.getSingletonEndpoints(camelContext, MockEndpoint.class);
         LOG.debug("Found endpoints: " + list);

Modified: activemq/camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/component/test/TestEndpointTest-context.xml
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/component/test/TestEndpointTest-context.xml?rev=683847&r1=683846&r2=683847&view=diff
==============================================================================
--- activemq/camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/component/test/TestEndpointTest-context.xml (original)
+++ activemq/camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/component/test/TestEndpointTest-context.xml Thu Aug  7 21:36:55 2008
@@ -25,8 +25,8 @@
   <!-- START SNIPPET: example -->
   <camelContext xmlns="http://activemq.apache.org/camel/schema/spring">
     <route>
-      <from uri="file://src/test/data?noop=true&amp;consumer.recursive=true"/>
-        <to uri="test:file://src/test/data?noop=true&amp;consumer.recursive=true"/>
+      <from uri="file://src/test/data?noop=true&amp;consumer.recursive=true&amp;consumer.delay=2000"/>
+        <to uri="test:file://src/test/data?noop=true&amp;consumer.recursive=true&amp;consumer.delay=2000"/>
     </route>
   </camelContext>
   <!-- END SNIPPET: example -->