Module org.testfx

Class AbstractMenuItemAssert<SELF extends AbstractMenuItemAssert<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:
    MenuItemAssert

    public class AbstractMenuItemAssert<SELF extends AbstractMenuItemAssert<SELF>>
    extends AbstractStyleableAssert<SELF>
    Base class for all MenuItem assertions.
    • Field Summary

      • Fields inherited from class org.assertj.core.api.AbstractAssert

        actual, info, myself, throwUnsupportedExceptionOnEquals
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected AbstractMenuItemAssert​(javafx.scene.control.MenuItem actual, Class<?> selfType)  
    • Method Summary

      Modifier and Type Method Description
      SELF doesNotHaveText​(String text)
      Verifies that the actual Menu does not have exactly the given text.
      SELF doesNotHaveText​(org.hamcrest.Matcher<String> matcher)
      Verifies that the actual MenuItem is not matched by the given matcher.
      SELF hasText​(String text)
      Verifies that the actual MenuItem has exactly the given text.
      SELF hasText​(org.hamcrest.Matcher<String> matcher)
      Verifies that the actual MenuItem is matched by the given matcher.
      • Methods inherited from class org.assertj.core.api.AbstractAssert

        as, as, asInstanceOf, asList, asString, describedAs, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, equals, failWithMessage, getWritableAssertionInfo, has, hashCode, hasSameClassAs, hasSameHashCodeAs, hasToString, inBinary, inHexadecimal, is, isEqualTo, isExactlyInstanceOf, isIn, isIn, isInstanceOf, isInstanceOfAny, isInstanceOfSatisfying, isNot, isNotEqualTo, isNotExactlyInstanceOf, isNotIn, isNotIn, isNotInstanceOf, isNotInstanceOfAny, isNotNull, isNotOfAnyClassIn, isNotSameAs, isNull, isOfAnyClassIn, isSameAs, matches, matches, newListAssertInstance, overridingErrorMessage, satisfies, satisfies, satisfiesAnyOf, satisfiesAnyOf, setCustomRepresentation, throwAssertionError, usingComparator, usingComparator, usingDefaultComparator, withFailMessage, withRepresentation, withThreadDumpOnError
    • Constructor Detail

      • AbstractMenuItemAssert

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

      • hasText

        public SELF hasText​(String text)
        Verifies that the actual MenuItem 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 Menu 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 MenuItem 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 MenuItem is not matched by the given matcher.
        Parameters:
        matcher - the String matcher to test the actual text with
        Returns:
        this assertion object