Package org.testfx.matcher.base
Class StyleableMatchers
java.lang.Object
org.testfx.matcher.base.StyleableMatchers
TestFX matchers for
Styleable objects.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.hamcrest.Matcher<javafx.css.Styleable> Creates a matcher that matches allStyleableobjects that have the givenidas their CSS id.static org.hamcrest.Matcher<javafx.css.Styleable> Creates a matcher that matches allStyleableobjects that have the givenstyleas their CSS style.static org.hamcrest.Matcher<javafx.css.Styleable> hasStyleableParent(javafx.css.Styleable styleableParent) Creates a matcher that matches allStyleableobjects that have the givenparentas their styleable parent.static org.hamcrest.Matcher<javafx.css.Styleable> hasTypeSelector(String typeSelector) Creates a matcher that matches allStyleableobjects that have the giventypeSelectoras their type selector.
-
Constructor Details
-
StyleableMatchers
private StyleableMatchers()
-
-
Method Details
-
hasTypeSelector
Creates a matcher that matches allStyleableobjects that have the giventypeSelectoras their type selector.- Parameters:
typeSelector- theStringthe matched Styleables should have as their type selector
-
hasId
Creates a matcher that matches allStyleableobjects that have the givenidas their CSS id.- Parameters:
id- theStringthe matched Styleables should have as their CSS id
-
hasStyle
Creates a matcher that matches allStyleableobjects that have the givenstyleas their CSS style.- Parameters:
style- theStringthe matched Styleables should have as their CSS style
-
hasStyleableParent
public static org.hamcrest.Matcher<javafx.css.Styleable> hasStyleableParent(javafx.css.Styleable styleableParent) Creates a matcher that matches allStyleableobjects that have the givenparentas their styleable parent.- Parameters:
styleableParent- theStringthe matched Styleables should have as their styleable parent
-