Module org.testfx
Package org.testfx.assertions.api
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 allListView
assertions.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractListViewAssert(javafx.scene.control.ListView<T> actual, Class<?> selfType)
-
Method Summary
Modifier and Type Method Description SELF
doesNotHaveExactlyNumItems(int amount)
Verifies that the actualListView
does not have exactly the givenamount
of items.SELF
doesNotHaveListCell(Object value)
Verifies that the actualListView
does not contain the given list cellvalue
.SELF
doesNotHavePlaceholder(javafx.scene.Node placeHolder)
Verifies that the actualListView
does not have the givenplaceHolder
node.SELF
doesNotHaveVisiblePlaceholder(javafx.scene.Node placeHolder)
Verifies that the actualListView
does not have the given visibleplaceHolder
.SELF
hasExactlyNumItems(int amount)
Verifies that the actualListView
has exactly the givenamount
of items.SELF
hasListCell(Object value)
Verifies that the actualListView
contains the given list cellvalue
.SELF
hasPlaceholder(javafx.scene.Node placeHolder)
Verifies that the actualListView
has the givenplaceHolder
node.SELF
hasVisiblePlaceholder(javafx.scene.Node placeHolder)
Verifies that the actualListView
has the givenplaceHolder
node and that the node is visible.SELF
isEmpty()
Verifies that the actualListView
is empty (does not contain any items).SELF
isNotEmpty()
Verifies that the actualListView
is not empty (contains at least one item).-
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
-
-
-
-
Method Detail
-
hasListCell
public SELF hasListCell(Object value)
Verifies that the actualListView
contains the given list cellvalue
.- Parameters:
value
- the given list cell value to ensure theListView
contains- Returns:
- this assertion object
-
doesNotHaveListCell
public SELF doesNotHaveListCell(Object value)
Verifies that the actualListView
does not contain the given list cellvalue
.- Parameters:
value
- the given list cell value to ensure theListView
does not contain- Returns:
- this assertion object
-
hasExactlyNumItems
public SELF hasExactlyNumItems(int amount)
Verifies that the actualListView
has exactly the givenamount
of items.- Parameters:
amount
- the given amount of items to compare the actual amount of items to- Returns:
- this assertion object
-
doesNotHaveExactlyNumItems
public SELF doesNotHaveExactlyNumItems(int amount)
Verifies that the actualListView
does not have exactly the givenamount
of items.- Parameters:
amount
- the given amount of items to compare the actual amount of items to- Returns:
- this assertion object
-
isEmpty
public SELF isEmpty()
Verifies that the actualListView
is empty (does not contain any items).- Returns:
- this assertion object
-
isNotEmpty
public SELF isNotEmpty()
Verifies that the actualListView
is not empty (contains at least one item).- Returns:
- this assertion object
-
hasPlaceholder
public SELF hasPlaceholder(javafx.scene.Node placeHolder)
Verifies that the actualListView
has the givenplaceHolder
node.- Parameters:
placeHolder
- the given place holderNode
to compare the actual place holder to- Returns:
- this assertion object
-
doesNotHavePlaceholder
public SELF doesNotHavePlaceholder(javafx.scene.Node placeHolder)
Verifies that the actualListView
does not have the givenplaceHolder
node.- Parameters:
placeHolder
- the given place holderNode
to compare the actual place holder to- Returns:
- this assertion object
-
hasVisiblePlaceholder
public SELF hasVisiblePlaceholder(javafx.scene.Node placeHolder)
Verifies that the actualListView
has the givenplaceHolder
node and that the node is visible.- Parameters:
placeHolder
- the given place holderNode
to compare the actual place holder to- Returns:
- this assertion object
-
doesNotHaveVisiblePlaceholder
public SELF doesNotHaveVisiblePlaceholder(javafx.scene.Node placeHolder)
Verifies that the actualListView
does not have the given visibleplaceHolder
. This assertion will pass for any invisible place holder.- Parameters:
placeHolder
- the given place holderNode
to compare the actual place holder to- Returns:
- this assertion object
-
-