Package org.testfx.matcher.base
Class StyleableMatchers
- java.lang.Object
-
- org.testfx.matcher.base.StyleableMatchers
-
public class StyleableMatchers extends java.lang.ObjectTestFX matchers forStyleableobjects.
-
-
Constructor Summary
Constructors Modifier Constructor Description privateStyleableMatchers()
-
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 allStyleableobjects that have the givenidas their CSS id.static org.hamcrest.Matcher<javafx.css.Styleable>hasStyle(java.lang.String style)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(java.lang.String typeSelector)Creates a matcher that matches allStyleableobjects that have the giventypeSelectoras their type selector.
-
-
-
Method Detail
-
hasTypeSelector
public static org.hamcrest.Matcher<javafx.css.Styleable> hasTypeSelector(java.lang.String typeSelector)
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
public static org.hamcrest.Matcher<javafx.css.Styleable> hasId(java.lang.String id)
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
public static org.hamcrest.Matcher<javafx.css.Styleable> hasStyle(java.lang.String style)
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
-
-