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
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();
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;
@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);
}
}