// set a value and a format
final Calendar lCalendar = new GregorianCalendar(2013, 00, 01, 12, 34, 56);
TestUtil.runThenWaitForPaintPulse( () -> {
calendarPicker.setShowTime(true);
});
final CalendarTimePicker lCalendarTimePicker = (CalendarTimePicker)find(".CalendarTimePicker");
TestUtil.runThenWaitForPaintPulse( () -> {
lCalendarTimePicker.setStyle("-fxx-label-dateformat:\"HH:mm:ss\";");
calendarPicker.setCalendar( (Calendar)lCalendar.clone() );
});
Assert.assertEquals("2013-01-01T12:34:56.000", TestUtil.quickFormatCalendarAsDateTime(calendarPicker.getCalendar()));
// change date, time should not change