Modifier and Type | Method and Description |
---|---|
static IllegalStateException |
componentNotShowingOnScreenFailure(Component c)
Throws a
when a is not showing on the
screen. |
static void |
validateIsEnabled(Component c)
Asserts that the
is enabled. |
static void |
validateIsEnabledAndShowing(Component c)
Asserts that the
is enabled and showing. |
static void |
validateIsShowing(Component c)
Asserts that the
is showing on the screen. |
@RunsInCurrentThread public static void validateIsEnabledAndShowing(Component c)
Component
is enabled and showing.
Note: This method is not guaranteed to be executed in the event dispatch thread (EDT.) Clients are responsible for calling this method from the EDT.
c
- the target component.IllegalStateException
- if the Component
is disabled.IllegalStateException
- if the Component
is not showing on the screen.@RunsInCurrentThread public static void validateIsEnabled(Component c)
Component
is enabled.
Note: This method is not guaranteed to be executed in the event dispatch thread (EDT.) Clients are responsible for calling this method from the EDT.
c
- the target component.IllegalStateException
- if the Component
is disabled.@RunsInCurrentThread public static void validateIsShowing(Component c)
Component
is showing on the screen.
Note: This method is not guaranteed to be executed in the event dispatch thread (EDT.) Clients are responsible for calling this method from the EDT.
c
- the target component.IllegalStateException
- if the Component
is not showing on the screen.@RunsInCurrentThread public static IllegalStateException componentNotShowingOnScreenFailure(Component c)
IllegalStateException
when a Component
is not showing on the
screen.
Note: This method is not guaranteed to be executed in the event dispatch thread (EDT.) Clients are responsible for calling this method from the EDT.
c
- the target component.Copyright © 2007-2013 FEST (Fixtures for Easy Software Testing). All Rights Reserved.