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
-
-
Constructor Summary
Constructors Constructor Description ApplicationRule(java.util.function.Consumer<javafx.stage.Stage> start)ApplicationRule(java.util.function.Consumer<javafx.stage.Stage> start, java.util.function.Consumer<javafx.stage.Stage> stop)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidafter()org.junit.runners.model.Statementapply(org.junit.runners.model.Statement base, org.junit.runner.Description description)private voidbefore()private org.junit.runners.model.StatementexternalResource(org.junit.runners.model.Statement base)voidinit()voidstart(javafx.stage.Stage stage)voidstop()-
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
-
-
-
-
Method Detail
-
init
public void init() throws java.lang.Exception- Specified by:
initin interfaceApplicationFixture- Throws:
java.lang.Exception
-
start
public void start(javafx.stage.Stage stage) throws java.lang.Exception- Specified by:
startin interfaceApplicationFixture- Throws:
java.lang.Exception
-
stop
public void stop() throws java.lang.Exception- Specified by:
stopin interfaceApplicationFixture- Throws:
java.lang.Exception
-
before
private void before() throws java.lang.Exception- Throws:
java.lang.Exception
-
after
private void after() throws java.lang.Exception- Throws:
java.lang.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:
applyin interfaceorg.junit.rules.TestRule
-
-