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

OZG-7131 adjust TemplateHandlerITCase

parent a6f30a2a
Branches
Tags
Loading
...@@ -25,7 +25,6 @@ package de.ozgcloud.collaboration.common.freemarker; ...@@ -25,7 +25,6 @@ package de.ozgcloud.collaboration.common.freemarker;
import static org.assertj.core.api.Assertions.*; import static org.assertj.core.api.Assertions.*;
import java.util.Collections;
import java.util.Map; import java.util.Map;
import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.DisplayName;
...@@ -51,11 +50,9 @@ class TemplateHandlerITCase { ...@@ -51,11 +50,9 @@ class TemplateHandlerITCase {
var content = handler.getRawTemplate(CollaborationService.COLLABORATION_NACHRICHT_TEMPLATE); var content = handler.getRawTemplate(CollaborationService.COLLABORATION_NACHRICHT_TEMPLATE);
assertThat(content) assertThat(content)
.contains("Hallo Fachstelle,") .contains("Guten Tag,")
.contains("bitte bearbeiten:") .contains("Sie haben eine Zuarbeitsanfrage erhalten. Bitte klicken Sie auf folgenden Link, um zum Vorgang zu gelangen:")
.contains("${url!\"http://www.host.local\"}") .contains("${linkToVorgang}");
.contains("Danke")
.contains("Verwaltung");
} }
} }
...@@ -70,23 +67,9 @@ class TemplateHandlerITCase { ...@@ -70,23 +67,9 @@ class TemplateHandlerITCase {
Map.of(CollaborationService.KEY_VORGANG_LINK, value)); Map.of(CollaborationService.KEY_VORGANG_LINK, value));
assertThat(content) assertThat(content)
.contains("Hallo Fachstelle,") .contains("Guten Tag,")
.contains("bitte bearbeiten:") .contains("Sie haben eine Zuarbeitsanfrage erhalten. Bitte klicken Sie auf folgenden Link, um zum Vorgang zu gelangen:")
.contains(value) .contains(value);
.contains("Danke")
.contains("Verwaltung");
}
@Test
void shouldReturnWithDefaultValue() {
var content = handler.fillTemplate(CollaborationService.COLLABORATION_NACHRICHT_TEMPLATE, Collections.emptyMap());
assertThat(content)
.contains("Hallo Fachstelle,")
.contains("bitte bearbeiten:")
.contains("http://www.host.local")
.contains("Danke")
.contains("Verwaltung");
} }
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment