Class MenuItemMatchers


  • public class MenuItemMatchers
    extends java.lang.Object
    TestFX matchers for MenuItem controls.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private MenuItemMatchers()  
    • 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 all MenuItem objects that have the given text as 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 all MenuItem objects whose text matches the given matcher.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MenuItemMatchers

        private MenuItemMatchers()
    • Method Detail

      • hasText

        public 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.
        Parameters:
        text - the String the 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 all MenuItem objects whose text matches the given matcher.
        Parameters:
        matcher - the Matcher<String> that the MenuItem text should match