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 allStyleable
objects that have the givenid
as their CSS id.static org.hamcrest.Matcher
<javafx.css.Styleable> Creates a matcher that matches allStyleable
objects that have the givenstyle
as their CSS style.static org.hamcrest.Matcher
<javafx.css.Styleable> hasStyleableParent
(javafx.css.Styleable styleableParent) Creates a matcher that matches allStyleable
objects that have the givenparent
as their styleable parent.static org.hamcrest.Matcher
<javafx.css.Styleable> hasTypeSelector
(String typeSelector) Creates a matcher that matches allStyleable
objects that have the giventypeSelector
as their type selector.
-
Constructor Details
-
StyleableMatchers
private StyleableMatchers()
-
-
Method Details
-
hasTypeSelector
Creates a matcher that matches allStyleable
objects that have the giventypeSelector
as their type selector.- Parameters:
typeSelector
- theString
the matched Styleables should have as their type selector
-
hasId
Creates a matcher that matches allStyleable
objects that have the givenid
as their CSS id.- Parameters:
id
- theString
the matched Styleables should have as their CSS id
-
hasStyle
Creates a matcher that matches allStyleable
objects that have the givenstyle
as their CSS style.- Parameters:
style
- theString
the 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 allStyleable
objects that have the givenparent
as their styleable parent.- Parameters:
styleableParent
- theString
the matched Styleables should have as their styleable parent
-