- java.lang.Object
-
- org.testfx.matcher.control.ListViewMatchers
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.hamcrest.Matcher<ListView>hasItems(int amount)Creates a matcher that matches allListViews that have exactlyamountitems (i.e.static org.hamcrest.Matcher<ListView>hasListCell(Object value)Creates a matcher that matches allListViews that have one cell that equals the givenvalue.static org.hamcrest.Matcher<ListView>hasPlaceholder(Node placeHolder)Creates a matcher that matchesListViews that have the givenplaceHolder.static org.hamcrest.Matcher<ListView>hasVisiblePlaceholder(Node placeHolder)Creates a matcher that matchesListViews that have the given visibleplaceHolder.static org.hamcrest.Matcher<ListView>isEmpty()Creates a matcher that matches allListViews that have no items (i.e.
-
-
-
Method Detail
-
hasListCell
public static org.hamcrest.Matcher<ListView> hasListCell(Object value)
Creates a matcher that matches allListViews that have one cell that equals the givenvalue.- Parameters:
value- the list cell the matched ListView's should have
-
hasItems
public static org.hamcrest.Matcher<ListView> hasItems(int amount)
Creates a matcher that matches allListViews that have exactlyamountitems (i.e. sizeof(ListView.getItems()) =amount).- Parameters:
amount- the number of items the matched ListView's should have
-
isEmpty
public static org.hamcrest.Matcher<ListView> isEmpty()
Creates a matcher that matches allListViews that have no items (i.e. sizeof(ListView.getItems()) = 0).
-
hasPlaceholder
public static org.hamcrest.Matcher<ListView> hasPlaceholder(Node placeHolder)
Creates a matcher that matchesListViews that have the givenplaceHolder. As a special case if theplaceHolderis an instance ofLabeledthen the placeholder matches if the givenplaceHolder's text is equal to the ListView's text.- Parameters:
placeHolder- the placeHolderNodethe matched ListView's should have
-
hasVisiblePlaceholder
public static org.hamcrest.Matcher<ListView> hasVisiblePlaceholder(Node placeHolder)
Creates a matcher that matchesListViews that have the given visibleplaceHolder. As a special case if theplaceHolderis an instance ofLabeledthen the placeholder matches if the givenplaceHolder's text is equal to the ListView's text and the ListView's placeHolder is visible.- Parameters:
placeHolder- the visible placeHolderNodethe matched ListView's should have
-
-