aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2019-04-07 02:12:25 +0300
committerGravatar Vitaly Takmazov2019-04-07 02:12:25 +0300
commit97b37acdaee5d1665c2393254bc764bb4562729c (patch)
tree5ace12bc5b9aea564b3cb2acd5631267eae33474 /src/test
parente359e0788d4d9c675a88daaebda416f38e2ac03a (diff)
Replies should have properties too
Diffstat (limited to 'src/test')
-rw-r--r--src/test/java/com/juick/server/tests/ServerTests.java12
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));
}
}