コード例 #1
0
 public void notifyFinish(ObjectReader reader) {
   myIsTerminated = true;
   synchronized (myCurrentTests) {
     myCurrentTests.clear();
   }
   final JUnitRunningModel model = getModel();
   if (model != null) {
     model.getNotifier().fireRunnerStateChanged(new CompletionEvent(true, reader.readInt()));
     TestStatusListener.notifySuiteFinished(model.getRoot(), model.getProject());
     terminateStillRunning(model);
   }
 }
コード例 #2
0
 public void checkTerminated() {
   if (isRunning()) {
     final JUnitRunningModel model = getModel();
     if (model != null) {
       final JUnitListenersNotifier notifier = model.getNotifier();
       if (notifier != null) {
         notifier.fireRunnerStateChanged(new CompletionEvent(false, -1));
         terminateStillRunning(model);
       }
     }
     setTerminated(true);
   }
 }