Class CheckboxGroupTester<T extends CheckboxGroup<V>,V>

java.lang.Object
com.vaadin.browserless.ComponentTester<T>
com.vaadin.flow.component.checkbox.CheckboxGroupTester<T,V>
Type Parameters:
T - component type
All Implemented Interfaces:
Clickable<T>

public class CheckboxGroupTester<T extends CheckboxGroup<V>,V> extends ComponentTester<T>
Tester for CheckboxGroup components.
Since:
1.0
  • Constructor Details

    • CheckboxGroupTester

      public CheckboxGroupTester(T component)
      Wrap given component for testing.
      Parameters:
      component - target component
  • Method Details

    • selectItem

      public void selectItem(String selection)
      Selects an item by its client string representation.
      Parameters:
      selection - item string representation
    • selectItems

      public void selectItems(String... selection)
      Selects multiple items by client string representation.
      Parameters:
      selection - items string representation
    • selectItems

      public void selectItems(Collection<String> selection)
      Selects multiple items by client string representation.
      Parameters:
      selection - items string representation
    • selectAll

      public void selectAll()
      Selects all client usable items.
    • deselectItem

      public void deselectItem(String selection)
      Deselects an item by its client string representation.
      Parameters:
      selection - item string representation
    • deselectItems

      public void deselectItems(String... selection)
      Deselects multiple items by client string representation.
      Parameters:
      selection - items string representation
    • deselectItems

      public void deselectItems(Collection<String> selection)
      Deselects items by client string representation.
      Parameters:
      selection - items string representation
    • deselectAll

      public void deselectAll()
      Deselects all client usable items.
    • getSelected

      public Set<V> getSelected()
      Get the list of currently selected items.
      Returns:
      current selection, or an empty list. Never null.
    • updateSelection

      public void updateSelection(Collection<String> selection, BiConsumer<Collection<V>,Collection<V>> updater)