Class MultiSelectListBoxTester
-
- All Implemented Interfaces:
public class MultiSelectListBoxTester<T extends MultiSelectListBox<V>, V> extends ComponentTester<T>
Tester for MultiSelectListBox components.
-
-
Constructor Summary
Constructors Constructor Description MultiSelectListBoxTester(T component)Wrap given component for testing.
-
Method Summary
Modifier and Type Method Description Set<V>getSelected()Get the currently selected items. voidselectItems(Array<String> selection)Select item(s) by client string representation. voiddeselectItems(Array<String> selection)Deselect item(s) by client string representation. voidclearSelection()Clear all selected items from the component. List<String>getSuggestions()Get available items as String representations sent to the client. List<V>getSuggestionItems()Get the actual items for the dropdown as a List. -
-
Constructor Detail
-
MultiSelectListBoxTester
MultiSelectListBoxTester(T component)
Wrap given component for testing.- Parameters:
component- target component
-
-
Method Detail
-
getSelected
Set<V> getSelected()
Get the currently selected items.
- Returns:
current selection
-
selectItems
void selectItems(Array<String> selection)
Select item(s) by client string representation.
- Parameters:
selection- item representation string, not null
-
deselectItems
void deselectItems(Array<String> selection)
Deselect item(s) by client string representation.
- Parameters:
selection- item representation string, not null
-
clearSelection
void clearSelection()
Clear all selected items from the component.
-
getSuggestions
List<String> getSuggestions()
Get available items as String representations sent to the client. Any filter that is set is taken into account.
- Returns:
List of item representation strings
-
getSuggestionItems
List<V> getSuggestionItems()
Get the actual items for the dropdown as a List. Any filter that is set is taken into account.
- Returns:
List of items
-
-
-
-