use of org.adempiere.webui.component.WListItemRenderer in project adempiere by adempiere.
the class WListItemRendererTest method setUp.
/**
* @throws java.lang.Exception
*/
@Before
public void setUp() throws Exception {
Vector<Object> dataRowValid = new Vector<Object>();
Vector<Object> dataRowInvalid = new Vector<Object>();
m_columnNames.add("Name");
m_columnNames.add("Age");
m_renderer = new WListItemRenderer(m_columnNames);
dataRowValid.add("River Phoenix");
dataRowValid.add(Integer.valueOf(23));
m_dataValid.add(dataRowValid);
dataRowInvalid.add("Elvis Presley");
dataRowInvalid.add(Integer.valueOf(42));
dataRowInvalid.add("Graceland");
m_dataInvalid.add(dataRowInvalid);
}
use of org.adempiere.webui.component.WListItemRenderer in project adempiere by adempiere.
the class WListItemRendererTest method testWListItemRenderer.
/**
* Test method for {@link org.adempiere.webui.component.WListItemRenderer#WListItemRenderer()}.
*/
@Test
public final void testWListItemRenderer() {
WListItemRenderer renderer = new WListItemRenderer();
assertEquals(0, renderer.getNoColumns());
}
Aggregations