Exemplo n.º 1
0
 public SlimTestXmlFormatter(
     TestExecutionReport.TestResult testResult, SlimTestSystem slimSystem) {
   this.testResult = testResult;
   instructions = slimSystem.getInstructions();
   results = slimSystem.getInstructionResults();
   expectations = slimSystem.getExpectations();
   slimTables = slimSystem.getTestTables();
 }
Exemplo n.º 2
0
 protected String createEvaluationMessage(String actual, String expected) {
   try {
     table.appendCellToRow(getRow(), actual);
   } catch (Throwable e) {
     return failMessage(actual, SlimTestSystem.exceptionToString(e));
   }
   return expected;
 }