Class DatePickerTester<T extends DatePicker>

java.lang.Object
com.vaadin.testbench.unit.ComponentTester<T>
com.vaadin.flow.component.datepicker.DatePickerTester<T>
Type Parameters:
T - component type

public class DatePickerTester<T extends DatePicker> extends ComponentTester<T>
Tester for the DatePicker components.
  • Constructor Details

    • DatePickerTester

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

    • setValue

      public void setValue(LocalDate date)
      Set the given date as value to the component.

      Will throw if the component is not enabled or the value is invalid.

      Parameters:
      date - date to set to the component
      Throws:
      IllegalArgumentException - if the given value is not valid