aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/com/juick
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2019-03-01 15:56:43 +0300
committerGravatar Vitaly Takmazov2019-03-01 15:56:43 +0300
commitb02d6b11957b32afe2ef569c095add695a7ecf28 (patch)
treebbe20e47068665d2a35898bbf2f0342b9a19a9f5 /src/test/java/com/juick
parent441bc18c6f072332920cee2473217bbab8e28055 (diff)
Fix anonymous user check
Diffstat (limited to 'src/test/java/com/juick')
-rw-r--r--src/test/java/com/juick/server/tests/ServerTests.java5
1 files changed, 5 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 a0d10988..3eb349e1 100644
--- a/src/test/java/com/juick/server/tests/ServerTests.java
+++ b/src/test/java/com/juick/server/tests/ServerTests.java
@@ -2002,4 +2002,9 @@ public class ServerTests {
assertThat(xnodeinfo.get("server"), notNullValue());
assertThat(xnodeinfo.get("software"), nullValue());
}
+ @Test
+ public void anonymousUserFromZero() {
+ User user = userService.getUserByUID(0).orElse(AnonymousUser.INSTANCE);
+ assertThat(user.isAnonymous(), is(true));
+ }
}