From 44208d09fb3de9f2b236a91cc7d57f88fb66d21d Mon Sep 17 00:00:00 2001 From: erik Date: Wed, 28 Jul 2010 18:22:43 +0000 Subject: [PATCH] --- .../wamblee/test/inject/JavaEETestInjectorFactory.java | 10 +++++----- .../test/inject/JavaEETestInjectorFactoryTest.java | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/test/enterprise/src/main/java/org/wamblee/test/inject/JavaEETestInjectorFactory.java b/test/enterprise/src/main/java/org/wamblee/test/inject/JavaEETestInjectorFactory.java index bc0ef25e..c2228b98 100644 --- a/test/enterprise/src/main/java/org/wamblee/test/inject/JavaEETestInjectorFactory.java +++ b/test/enterprise/src/main/java/org/wamblee/test/inject/JavaEETestInjectorFactory.java @@ -19,7 +19,7 @@ import javax.persistence.EntityManager; import org.wamblee.inject.Injector; import org.wamblee.inject.InjectorFactory; -import org.wamblee.inject.InjectorFactoryBuilder; +import org.wamblee.inject.InjectorBuilder; import org.wamblee.test.persistence.JpaBuilder; /** @@ -38,7 +38,7 @@ import org.wamblee.test.persistence.JpaBuilder; * *

* To use it, construct the factory using one of the available constructors and set - * InjectorFactoryBuilder.setInjectorFactory(InjectorFactory. + * InjectorBuilder.setInjectorFactory(InjectorFactory). *

* * @author Erik Brakkee @@ -61,7 +61,7 @@ public class JavaEETestInjectorFactory implements InjectorFactory { /** * Constructs the factory with the default injector factory obtained from - * {@link InjectorFactoryBuilder#getInjector()}. + * {@link InjectorBuilder#getInjector()}. * @param aEntityManager Contextual entity manager to inject. */ public JavaEETestInjectorFactory(EntityManager aEntityManager) { @@ -69,8 +69,8 @@ public class JavaEETestInjectorFactory implements InjectorFactory { } private static InjectorFactory getDefaultInjectorFactory() { - InjectorFactoryBuilder.setInjectorFactory(null); - return InjectorFactoryBuilder.getInjectorFactory(); + InjectorBuilder.setInjectorFactory(null); + return InjectorBuilder.getInjectorFactory(); } @Override diff --git a/test/enterprise/src/test/java/org/wamblee/test/inject/JavaEETestInjectorFactoryTest.java b/test/enterprise/src/test/java/org/wamblee/test/inject/JavaEETestInjectorFactoryTest.java index 0ca9c021..682ea882 100644 --- a/test/enterprise/src/test/java/org/wamblee/test/inject/JavaEETestInjectorFactoryTest.java +++ b/test/enterprise/src/test/java/org/wamblee/test/inject/JavaEETestInjectorFactoryTest.java @@ -4,7 +4,7 @@ import javax.persistence.EntityManager; import javax.persistence.PersistenceContext; import org.junit.Test; -import org.wamblee.inject.InjectorFactoryBuilder; +import org.wamblee.inject.InjectorBuilder; import static org.mockito.Mockito.*; import static junit.framework.TestCase.*; @@ -28,11 +28,11 @@ public class JavaEETestInjectorFactoryTest { @Test public void testXyz() { EntityManager em = mock(EntityManager.class); - InjectorFactoryBuilder.setInjectorFactory(new JavaEETestInjectorFactory(em)); + InjectorBuilder.setInjectorFactory(new JavaEETestInjectorFactory(em)); assertNull(entityManager); assertNull(entityManager2); - InjectorFactoryBuilder.getInjector().inject(this); + InjectorBuilder.getInjector().inject(this); assertNotNull(em); assertSame(em, entityManager); @@ -47,8 +47,8 @@ public class JavaEETestInjectorFactoryTest { @Test(expected = IllegalArgumentException.class) public void testWrongType() { EntityManager em = mock(EntityManager.class); - InjectorFactoryBuilder.setInjectorFactory(new JavaEETestInjectorFactory(em)); + InjectorBuilder.setInjectorFactory(new JavaEETestInjectorFactory(em)); X x= new X(); - InjectorFactoryBuilder.getInjector().inject(x); + InjectorBuilder.getInjector().inject(x); } } -- 2.31.1