diff options
author | Vitaly Takmazov | 2024-03-29 21:50:19 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2024-03-29 22:08:34 +0300 |
commit | c172469d601220c3a3b3c35e0de3409b7e23e78c (patch) | |
tree | 3a2142fc1916ff467d3466acef9c45d2ff4566c5 /src/test | |
parent | c1ce093dacb09f164ae31c2bc01a04ce5cac3184 (diff) |
Disable caching in development mode
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/java/com/juick/server/tests/ServerTests.java | 6 |
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(); |