src/nl/knokko/gui/testing/GuiTestHelper.java
/**
	 * Checks if there is a component in the window that shows the specified text.
	 * If such a component can not be found, this method will throw a TestException
	 * If your window uses your own text components, make sure that they implement
	 * TextShowingComponent. If you have your own menu components, make sure they
	 * implement TextShowingComponent and search their children.
	 * 
	 * @param text The text to search for
	 * 
	 * @throws TestException If no component is showing the given text
	 */
Checks if there is a component in the window that shows the specified text.
If such a component can not be found, this method will throw a TestException
If your window uses your own text components, make sure that they implement
TextShowingComponent. If you have your own menu components, make sure they
implement TextShowingComponent and search their children.

@param text The text to search for

@throws TestException If no component is showing the given text
Checks if there is a component in the window that shows the specified text . If such a component can not be found this method will throw a TestException If your window uses your own text components make sure that they implement TextShowingComponent . If you have your own menu components make sure they implement TextShowingComponent and search their children . @param text The text to search for @throws TestException If no component is showing the given text
public void assertComponentWithText(String text) {
		if (getComponentWithText(text) == null) {
			throw new TestException("There is no component showing the text " + text);
		}
	}
public void assertComponentWithText ( String text ) { if ( getComponentWithText ( text ) == null ) { throw new TestException ( "There is no component showing the text " + text ) ; } }
Checks if there is a component in the window that shows the specified text.
Checks if there is a component in the window that shows the specified text .