public class JavaFXThreadingRule extends Object implements org.junit.rules.TestRule
Rule for running tests on the JavaFX thread and performing
JavaFX initialisation. To include in your test case, add the following code:
@Rule public JavaFXThreadingRule jfxRule = new JavaFXThreadingRule();
| Modifier and Type | Class and Description |
|---|---|
private static class |
JavaFXThreadingRule.OnJFXThreadStatement |
| Modifier and Type | Field and Description |
|---|---|
private static boolean |
jfxIsSetup
Flag for setting up the JavaFX, we only need to do this once for all tests.
|
| Constructor and Description |
|---|
JavaFXThreadingRule() |
| Modifier and Type | Method and Description |
|---|---|
org.junit.runners.model.Statement |
apply(org.junit.runners.model.Statement statement,
org.junit.runner.Description description) |
Copyright © 2011-2018 Sahits GmbH. All Rights Reserved.