src/nl/knokko/gui/testing/GuiTestHelper.java
/**
	 * Unchecks the checkbox closest to the commponent with the given text. The total amount of checkboxes is 
	 * needed to make sure all checkbox are taken into account. If it is not checked, a TestException is 
	 * thrown.
	 * @param nearest The text of the component the target checkbox should be close to
	 * @param totalAmount The total amount of checkboxes in the window
	 */
Unchecks the checkbox closest to the commponent with the given text. The total amount of checkboxes is
needed to make sure all checkbox are taken into account. If it is not checked, a TestException is
thrown.
@param nearest The text of the component the target checkbox should be close to
@param totalAmount The total amount of checkboxes in the window
Unchecks the checkbox closest to the commponent with the given text . The total amount of checkboxes is needed to make sure all checkbox are taken into account . If it is not checked a TestException is thrown . @param nearest The text of the component the target checkbox should be close to @param totalAmount The total amount of checkboxes in the window
public void uncheck(String nearest, int totalAmount) {
		CheckableComponent.Pair checkbox = getCheckbox(nearest, totalAmount);
		if (!checkbox.isChecked()) {
			throw new TestException("The checkbox closest to " + nearest + " is not checked");
		} else {
			Point2D.Float location = checkbox.getCenter();
			click(location.x, location.y);
		}
	}
public void uncheck ( String nearest , int totalAmount ) { CheckableComponent . Pair checkbox = getCheckbox ( nearest , totalAmount ) ; if ( ! checkbox . isChecked ( ) ) { throw new TestException ( "The checkbox closest to " + nearest + " is not checked" ) ; } else { Point2D . Float location = checkbox . getCenter ( ) ; click ( location . x , location . y ) ; } }
Unchecks the checkbox closest to the commponent with the given text.
Unchecks the checkbox closest to the commponent with the given text .