public void testModel() {
System.out.println("model");
AbstractDatePickerTableCellEditor date_picker = getDatePickerTableCellEditor();
ICalendarModel model = null;
try {
model = new DefaultCalendarModel();
date_picker.setModel(model);
fail("IllegalArgumentException is expected!");
} catch (IllegalArgumentException e) {
// ok
}
try {
model = new DefaultCalendarNavigatorModel();
date_picker.setModel(model);
} catch (IllegalArgumentException ex) {
LOGGER.error("model", ex);
fail(ex.getLocalizedMessage());
}
ICalendarModel res = date_picker.getModel();
assertEquals("Wrong model: ", model, res);
}