Package org.testfx.matcher.control
Class LabeledMatchers
- java.lang.Object
-
- org.testfx.matcher.control.LabeledMatchers
-
public class LabeledMatchers extends java.lang.Object
TestFX matchers forLabeled
controls.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
LabeledMatchers()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.hamcrest.Matcher<javafx.scene.control.Labeled>
hasText(java.lang.String text)
Creates a matcher that matches allLabeled
objects that have the giventext
as their text.static org.hamcrest.Matcher<javafx.scene.control.Labeled>
hasText(org.hamcrest.Matcher<java.lang.String> matcher)
Creates a matcher that matches allLabeled
objects whose text matches the given matcher.
-
-
-
Method Detail
-
hasText
public static org.hamcrest.Matcher<javafx.scene.control.Labeled> hasText(java.lang.String text)
Creates a matcher that matches allLabeled
objects that have the giventext
as their text.- Parameters:
text
- theString
the matched Labeleds should have as their text
-
hasText
public static org.hamcrest.Matcher<javafx.scene.control.Labeled> hasText(org.hamcrest.Matcher<java.lang.String> matcher)
Creates a matcher that matches allLabeled
objects whose text matches the given matcher.- Parameters:
matcher
- theMatcher<String>
that the Labeleds text should match
-
-