Constructor and Description |
---|
ListViewMatchers() |
Modifier and Type | Method and Description |
---|---|
static org.hamcrest.Matcher<Node> |
hasItems(int amount)
Creates a matcher that matches all
ListView s that has exactly amount items. |
static org.hamcrest.Matcher<Node> |
hasListCell(Object value)
Creates a matcher that matches all
ListView s that has one cell that equals the given value . |
static org.hamcrest.Matcher<Node> |
hasPlaceholder(Node placeHolder)
Creates a matcher that matches all
ListView s in two situations: if both the
ListView's placeholder and the given placeHolder are
Labeled objects or subclasses thereof, it matches if the two placeholder's texts equal,
and it matches if the two placeholders, when they are not Labeled objects or subclasses,
are equal. |
static org.hamcrest.Matcher<Node> |
hasVisiblePlaceholder(Node placeHolder)
Creates a matcher that matches all
ListView s whose placeholder
is visible in two situations: if both the ListView's placeholder
and the given placeHolder are Labeled objects or subclasses thereof, it matches if the
two placeholder's texts equal; otherwise, it matches if the two placeholders are equal. |
static org.hamcrest.Matcher<Node> |
isEmpty()
Creates a matcher that matches all
ListView s whose list of items
is empty. |
public static org.hamcrest.Matcher<Node> hasListCell(Object value)
ListView
s that has one cell that equals the given value
.public static org.hamcrest.Matcher<Node> hasItems(int amount)
ListView
s that has exactly amount
items.public static org.hamcrest.Matcher<Node> isEmpty()
ListView
s whose list of items
is empty.public static org.hamcrest.Matcher<Node> hasPlaceholder(Node placeHolder)
ListView
s in two situations: if both the
ListView's placeholder
and the given placeHolder
are
Labeled
objects or subclasses thereof, it matches if the two placeholder's texts equal,
and it matches if the two placeholders, when they are not Labeled
objects or subclasses,
are equal.public static org.hamcrest.Matcher<Node> hasVisiblePlaceholder(Node placeHolder)
ListView
s whose placeholder
is visible in two situations: if both the ListView's placeholder
and the given placeHolder
are Labeled
objects or subclasses thereof, it matches if the
two placeholder's texts equal; otherwise, it matches if the two placeholders are equal.