environment, application }, new ProvidedInterface[0],
new RequiredInterface[0]);
- container.start("top");
+ container.start();
AssertionUtils.assertEquals(new String[] { "start.environment",
"start.application" }, _tracker.getEvents(
Thread.currentThread()).toArray(new String[0]));
new Component[] {
application, environment },
new ProvidedInterface[0], new RequiredInterface[0]);
- container.start("top");
+ container.start();
} catch (SystemAssemblyException e) {
// e.printStackTrace();
return;
application }, new ProvidedInterface[0],
new RequiredInterface[0]);
assertEquals(Status.NOT_STARTED, system.getStatus());
- system.start("root");
+ system.start();
RequiredInterface[] required = system.getRequiredServices();
assertEquals(0, required.length);
ProvidedInterface[] provided = system.getProvidedServices();
environment, application }, new ProvidedInterface[0],
new RequiredInterface[] { new DefaultRequiredInterface(
"string", String.class) });
- system.start("root");
+ system.start();
} catch (SystemAssemblyException e) {
return;
}
"string", String.class) });
system.getRequiredServices()[0]
.setProvider(new DefaultProvidedInterface("hallo", String.class));
- system.start("root");
+ system.start();
RequiredInterface[] required = system.getRequiredServices();
assertEquals(1, required.length);
ProvidedInterface[] provided = system.getProvidedServices();
Container system = new Container("all",
new Component[] { application }, new ProvidedInterface[0],
application.getRequiredServices());
- system.start("root");
+ system.start();
} catch (SystemAssemblyException e) {
return;
}
Container system = new Container("all",
new Component[] { application }, new ProvidedInterface[0],
application.getRequiredServices());
- environment.start("env");
+ environment.start();
system.getRequiredServices()[0].setProvider(environment
.getProvidedServices()[0]);
system.getRequiredServices()[1].setProvider(environment
.getProvidedServices()[1]);
- system.start("root");
+ system.start();
RequiredInterface[] required = system.getRequiredServices();
assertEquals(2, required.length);
ProvidedInterface[] provided = system.getProvidedServices();
Container container = new Container("root", new Component[] {
environment1, environment2, application },
new ProvidedInterface[0], new RequiredInterface[0]);
- container.start("top");
+ container.start();
} catch (SystemAssemblyException e) {
return;
Container system = new Container("all",
new Component[] { application }, new ProvidedInterface[0],
new RequiredInterface[0]);
- system.start("root");
+ system.start();
} catch (SystemAssemblyException e) {
return;
}