Module org.testfx
Package org.testfx.assertions.api
Class AbstractParentAssert<SELF extends AbstractParentAssert<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>
-
- org.testfx.assertions.api.AbstractParentAssert<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:
AbstractLabeledAssert
,AbstractTextFlowAssert
,AbstractTextInputControlAssert
,ParentAssert
public class AbstractParentAssert<SELF extends AbstractParentAssert<SELF>> extends AbstractNodeAssert<SELF>
Base class for allParent
assertions.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractParentAssert(javafx.scene.Parent actual, Class<?> selfType)
-
Method Summary
Modifier and Type Method Description SELF
doesNotHaveExactlyNumChildren(int amount)
Verifies that the actualParent
does not have exactly the givenamount
of children.SELF
hasAnyChild()
Verifies that the actualParent
has at least one child.SELF
hasExactlyNumChildren(int amount)
Verifies that the actualParent
has exactly the givenamount
of children.SELF
hasNoChildren()
Verifies that the actualParent
has no children.-
Methods inherited from class org.testfx.assertions.api.AbstractNodeAssert
doesNotHaveChild, hasChild, hasExactlyChildren, isDisabled, isEnabled, isFocused, isInvisible, isNotFocused, isVisible
-
Methods inherited from class org.testfx.assertions.api.AbstractStyleableAssert
doesNotHaveId, doesNotHaveStyle, doesNotHaveStyleableParent, doesNotHaveTypeSelector, hasId, hasStyle, hasStyleableParent, hasTypeSelector
-
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
-
AbstractParentAssert
protected AbstractParentAssert(javafx.scene.Parent actual, Class<?> selfType)
-
-
Method Detail
-
hasAnyChild
public SELF hasAnyChild()
Verifies that the actualParent
has at least one child.- Returns:
- this assertion object
-
hasNoChildren
public SELF hasNoChildren()
Verifies that the actualParent
has no children.- Returns:
- this assertion object
-
hasExactlyNumChildren
public SELF hasExactlyNumChildren(int amount)
Verifies that the actualParent
has exactly the givenamount
of children.- Parameters:
amount
- the given amount of children that the actualParent
should exactly have- Returns:
- this assertion object
-
doesNotHaveExactlyNumChildren
public SELF doesNotHaveExactlyNumChildren(int amount)
Verifies that the actualParent
does not have exactly the givenamount
of children.- Parameters:
amount
- the given amount of children that the actualParent
should not exactly have- Returns:
- this assertion object
-
-