Skip to content
Snippets Groups Projects
Commit 937983b2 authored by Felix Reichenbach's avatar Felix Reichenbach
Browse files

OZG-7837 add name to AggregationMappingDto

parent fb5fbd1c
Branches
Tags
1 merge request!12Ozg 7837 aggregation mapping name
...@@ -42,6 +42,7 @@ public class ReportingAggregationManagerSettingDto { ...@@ -42,6 +42,7 @@ public class ReportingAggregationManagerSettingDto {
@Getter @Getter
static class AggregationMappingDto { static class AggregationMappingDto {
private FormIdentifierDto formIdentifier; private FormIdentifierDto formIdentifier;
private String name;
@Singular @Singular
private List<FieldMappingDto> fieldMappings; private List<FieldMappingDto> fieldMappings;
} }
......
...@@ -9,6 +9,7 @@ import de.ozgcloud.admin.reporting.ReportingAggregationManagerSettingDto.FormIde ...@@ -9,6 +9,7 @@ import de.ozgcloud.admin.reporting.ReportingAggregationManagerSettingDto.FormIde
public class AggregationMappingDtoTestFactory { public class AggregationMappingDtoTestFactory {
public static final FormIdentifierDto FORM_IDENTIFIER = FormIdentifierDto.builder().formId(FORM_ID).formEngineName(FORM_ENGINE_NAME).build(); public static final FormIdentifierDto FORM_IDENTIFIER = FormIdentifierDto.builder().formId(FORM_ID).formEngineName(FORM_ENGINE_NAME).build();
public static final String NAME = AggregationMappingTestFactory.NAME;
public static AggregationMappingDto create() { public static AggregationMappingDto create() {
return createBuilder().build(); return createBuilder().build();
...@@ -17,6 +18,7 @@ public class AggregationMappingDtoTestFactory { ...@@ -17,6 +18,7 @@ public class AggregationMappingDtoTestFactory {
public static AggregationMappingDto.AggregationMappingDtoBuilder createBuilder() { public static AggregationMappingDto.AggregationMappingDtoBuilder createBuilder() {
return AggregationMappingDto.builder() return AggregationMappingDto.builder()
.formIdentifier(FORM_IDENTIFIER) .formIdentifier(FORM_IDENTIFIER)
.name(NAME)
.fieldMapping(FieldMappingDto.builder().sourcePath(SOURCE_PATH).targetPath(TARGET_PATH).build()); .fieldMapping(FieldMappingDto.builder().sourcePath(SOURCE_PATH).targetPath(TARGET_PATH).build());
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment