Package org.fest.swing.fixture
Class ComponentFixtureValidator
java.lang.Object
org.fest.swing.fixture.ComponentFixtureValidator
Understands a validator of common objects used in component fixtures.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RobotnotNullRobot(Robot robot) Verifies that the givenis notRobotnull.static <T extends Component>
TnotNullTarget(T target) Verifies that the givenis notComponentnull.
-
Constructor Details
-
ComponentFixtureValidator
private ComponentFixtureValidator()
-
-
Method Details
-
notNullRobot
Verifies that the givenis notRobotnull.- Parameters:
robot- theRobotto verify.- Returns:
- the given
Robot. - Throws:
NullPointerException- ifrobotisnull.
-
notNullTarget
Verifies that the givenis notComponentnull.- Type Parameters:
T- specifies the type ofComponentto return.- Parameters:
target- theComponentto verify.- Returns:
- the given target
Component. - Throws:
NullPointerException- iftargetisnull.
-