- java.lang.Object
-
- org.testfx.matcher.control.LabeledMatchers
-
public class LabeledMatchers extends Object
TestFX matchers forLabeled
controls.
-
-
Method Summary
Modifier and Type Method Description static org.hamcrest.Matcher<javafx.scene.control.Labeled>
hasText(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<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(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<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
-
-