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