use of org.eclipse.nebula.widgets.nattable.data.convert.ConversionFailedException in project nebula.widgets.nattable by eclipse.
the class DefaultDateDisplayConverterTest method invalidDataType.
@Test
public void invalidDataType() throws Exception {
final DefaultDateDisplayConverter converter = new DefaultDateDisplayConverter();
System.err.println("** THE FOLLOWING STACK TRACE IS EXPECTED **");
assertEquals("XXX", converter.canonicalToDisplayValue("XXX"));
try {
converter.displayToCanonicalValue("AAA");
fail("ConversionFailedException should have been throwed");
} catch (ConversionFailedException e) {
}
}
Aggregations