assertEquals(0, testContext.getTestSummary().getExceptions());
}
@Test
public void simpleInputAndOutputFailing() throws Exception {
SlimTestContextImpl testContext = makeTables(
"!|scenario|echo|input|giving|output|\n" +
"|check|echo|@input|@output|\n" +
"\n" +
"!|DT:EchoGiving|\n" +
"|input|output|\n" +
"|7|8|\n"
);
Map<String, Object> pseudoResults = SlimCommandRunningClient.resultToMap(
asList(asList("decisionTable_did_0/scriptTable_s_id_0", "7"))
);
SlimAssertion.evaluateExpectations(assertions, pseudoResults);
String scriptTable = dt.getChildren().get(0).getTable().toString();
String expectedScript =
"[[scenario, echo, input, giving, output], [check, echo, 7, fail(a=7;e=8)]]";
assertEquals(expectedScript, scriptTable);
String dtHtml = dt.getTable().toString();
assertEquals(0, testContext.getTestSummary().getRight());
assertEquals(1, testContext.getTestSummary().getWrong());
assertEquals(0, testContext.getTestSummary().getIgnores());
assertEquals(0, testContext.getTestSummary().getExceptions());
}