aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2023-01-06 17:06:43 +0300
committerGravatar Vitaly Takmazov2023-01-07 04:04:26 +0300
commitc5e6a65323a7558ca0322ec810a9dff847968730 (patch)
tree037ff0ac5a2eb8224c3c5bc440484ffcef1cd0e9 /src/test
parent02e31496ee0ff099dd2a0fe0b1754acee6f2263a (diff)
Initial SQLite schema (work in progress)
Diffstat (limited to 'src/test')
-rw-r--r--src/test/java/com/juick/server/tests/ServerTests.java8
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 {