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 2012/04/16 12:58:37 UTC

svn commit: r1326557 - /camel/trunk/camel-core/src/test/java/org/apache/camel/management/ManagedTypeConverterRegistryTest.java

Author: davsclaus
Date: Mon Apr 16 10:58:36 2012
New Revision: 1326557

URL: http://svn.apache.org/viewvc?rev=1326557&view=rev
Log:
CAMEL-5175: Added utilization stats to type converter registry which is also accessible from JMX.

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

Modified: camel/trunk/camel-core/src/test/java/org/apache/camel/management/ManagedTypeConverterRegistryTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/test/java/org/apache/camel/management/ManagedTypeConverterRegistryTest.java?rev=1326557&r1=1326556&r2=1326557&view=diff
==============================================================================
--- camel/trunk/camel-core/src/test/java/org/apache/camel/management/ManagedTypeConverterRegistryTest.java (original)
+++ camel/trunk/camel-core/src/test/java/org/apache/camel/management/ManagedTypeConverterRegistryTest.java Mon Apr 16 10:58:36 2012
@@ -54,10 +54,6 @@ public class ManagedTypeConverterRegistr
         assertEquals(0, failed.intValue());
         Long miss = (Long) mbeanServer.getAttribute(name, "MissCounter");
         assertEquals(0, miss.intValue());
-        Long attempt = (Long) mbeanServer.getAttribute(name, "AttemptCounter");
-        assertEquals(2, attempt.intValue());
-        Long hit = (Long) mbeanServer.getAttribute(name, "HitCounter");
-        assertEquals(2, hit.intValue());
 
         try {
             template.sendBody("direct:start", "foo");
@@ -79,10 +75,6 @@ public class ManagedTypeConverterRegistr
         assertEquals(0, failed.intValue());
         miss = (Long) mbeanServer.getAttribute(name, "MissCounter");
         assertEquals(0, miss.intValue());
-        attempt = (Long) mbeanServer.getAttribute(name, "AttemptCounter");
-        assertEquals(0, attempt.intValue());
-        hit = (Long) mbeanServer.getAttribute(name, "HitCounter");
-        assertEquals(0, hit.intValue());
     }
 
     @Override