@Override public void errorOccurred(Throwable cause) { if (testHistoryFormatter != null) { testHistoryFormatter.errorOccurred(cause); } super.errorOccurred(cause); }
public void doExecuteTests() { if (WikiImportProperty.isImported(data)) { importWikiPages(); } try { performExecution(); } catch (Exception e) { // Is this necessary? Or is the exception already handled by stopTestSystem? mainFormatter.errorOccurred(e); LOG.log(Level.WARNING, "error registered in test system", e); } exitCode = mainFormatter.getErrorCount(); }
@Override public void testSystemStopped(TestSystem testSystem, Throwable cause) { if (cause != null) { errorOccurred(cause); } }