aboutsummaryrefslogtreecommitdiff
path: root/juick-core
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2017-08-08 15:31:18 +0300
committerGravatar Vitaly Takmazov2017-08-08 16:03:54 +0300
commit9031366d618a23237a8b7cb35ed65a8a953c48d7 (patch)
tree2c33ff8540b544b778f82e64091d768f8f9345a6 /juick-core
parentf80c1fe15dd13618a3a79326d5a7f07c9deeb379 (diff)
thread test
Diffstat (limited to 'juick-core')
-rw-r--r--juick-core/src/test/java/com/juick/test/util/MockUtils.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/juick-core/src/test/java/com/juick/test/util/MockUtils.java b/juick-core/src/test/java/com/juick/test/util/MockUtils.java
index 72204cfe..8426cde8 100644
--- a/juick-core/src/test/java/com/juick/test/util/MockUtils.java
+++ b/juick-core/src/test/java/com/juick/test/util/MockUtils.java
@@ -38,6 +38,14 @@ public class MockUtils {
return msg;
}
+ public static Message mockReply(Integer mid, Integer rid, final User user, Integer replyTo, final String messageText) {
+ Message msg = mockMessage(mid, user, messageText);
+
+ msg.setRid(rid);
+ msg.setReplyto(replyTo);
+ return msg;
+ }
+
public static User mockUser(final int uid, final String name, final String password) {
User user = new User();