Package org.testfx.matcher.control
Class MenuItemMatchers
- java.lang.Object
-
- org.testfx.matcher.control.MenuItemMatchers
-
public class MenuItemMatchers extends java.lang.ObjectTestFX matchers forMenuItemcontrols.
-
-
Constructor Summary
Constructors Modifier Constructor Description privateMenuItemMatchers()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.hamcrest.Matcher<javafx.scene.control.MenuItem>hasText(java.lang.String text)Creates a matcher that matches allMenuItemobjects that have the giventextas their text in MenuItem.static org.hamcrest.Matcher<javafx.scene.control.MenuItem>hasText(org.hamcrest.Matcher<java.lang.String> matcher)Creates a matcher that matches allMenuItemobjects whose text matches the given matcher.
-
-
-
Method Detail
-
hasText
public static org.hamcrest.Matcher<javafx.scene.control.MenuItem> hasText(java.lang.String text)
Creates a matcher that matches allMenuItemobjects that have the giventextas their text in MenuItem.- Parameters:
text- theStringthe matched MenuItems should have as their text
-
hasText
public static org.hamcrest.Matcher<javafx.scene.control.MenuItem> hasText(org.hamcrest.Matcher<java.lang.String> matcher)
Creates a matcher that matches allMenuItemobjects whose text matches the given matcher.- Parameters:
matcher- theMatcher<String>that the MenuItem text should match
-
-