Ejemplo n.º 1
0
 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";
 }
Ejemplo n.º 2
0
 public String stopAllProcesses() {
   int count = 0;
   for (Stoppable process : processes.values()) {
     stopProcess(process);
     count++;
   }
   return "Stopped " + Integer.toString(count) + " test(s) or suite(s)";
 }