Removed DOCUMENT ME comments that were generated and applied source code
[utils] / system / general / src / test / java / org / wamblee / system / adapters / ConstructorConfigurationTest.java
index cf0491738740585dc89da0c90e7395c691692146..15eff28e9a282066857107f24c8f72ef32b8de82 100644 (file)
@@ -24,23 +24,18 @@ import org.wamblee.test.AssertionUtils;
 
 import java.util.List;
 
-
 /**
- * DOCUMENT ME!
- *
+ * 
  * @author $author$
  * @version $Revision$
 */
+ */
 public class ConstructorConfigurationTest extends AdapterTestCase {
-    /**
-     * DOCUMENT ME!
-     */
     public void testGreedyUnique() {
-        ConstructorConfiguration config   = new ConstructorConfiguration(X1.class)
+        ConstructorConfiguration config = new ConstructorConfiguration(X1.class)
             .greedy();
-        ProvidedInterface        provided = new DefaultProvidedInterface("arg",
-                String.class);
-        List<RequiredInterface>  required = config.getRequiredInterfaces();
+        ProvidedInterface provided = new DefaultProvidedInterface("arg",
+            String.class);
+        List<RequiredInterface> required = config.getRequiredInterfaces();
 
         assertEquals(1, required.size());
         assertFalse(required.get(0).isOptional());
@@ -52,16 +47,13 @@ public class ConstructorConfigurationTest extends AdapterTestCase {
 
         AssertionUtils.assertEquals(new String[] { "x1(hello)" },
             AdapterTestCase.EVENT_TRACKER.getEvents(Thread.currentThread())
-            .toArray());
+                .toArray());
     }
 
-    /**
-     * DOCUMENT ME!
-     */
     public void testGreedyNonUnique() {
         try {
-            ConstructorConfiguration config = new ConstructorConfiguration(X2.class)
-                .greedy();
+            ConstructorConfiguration config = new ConstructorConfiguration(
+                X2.class).greedy();
         } catch (SystemAssemblyException e) {
             // e.printStackTrace();
             return;
@@ -70,15 +62,12 @@ public class ConstructorConfigurationTest extends AdapterTestCase {
         fail();
     }
 
-    /**
-     * DOCUMENT ME!
-     */
     public void testSpecificConstructor() {
-        ConstructorConfiguration config   = new ConstructorConfiguration(X2.class)
+        ConstructorConfiguration config = new ConstructorConfiguration(X2.class)
             .select(String.class);
-        ProvidedInterface        provided = new DefaultProvidedInterface("arg",
-                String.class);
-        List<RequiredInterface>  required = config.getRequiredInterfaces();
+        ProvidedInterface provided = new DefaultProvidedInterface("arg",
+            String.class);
+        List<RequiredInterface> required = config.getRequiredInterfaces();
 
         assertEquals(1, required.size());
         required.get(0).setProvider(provided);
@@ -88,12 +77,9 @@ public class ConstructorConfigurationTest extends AdapterTestCase {
 
         AssertionUtils.assertEquals(new String[] { "x2(hello)" },
             AdapterTestCase.EVENT_TRACKER.getEvents(Thread.currentThread())
-            .toArray());
+                .toArray());
     }
 
-    /**
-     * DOCUMENT ME!
-     */
     public void testSetValue() {
         ConstructorConfiguration config = new ConstructorConfiguration(X1.class)
             .greedy();
@@ -103,19 +89,16 @@ public class ConstructorConfigurationTest extends AdapterTestCase {
 
         AssertionUtils.assertEquals(new String[] { "x1(bla)" },
             AdapterTestCase.EVENT_TRACKER.getEvents(Thread.currentThread())
-            .toArray());
+                .toArray());
     }
 
-    /**
-     * DOCUMENT ME!
-     */
     public void testOptionalValueProvided() {
         ConstructorConfiguration config = new ConstructorConfiguration(X1.class)
             .greedy();
         config.getParameters().setOptional(0);
 
-        ProvidedInterface       provided = new DefaultProvidedInterface("arg",
-                String.class);
+        ProvidedInterface provided = new DefaultProvidedInterface("arg",
+            String.class);
         List<RequiredInterface> required = config.getRequiredInterfaces();
 
         assertEquals(1, required.size());
@@ -126,12 +109,9 @@ public class ConstructorConfigurationTest extends AdapterTestCase {
 
         AssertionUtils.assertEquals(new String[] { "x1(hello)" },
             AdapterTestCase.EVENT_TRACKER.getEvents(Thread.currentThread())
-            .toArray());
+                .toArray());
     }
 
-    /**
-     * DOCUMENT ME!
-     */
     public void testOptionalValueMissing() {
         ConstructorConfiguration config = new ConstructorConfiguration(X1.class)
             .greedy();
@@ -142,28 +122,22 @@ public class ConstructorConfigurationTest extends AdapterTestCase {
 
         AssertionUtils.assertEquals(new String[] { "x1(null)" },
             AdapterTestCase.EVENT_TRACKER.getEvents(Thread.currentThread())
-            .toArray());
+                .toArray());
     }
 
-    /**
-     * DOCUMENT ME!
-     */
     public void testIgnoredNonPublic() {
-        ConstructorConfiguration config   = new ConstructorConfiguration(X3.class)
+        ConstructorConfiguration config = new ConstructorConfiguration(X3.class)
             .greedy();
-        List<RequiredInterface>  required = config.getRequiredInterfaces();
+        List<RequiredInterface> required = config.getRequiredInterfaces();
         assertEquals(0, config.getParameters().getTypes().length);
     }
 
-    /**
-     * DOCUMENT ME!
-     */
     public void testNonPublicConstructor() {
-        ConstructorConfiguration config   = new ConstructorConfiguration(X3.class).setNonPublic(true)
-            .greedy();
-        ProvidedInterface        provided = new DefaultProvidedInterface("arg",
-                String.class);
-        List<RequiredInterface>  required = config.getRequiredInterfaces();
+        ConstructorConfiguration config = new ConstructorConfiguration(X3.class)
+            .setNonPublic(true).greedy();
+        ProvidedInterface provided = new DefaultProvidedInterface("arg",
+            String.class);
+        List<RequiredInterface> required = config.getRequiredInterfaces();
 
         assertEquals(1, required.size());
         assertFalse(required.get(0).isOptional());
@@ -175,6 +149,6 @@ public class ConstructorConfigurationTest extends AdapterTestCase {
 
         AssertionUtils.assertEquals(new String[] { "x3(hello)" },
             AdapterTestCase.EVENT_TRACKER.getEvents(Thread.currentThread())
-            .toArray());
+                .toArray());
     }
 }