public String stopProcess(String ticket) { Stoppable process = processes.get(ticket); if (process != null) { stopProcess(process); return "Stopped 1 test or suite"; } return "Could not find test or suite to stop"; }
public String stopAllProcesses() { int count = 0; for (Stoppable process : processes.values()) { stopProcess(process); count++; } return "Stopped " + Integer.toString(count) + " test(s) or suite(s)"; }