Package com.vaadin.flow.component.select
Class SelectTester
-
- All Implemented Interfaces:
public class SelectTester<T extends Select<Y>, Y> extends ComponentTester<T>
-
-
Constructor Summary
Constructors Constructor Description SelectTester(T component)Wrap given component for testing.
-
Method Summary
Modifier and Type Method Description YgetSelected()Get the currently selected item. voidselectItem(String selection)Select item by client string representation. List<String>getSuggestions()Get dropdown suggestions as String representations sent to the client. List<Y>getSuggestionItems()Get the actual items for the dropdown as a List. -
-
Constructor Detail
-
SelectTester
SelectTester(T component)
Wrap given component for testing.- Parameters:
component- target component
-
-
Method Detail
-
getSelected
Y getSelected()
Get the currently selected item.
- Returns:
current selection
-
selectItem
void selectItem(String selection)
Select item by client string representation.
- Parameters:
selection- item representation string
-
getSuggestions
List<String> getSuggestions()
Get dropdown suggestions as String representations sent to the client. Any filter that is set is taken into account.
- Returns:
List of item representation strings
-
getSuggestionItems
List<Y> getSuggestionItems()
Get the actual items for the dropdown as a List. Any filter that is set is taken into account.
- Returns:
List of items
-
-
-
-