camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cmuel...@apache.org
Subject svn commit: r1388895 - in /camel/trunk/camel-core/src/test/java/org/apache/camel/management: ManagedRouteStopAndStartCleanupTest.java ManagedRouteStopAndStartTest.java
Date Sat, 22 Sep 2012 20:55:40 GMT
Author: cmueller
Date: Sat Sep 22 20:55:40 2012
New Revision: 1388895

URL: http://svn.apache.org/viewvc?rev=1388895&view=rev
Log:
fixed test which failed sometimes on the CI server

Modified:
    camel/trunk/camel-core/src/test/java/org/apache/camel/management/ManagedRouteStopAndStartCleanupTest.java
    camel/trunk/camel-core/src/test/java/org/apache/camel/management/ManagedRouteStopAndStartTest.java

Modified: camel/trunk/camel-core/src/test/java/org/apache/camel/management/ManagedRouteStopAndStartCleanupTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/test/java/org/apache/camel/management/ManagedRouteStopAndStartCleanupTest.java?rev=1388895&r1=1388894&r2=1388895&view=diff
==============================================================================
--- camel/trunk/camel-core/src/test/java/org/apache/camel/management/ManagedRouteStopAndStartCleanupTest.java
(original)
+++ camel/trunk/camel-core/src/test/java/org/apache/camel/management/ManagedRouteStopAndStartCleanupTest.java
Sat Sep 22 20:55:40 2012
@@ -53,12 +53,12 @@ public class ManagedRouteStopAndStartCle
         Long completed = (Long) mbeanServer.getAttribute(on, "ExchangesCompleted");
         assertEquals(1, completed.longValue());
 
-        // should be 1 consumer and 1 processor
+        // should be 1 consumer and 2 processors
         Set<ObjectName> set = mbeanServer.queryNames(new ObjectName("*:type=consumers,*"),
null);
         assertEquals("Should be 1 consumer", 1, set.size());
 
         set = mbeanServer.queryNames(new ObjectName("*:type=processors,*"), null);
-        assertEquals("Should be 1 processor", 1, set.size());
+        assertEquals("Should be 2 processors", 2, set.size());
 
         // stop
         log.info(">>>>>>>>>>>>>>>>>>
invoking stop <<<<<<<<<<<<<<<<<<<<<");
@@ -102,7 +102,7 @@ public class ManagedRouteStopAndStartCle
         assertEquals("Should be 1 consumer", 1, set.size());
 
         set = mbeanServer.queryNames(new ObjectName("*:type=processors,*"), null);
-        assertEquals("Should be 1 processor", 1, set.size());
+        assertEquals("Should be 2 processors", 2, set.size());
 
         // this time the file is consumed
         mock.assertIsSatisfied();

Modified: camel/trunk/camel-core/src/test/java/org/apache/camel/management/ManagedRouteStopAndStartTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/test/java/org/apache/camel/management/ManagedRouteStopAndStartTest.java?rev=1388895&r1=1388894&r2=1388895&view=diff
==============================================================================
--- camel/trunk/camel-core/src/test/java/org/apache/camel/management/ManagedRouteStopAndStartTest.java
(original)
+++ camel/trunk/camel-core/src/test/java/org/apache/camel/management/ManagedRouteStopAndStartTest.java
Sat Sep 22 20:55:40 2012
@@ -93,7 +93,9 @@ public class ManagedRouteStopAndStartTes
         return new RouteBuilder() {
             @Override
             public void configure() throws Exception {
-                from("file://target/managed").to("mock:result");
+                from("file://target/managed")
+                    .convertBodyTo(String.class)
+                    .to("mock:result");
             }
         };
     }



Mime
View raw message