diff options
author | Vitaly Takmazov | 2023-01-06 17:06:43 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-01-07 04:04:26 +0300 |
commit | c5e6a65323a7558ca0322ec810a9dff847968730 (patch) | |
tree | 037ff0ac5a2eb8224c3c5bc440484ffcef1cd0e9 /src/test/java/com | |
parent | 02e31496ee0ff099dd2a0fe0b1754acee6f2263a (diff) |
Initial SQLite schema (work in progress)
Diffstat (limited to 'src/test/java/com')
-rw-r--r-- | src/test/java/com/juick/server/tests/ServerTests.java | 8 |
1 files changed, 6 insertions, 2 deletions
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 { |