Less duplication of validation and start. Validation should be a dry-run
[utils] / system / general / src / test / java / org / wamblee / system / core / ContainerTest.java
index 8b6c61e85fbe873feb02034a55154ed87d2b6efe..90723ed1c93c4f6271448cf19622ed0eb8166dbe 100644 (file)
@@ -84,7 +84,6 @@ public class ContainerTest extends TestCase {
                Container container = new Container("root", new Component[] {
                                environment, application }, new ProvidedInterface[0],
                                new RequiredInterface[0]);
-
                Scope scope = container.start();
                assertTrue(container.isSealed());
                AssertionUtils.assertEquals(new String[] { "start.environment",
@@ -164,6 +163,7 @@ public class ContainerTest extends TestCase {
                                        new ProvidedInterface[] { new DefaultProvidedInterface(
                                                        "float", Float.class) },
                                        new DefaultRequiredInterface[0]);
+                       system.validate(); 
                } catch (SystemAssemblyException e) {
                        return;
                }