Module org.testfx

Class AbstractTextInputControlAssert<SELF extends AbstractTextInputControlAssert<SELF>>

  • All Implemented Interfaces:
    org.assertj.core.api.Assert<SELF,​javafx.css.Styleable>, org.assertj.core.api.Descriptable<SELF>, org.assertj.core.api.ExtensionPoints<SELF,​javafx.css.Styleable>
    Direct Known Subclasses:
    TextInputControlAssert

    public class AbstractTextInputControlAssert<SELF extends AbstractTextInputControlAssert<SELF>>
    extends AbstractParentAssert<SELF>
    Base class for all TextInputControl assertions.
    • Constructor Detail

      • AbstractTextInputControlAssert

        protected AbstractTextInputControlAssert​(javafx.scene.control.TextInputControl actual,
                                                 Class<?> selfType)
    • Method Detail

      • hasText

        public SELF hasText​(String text)
        Verifies that the actual TextInputControl has exactly the given text.
        Parameters:
        text - the given text to compare the actual text to
        Returns:
        this assertion object
      • doesNotHaveText

        public SELF doesNotHaveText​(String text)
        Verifies that the actual TextInputControl does not have exactly the given text.
        Parameters:
        text - the given text to compare the actual text to
        Returns:
        this assertion object
      • hasText

        public SELF hasText​(org.hamcrest.Matcher<String> matcher)
        Verifies that the actual TextInputControl is matched by the given matcher.
        Parameters:
        matcher - the String matcher to test the actual text with
        Returns:
        this assertion object
      • doesNotHaveText

        public SELF doesNotHaveText​(org.hamcrest.Matcher<String> matcher)
        Verifies that the actual TextInputControl is not matched by the given matcher.
        Parameters:
        matcher - the String matcher to test the actual text with
        Returns:
        this assertion object