- java.lang.Object
-
- org.testfx.matcher.control.MenuItemMatchers
-
public class MenuItemMatchers extends Object
TestFX matchers forMenuItem
controls.
-
-
Method Summary
Modifier and Type Method Description static org.hamcrest.Matcher<javafx.scene.control.MenuItem>
hasText(String text)
Creates a matcher that matches allMenuItem
objects that have the giventext
as their text in MenuItem.static org.hamcrest.Matcher<javafx.scene.control.MenuItem>
hasText(org.hamcrest.Matcher<String> matcher)
Creates a matcher that matches allMenuItem
objects whose text matches the given matcher.
-
-
-
Method Detail
-
hasText
public static org.hamcrest.Matcher<javafx.scene.control.MenuItem> hasText(String text)
Creates a matcher that matches allMenuItem
objects that have the giventext
as their text in MenuItem.- Parameters:
text
- theString
the matched MenuItems should have as their text
-
hasText
public static org.hamcrest.Matcher<javafx.scene.control.MenuItem> hasText(org.hamcrest.Matcher<String> matcher)
Creates a matcher that matches allMenuItem
objects whose text matches the given matcher.- Parameters:
matcher
- theMatcher<String>
that the MenuItem text should match
-
-