Removed DOCUMENT ME comments that were generated and applied source code
[utils] / system / general / src / test / java / org / wamblee / system / adapters / DefaultContainerTest.java
index 108cd961a2b2bb27215c9bae09f237f5a2ac108f..98e58507cfee7d2e4bee8092d079263561d8f496 100644 (file)
@@ -19,17 +19,12 @@ import org.wamblee.system.core.Scope;
 
 import org.wamblee.test.AssertionUtils;
 
-
 /**
- * DOCUMENT ME!
- *
+ * 
  * @author $author$
  * @version $Revision$
 */
+ */
 public class DefaultContainerTest extends AdapterTestCase {
-    /**
-     * DOCUMENT ME!
-     */
     public void testConstructorInjection() {
         ClassConfiguration x1Config = new ClassConfiguration(X1.class);
         x1Config.getConstructorConfig().getParameters().setValue(0, "hello");
@@ -38,10 +33,10 @@ public class DefaultContainerTest extends AdapterTestCase {
         ClassConfiguration x4Config = new ClassConfiguration(X4.class);
         x4Config.getObjectConfig().getSetterConfig().initAllSetters();
 
-        DefaultContainer container = new DefaultContainer("top").addComponent("x1",
-                x1Config).addComponent("x4", x4Config);
+        DefaultContainer container = new DefaultContainer("top").addComponent(
+            "x1", x1Config).addComponent("x4", x4Config);
 
-        Scope            scope     = container.start();
+        Scope scope = container.start();
         AssertionUtils.assertEquals(new String[] { "x1(hello)", "x4(x1)" },
             EVENT_TRACKER.getEvents(Thread.currentThread()).toArray());
 
@@ -51,9 +46,6 @@ public class DefaultContainerTest extends AdapterTestCase {
         assertTrue(obj instanceof X4);
     }
 
-    /**
-     * DOCUMENT ME!
-     */
     public void testConstructorInjectionAndSetterInjection() {
         ClassConfiguration x1Config = new ClassConfiguration(X1.class);
         x1Config.getConstructorConfig().getParameters().setValue(0, "hello");
@@ -68,14 +60,14 @@ public class DefaultContainerTest extends AdapterTestCase {
         ObjectConfiguration x8Config = new ObjectConfiguration(X8.class);
         x8Config.getSetterConfig().initAllSetters();
 
-        DefaultContainer container = new DefaultContainer("top").addComponent("x1",
-                x1Config).addComponent("x4", x4Config)
-            .addComponent("x8", x8, x8Config);
+        DefaultContainer container = new DefaultContainer("top").addComponent(
+            "x1", x1Config).addComponent("x4", x4Config).addComponent("x8", x8,
+            x8Config);
 
-        Scope            scope     = container.start();
-        AssertionUtils.assertEquals(new String[] {
-                "x1(hello)", "x4(x1)", "x8.setX4(x4)"
-            }, EVENT_TRACKER.getEvents(Thread.currentThread()).toArray());
+        Scope scope = container.start();
+        AssertionUtils.assertEquals(new String[] { "x1(hello)", "x4(x1)",
+            "x8.setX4(x4)" }, EVENT_TRACKER.getEvents(Thread.currentThread())
+            .toArray());
 
         Object obj1 = scope.getRuntime("x1");
         assertTrue(obj1 instanceof X1);
@@ -88,17 +80,14 @@ public class DefaultContainerTest extends AdapterTestCase {
         assertSame(obj4, x8.getX4());
     }
 
-    /**
-     * DOCUMENT ME!
-     */
     public void testWrongObjectType() {
         final DefaultContainer container = new DefaultContainer("top");
         AssertionUtils.assertException(new AssertionUtils.ErroneousCode() {
-                @Override
-                public void run() throws Exception {
-                    container.addComponent("x", "y",
-                        new ObjectConfiguration(Integer.class));
-                }
-            }, IllegalArgumentException.class);
+            @Override
+            public void run() throws Exception {
+                container.addComponent("x", "y", new ObjectConfiguration(
+                    Integer.class));
+            }
+        }, IllegalArgumentException.class);
     }
 }