void assertThreadStaysAlive(Thread thread,long millis){
  try {
    delay(millis);
    assertTrue(thread.isAlive());
  }
 catch (  InterruptedException fail) {
    threadFail("Unexpected InterruptedException");
  }
}

void assertThreadStaysAlive ( Thread thread , long millis ) { try { delay ( millis ) ; assertTrue ( thread . isAlive ( ) ) ; } catch ( InterruptedException fail ) { threadFail ( "Unexpected InterruptedException" ) ; } }
checks that thread does not terminate within the given millisecond delay .
