From 97b37acdaee5d1665c2393254bc764bb4562729c Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sun, 7 Apr 2019 02:12:25 +0300 Subject: Replies should have properties too --- src/test/java/com/juick/server/tests/ServerTests.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/test/java/com/juick') 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)); } } -- cgit v1.2.3