Skip to content
Snippets Groups Projects
Commit 669b71cb authored by OZGCloud's avatar OZGCloud
Browse files

OZG-6710 [test] refactor test factory

parent be8f72d0
Branches
No related tags found
No related merge requests found
package de.ozgcloud.processor.vorgang;
import de.ozgcloud.apilib.vorgang.grpc.OzgCloudFileGroupTestFactory;
import de.ozgcloud.processor.vorgang.FileGroup.FileGroupBuilder;
public class AttachmentTestFactory {
public static FileGroup createFileGroup() {
public static final String GROUP_NAME = "File Group Name";
public static FileGroup create() {
return createBuilder().build();
}
public static FileGroupBuilder createBuilder() {
return FileGroup.builder()
.name(OzgCloudFileGroupTestFactory.NAME)
.file(FileMetaDataTestFactory.create())
.build();
.name(GROUP_NAME)
.file(FileMetaDataTestFactory.create());
}
}
......@@ -13,7 +13,7 @@ public class EingangTestFactory {
public static Eingang.EingangBuilder createBuilder() {
return Eingang.builder()
.antragsteller(AntragstellerTestFactory.create())
.attachment(AttachmentTestFactory.createFileGroup())
.attachment(AttachmentTestFactory.create())
.formData(List.<FormDataEntry>of(
FormField.builder().name(FIELD_NAME).label(FIELD_LABEL).value(FIELD_VALUE).build(),
SubForm.builder().name(SUB_FORM_NAME).label(SUB_FORM_LABEL)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment