Class TextInputControlMatchers

java.lang.Object
org.testfx.matcher.control.TextInputControlMatchers

public class TextInputControlMatchers extends Object
TestFX matchers for TextInputControl controls.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.hamcrest.Matcher<javafx.scene.control.TextInputControl>
    Creates a matcher that matches all TextInputControls that have text equal to the given text.
    static org.hamcrest.Matcher<javafx.scene.control.TextInputControl>
    hasText(org.hamcrest.Matcher<String> matcher)
    Creates a matcher that matches all TextInputControls that have text that matches the given matcher.

    Methods inherited from class java.lang.Object

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

    • TextInputControlMatchers

      private TextInputControlMatchers()
  • Method Details

    • hasText

      public static org.hamcrest.Matcher<javafx.scene.control.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<javafx.scene.control.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