public void endOfSuite() throws InterruptedException {
  if (asynchronousThread == null) {
    throw new IllegalStateException("Reporting thread not yet started");
  }
  this.keepRunning=false;
  asynchronousThread.join();
}

public void endOfSuite ( ) throws InterruptedException { if ( asynchronousThread == null ) { throw new IllegalStateException ( "Reporting thread not yet started" ) ; } this . keepRunning = false ; asynchronousThread . join ( ) ; }
sets the flag to indicate that there will be no more tests . waits for reporting thread to finish its job .
