public class JavaFXThreadingRule extends Object implements org.junit.rules.MethodRule
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();
Constructor and Description |
---|
JavaFXThreadingRule() |
Modifier and Type | Method and Description |
---|---|
org.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 |
testLater(long pMillis,
Testable pRunnable) |
void |
testOnMainThreadLater(long pMillis,
Testable pRunnable) |
void |
testOnMainThreadLater(Testable pRunnable) |
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement pStatement, org.junit.runners.model.FrameworkMethod pMethod, Object pTarget)
apply
in interface org.junit.rules.MethodRule
public void testLater(long pMillis, Testable pRunnable)
public void testLater(int pRetryCount, long pRetryDelayMillis, BooleanSupplier pSuccess)
public void testOnMainThreadLater(Testable pRunnable)
public void testOnMainThreadLater(long pMillis, Testable pRunnable)
Copyright © 2023. All rights reserved.