- java.lang.Object
-
- org.testfx.matcher.base.StyleableMatchers
-
public class StyleableMatchers extends Object
TestFX matchers forStyleable
objects.
-
-
Method Summary
Modifier and Type Method Description static org.hamcrest.Matcher<javafx.css.Styleable>
hasId(String id)
Creates a matcher that matches allStyleable
objects that have the givenid
as their CSS id.static org.hamcrest.Matcher<javafx.css.Styleable>
hasStyle(String style)
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.
-
-
-
Method Detail
-
hasTypeSelector
public 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.- Parameters:
typeSelector
- theString
the matched Styleables should have as their type selector
-
hasId
public static org.hamcrest.Matcher<javafx.css.Styleable> hasId(String id)
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
public static org.hamcrest.Matcher<javafx.css.Styleable> hasStyle(String style)
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
-
-