com.vaadin.flow.component.select.

Class SelectTester<T extends Select<Y>,Y>

java.lang.Object
com.vaadin.testbench.unit.ComponentTester<T>
com.vaadin.flow.component.select.SelectTester<T,Y>
public class SelectTester<T extends Select<Y>,Y> extends ComponentTester<T>
  • Constructor Details

    • SelectTester

      public SelectTester(T component)

      Wrap given component for testing.

      Parameters:

      component - target component

  • Method Details

    • getSelected

      public Y getSelected()

      Get the currently selected item.

      Returns:

      current selection

    • selectItem

      public void selectItem(String selection)

      Select item by client string representation.

      Parameters:

      selection - item representation string

    • getSuggestions

      public 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

      public 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