Class AbstractListViewAssert<SELF extends AbstractListViewAssert<SELF,T> , T>
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.AbstractListViewAssert<SELF,T>
- 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:
ListViewAssert
public class AbstractListViewAssert<SELF extends AbstractListViewAssert<SELF,T>, T>
extends AbstractNodeAssert<SELF>
Base class for all
ListView assertions.-
Field Summary
Fields inherited from class org.assertj.core.api.AbstractAssert
actual, info, myself, objects, throwUnsupportedExceptionOnEquals -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractListViewAssert(javafx.scene.control.ListView<T> actual, Class<?> selfType) -
Method Summary
Modifier and TypeMethodDescriptiondoesNotHaveExactlyNumItems(int amount) Verifies that the actualListViewdoes not have exactly the givenamountof items.doesNotHaveListCell(Object value) Verifies that the actualListViewdoes not contain the given list cellvalue.doesNotHavePlaceholder(javafx.scene.Node placeHolder) Verifies that the actualListViewdoes not have the givenplaceHoldernode.doesNotHaveVisiblePlaceholder(javafx.scene.Node placeHolder) Verifies that the actualListViewdoes not have the given visibleplaceHolder.hasExactlyNumItems(int amount) Verifies that the actualListViewhas exactly the givenamountof items.hasListCell(Object value) Verifies that the actualListViewcontains the given list cellvalue.hasPlaceholder(javafx.scene.Node placeHolder) Verifies that the actualListViewhas the givenplaceHoldernode.hasVisiblePlaceholder(javafx.scene.Node placeHolder) Verifies that the actualListViewhas the givenplaceHoldernode and that the node is visible.isEmpty()Verifies that the actualListViewis empty (does not contain any items).Verifies that the actualListViewis not empty (contains at least one item).Methods inherited from class AbstractNodeAssert
doesNotHaveChild, hasChild, hasExactlyChildren, isDisabled, isEnabled, isFocused, isInvisible, isNotFocused, isVisibleMethods inherited from class AbstractStyleableAssert
doesNotHaveId, doesNotHaveStyle, doesNotHaveStyleableParent, doesNotHaveTypeSelector, hasId, hasStyle, hasStyleableParent, hasTypeSelectorMethods 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, withThreadDumpOnErrorMethods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.assertj.core.api.Descriptable
as, as, as, describedAs, describedAs
-
Constructor Details
-
AbstractListViewAssert
-
-
Method Details
-
hasListCell
-
doesNotHaveListCell
-
hasExactlyNumItems
Verifies that the actualListViewhas exactly the givenamountof items.- Parameters:
amount- the given amount of items to compare the actual amount of items to- Returns:
- this assertion object
-
doesNotHaveExactlyNumItems
Verifies that the actualListViewdoes not have exactly the givenamountof items.- Parameters:
amount- the given amount of items to compare the actual amount of items to- Returns:
- this assertion object
-
isEmpty
Verifies that the actualListViewis empty (does not contain any items).- Returns:
- this assertion object
-
isNotEmpty
Verifies that the actualListViewis not empty (contains at least one item).- Returns:
- this assertion object
-
hasPlaceholder
Verifies that the actualListViewhas the givenplaceHoldernode.- Parameters:
placeHolder- the given place holderNodeto compare the actual place holder to- Returns:
- this assertion object
-
doesNotHavePlaceholder
Verifies that the actualListViewdoes not have the givenplaceHoldernode.- Parameters:
placeHolder- the given place holderNodeto compare the actual place holder to- Returns:
- this assertion object
-
hasVisiblePlaceholder
Verifies that the actualListViewhas the givenplaceHoldernode and that the node is visible.- Parameters:
placeHolder- the given place holderNodeto compare the actual place holder to- Returns:
- this assertion object
-
doesNotHaveVisiblePlaceholder
Verifies that the actualListViewdoes not have the given visibleplaceHolder. This assertion will pass for any invisible place holder.- Parameters:
placeHolder- the given place holderNodeto compare the actual place holder to- Returns:
- this assertion object
-