aboutsummaryrefslogtreecommitdiff
path: root/juick-core/src/test/java
diff options
context:
space:
mode:
Diffstat (limited to 'juick-core/src/test/java')
-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();