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.Statement
apply
(org.junit.runners.model.Statement pStatement, org.junit.runners.model.FrameworkMethod pMethod, Object pTarget) void
testLater
(int pRetryCount, long pRetryDelayMillis, BooleanSupplier pSuccess) void
void
testOnMainThreadLater
(long pMillis, Testable pRunnable) void
testOnMainThreadLater
(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:
apply
in interfaceorg.junit.rules.MethodRule
-
testLater
-
testLater
-
testOnMainThreadLater
-
testOnMainThreadLater
-