camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r1453339 - /camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/cache/CacheRoutesManagementTest.java
Date Wed, 06 Mar 2013 14:18:46 GMT
Author: davsclaus
Date: Wed Mar  6 14:18:45 2013
New Revision: 1453339

URL: http://svn.apache.org/r1453339
Log:
Fixed cache test in osgi

Modified:
    camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/cache/CacheRoutesManagementTest.java

Modified: camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/cache/CacheRoutesManagementTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/cache/CacheRoutesManagementTest.java?rev=1453339&r1=1453338&r2=1453339&view=diff
==============================================================================
--- camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/cache/CacheRoutesManagementTest.java
(original)
+++ camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/cache/CacheRoutesManagementTest.java
Wed Mar  6 14:18:45 2013
@@ -51,16 +51,12 @@ public class CacheRoutesManagementTest e
 
     @Test
     public void testCache() throws Exception {
-        // Is cache manager initialized before doing any routing?
-        CacheManager cacheManager = cmfRef.getCacheManager();
-        assertNull("CacheManager initialized", cacheManager);
 
         // Now do some routes to let endpoints be initialized
         template.sendBody("direct:add1", "Hello World");
         template.sendBody("direct:add2", "Hello World");
 
-        //Now should not be null
-        cacheManager = cmfRef.getCacheManager();
+        CacheManager cacheManager = cmfRef.getCacheManager();
         assertNotNull("CacheManager initialized", cacheManager);
 
         Cache cache = cmfRef.getCacheManager().getCache("foo");



Mime
View raw message