use of org.apache.wicket.queueing.nestedborders.OuterBorder in project wicket by apache.
the class ComponentQueueingTest method border_nested.
@Test
public void border_nested() {
MarkupContainer a = new A(), b = new B(), c = new C(), d = new D(), r = new R(), s = new S();
Border outerBorder = new OuterBorder("outerBorder");
Border innerBorder = new InnerBorder("innerBorder");
outerBorder.queueToBorder(r, innerBorder);
innerBorder.queueToBorder(c, d);
outerBorder.queueToBorder(s);
TestPage p = new TestPage();
p.setPageMarkup("<p wicket:id='a'><p wicket:id='outerBorder'><p wicket:id='b'></p></p></p>");
p.queue(b, outerBorder, a);
tester.startPage(p);
assertThat(p, hasPath(new Path(a, outerBorder, r, innerBorder, c, d, innerBorder.getBodyContainer(), s)));
assertThat(p, hasPath(new Path(a, outerBorder, r, outerBorder.getBodyContainer(), b)));
}
Aggregations