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 allParentassertions.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractParentAssert(javafx.scene.Parent actual, java.lang.Class<?> selfType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SELFdoesNotHaveExactlyNumChildren(int amount)Verifies that the actualParentdoes not have exactly the givenamountof children.SELFhasAnyChild()Verifies that the actualParenthas at least one child.SELFhasExactlyNumChildren(int amount)Verifies that the actualParenthas exactly the givenamountof children.SELFhasNoChildren()Verifies that the actualParenthas 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
actual, areEqual, asInstanceOf, asList, assertionError, asString, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, doesNotHaveSameHashCodeAs, doesNotHaveToString, doesNotHaveToString, doesNotMatch, doesNotMatch, 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, usingEquals, usingEquals, usingRecursiveAssertion, usingRecursiveAssertion, usingRecursiveComparison, usingRecursiveComparison, withFailMessage, withFailMessage, withRepresentation, withThreadDumpOnError
-
-
-
-
Method Detail
-
hasAnyChild
public SELF hasAnyChild()
Verifies that the actualParenthas at least one child.- Returns:
- this assertion object
-
hasNoChildren
public SELF hasNoChildren()
Verifies that the actualParenthas no children.- Returns:
- this assertion object
-
hasExactlyNumChildren
public SELF hasExactlyNumChildren(int amount)
Verifies that the actualParenthas exactly the givenamountof children.- Parameters:
amount- the given amount of children that the actualParentshould exactly have- Returns:
- this assertion object
-
doesNotHaveExactlyNumChildren
public SELF doesNotHaveExactlyNumChildren(int amount)
Verifies that the actualParentdoes not have exactly the givenamountof children.- Parameters:
amount- the given amount of children that the actualParentshould not exactly have- Returns:
- this assertion object
-
-