(no commit message)
[utils] / support / cdi / src / test / java / org / wamblee / cdi / CdiInjectorTest.java
index c1ee4f922dc6fd2daad26231898ead92184c206b..13946b3aeeee22efd714fc7f9b8d3e99861dfcc3 100644 (file)
@@ -20,44 +20,48 @@ import static junit.framework.Assert.*;
 import org.junit.After;
 import org.junit.Before;
 import org.junit.Test;
+import org.wamblee.inject.InjectorBuilder;
 
 public class CdiInjectorTest extends BaseTestFixture {
-    
-    private BeanManagerSetup manager; 
-    
+
+    private BeanManagerSetup manager;
+
     @Before
-    public void setUp() throws Exception { 
+    public void setUp() throws Exception {
         super.setUp();
         manager = new BeanManagerSetup();
-        manager.initialize(); 
+        manager.initialize();
     }
-    
+
     @After
-    public void tearDown() throws Exception { 
+    public void tearDown() throws Exception {
         manager.shutdown();
         super.tearDown();
     }
-    
+
     @Test
-    public void testInject() {      
-        CdiInjector injector = new CdiInjector(manager.getBeanManager(), MyPojo.class);
-        MyPojo pojo = new MyPojo(); 
+    public void testInject() {
+        CdiInjector injector = new CdiInjector(manager.getBeanManager(),
+            MyPojo.class);
+        MyPojo pojo = new MyPojo();
         injector.inject(pojo);
         assertNotNull(pojo.getSingleton());
     }
-    
+
     @Test(expected = IllegalArgumentException.class)
-    public void testWrongType() { 
-        CdiInjector injector = new CdiInjector(manager.getBeanManager(), String.class);
-        MyPojo pojo = new MyPojo(); 
+    public void testWrongType() {
+        CdiInjector injector = new CdiInjector(manager.getBeanManager(),
+            String.class);
+        MyPojo pojo = new MyPojo();
         injector.inject(pojo);
     }
-    
+
     @Test
-    public void testNullObject() { 
-        CdiInjector injector = new CdiInjector(manager.getBeanManager(), MyPojo.class);
+    public void testNullObject() {
+        CdiInjector injector = new CdiInjector(manager.getBeanManager(),
+            MyPojo.class);
         injector.inject(null);
-        
-        // ok should simply ignore. 
+
+        // ok should simply ignore.
     }
 }