Package org.testfx.matcher.base
Class StyleableMatchers
- java.lang.Object
-
- org.testfx.matcher.base.StyleableMatchers
-
public class StyleableMatchers extends java.lang.Object
TestFX matchers forStyleable
objects.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
StyleableMatchers()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.hamcrest.Matcher<javafx.css.Styleable>
hasId(java.lang.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(java.lang.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(java.lang.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(java.lang.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(java.lang.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(java.lang.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
-
-