public class FXTestUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static com.google.common.base.Predicate<javafx.scene.Node> |
isVisible |
| Constructor and Description |
|---|
FXTestUtils() |
| Modifier and Type | Method and Description |
|---|---|
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 |
bringToFront(javafx.stage.Stage stage) |
static void |
failIfExists(String selector) |
static <T extends javafx.scene.Node> |
flattenSets(Iterable<Set<T>> found) |
static <T extends javafx.scene.Node> |
getOrFail(String selector) |
static javafx.geometry.Bounds |
intersection(javafx.geometry.Bounds b1,
javafx.geometry.Bounds b2) |
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) |
static boolean |
isNodeVisible(javafx.scene.Node node) |
static boolean |
isNodeWithinSceneBounds(javafx.scene.Node node) |
static void |
launchApp(Class<? extends javafx.application.Application> appClass,
String... args)
Launches a JavaFX App in a new Thread.
|
static void |
printGraph(javafx.scene.Node root) |
public static final com.google.common.base.Predicate<javafx.scene.Node> isVisible
public static void bringToFront(javafx.stage.Stage stage)
throws Exception
Exceptionpublic static void awaitEvents()
public static void invokeAndWait(Callable<?> task, int timeoutInSeconds) throws Exception
public static void invokeAndWait(Runnable task, int timeoutInSeconds) throws Exception
task - timeoutInSeconds - ThrowableExceptioninvokeAndWait(Runnable, int)public static void launchApp(Class<? extends javafx.application.Application> appClass, String... args)
appClass - args - public static void printGraph(javafx.scene.Node root)
public static void failIfExists(String selector)
public static <T extends javafx.scene.Node> T getOrFail(String selector)
public static boolean isNodeVisible(javafx.scene.Node node)
public static boolean isNodeWithinSceneBounds(javafx.scene.Node node)
public static javafx.geometry.Bounds intersection(javafx.geometry.Bounds b1,
javafx.geometry.Bounds b2)
Copyright © 2014. All rights reserved.