public class AbstractNodeAssert<SELF extends AbstractNodeAssert<SELF>>
extends org.assertj.core.api.AbstractAssert<SELF,javafx.scene.Node>
Node assertions.| Modifier | Constructor and Description |
|---|---|
protected |
AbstractNodeAssert(javafx.scene.Node actual,
java.lang.Class<?> selfType) |
| Modifier and Type | Method and Description |
|---|---|
SELF |
doesNotHaveChild(java.lang.String query)
Verifies that the actual
Node does not have a specific child Node. |
SELF |
hasChild(java.lang.String query)
Verifies that the actual
Node has a specific child Node. |
SELF |
hasExactlyChildren(int amount,
java.lang.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. |
as, as, 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, setCustomRepresentation, throwAssertionError, usingComparator, usingComparator, usingDefaultComparator, withFailMessage, withRepresentation, withThreadDumpOnErrorprotected AbstractNodeAssert(javafx.scene.Node actual,
java.lang.Class<?> selfType)
public SELF isVisible()
Node is visible.public SELF isInvisible()
Node is not visible.public SELF isEnabled()
Node is enabled.public SELF isDisabled()
Node is disabled.public SELF isFocused()
Node has focus.public SELF isNotFocused()
Node does not have focus.public SELF hasChild(java.lang.String query)
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).query - the node query that specifies the child to look for in the actual Nodepublic SELF doesNotHaveChild(java.lang.String query)
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).query - the node query that specifies the child to look for in the actual Nodepublic SELF hasExactlyChildren(int amount, java.lang.String query)
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).amount - the given amount of children the actual Node must exactly havequery - the node query that specifies the children to look for in the actual Node