@Test public void shouldDisplayCbSingleSelectNoUserSupplied() { FieldDto field = FieldTestHelper.comboboxFieldDto(1L, "cb", "cb", false, false, DisplayTestEnum.valuesMap()); assertEquals("Monday", DisplayHelper.getDisplayValueForField(field, DisplayTestEnum.MONDAY)); field = FieldTestHelper.comboboxFieldDto(1L, "cb", "cb", false, false, DisplayTestEnum.valuesMap()); assertNull(DisplayHelper.getDisplayValueForField(field, null)); field = FieldTestHelper.comboboxFieldDto(1L, "cb", "cb", false, false, null); assertEquals(DisplayTestEnum.MONDAY, DisplayHelper.getDisplayValueForField(field, DisplayTestEnum.MONDAY)); }
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; }