camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r954357 - /camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/OsgiFactoryFinderTest.java
Date Mon, 14 Jun 2010 04:25:16 GMT
Author: ningjiang
Date: Mon Jun 14 04:25:16 2010
New Revision: 954357

URL: http://svn.apache.org/viewvc?rev=954357&view=rev
Log:
CAMEL-2809 reverted the change of OsgiFactoryFinder

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

Modified: camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/OsgiFactoryFinderTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/OsgiFactoryFinderTest.java?rev=954357&r1=954356&r2=954357&view=diff
==============================================================================
--- camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/OsgiFactoryFinderTest.java
(original)
+++ camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/OsgiFactoryFinderTest.java
Mon Jun 14 04:25:16 2010
@@ -20,29 +20,26 @@ import org.apache.camel.builder.RouteBui
 import org.apache.camel.spi.FactoryFinder;
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
+import org.junit.Before;
 import org.junit.Test;
 import org.junit.runner.RunWith;
 import org.ops4j.pax.exam.junit.JUnit4TestRunner;
 
 @RunWith(JUnit4TestRunner.class)
 public class OsgiFactoryFinderTest extends OSGiIntegrationTestSupport {
-    private static final transient Log LOG = LogFactory.getLog(OsgiFactoryFinderTest.class);
     
     @Test
     public void testFileProducer() throws Exception {        
         Class<?> factory = null;
         FactoryFinder finder = context.getFactoryFinder("META-INF/services/org/apache/camel/component/");
         factory = finder.findClass("file", "strategy.factory.");
-        LOG.info("*** The factory is " + factory);
+        assertNotNull("We should find the factory here.", factory);
     }
-        
-    protected RouteBuilder createRouteBuilder() {
-        return new RouteBuilder() {
-            public void configure() {
-                from("direct:simple").to("mock:result");
-            }
-        };
+  
+    @Before
+    public void setUp() throws Exception {
+        setUseRouteBuilder(false);
+        super.setUp();        
     }
     
-    
 }



Mime
View raw message