aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/com/juick
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/java/com/juick')
-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 {