- Scope scope = container.start();
- AssertionUtils.assertEquals(new String[] { "x1(hello)", "x4(x1)",
- "x8.setX4(x4)"},
- EVENT_TRACKER.getEvents(Thread.currentThread()).toArray());
+ 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());