camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ge...@apache.org
Subject svn commit: r754660 - in /camel/trunk/components: camel-jcr/src/test/java/org/apache/camel/component/jcr/JcrConverterTest.java camel-scala/src/test/scala/org/apache/camel/scala/ScalaTypeConverterTest.scala
Date Sun, 15 Mar 2009 12:23:32 GMT
Author: gertv
Date: Sun Mar 15 12:23:32 2009
New Revision: 754660

URL: http://svn.apache.org/viewvc?rev=754660&view=rev
Log:
CAMEL-1458: Fix camel-jcr and camel-scala unit tests

Modified:
    camel/trunk/components/camel-jcr/src/test/java/org/apache/camel/component/jcr/JcrConverterTest.java
    camel/trunk/components/camel-scala/src/test/scala/org/apache/camel/scala/ScalaTypeConverterTest.scala

Modified: camel/trunk/components/camel-jcr/src/test/java/org/apache/camel/component/jcr/JcrConverterTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-jcr/src/test/java/org/apache/camel/component/jcr/JcrConverterTest.java?rev=754660&r1=754659&r2=754660&view=diff
==============================================================================
--- camel/trunk/components/camel-jcr/src/test/java/org/apache/camel/component/jcr/JcrConverterTest.java
(original)
+++ camel/trunk/components/camel-jcr/src/test/java/org/apache/camel/component/jcr/JcrConverterTest.java
Sun Mar 15 12:23:32 2009
@@ -22,7 +22,8 @@
 
 import junit.framework.TestCase;
 import org.apache.camel.TypeConverter;
-import org.apache.camel.impl.DefaultFactoryFinder;
+import org.apache.camel.impl.DefaultClassResolver;
+import org.apache.camel.impl.DefaultFactoryFinderResolver;
 import org.apache.camel.impl.DefaultPackageScanClassResolver;
 import org.apache.camel.impl.converter.DefaultTypeConverter;
 import org.apache.camel.util.ReflectionInjector;
@@ -37,7 +38,7 @@
 public class JcrConverterTest extends TestCase {
 
     protected TypeConverter converter = new DefaultTypeConverter(new DefaultPackageScanClassResolver(),
-            new ReflectionInjector(), new DefaultFactoryFinder());
+            new ReflectionInjector(), new DefaultFactoryFinderResolver().resolveDefaultFactoryFinder(new
DefaultClassResolver()));
 
     public void testBooleanValueConverter() throws Exception {
         assertJcrConverterAvailable(BooleanValue.class, Boolean.TRUE);

Modified: camel/trunk/components/camel-scala/src/test/scala/org/apache/camel/scala/ScalaTypeConverterTest.scala
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-scala/src/test/scala/org/apache/camel/scala/ScalaTypeConverterTest.scala?rev=754660&r1=754659&r2=754660&view=diff
==============================================================================
--- camel/trunk/components/camel-scala/src/test/scala/org/apache/camel/scala/ScalaTypeConverterTest.scala
(original)
+++ camel/trunk/components/camel-scala/src/test/scala/org/apache/camel/scala/ScalaTypeConverterTest.scala
Sun Mar 15 12:23:32 2009
@@ -19,7 +19,8 @@
 import junit.framework.TestCase
 import junit.framework.Assert._
 
-import org.apache.camel.impl.DefaultFactoryFinder
+import org.apache.camel.impl.DefaultClassResolver
+import org.apache.camel.impl.DefaultFactoryFinderResolver
 import org.apache.camel.impl.DefaultPackageScanClassResolver
 import org.apache.camel.impl.converter.DefaultTypeConverter
 import org.apache.camel.util.ReflectionInjector
@@ -32,7 +33,7 @@
 class ScalaTypeConverterTest extends TestCase {
   
   val converter = new DefaultTypeConverter(new DefaultPackageScanClassResolver(),
-      new ReflectionInjector(), new DefaultFactoryFinder())
+      new ReflectionInjector(), new DefaultFactoryFinderResolver().resolveDefaultFactoryFinder(new
DefaultClassResolver()))
   
   def testDocumentConverter = {
     val result = converter.convertTo(classOf[Document], <persons/>)



Mime
View raw message