aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/test/java/com/juick/service
diff options
context:
space:
mode:
authorGravatar Alexander Alexeev2016-11-25 04:07:29 +0700
committerGravatar Alexander Alexeev2016-11-25 04:16:32 +0700
commitc343add1f073437e8f2e9506b51ea1eab0f407a2 (patch)
treea29e97ee8aabccacab9a10935b801e3a5dd89790 /juick-server/src/test/java/com/juick/service
parentf0c89530b6fc9abed18d52c4b6dc433e5d65a4b2 (diff)
messageService.getMyFeed() is fixed, simple test is added
Diffstat (limited to 'juick-server/src/test/java/com/juick/service')
-rw-r--r--juick-server/src/test/java/com/juick/service/MessageServiceTest.java23
1 files changed, 23 insertions, 0 deletions
diff --git a/juick-server/src/test/java/com/juick/service/MessageServiceTest.java b/juick-server/src/test/java/com/juick/service/MessageServiceTest.java
new file mode 100644
index 00000000..5f2c2b05
--- /dev/null
+++ b/juick-server/src/test/java/com/juick/service/MessageServiceTest.java
@@ -0,0 +1,23 @@
+package com.juick.service;
+
+import com.juick.configuration.RepositoryConfiguration;
+import org.junit.Test;
+import org.springframework.test.context.ContextConfiguration;
+import org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests;
+
+import javax.inject.Inject;
+
+/**
+ * Created by aalexeev on 11/25/16.
+ */
+@ContextConfiguration(classes = RepositoryConfiguration.class)
+public class MessageServiceTest extends AbstractJUnit4SpringContextTests {
+ @Inject
+ private MessagesService messagesService;
+
+
+ @Test
+ public void getMyFeed() {
+ messagesService.getMyFeed(1, 1000000);
+ }
+}