예제 #1
0
 private boolean processThread(RunThread runThread, long timeout) throws InterruptedException {
   runThread.start();
   runThread.join(timeout * 1000);
   if (runThread.isAlive()) {
     TestVerifier.testStatus = TestVerifier.TEST_STATUS.TIMEOUT;
     runThread.interrupt();
     return false;
   }
   return true;
 }
예제 #2
0
 /** Are we running a validation? */
 public synchronized boolean isRunning() {
   return (runThread != null && runThread.isAlive());
 }