diff --git a/src/test/java/de/ozgcloud/admin/setting/SettingITCase.java b/src/test/java/de/ozgcloud/admin/setting/SettingITCase.java index 04aaf44fb4105118d90343fc2271e58479959173..fbd04a0da9c8df78c55742603eeea2bfe2e75c64 100644 --- a/src/test/java/de/ozgcloud/admin/setting/SettingITCase.java +++ b/src/test/java/de/ozgcloud/admin/setting/SettingITCase.java @@ -28,7 +28,6 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers. import java.util.List; -import de.ozgcloud.admin.common.user.UserRole; import org.apache.commons.lang3.StringUtils; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Nested; @@ -47,6 +46,7 @@ import org.springframework.test.web.servlet.ResultActions; 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.AbsenderTestFactory; import de.ozgcloud.admin.setting.postfach.PostfachSettingBody; diff --git a/src/test/java/de/ozgcloud/admin/setting/postfach/PostfachSettingBodyTestFactory.java b/src/test/java/de/ozgcloud/admin/setting/postfach/PostfachSettingBodyTestFactory.java index 49dddeaede0ff8f6a60153394de83afa948933bd..9d5b34b8836fca6e4b0f3a6da0b26e926cae1bf8 100644 --- a/src/test/java/de/ozgcloud/admin/setting/postfach/PostfachSettingBodyTestFactory.java +++ b/src/test/java/de/ozgcloud/admin/setting/postfach/PostfachSettingBodyTestFactory.java @@ -9,6 +9,8 @@ import de.ozgcloud.common.test.TestUtils; public class PostfachSettingBodyTestFactory { public static final Absender ABSENDER = AbsenderTestFactory.create(); public static final String SIGNATUR = LoremIpsum.getInstance().getParagraphs(2, 2); + // public static final String SIGNATUR = + // LoremIpsum.getInstance().getHtmlParagraphs(2, 2); public static PostfachSettingBody create() { return createBuilder().build(); @@ -23,7 +25,7 @@ public class PostfachSettingBodyTestFactory { public static String buildPostfachJson(PostfachSettingBody postfach) { return TestUtils.loadTextFile("jsonTemplates/settings/createPostfach.json.tmpl", postfach.getAbsender().getName(), 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() {