Package org.testfx.matcher.control
Class LabeledMatchers
java.lang.Object
org.testfx.matcher.control.LabeledMatchers
TestFX matchers for
Labeled
controls.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.hamcrest.Matcher
<javafx.scene.control.Labeled> Creates a matcher that matches allLabeled
objects that have the giventext
as their text.static org.hamcrest.Matcher
<javafx.scene.control.Labeled> Creates a matcher that matches allLabeled
objects whose text matches the given matcher.
-
Constructor Details
-
LabeledMatchers
private LabeledMatchers()
-
-
Method Details
-
hasText
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
-