Skip to content
Snippets Groups Projects
Commit 9d09abe4 authored by OZGCloud's avatar OZGCloud
Browse files

OZG-6499 Fix ITCase

parent b815cbc6
Branches
Tags
No related merge requests found
...@@ -28,7 +28,6 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers. ...@@ -28,7 +28,6 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.
import java.util.List; import java.util.List;
import de.ozgcloud.admin.common.user.UserRole;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Nested; import org.junit.jupiter.api.Nested;
...@@ -47,6 +46,7 @@ import org.springframework.test.web.servlet.ResultActions; ...@@ -47,6 +46,7 @@ import org.springframework.test.web.servlet.ResultActions;
import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.ObjectMapper;
import de.ozgcloud.admin.common.user.UserRole;
import de.ozgcloud.admin.setting.postfach.Absender; import de.ozgcloud.admin.setting.postfach.Absender;
import de.ozgcloud.admin.setting.postfach.AbsenderTestFactory; import de.ozgcloud.admin.setting.postfach.AbsenderTestFactory;
import de.ozgcloud.admin.setting.postfach.PostfachSettingBody; import de.ozgcloud.admin.setting.postfach.PostfachSettingBody;
......
...@@ -9,6 +9,8 @@ import de.ozgcloud.common.test.TestUtils; ...@@ -9,6 +9,8 @@ import de.ozgcloud.common.test.TestUtils;
public class PostfachSettingBodyTestFactory { public class PostfachSettingBodyTestFactory {
public static final Absender ABSENDER = AbsenderTestFactory.create(); public static final Absender ABSENDER = AbsenderTestFactory.create();
public static final String SIGNATUR = LoremIpsum.getInstance().getParagraphs(2, 2); public static final String SIGNATUR = LoremIpsum.getInstance().getParagraphs(2, 2);
// public static final String SIGNATUR =
// LoremIpsum.getInstance().getHtmlParagraphs(2, 2);
public static PostfachSettingBody create() { public static PostfachSettingBody create() {
return createBuilder().build(); return createBuilder().build();
...@@ -23,7 +25,7 @@ public class PostfachSettingBodyTestFactory { ...@@ -23,7 +25,7 @@ public class PostfachSettingBodyTestFactory {
public static String buildPostfachJson(PostfachSettingBody postfach) { public static String buildPostfachJson(PostfachSettingBody postfach) {
return TestUtils.loadTextFile("jsonTemplates/settings/createPostfach.json.tmpl", postfach.getAbsender().getName(), return TestUtils.loadTextFile("jsonTemplates/settings/createPostfach.json.tmpl", postfach.getAbsender().getName(),
postfach.getAbsender().getAnschrift(), postfach.getAbsender().getDienst(), postfach.getAbsender().getMandant(), postfach.getAbsender().getAnschrift(), postfach.getAbsender().getDienst(), postfach.getAbsender().getMandant(),
postfach.getAbsender().getGemeindeschluessel(), postfach.getSignatur()); postfach.getAbsender().getGemeindeschluessel(), postfach.getSignatur().replaceAll("\n", "\\\\n"));
} }
public static Map<String, Object> createPostfachAsFlattenedMapVorgangManager() { public static Map<String, Object> createPostfachAsFlattenedMapVorgangManager() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment