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 Robot
notNullRobot
(Robot robot) Verifies that the given
is notRobot
null
.static <T extends Component>
TnotNullTarget
(T target) Verifies that the given
is notComponent
null
.
-
Constructor Details
-
ComponentFixtureValidator
private ComponentFixtureValidator()
-
-
Method Details
-
notNullRobot
Verifies that the given
is notRobot
null
.- Parameters:
robot
- theRobot
to verify.- Returns:
- the given
Robot
. - Throws:
NullPointerException
- ifrobot
isnull
.
-
notNullTarget
Verifies that the given
is notComponent
null
.- Type Parameters:
T
- specifies the type ofComponent
to return.- Parameters:
target
- theComponent
to verify.- Returns:
- the given target
Component
. - Throws:
NullPointerException
- iftarget
isnull
.
-