});
}
@Test
public void testDateTimeWidget() {
Format format = new SimpleDateFormat(CalendarAction.DATE_FORMAT);
Calendar date = new GregorianCalendar(2100, Calendar.JANUARY, 1);
CalendarAction action = CalendarAction.create(manager, shell, date, null,
null);
SWTBotDateTime bot = new SWTBotDateTime(action.getDateTime());
assertEquals(format.format(date.getTime()), format.format(bot.getDate()));
date = new GregorianCalendar(2012, Calendar.DECEMBER, 21);
bot.setDate(date.getTime());
assertEquals(format.format(date.getTime()), action.getText());
Calendar cal = action.getCalendar();
assertEquals(format.format(date.getTime()), format.format(cal.getTime()));
}