From c5e6a65323a7558ca0322ec810a9dff847968730 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Fri, 6 Jan 2023 17:06:43 +0300 Subject: Initial SQLite schema (work in progress) --- src/test/java/com/juick/server/tests/ServerTests.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/test') diff --git a/src/test/java/com/juick/server/tests/ServerTests.java b/src/test/java/com/juick/server/tests/ServerTests.java index 04a0802a..eff78c1d 100644 --- a/src/test/java/com/juick/server/tests/ServerTests.java +++ b/src/test/java/com/juick/server/tests/ServerTests.java @@ -727,6 +727,7 @@ public class ServerTests { } @Test + @Transactional public void topTest() { int topmid = messagesService.createMessage(ugnich.getUid(), "top message", null, Set.of()); IntStream.rangeClosed(6, 12).forEach(i -> { @@ -2735,12 +2736,15 @@ public class ServerTests { } @Test - @Transactional - public void signedGetTest() throws Exception { + public void signedGetTest() { var protectedAccount = "http://localhost:8080/u/ugnich"; var context = activityPubService.get(URI.create(protectedAccount)); assertThat(context.get().getId(), is(protectedAccount)); } + @Test + public void getLastRepliesShouldNotCrash() { + messagesService.getLastMessages(48); + } /* @Test public void tokenAuth() throws Exception { -- cgit v1.2.3