use of org.drools.workbench.models.guided.dtree.shared.model.values.impl.DateValue in project drools by kiegroup.
the class GuidedDecisionTreeValuesTest method testDateValue.
@Test
public void testDateValue() {
final Date tv = Calendar.getInstance().getTime();
final DateValue v = new DateValue(tv);
assertEquals(tv, v.getValue());
try {
v.setValue("any string will do");
fail("We should not be able to use DateValue.setValue(String)");
} catch (UnsupportedOperationException e) {
// Swallow this is expected
} catch (Exception e) {
fail("Unexpected exception thrown by DateValue.setValue(String)");
}
}
Aggregations