(no commit message)
authorErik Brakkee <erik@brakkee.org>
Wed, 28 Jul 2010 18:22:25 +0000 (18:22 +0000)
committerErik Brakkee <erik@brakkee.org>
Wed, 28 Jul 2010 18:22:25 +0000 (18:22 +0000)
support/cdi/src/test/java/org/wamblee/cdi/InjectorBuilderTest.java [moved from support/cdi/src/test/java/org/wamblee/cdi/InjectorFactoryBuilderTest.java with 88% similarity]
support/cdi/src/test/java/org/wamblee/cdi/SimpleInjectorTest.java

similarity index 88%
rename from support/cdi/src/test/java/org/wamblee/cdi/InjectorFactoryBuilderTest.java
rename to support/cdi/src/test/java/org/wamblee/cdi/InjectorBuilderTest.java
index 5fdc111e74bc82e74335027acf8f87660481c33f..dd1210fbf5b20b89a2ca0dee52fad97a19177ccb 100644 (file)
@@ -25,10 +25,10 @@ import org.junit.Test;
 import org.wamblee.cdi.SimpleInjectorTest.X;
 import org.wamblee.cdi.SimpleInjectorTest.Y;
 import org.wamblee.inject.InjectorFactory;
-import org.wamblee.inject.InjectorFactoryBuilder;
+import org.wamblee.inject.InjectorBuilder;
 import org.wamblee.test.jndi.StubInitialContextFactory;
 
-public class InjectorFactoryBuilderTest extends BaseTestFixture {
+public class InjectorBuilderTest extends BaseTestFixture {
     
 
     @Test
@@ -39,7 +39,7 @@ public class InjectorFactoryBuilderTest extends BaseTestFixture {
         InitialContext ctx = new InitialContext(); 
         ctx.bind(BeanManagerLookup.BEAN_MANAGER_JNDI, setup.getBeanManager());
         try {
-            InjectorFactory factory = InjectorFactoryBuilder.getInjectorFactory();
+            InjectorFactory factory = InjectorBuilder.getInjectorFactory();
             assertTrue(factory instanceof CdiInjectorFactory);
         } finally {
             setup.shutdown();
index f9e77a5deb116489c513ef017afb162b09267db7..93f260e2d3f170ba889a83640b9919820e577bed 100644 (file)
@@ -27,7 +27,7 @@ import org.junit.Before;
 import org.junit.Test;
 import org.wamblee.inject.Injector;
 import org.wamblee.inject.InjectorFactory;
-import org.wamblee.inject.InjectorFactoryBuilder;
+import org.wamblee.inject.InjectorBuilder;
 import org.wamblee.inject.SimpleInjector;
 import org.wamblee.test.jndi.StubInitialContextFactory;
 
@@ -104,15 +104,15 @@ public class SimpleInjectorTest extends BaseTestFixture {
     @Test 
     public void testInjectStorage() throws Exception { 
         X x = new X(); 
-        InjectorFactoryBuilder.setInjectorFactory(null);
-        InjectorFactoryBuilder.getInjector().inject(x);
+        InjectorBuilder.setInjectorFactory(null);
+        InjectorBuilder.getInjector().inject(x);
     }
     
     @Test 
     public void testInjectStorage2() { 
         X x = new X(); 
-        InjectorFactoryBuilder.setInjectorFactory(null);
-        InjectorFactoryBuilder.getInjector().inject(x);
+        InjectorBuilder.setInjectorFactory(null);
+        InjectorBuilder.getInjector().inject(x);
     }
     
 }