use of com.github.bordertech.wcomponents.WList in project wcomponents by BorderTech.
the class WListRenderer_Test method testRenderedFormatWithBorder.
@Test
public void testRenderedFormatWithBorder() throws IOException, SAXException {
// non-empty list, no border
WList list = new WList(WList.Type.STRIPED);
list.setRenderBorder(true);
list.setRepeatedComponent(new WText());
list.setData(Arrays.asList(new String[] { "row1", "row2", "row3" }));
assertSchemaMatch(list);
}
use of com.github.bordertech.wcomponents.WList in project wcomponents by BorderTech.
the class WListRenderer_Test method testRenderedFormatEmptyWithBorder.
@Test
public void testRenderedFormatEmptyWithBorder() throws IOException, SAXException, XpathException {
// empty list, with border
WList list = new WList(WList.Type.STRIPED);
list.setRenderBorder(true);
list.setRepeatedComponent(new WText());
assertSchemaMatch(list);
assertXpathEvaluatesTo("striped", "//ui:listlayout/@type", list);
assertXpathEvaluatesTo("box", "//ui:panel/@type", list);
assertXpathNotExists("//ui:listlayout/@separator", list);
}
Aggregations