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

OZG-7131 delete unused method

parent a36602d8
No related branches found
No related tags found
No related merge requests found
...@@ -41,10 +41,6 @@ public class TemplateHandler { ...@@ -41,10 +41,6 @@ public class TemplateHandler {
private final Configuration freemarkerConfig; private final Configuration freemarkerConfig;
public String getRawTemplate(String templateName) {
return getTemplate(templateName).toString();
}
public String fillTemplate(String templateName, Object dataModel) { public String fillTemplate(String templateName, Object dataModel) {
try { try {
var template = getTemplate(templateName); var template = getTemplate(templateName);
......
...@@ -44,19 +44,6 @@ class TemplateHandlerITCase { ...@@ -44,19 +44,6 @@ class TemplateHandlerITCase {
@Autowired @Autowired
private TemplateHandler handler; 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") @DisplayName("Fill template")
@Nested @Nested
class TestFillTemplate { class TestFillTemplate {
...@@ -72,5 +59,13 @@ class TemplateHandlerITCase { ...@@ -72,5 +59,13 @@ class TemplateHandlerITCase {
.contains("Sie haben eine Zuarbeitsanfrage erhalten. Bitte klicken Sie auf folgenden Link, um zum Vorgang zu gelangen:") .contains("Sie haben eine Zuarbeitsanfrage erhalten. Bitte klicken Sie auf folgenden Link, um zum Vorgang zu gelangen:")
.contains(value); .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