src/nl/knokko/gui/testing/GuiTestHelper.java
/**
	 * Waits for the specified amount of milliseconds. This method will block until
	 * the time has expired. Since the window should run on another thread, it
	 * should get time to do whatever it is doing. This method will automatically be
	 * called after every mouse operation to give the window some time to respond.
	 * How long that delay may take can be specified with setDelayTime().
	 * 
	 * @param millis The time in milliseconds to wait
	 */
Waits for the specified amount of milliseconds. This method will block until
the time has expired. Since the window should run on another thread, it
should get time to do whatever it is doing. This method will automatically be
called after every mouse operation to give the window some time to respond.
How long that delay may take can be specified with setDelayTime().

@param millis The time in milliseconds to wait
Waits for the specified amount of milliseconds . This method will block until the time has expired . Since the window should run on another thread it should get time to do whatever it is doing . This method will automatically be called after every mouse operation to give the window some time to respond . How long that delay may take can be specified with setDelayTime () . @param millis The time in milliseconds to wait
public void delay(int millis) {
		if (stopped) {
			throw new TestException("Test has been forced to stop");
		}
		if (testThread == null) {
			testThread = Thread.currentThread();
		} else if (testThread != Thread.currentThread()) {
			throw new TestException("Delay method of this test helper has been called on multiple threads");
		}
		try {
			Thread.sleep(millis);
		} catch (InterruptedException e) {
			throw new TestException("Delay has been interupted");
		}
	}
public void delay ( int millis ) { if ( stopped ) { throw new TestException ( "Test has been forced to stop" ) ; } if ( testThread == null ) { testThread = Thread . currentThread ( ) ; } else if ( testThread != Thread . currentThread ( ) ) { throw new TestException ( "Delay method of this test helper has been called on multiple threads" ) ; } try { Thread . sleep ( millis ) ; } catch ( InterruptedException e ) { throw new TestException ( "Delay has been interupted" ) ; } }
Waits for the specified amount of milliseconds.
Waits for the specified amount of milliseconds .