From 9031366d618a23237a8b7cb35ed65a8a953c48d7 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Tue, 8 Aug 2017 15:31:18 +0300 Subject: thread test --- juick-core/src/test/java/com/juick/test/util/MockUtils.java | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'juick-core/src/test/java/com/juick') 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(); -- cgit v1.2.3