Class TimePickerTester<T extends TimePicker>

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

public class TimePickerTester<T extends TimePicker> extends ComponentTester<T>
Tester for TimePicker components.
  • Constructor Details

    • TimePickerTester

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

    • setValue

      public void setValue(LocalTime time)
      Set the time to the component.

      Will throw if component is not enabled or value is not valid.

      Parameters:
      time - time to set to component
      Throws:
      IllegalArgumentException - if value is invalid