aboutsummaryrefslogtreecommitdiff
path: root/src/test/java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2024-03-29 21:50:19 +0300
committerGravatar Vitaly Takmazov2024-03-29 22:08:34 +0300
commitc172469d601220c3a3b3c35e0de3409b7e23e78c (patch)
tree3a2142fc1916ff467d3466acef9c45d2ff4566c5 /src/test/java
parentc1ce093dacb09f164ae31c2bc01a04ce5cac3184 (diff)
Disable caching in development mode
Diffstat (limited to 'src/test/java')
-rw-r--r--src/test/java/com/juick/server/tests/ServerTests.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/java/com/juick/server/tests/ServerTests.java b/src/test/java/com/juick/server/tests/ServerTests.java
index 7046fdf8..a728ac2b 100644
--- a/src/test/java/com/juick/server/tests/ServerTests.java
+++ b/src/test/java/com/juick/server/tests/ServerTests.java
@@ -2416,17 +2416,17 @@ public class ServerTests {
@Test
public void emailTemplatesTest() throws IOException {
- String plainText = webApp.renderPlaintext("yo", "https://localhost/m/1").orElseThrow();
+ String plainText = messagesService.renderPlaintext("yo", "https://localhost/m/1").orElseThrow();
assertThat(plainText, is(getSnapshot(testSubscriptionTextEmail)));
User demo = MockUtils.mockUser(45, ugnichName, ugnichPassword);
Message html = MockUtils.mockMessage(56, demo, "yo");
- String htmlText = webApp
+ String htmlText = messagesService
.renderHtml(MessageUtils.formatHtml(html), PlainTextFormatter.formatUrl(html), html,
"12345")
.orElseThrow();
assertThat(htmlText, is(getSnapshot(testSubscriptionHtmlEmail)));
html.setMid(0);
- String htmlPM = webApp
+ String htmlPM = messagesService
.renderHtml(MessageUtils.formatHtml(html), PlainTextFormatter.formatUrl(html), html,
"12345")
.orElseThrow();