(no commit message)
[utils] / wicket / joe / src / test / java / org / wamblee / wicket / inject / ComponentInstantiationInjectorTest.java
index 5824c6dc2755ccb063956616142ac3fa85c13abb..59d59f69fdc4a305edf93aba45491a26ad35d1d7 100644 (file)
@@ -23,21 +23,21 @@ import org.apache.wicket.util.tester.WicketTester;
 import org.junit.Test;
 import org.wamblee.inject.Injector;
 
-
 public class ComponentInstantiationInjectorTest {
-    
+
     @Test
-    public void testListener() { 
+    public void testListener() {
         WicketTester tester = new WicketTester();
-        tester.getApplication().addComponentInstantiationListener(new ComponentInstantiationInjector());
-        
-        Injector injector = mock(Injector.class); 
-        TestInjectorFactory.setMockInjector(injector); 
-        
+        tester.getApplication().addComponentInstantiationListener(
+            new ComponentInstantiationInjector());
+
+        Injector injector = mock(Injector.class);
+        TestInjectorFactory.setMockInjector(injector);
+
         Component component = new WebMarkupContainer("hello");
-        
-        // Verify the injector was called with the component as an argument. 
-        verify(injector).inject(same(component)); 
+
+        // Verify the injector was called with the component as an argument.
+        verify(injector).inject(same(component));
     }
 
 }