public class LabeledMatchers
extends java.lang.Object
Labeled controls.| Modifier and Type | Method and Description |
|---|---|
static org.hamcrest.Matcher<javafx.scene.control.Labeled> |
hasText(org.hamcrest.Matcher<java.lang.String> matcher)
Creates a matcher that matches all
Labeled objects whose text matches the given matcher. |
static org.hamcrest.Matcher<javafx.scene.control.Labeled> |
hasText(java.lang.String text)
Creates a matcher that matches all
Labeled objects that have the given text as
their text. |
public static org.hamcrest.Matcher<javafx.scene.control.Labeled> hasText(java.lang.String text)
Labeled objects that have the given text as
their text.text - the String the matched Labeleds should have as their textpublic static org.hamcrest.Matcher<javafx.scene.control.Labeled> hasText(org.hamcrest.Matcher<java.lang.String> matcher)
Labeled objects whose text matches the given matcher.matcher - the Matcher<String> that the Labeleds text should match