diff options
author | Vitaly Takmazov | 2018-05-03 15:38:05 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-05-03 15:38:05 +0300 |
commit | 937445c7e56a7bc9353e5aec1a0941c97b0f1386 (patch) | |
tree | e4602392753c06e0f769acc38d0c4cf1cd8db630 /juick-server/src/test/java | |
parent | eeb59ea1f2e2bd4307573d01238c8c4ce35d4179 (diff) |
server: case-insensitive subscriptions command
Diffstat (limited to 'juick-server/src/test/java')
-rw-r--r-- | juick-server/src/test/java/com/juick/server/tests/ServerTests.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/juick-server/src/test/java/com/juick/server/tests/ServerTests.java b/juick-server/src/test/java/com/juick/server/tests/ServerTests.java index 692cc182..4a495a6e 100644 --- a/juick-server/src/test/java/com/juick/server/tests/ServerTests.java +++ b/juick-server/src/test/java/com/juick/server/tests/ServerTests.java @@ -688,6 +688,8 @@ public class ServerTests { commandsManager.processCommand(user, String.format("#%d", mid), emptyUri).getText().startsWith("@me")); int readerUid = userService.createUser("dummyReader", "dummySecret"); User readerUser = userService.getUserByUID(readerUid).orElse(new User()); + assertThat(commandsManager.processCommand(readerUser, "s", emptyUri).getText().startsWith("You are subscribed to"), is(true)); + assertThat(commandsManager.processCommand(readerUser, "S", emptyUri).getText().startsWith("You are subscribed to"), is(true)); assertEquals("should be subscribed", "Subscribed", commandsManager.processCommand(readerUser, "S #" + mid, emptyUri).getText()); assertEquals("should be favorited", "Message is added to your recommendations", |