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); } }
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); } }