Package org.testfx.framework.junit
Class ApplicationRule
java.lang.Object
org.testfx.api.FxRobot
org.testfx.framework.junit.ApplicationRule
- All Implemented Interfaces:
org.junit.rules.TestRule
,FxRobotInterface
,ApplicationFixture
public class ApplicationRule
extends FxRobot
implements ApplicationFixture, org.junit.rules.TestRule
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionApplicationRule
(Consumer<javafx.stage.Stage> start) ApplicationRule
(Consumer<javafx.stage.Stage> start, Consumer<javafx.stage.Stage> stop) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
after()
org.junit.runners.model.Statement
apply
(org.junit.runners.model.Statement base, org.junit.runner.Description description) private void
before()
private org.junit.runners.model.Statement
externalResource
(org.junit.runners.model.Statement base) void
init()
void
start
(javafx.stage.Stage stage) void
stop()
Methods inherited from class org.testfx.api.FxRobot
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, 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, write
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.testfx.api.FxRobotInterface
clickOn, clickOn, clickOn, clickOn, clickOn, clickOn, clickOn, clickOn, clickOn, clickOn, doubleClickOn, doubleClickOn, doubleClickOn, doubleClickOn, doubleClickOn, doubleClickOn, doubleClickOn, doubleClickOn, doubleClickOn, doubleClickOn, moveBy, moveTo, moveTo, moveTo, moveTo, moveTo, moveTo, moveTo, moveTo, moveTo, moveTo, moveTo, moveTo, offset, offset, offset, offset, offset, offset, offset, offset, offset, rightClickOn, rightClickOn, rightClickOn, rightClickOn, rightClickOn, rightClickOn, rightClickOn, rightClickOn, rightClickOn, rightClickOn
-
Field Details
-
start
-
stop
-
stage
private javafx.stage.Stage stage
-
-
Constructor Details
-
ApplicationRule
-
ApplicationRule
-
-
Method Details
-
init
- Specified by:
init
in interfaceApplicationFixture
- Throws:
Exception
-
start
- Specified by:
start
in interfaceApplicationFixture
- Throws:
Exception
-
stop
- Specified by:
stop
in interfaceApplicationFixture
- Throws:
Exception
-
before
- Throws:
Exception
-
after
- Throws:
Exception
-
externalResource
private org.junit.runners.model.Statement externalResource(org.junit.runners.model.Statement base) -
apply
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, org.junit.runner.Description description) - Specified by:
apply
in interfaceorg.junit.rules.TestRule
-