Class AbstractNodeAssert<SELF extends AbstractNodeAssert<SELF>>

java.lang.Object
org.assertj.core.api.AbstractAssert<SELF,javafx.css.Styleable>
org.testfx.assertions.api.AbstractStyleableAssert<SELF>
org.testfx.assertions.api.AbstractNodeAssert<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:
AbstractComboBoxAssert, AbstractListViewAssert, AbstractParentAssert, AbstractTableViewAssert, AbstractTextAssert, NodeAssert

public class AbstractNodeAssert<SELF extends AbstractNodeAssert<SELF>> extends AbstractStyleableAssert<SELF>
Base class for all Node assertions.
  • Field Summary

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

    actual, info, myself, objects, throwUnsupportedExceptionOnEquals
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    Verifies that the actual Node does not have a specific child Node.
    Verifies that the actual Node has a specific child Node.
    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).
    Verifies that the actual Node is disabled.
    Verifies that the actual Node is enabled.
    Verifies that the actual Node has focus.
    Verifies that the actual Node is not visible.
    Verifies that the actual Node does not have focus.
    Verifies that the actual Node is visible.

    Methods inherited from class org.assertj.core.api.AbstractAssert

    areEqual, asInstanceOf, asList, assertionError, asString, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, doesNotHaveSameHashCodeAs, doesNotHaveToString, doesNotHaveToString, equals, extracting, extracting, failure, failureWithActualExpected, failWithActualExpectedAndMessage, failWithMessage, getWritableAssertionInfo, has, hashCode, hasSameClassAs, hasSameHashCodeAs, hasToString, hasToString, inBinary, inHexadecimal, is, isElementOfCustomAssert, isEqualTo, isExactlyInstanceOf, isIn, isIn, isInstanceOf, isInstanceOfAny, isInstanceOfSatisfying, isNot, isNotEqualTo, isNotExactlyInstanceOf, isNotIn, isNotIn, isNotInstanceOf, isNotInstanceOfAny, isNotNull, isNotOfAnyClassIn, isNotSameAs, isNull, isOfAnyClassIn, isSameAs, matches, matches, newListAssertInstance, overridingErrorMessage, overridingErrorMessage, satisfies, satisfies, satisfies, satisfiesAnyOf, satisfiesAnyOf, satisfiesAnyOfForProxy, satisfiesForProxy, setCustomRepresentation, setDescriptionConsumer, setPrintAssertionsDescription, throwAssertionError, usingComparator, usingComparator, usingDefaultComparator, usingRecursiveAssertion, usingRecursiveAssertion, usingRecursiveComparison, usingRecursiveComparison, withFailMessage, withFailMessage, withRepresentation, withThreadDumpOnError

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.assertj.core.api.Descriptable

    as, as, as, describedAs, describedAs
  • Constructor Details

    • AbstractNodeAssert

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

    • 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