예제 #1
0
 @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();
  }
예제 #3
0
 @Override
 public void testSystemStopped(TestSystem testSystem, Throwable cause) {
   if (cause != null) {
     errorOccurred(cause);
   }
 }