diff options
author | Vitaly Takmazov | 2019-04-07 02:12:25 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2019-04-07 02:12:25 +0300 |
commit | 97b37acdaee5d1665c2393254bc764bb4562729c (patch) | |
tree | 5ace12bc5b9aea564b3cb2acd5631267eae33474 /src/test/java/com/juick | |
parent | e359e0788d4d9c675a88daaebda416f38e2ac03a (diff) |
Replies should have properties too
Diffstat (limited to 'src/test/java/com/juick')
-rw-r--r-- | src/test/java/com/juick/server/tests/ServerTests.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/test/java/com/juick/server/tests/ServerTests.java b/src/test/java/com/juick/server/tests/ServerTests.java index 65e19b89..cc0044b9 100644 --- a/src/test/java/com/juick/server/tests/ServerTests.java +++ b/src/test/java/com/juick/server/tests/ServerTests.java @@ -2023,11 +2023,11 @@ public class ServerTests { @Test public void messagePropertiesTest() { int mid = messagesService.createMessage(ugnich.getUid(), "YO", null, null); - messagesService.setMessageProperty(mid, "tg_id", "YO"); - assertThat(messagesService.getMessageProperty(mid, "tg_id"), is("YO")); - messagesService.setMessageProperty(mid, "tg_id", "YO2"); - assertThat(messagesService.getMessageProperty(mid, "tg_id"), is("YO2")); - messagesService.setMessageProperty(mid, "tg_id", ""); - assertThat(messagesService.getMessageProperty(mid, "tg_id"), is(StringUtils.EMPTY)); + messagesService.setMessageProperty(mid, 0,"tg_id", "YO"); + assertThat(messagesService.getMessageProperty(mid, 0,"tg_id"), is("YO")); + messagesService.setMessageProperty(mid, 0,"tg_id", "YO2"); + assertThat(messagesService.getMessageProperty(mid, 0,"tg_id"), is("YO2")); + messagesService.setMessageProperty(mid, 0, "tg_id", ""); + assertThat(messagesService.getMessageProperty(mid, 0,"tg_id"), is(StringUtils.EMPTY)); } } |