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

OZG-7131 delete unused method

parent a36602d8
Branches
Tags
No related merge requests found
......@@ -41,10 +41,6 @@ public class TemplateHandler {
private final Configuration freemarkerConfig;
public String getRawTemplate(String templateName) {
return getTemplate(templateName).toString();
}
public String fillTemplate(String templateName, Object dataModel) {
try {
var template = getTemplate(templateName);
......
......@@ -44,19 +44,6 @@ class TemplateHandlerITCase {
@Autowired
private TemplateHandler handler;
@DisplayName("Get raw template")
@Nested
class TestGetRawTemplate {
@Test
void shouldThrowException() {
var templateArguments = Collections.emptyMap();
Assertions.assertThrows(TechnicalException.class,
() -> handler.fillTemplate(CollaborationService.COLLABORATION_NACHRICHT_TEMPLATE, templateArguments));
}
}
@DisplayName("Fill template")
@Nested
class TestFillTemplate {
......@@ -72,5 +59,13 @@ class TemplateHandlerITCase {
.contains("Sie haben eine Zuarbeitsanfrage erhalten. Bitte klicken Sie auf folgenden Link, um zum Vorgang zu gelangen:")
.contains(value);
}
@Test
void shouldThrowException() {
var templateArguments = Collections.emptyMap();
Assertions.assertThrows(TechnicalException.class,
() -> handler.fillTemplate(CollaborationService.COLLABORATION_NACHRICHT_TEMPLATE, templateArguments));
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment