camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r1388965 - /camel/branches/camel-2.9.x/camel-core/src/test/java/org/apache/camel/management/ManagedRouteStopAndStartCleanupTest.java
Date Sun, 23 Sep 2012 07:21:13 GMT
Author: davsclaus
Date: Sun Sep 23 07:21:12 2012
New Revision: 1388965

URL: http://svn.apache.org/viewvc?rev=1388965&view=rev
Log:
Fixed test due last commit. Only affects Camel 2.9 as not all processors is registered by
default in JMX.

Modified:
    camel/branches/camel-2.9.x/camel-core/src/test/java/org/apache/camel/management/ManagedRouteStopAndStartCleanupTest.java

Modified: camel/branches/camel-2.9.x/camel-core/src/test/java/org/apache/camel/management/ManagedRouteStopAndStartCleanupTest.java
URL: http://svn.apache.org/viewvc/camel/branches/camel-2.9.x/camel-core/src/test/java/org/apache/camel/management/ManagedRouteStopAndStartCleanupTest.java?rev=1388965&r1=1388964&r2=1388965&view=diff
==============================================================================
--- camel/branches/camel-2.9.x/camel-core/src/test/java/org/apache/camel/management/ManagedRouteStopAndStartCleanupTest.java
(original)
+++ camel/branches/camel-2.9.x/camel-core/src/test/java/org/apache/camel/management/ManagedRouteStopAndStartCleanupTest.java
Sun Sep 23 07:21:12 2012
@@ -53,12 +53,12 @@ public class ManagedRouteStopAndStartCle
         Long completed = (Long) mbeanServer.getAttribute(on, "ExchangesCompleted");
         assertEquals(1, completed.longValue());
 
-        // should be 1 consumer and 2 processors
+        // should be 1 consumer and 1 processor
         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 2 processors", 2, set.size());
+        assertEquals("Should be 2 processors", 1, 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 2 processors", 2, set.size());
+        assertEquals("Should be 1 processors", 1, set.size());
 
         // this time the file is consumed
         mock.assertIsSatisfied();



Mime
View raw message