- java.lang.Object
-
- com.iamsoft.util.ui.javafx.test.JavaFXThreadingRule
-
- All Implemented Interfaces:
org.junit.rules.MethodRule
public class JavaFXThreadingRule extends Object implements org.junit.rules.MethodRule
A JUnitRulefor 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:
- JUnit Rule for JavaFX Controller Testing
-
-
Constructor Summary
Constructors Constructor Description JavaFXThreadingRule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.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)voidtestLater(long pMillis, Testable pRunnable)voidtestOnMainThreadLater(long pMillis, Testable pRunnable)voidtestOnMainThreadLater(Testable pRunnable)
-
-
-
Method Detail
-
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
public void testLater(long pMillis, Testable pRunnable)
-
testLater
public void testLater(int pRetryCount, long pRetryDelayMillis, BooleanSupplier pSuccess)
-
testOnMainThreadLater
public void testOnMainThreadLater(Testable pRunnable)
-
testOnMainThreadLater
public void testOnMainThreadLater(long pMillis, Testable pRunnable)
-
-