Class ComponentFixtureValidator

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

public final class ComponentFixtureValidator extends Object
Understands a validator of common objects used in component fixtures.
  • Constructor Details

    • ComponentFixtureValidator

      private ComponentFixtureValidator()
  • Method Details

    • 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.