public class NodeMatchers
extends java.lang.Object
Node instances.| Modifier and Type | Method and Description |
|---|---|
static org.hamcrest.Matcher<javafx.scene.Node> |
anything()
Creates a matcher that matches everything (
matches(Object) always
returns true. |
static org.hamcrest.Matcher<javafx.scene.Node> |
hasChild(java.lang.String query)
Creates a matcher that matches all
Nodes that have at least one child node that is found via
NodeQuery.lookup(String). |
static org.hamcrest.Matcher<javafx.scene.Node> |
hasChildren(int amount,
java.lang.String query)
Creates a matcher that matches all
Nodes that have exactly amount child nodes that are found
via NodeQuery.lookup(String). |
static org.hamcrest.Matcher<javafx.scene.Node> |
isDisabled()
Creates a matcher that matches all disabled
Nodes (i.e. |
static org.hamcrest.Matcher<javafx.scene.Node> |
isEnabled()
Creates a matcher that matches all enabled
Nodes (i.e. |
static org.hamcrest.Matcher<javafx.scene.Node> |
isFocused()
Creates a matcher that matches all focused
Nodes (i.e. |
static org.hamcrest.Matcher<javafx.scene.Node> |
isInvisible()
Creates a matcher that matches all invisible
Nodes. |
static org.hamcrest.Matcher<javafx.scene.Node> |
isNotFocused()
Creates a matcher that matches all focused
Nodes (i.e. |
static org.hamcrest.Matcher<javafx.scene.Node> |
isNotNull()
Creates a matcher that matches all non-null
Nodes. |
static org.hamcrest.Matcher<javafx.scene.Node> |
isNull()
Creates a matcher that matches all null
Nodes. |
static org.hamcrest.Matcher<javafx.scene.Node> |
isVisible()
Creates a matcher that matches all visible
Nodes. |
public static org.hamcrest.Matcher<javafx.scene.Node> anything()
matches(Object) always
returns true.public static org.hamcrest.Matcher<javafx.scene.Node> isNull()
Nodes.public static org.hamcrest.Matcher<javafx.scene.Node> isNotNull()
Nodes.public static org.hamcrest.Matcher<javafx.scene.Node> isVisible()
Nodes.public static org.hamcrest.Matcher<javafx.scene.Node> isInvisible()
Nodes.public static org.hamcrest.Matcher<javafx.scene.Node> isEnabled()
Nodes (i.e. Node.isDisabled() returns false).public static org.hamcrest.Matcher<javafx.scene.Node> isDisabled()
Nodes (i.e. Node.isDisabled() returns true).public static org.hamcrest.Matcher<javafx.scene.Node> isFocused()
Nodes (i.e. Node.isFocused() returns true).public static org.hamcrest.Matcher<javafx.scene.Node> isNotFocused()
Nodes (i.e. Node.isFocused() returns false).public static org.hamcrest.Matcher<javafx.scene.Node> hasChild(java.lang.String query)
Nodes that have at least one child node that is found via
NodeQuery.lookup(String).public static org.hamcrest.Matcher<javafx.scene.Node> hasChildren(int amount,
java.lang.String query)
Nodes that have exactly amount child nodes that are found
via NodeQuery.lookup(String).