Ejemplo n.º 1
0
 private TableTable makeTableTable(String tableText) throws Exception {
   WikiPageUtil.setPageContents(root, tableText);
   TableScanner ts = new HtmlTableScanner(root.getData().getHtml());
   Table t = ts.getTable(0);
   testContext = new SlimTestContextImpl();
   return new TableTable(t, "id", testContext);
 }
 private void assertExpectationMessage(String expected, String value, String message)
     throws Exception {
   TableScanner ts = new HtmlTableScanner("<table><tr><td>x</td></tr></table>");
   Table t = ts.getTable(0);
   SlimTable slimTable = new DecisionTable(t, "id", testContext);
   SlimTable.RowExpectation expectation = slimTable.new ReturnedValueExpectation(0, 0);
   SlimTestResult testResult = expectation.evaluationMessage(value, expected);
   assertEquals(message, testResult.toString(expected));
   // assertEquals(message, expectation.getEvaluationMessage());
   assertEquals(0, expectation.getRow());
   assertEquals(0, expectation.getCol());
 }