@Test public void shouldDisplayCbMultiSelectUserSupplied() { FieldDto field = FieldTestHelper.comboboxFieldDto(1L, "cb", "cb", true, true, null); assertEquals(asList("one", "two"), DisplayHelper.getDisplayValueForField(field, asList("one", "two"))); field = FieldTestHelper.comboboxFieldDto(1L, "cb", "cb", true, true, null); assertNull(DisplayHelper.getDisplayValueForField(field, null)); field = FieldTestHelper.comboboxFieldDto(1L, "cb", "cb", true, true, null); assertEquals(emptyList(), DisplayHelper.getDisplayValueForField(field, emptyList())); }
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; }