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

OZG-7131 adjust TemplateHandlerITCase

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