public void wait ( double seconds ) { String action = "Wait " + seconds + SECONDS ; String expected = WAITED + seconds + SECONDS ; try { Thread . sleep ( ( long ) ( seconds * 1000 ) ) ; } catch ( InterruptedException e ) { log . warn ( e ) ; reporter . fail ( action , expected , "Failed to wait " + seconds + SECONDS + ". " + e . getMessage ( ) ) ; Thread . currentThread ( ) . interrupt ( ) ; return ; } reporter . pass ( action , expected , WAITED + seconds + SECONDS ) ; }
Pauses the test for a set amount of time