aboutsummaryrefslogtreecommitdiff
path: root/juick-server-jdbc/src/test/java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2017-07-20 04:49:40 -0400
committerGravatar Vitaly Takmazov2017-07-20 04:49:40 -0400
commit9071800ccf03456191a971783f9078c7dc4a39f2 (patch)
tree9aaccf7a10f228acced2408acedc2ccc90685eb1 /juick-server-jdbc/src/test/java
parent2a0add45390f579396d464764c634d0289d41c7e (diff)
dependency updates and minor project layout update
Diffstat (limited to 'juick-server-jdbc/src/test/java')
-rw-r--r--juick-server-jdbc/src/test/java/com/juick/tests/util/MockUtils.java34
1 files changed, 0 insertions, 34 deletions
diff --git a/juick-server-jdbc/src/test/java/com/juick/tests/util/MockUtils.java b/juick-server-jdbc/src/test/java/com/juick/tests/util/MockUtils.java
deleted file mode 100644
index 5344dd23..00000000
--- a/juick-server-jdbc/src/test/java/com/juick/tests/util/MockUtils.java
+++ /dev/null
@@ -1,34 +0,0 @@
-package com.juick.tests.util;
-
-import com.juick.Message;
-import com.juick.User;
-import org.apache.commons.text.RandomStringGenerator;
-
-import java.util.Date;
-
-/**
- * Created by vitalyster on 12.01.2017.
- */
-public class MockUtils {
- final static RandomStringGenerator generator = new RandomStringGenerator.Builder().withinRange('a', 'z').build();
- public static Message mockMessage(Integer mid, final User user, final String messageText) {
- Message msg = new Message();
-
- msg.setMid(mid);
- msg.setUser(user);
- msg.setText(messageText == null ? generator.generate(24) : messageText);
- msg.setDate(new Date());
- return msg;
- }
-
- public static User mockUser(final int uid, final String name, final String password) {
- User user = new User();
-
- user.setName(name);
- user.setUid(uid);
- user.setCredentials(password);
- user.setBanned(false);
-
- return user;
- }
-}