assertNull(factory.getEditFormatter());
assertNull(factory.getNullFormatter());
}
public void testCreateFormattersFactory() {
DefaultFormatterFactory factory;
tf.setValue(new Integer(34));
factory = getFactoryIfDefault(tf.getFormatterFactory());
assertTrue(factory.getDefaultFormatter() instanceof NumberFormatter);
//TODO: check if factory.getDefaultFormatter() should be same to factory.getDisplayFormatter()
// or factory.getEditFormatter().
assertNull(factory.getNullFormatter());
tf.setFormatterFactory(null);
tf.setValue(new Date());
factory = getFactoryIfDefault(tf.getFormatterFactory());
assertTrue(factory.getDefaultFormatter() instanceof DateFormatter);
assertNull(factory.getDisplayFormatter());
assertNull(factory.getEditFormatter());
assertNull(factory.getNullFormatter());
tf.setFormatterFactory(null);
tf.setValue("sdffsdf");
factory = getFactoryIfDefault(tf.getFormatterFactory());
checkDefaultFormatter(factory);
tf.setFormatterFactory(null);