- java.lang.Object
-
- org.testfx.matcher.base.NodeMatchers
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.hamcrest.Matcher<Node>anything()Creates a matcher that matches everything (matches(Object)always returns true.static org.hamcrest.Matcher<Node>hasChild(String query)Creates a matcher that matches allNodes that have at least one child node that is found viaNodeQuery.lookup(String).static org.hamcrest.Matcher<Node>hasChildren(int amount, String query)Creates a matcher that matches allNodes that have exactlyamountchild nodes that are found viaNodeQuery.lookup(String).static org.hamcrest.Matcher<Node>isDisabled()Creates a matcher that matches all disabledNodes (i.e.static org.hamcrest.Matcher<Node>isEnabled()Creates a matcher that matches all enabledNodes (i.e.static org.hamcrest.Matcher<Node>isFocused()Creates a matcher that matches all focusedNodes (i.e.static org.hamcrest.Matcher<Node>isInvisible()Creates a matcher that matches all invisibleNodes.static org.hamcrest.Matcher<Node>isNotFocused()Creates a matcher that matches all focusedNodes (i.e.static org.hamcrest.Matcher<Node>isNotNull()Creates a matcher that matches all non-nullNodes.static org.hamcrest.Matcher<Node>isNull()Creates a matcher that matches all nullNodes.static org.hamcrest.Matcher<Node>isVisible()Creates a matcher that matches all visibleNodes.
-
-
-
Method Detail
-
anything
public static org.hamcrest.Matcher<Node> anything()
Creates a matcher that matches everything (matches(Object)always returns true.
-
isNull
public static org.hamcrest.Matcher<Node> isNull()
Creates a matcher that matches all nullNodes.
-
isNotNull
public static org.hamcrest.Matcher<Node> isNotNull()
Creates a matcher that matches all non-nullNodes.
-
isVisible
public static org.hamcrest.Matcher<Node> isVisible()
Creates a matcher that matches all visibleNodes.
-
isInvisible
public static org.hamcrest.Matcher<Node> isInvisible()
Creates a matcher that matches all invisibleNodes.
-
isEnabled
public static org.hamcrest.Matcher<Node> isEnabled()
Creates a matcher that matches all enabledNodes (i.e.Node.isDisabled()returns false).
-
isDisabled
public static org.hamcrest.Matcher<Node> isDisabled()
Creates a matcher that matches all disabledNodes (i.e.Node.isDisabled()returns true).
-
isFocused
public static org.hamcrest.Matcher<Node> isFocused()
Creates a matcher that matches all focusedNodes (i.e.Node.isFocused()returns true).
-
isNotFocused
public static org.hamcrest.Matcher<Node> isNotFocused()
Creates a matcher that matches all focusedNodes (i.e.Node.isFocused()returns false).
-
hasChild
public static org.hamcrest.Matcher<Node> hasChild(String query)
Creates a matcher that matches allNodes that have at least one child node that is found viaNodeQuery.lookup(String).
-
hasChildren
public static org.hamcrest.Matcher<Node> hasChildren(int amount, String query)
Creates a matcher that matches allNodes that have exactlyamountchild nodes that are found viaNodeQuery.lookup(String).
-
-