@Test public void deserialize() { final List<KeyValueRow> deserialized = tested.deserialize(SERIALIZED_ROLE); verify(caseRoleSerializer).deserialize(eq(SERIALIZED_ROLE), any()); assertThat(deserialized).usingElementComparator(Comparator.comparing(KeyValueRow::getKey)).isEqualTo(rows); assertThat(deserialized).usingElementComparator(Comparator.comparing(KeyValueRow::getValue)).isEqualTo(rows); }
@Override public List<KeyValueRow> deserialize(String value) { return serializer.deserialize(value, (k, v) -> new KeyValueRow(k, v)); }
RolesEditorFieldRenderer extends FieldRenderer<RolesEditorFieldDefinition, DefaultFormGroup> implements RolesEditorWidgetView.Presenter { @Override public List<KeyValueRow> deserialize(String value) { return serializer.deserialize(value, (k, v) -> new KeyValueRow(k, v)); } }
RolesEditorFieldRenderer extends FieldRenderer<RolesEditorFieldDefinition, DefaultFormGroup> implements RolesEditorWidgetView.Presenter { @Override public List<KeyValueRow> deserialize(String value) { return serializer.deserialize(value, (k, v) -> new KeyValueRow(k, v)); } @Inject  RolesEditorFieldRenderer(RolesEditorWidgetView editor,
                                    CaseRoleSerializer serializer); }
RolesEditorFieldRenderer extends FieldRenderer<RolesEditorFieldDefinition, DefaultFormGroup> implements RolesEditorWidgetView.Presenter { @Override public List<KeyValueRow> deserialize(String value) { return serializer.deserialize(value, (k, v) -> new KeyValueRow(k, v)); } @Inject  RolesEditorFieldRenderer(RolesEditorWidgetView editor,
                                    CaseRoleSerializer serializer); @Override String getName(); @Override List<KeyValueRow> deserialize(String value); @Override String serialize(List<KeyValueRow> rows); }
RolesEditorFieldRenderer extends FieldRenderer<RolesEditorFieldDefinition, DefaultFormGroup> implements RolesEditorWidgetView.Presenter { @Override public List<KeyValueRow> deserialize(String value) { return serializer.deserialize(value, (k, v) -> new KeyValueRow(k, v)); } @Inject  RolesEditorFieldRenderer(RolesEditorWidgetView editor,
                                    CaseRoleSerializer serializer); @Override String getName(); @Override List<KeyValueRow> deserialize(String value); @Override String serialize(List<KeyValueRow> rows);  }