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