@Test public void testImportFormData1() throws Exception { Object[][] data = new Object[][] {new Object[] {5, S1}}; SimpleTablePage page = new SimpleTablePage(false, data); Table table = page.getTable(); assertEquals("row count", 1, table.getRowCount()); assertEquals("IColumn value", I1, table.getIColumn().getValue(0)); assertEquals("SColumn value", S1, table.getSColumn().getValue(0)); assertEquals("Status", null, page.getTableStatus()); }
/** Test with LimitedResult == true */ @Test public void testImportFormData2() throws Exception { Object[][] data = new Object[][] {new Object[] {I1, S1}, new Object[] {I2, S2}, new Object[] {I3, S3}}; SimpleTablePage page = new SimpleTablePage(true, data); Table table = page.getTable(); assertEquals("row count", 3, table.getRowCount()); assertEquals("Status - severity", IStatus.WARNING, page.getTableStatus().getSeverity()); assertEquals( "Status - message", TEXTS.get("MaxOutlineRowWarning", "3"), page.getTableStatus().getMessage()); }