public class GriffonTestFXRule extends TestFX implements MethodRule
Modifier and Type | Field and Description |
---|---|
protected JavaFXGriffonApplication |
application |
protected Class<? extends TestJavaFXGriffonApplication> |
applicationClass |
protected String[] |
startupArgs |
protected org.awaitility.Duration |
timeout |
protected String |
windowName |
Constructor and Description |
---|
GriffonTestFXRule(Class<? extends TestJavaFXGriffonApplication> applicationClass,
String windowName) |
GriffonTestFXRule(Class<? extends TestJavaFXGriffonApplication> applicationClass,
String windowName,
org.awaitility.Duration timeout) |
GriffonTestFXRule(Class<? extends TestJavaFXGriffonApplication> applicationClass,
String windowName,
org.awaitility.Duration timeout,
String[] startupArgs) |
GriffonTestFXRule(Class<? extends TestJavaFXGriffonApplication> applicationClass,
String windowName,
String[] startupArgs) |
GriffonTestFXRule(String windowName) |
GriffonTestFXRule(String windowName,
org.awaitility.Duration timeout) |
Modifier and Type | Method and Description |
---|---|
protected void |
after(JavaFXGriffonApplication application,
Object target) |
Statement |
apply(Statement base,
FrameworkMethod method,
Object target) |
protected void |
before(JavaFXGriffonApplication application,
Object target) |
protected void |
initialize(Object target) |
<W extends Window> |
managedWindow(String name) |
bounds, bounds, bounds, bounds, bounds, bounds, bounds, bounds, bounds, capture, capture, capture, capture, capture, capture, clickOn, clickOn, clickOn, clickOn, clickOn, clickOn, clickOn, clickOn, clickOn, clickOn, clickOn, closeCurrentWindow, doubleClickOn, doubleClickOn, doubleClickOn, doubleClickOn, doubleClickOn, doubleClickOn, doubleClickOn, doubleClickOn, doubleClickOn, doubleClickOn, doubleClickOn, drag, drag, drag, drag, drag, drag, drag, drag, drag, drag, drag, drop, dropBy, dropTo, dropTo, dropTo, dropTo, dropTo, dropTo, dropTo, dropTo, dropTo, dropTo, eraseText, from, from, from, fromAll, interact, interact, interactNoWait, interactNoWait, interrupt, interrupt, listTargetWindows, listWindows, lookup, lookup, lookup, moveBy, moveTo, moveTo, moveTo, moveTo, moveTo, moveTo, moveTo, moveTo, moveTo, moveTo, offset, offset, offset, offset, offset, offset, offset, offset, point, point, point, point, point, point, point, point, point, press, press, push, push, release, release, rightClickOn, rightClickOn, rightClickOn, rightClickOn, rightClickOn, rightClickOn, rightClickOn, rightClickOn, rightClickOn, rightClickOn, rightClickOn, robotContext, rootNode, rootNode, rootNode, scroll, scroll, scroll, scroll, scroll, sleep, sleep, targetPos, targetWindow, targetWindow, targetWindow, targetWindow, targetWindow, targetWindow, targetWindow, targetWindow, type, type, window, window, window, window, window, window, write, write
protected String windowName
protected org.awaitility.Duration timeout
protected String[] startupArgs
protected Class<? extends TestJavaFXGriffonApplication> applicationClass
protected JavaFXGriffonApplication application
public GriffonTestFXRule(@Nonnull String windowName, @Nonnull org.awaitility.Duration timeout)
public GriffonTestFXRule(@Nonnull Class<? extends TestJavaFXGriffonApplication> applicationClass, @Nonnull String windowName)
public GriffonTestFXRule(@Nonnull Class<? extends TestJavaFXGriffonApplication> applicationClass, @Nonnull String windowName, @Nonnull org.awaitility.Duration timeout)
public GriffonTestFXRule(@Nonnull Class<? extends TestJavaFXGriffonApplication> applicationClass, @Nonnull String windowName, @Nonnull String[] startupArgs)
public Statement apply(Statement base, FrameworkMethod method, Object target)
apply
in interface MethodRule
protected void initialize(Object target)
protected void before(@Nonnull JavaFXGriffonApplication application, @Nonnull Object target) throws Throwable
Throwable
protected void after(@Nonnull JavaFXGriffonApplication application, @Nonnull Object target) throws TimeoutException
TimeoutException