java.lang.Object
com.iamsoft.util.ui.javafx.test.JavaFXThreadingRule
- All Implemented Interfaces:
org.junit.rules.MethodRule
A JUnit
Rule for running tests on the JavaFX thread and performing
JavaFX initialization. To include in your test case, add the following code:
@Rule public JavaFXThreadingRule jfxRule = new JavaFXThreadingRule();
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.junit.runners.model.Statementapply(org.junit.runners.model.Statement pStatement, org.junit.runners.model.FrameworkMethod pMethod, Object pTarget) voidtestLater(int pRetryCount, long pRetryDelayMillis, BooleanSupplier pSuccess) voidvoidtestOnMainThreadLater(long pMillis, Testable pRunnable) voidtestOnMainThreadLater(Testable pRunnable)
-
Constructor Details
-
JavaFXThreadingRule
public JavaFXThreadingRule()
-
-
Method Details
-
apply
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement pStatement, org.junit.runners.model.FrameworkMethod pMethod, Object pTarget) - Specified by:
applyin interfaceorg.junit.rules.MethodRule
-
testLater
-
testLater
-
testOnMainThreadLater
-
testOnMainThreadLater
-