public class FXTestUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
awaitCondition(Callable<Boolean> condition) |
static void |
awaitCondition(Callable<Boolean> condition,
int timeoutInSeconds) |
static void |
awaitEvents()
Attempts to wait for events in the JavaFX event thread to complete, as well as any new
events triggered by them.
|
static void |
invokeAndWait(Callable<?> task,
int timeoutInSeconds)
Runs the given Callable in the JavaFX thread, waiting for it to complete before returning.
|
static void |
invokeAndWait(Runnable task,
int timeoutInSeconds) |
public static void awaitEvents()
public static void invokeAndWait(Callable<?> task, int timeoutInSeconds) throws Exception
task - timeoutInSeconds - Exceptionpublic static void invokeAndWait(Runnable task, int timeoutInSeconds) throws Exception
task - timeoutInSeconds - ExceptioninvokeAndWait(Callable, int)