camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r1153094 - /camel/trunk/camel-core/src/test/java/org/apache/camel/management/ManagedRouteAutoStartupTest.java
Date Tue, 02 Aug 2011 10:58:51 GMT
Author: davsclaus
Date: Tue Aug  2 10:58:51 2011
New Revision: 1153094

URL: http://svn.apache.org/viewvc?rev=1153094&view=rev
Log:
CAMEL-4291: Camel based JMX annotation assembler, which means using JMX no longer is dependent
on spring JMX. Reduced dependeny in camel-core to not use Spring at all.

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

Modified: camel/trunk/camel-core/src/test/java/org/apache/camel/management/ManagedRouteAutoStartupTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/test/java/org/apache/camel/management/ManagedRouteAutoStartupTest.java?rev=1153094&r1=1153093&r2=1153094&view=diff
==============================================================================
--- camel/trunk/camel-core/src/test/java/org/apache/camel/management/ManagedRouteAutoStartupTest.java
(original)
+++ camel/trunk/camel-core/src/test/java/org/apache/camel/management/ManagedRouteAutoStartupTest.java
Tue Aug  2 10:58:51 2011
@@ -34,20 +34,20 @@ public class ManagedRouteAutoStartupTest
         ObjectName onBar = ObjectName.getInstance("org.apache.camel:context=localhost/camel-1,type=routes,name=\"bar\"");
 
         assertTrue("Should be registered", mbeanServer.isRegistered(on));
-//        String name = (String) mbeanServer.getAttribute(on, "CamelId");
-//        assertEquals("camel-1", name);
+        String name = (String) mbeanServer.getAttribute(on, "CamelId");
+        assertEquals("camel-1", name);
 
-//        String state = (String) mbeanServer.getAttribute(onFoo, "State");
-//        assertEquals("Stopped", state);
+        String state = (String) mbeanServer.getAttribute(onFoo, "State");
+        assertEquals("Stopped", state);
 
-//        state = (String) mbeanServer.getAttribute(onBar, "State");
-//        assertEquals("Started", state);
+        state = (String) mbeanServer.getAttribute(onBar, "State");
+        assertEquals("Started", state);
 
         // start the route
         mbeanServer.invoke(onFoo, "start", null, null);
 
-//        state = (String) mbeanServer.getAttribute(onFoo, "State");
-//        assertEquals("Started", state);
+        state = (String) mbeanServer.getAttribute(onFoo, "State");
+        assertEquals("Started", state);
 
         Object reply = mbeanServer.invoke(on, "requestBody", new Object[]{"direct:foo", "Hello
World"}, new String[]{"java.lang.String", "java.lang.Object"});
         assertEquals("Bye World", reply);



Mime
View raw message