Package org.testfx.matcher.base
Class ParentMatchers
java.lang.Object
org.testfx.matcher.base.ParentMatchers
TestFX matchers for
Parent
nodes.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.hamcrest.Matcher
<javafx.scene.Parent> hasChild()
Creates a matcher that matches allParent
s that have at least one child.static org.hamcrest.Matcher
<javafx.scene.Parent> hasChildren
(int amount) Creates a matcher that matches allParent
s that have exactlyamount
children.private static String
toText
(javafx.collections.ObservableList<javafx.scene.Node> children)
-
Constructor Details
-
ParentMatchers
private ParentMatchers()
-
-
Method Details
-
hasChild
public static org.hamcrest.Matcher<javafx.scene.Parent> hasChild()Creates a matcher that matches allParent
s that have at least one child. -
hasChildren
public static org.hamcrest.Matcher<javafx.scene.Parent> hasChildren(int amount) Creates a matcher that matches allParent
s that have exactlyamount
children. -
toText
-