public class ListViewMatchers
extends java.lang.Object
ListView controls.| Modifier and Type | Method and Description |
|---|---|
static org.hamcrest.Matcher<javafx.scene.control.ListView> |
hasItems(int amount)
Creates a matcher that matches all
ListViews that have exactly amount items (i.e. |
static org.hamcrest.Matcher<javafx.scene.control.ListView> |
hasListCell(java.lang.Object value)
Creates a matcher that matches all
ListViews that have one cell that equals the given value. |
static org.hamcrest.Matcher<javafx.scene.control.ListView> |
hasPlaceholder(javafx.scene.Node placeHolder)
Creates a matcher that matches
ListViews that have the given placeHolder. |
static org.hamcrest.Matcher<javafx.scene.control.ListView> |
hasVisiblePlaceholder(javafx.scene.Node placeHolder)
Creates a matcher that matches
ListViews that have the given visible placeHolder. |
static org.hamcrest.Matcher<javafx.scene.control.ListView> |
isEmpty()
Creates a matcher that matches all
ListViews that have no items (i.e. |
public static org.hamcrest.Matcher<javafx.scene.control.ListView> hasListCell(java.lang.Object value)
ListViews that have one cell that equals the given value.value - the list cell the matched ListView's should havepublic static org.hamcrest.Matcher<javafx.scene.control.ListView> hasItems(int amount)
ListViews that have exactly amount items (i.e.
sizeof(ListView.getItems()) = amount).amount - the number of items the matched ListView's should havepublic static org.hamcrest.Matcher<javafx.scene.control.ListView> isEmpty()
ListViews that have no items (i.e.
sizeof(ListView.getItems()) = 0).public static org.hamcrest.Matcher<javafx.scene.control.ListView> hasPlaceholder(javafx.scene.Node placeHolder)
ListViews that have the given placeHolder.
As a special case if the placeHolder is an instance of Labeled then the placeholder
matches if the given placeHolder's text is equal to the ListView's text.placeHolder - the placeHolder Node the matched ListView's should havepublic static org.hamcrest.Matcher<javafx.scene.control.ListView> hasVisiblePlaceholder(javafx.scene.Node placeHolder)
ListViews that have the given visible placeHolder.
As a special case if the placeHolder is an instance of Labeled then the placeholder
matches if the given placeHolder's text is equal to the ListView's text and the ListView's
placeHolder is visible.placeHolder - the visible placeHolder Node the matched ListView's should have