Module org.testfx

Class TextInputControlMatchers

    • Method Detail

      • hasText

        public static org.hamcrest.Matcher<TextInputControl> hasText​(String text)
        Creates a matcher that matches all TextInputControls that have text equal to the given text.
        Parameters:
        text - the String the matched TextInputControls should have as their text
      • hasText

        public static org.hamcrest.Matcher<TextInputControl> hasText​(org.hamcrest.Matcher<String> matcher)
        Creates a matcher that matches all TextInputControls that have text that matches the given matcher.
        Parameters:
        matcher - the Matcher<String> the TextInputControls text should match