@Test public void shouldReturnNullForRegularFields() { FieldDto field = FieldTestHelper.fieldDto("strField", String.class); assertNull(DisplayHelper.getDisplayValueForField(field, "value")); field = FieldTestHelper.fieldDto("intField", Integer.class); assertNull(DisplayHelper.getDisplayValueForField(field, 14)); field = FieldTestHelper.fieldDto("dtField", DateTime.class); assertNull(DisplayHelper.getDisplayValueForField(field, DateUtil.now())); }
public static Object getDisplayValueForField(FieldDto field, Object value) { return getDisplayValueForField(field, value, null); }
DisplayHelper { public static Object getDisplayValueForField(FieldDto field, Object value) { return getDisplayValueForField(field, value, null); } }
DisplayHelper { public static Object getDisplayValueForField(FieldDto field, Object value) { return getDisplayValueForField(field, value, null); } private  DisplayHelper(); }
DisplayHelper { public static Object getDisplayValueForField(FieldDto field, Object value) { return getDisplayValueForField(field, value, null); } private  DisplayHelper(); static Object getDisplayValueForField(FieldDto field, Object value); static Object getDisplayValueForField(FieldDto field, Object value, Integer maxLength); }
DisplayHelper { public static Object getDisplayValueForField(FieldDto field, Object value) { return getDisplayValueForField(field, value, null); } private  DisplayHelper(); static Object getDisplayValueForField(FieldDto field, Object value); static Object getDisplayValueForField(FieldDto field, Object value, Integer maxLength); static final DateTimeFormatter DTF; }