aboutsummaryrefslogtreecommitdiff
path: root/src/test/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/java')
-rw-r--r--src/test/java/com/juick/server/tests/ServerTests.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/java/com/juick/server/tests/ServerTests.java b/src/test/java/com/juick/server/tests/ServerTests.java
index 3a7697e1f..d964185d5 100644
--- a/src/test/java/com/juick/server/tests/ServerTests.java
+++ b/src/test/java/com/juick/server/tests/ServerTests.java
@@ -2743,4 +2743,13 @@ public class ServerTests {
mockMvc.perform(get(htmlUri).accept(Context.LD_JSON_MEDIA_TYPE)).andExpect(status().is3xxRedirection())
.andExpect(redirectedUrl(ldUri));
}
+ @Test
+ @Transactional
+ public void unsignedOverlowTest() throws Exception {
+ var result = commandsManager.processCommand(ugnich, "test", emptyUri);
+ var mid = result.getNewMessage().get().getMid();
+ jdbcTemplate.update("UPDATE subscr_messages SET last_read_rid=10 WHERE message_id=?", mid);
+ assertThat(messagesService.getMessages(ugnich, List.of(mid)).size(), is(1));
+ assertThat(messagesService.getMessages(ugnich, List.of(mid)).get(0).isUnread(), is(false));
+ }
}