org.fest.swing.fixture
Class ComponentFixtureValidator

java.lang.Object
  extended by org.fest.swing.fixture.ComponentFixtureValidator

public final class ComponentFixtureValidator
extends Object

Understands a validator of common objects used in component fixtures.

Author:
Alex Ruiz

Method Summary
static Robot notNullRobot(Robot robot)
          Verifies that the given Robot is not null.
static
<T extends Component>
T
notNullTarget(T target)
          Verifies that the given Component is not null.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

notNullRobot

public static Robot notNullRobot(Robot robot)
Verifies that the given Robot is not null.

Parameters:
robot - the Robot to verify.
Returns:
the given Robot.
Throws:
NullPointerException - if robot is null.

notNullTarget

public static <T extends Component> T notNullTarget(T target)
Verifies that the given Component is not null.

Type Parameters:
T - specifies the type of Component to return.
Parameters:
target - the Component to verify.
Returns:
the given target Component.
Throws:
NullPointerException - if target is null.


Copyright © 2007-2011 FEST (Fixtures for Easy Software Testing). All Rights Reserved.