Class DateTimePickerTester<T extends DateTimePicker>
java.lang.Object
com.vaadin.testbench.unit.ComponentTester<T>
com.vaadin.flow.component.datetimepicker.DateTimePickerTester<T>
- Type Parameters:
T
- component type
Tester for DateTimePicker components.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
setValue
(LocalDateTime dateTime) Set the date to the component.Methods inherited from class com.vaadin.testbench.unit.ComponentTester
ensureComponentIsUsable, ensureComponentIsUsable, ensureVisible, ensureVisible, find, findAllByQuery, findByQuery, fireDomEvent, fireDomEvent, fireDomEvent, getComponent, getField, getField, getMethod, getMethod, isUsable, isUsable, notUsableReasons, notUsableReasons, roundTrip, setModal
-
Constructor Details
-
DateTimePickerTester
Wrap given component for testing.- Parameters:
component
- target component
-
-
Method Details
-
setValue
Set the date to the component.Will throw if component is not enabled or value is not valid.
- Parameters:
dateTime
- date time to set to component- Throws:
IllegalArgumentException
- if value is invalid
-