Module org.testfx

Class AbstractNodeAssert<SELF extends AbstractNodeAssert<SELF>>

    • Field Summary

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

        actual, info, myself, throwUnsupportedExceptionOnEquals
    • Constructor Summary

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

      Modifier and Type Method Description
      SELF doesNotHaveChild​(String query)
      Verifies that the actual Node does not have a specific child Node.
      SELF hasChild​(String query)
      Verifies that the actual Node has a specific child Node.
      SELF hasExactlyChildren​(int amount, String query)
      Verifies that the actual Node has exactly the given amount of children that are looked up by the given query, which is passed to is passed to NodeQuery.lookup(String).
      SELF isDisabled()
      Verifies that the actual Node is disabled.
      SELF isEnabled()
      Verifies that the actual Node is enabled.
      SELF isFocused()
      Verifies that the actual Node has focus.
      SELF isInvisible()
      Verifies that the actual Node is not visible.
      SELF isNotFocused()
      Verifies that the actual Node does not have focus.
      SELF isVisible()
      Verifies that the actual Node is visible.
      • 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

      • AbstractNodeAssert

        protected AbstractNodeAssert​(javafx.scene.Node actual,
                                     Class<?> selfType)
    • Method Detail

      • isVisible

        public SELF isVisible()
        Verifies that the actual Node is visible.
        Returns:
        this assertion object
      • isInvisible

        public SELF isInvisible()
        Verifies that the actual Node is not visible.
        Returns:
        this assertion object
      • isEnabled

        public SELF isEnabled()
        Verifies that the actual Node is enabled.
        Returns:
        this assertion object
      • isDisabled

        public SELF isDisabled()
        Verifies that the actual Node is disabled.
        Returns:
        this assertion object
      • isFocused

        public SELF isFocused()
        Verifies that the actual Node has focus.
        Returns:
        this assertion object
      • isNotFocused

        public SELF isNotFocused()
        Verifies that the actual Node does not have focus.
        Returns:
        this assertion object
      • hasChild

        public SELF hasChild​(String query)
        Verifies that the actual Node has a specific child Node. The child Node to look for is specified by the given query, which is passed to NodeQuery.lookup(String).
        Parameters:
        query - the node query that specifies the child to look for in the actual Node
        Returns:
        this assertion object
      • doesNotHaveChild

        public SELF doesNotHaveChild​(String query)
        Verifies that the actual Node does not have a specific child Node. The child Node to look for is specified by the given query, which is passed to NodeQuery.lookup(String).
        Parameters:
        query - the node query that specifies the child to look for in the actual Node
        Returns:
        this assertion object
      • hasExactlyChildren

        public SELF hasExactlyChildren​(int amount,
                                       String query)
        Verifies that the actual Node has exactly the given amount of children that are looked up by the given query, which is passed to is passed to NodeQuery.lookup(String).
        Parameters:
        amount - the given amount of children the actual Node must exactly have
        query - the node query that specifies the children to look for in the actual Node
        Returns:
        this assertion object