FitFixtureReportingSystem implements ReportingSystem { @Override public void addException(final Throwable ex) { Parse cell = new Parse("td", "", null, null); fixture.exception(cell, ex); addCell(cell); closeNewRow(); } FitFixtureReportingSystem(final Fixture fixture, final Parse table); @Override void endRow(final MatchResult res, final String description); @Override void endRow(final MatchResult res); @Override void addCell(final MatchResult res); @Override void addException(final Throwable ex); @Override void incRight(); Parse getTable();  }
@Test public void testAddExceptionOnStart() { reportingSystem = new FitFixtureReportingSystem(new Fixture(), table); reportingSystem.addException(new Exception("Cruel World!")); assertThat(table, isParseThat() .withRecursiveChildren() .withRecursiveSiblings() .which(allOf( hasTagThat(containsString("<td")), hasBodyThat(allOf( containsString("Cruel World!"), containsString("stacktrace")))))); }