aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/com/juick/tests
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-01-16 14:17:21 +0300
committerGravatar Vitaly Takmazov2016-01-16 14:17:21 +0300
commit439d74c975c6485b501bf1cbbbc04ab47fde9cec (patch)
tree7c84abfe4b4d7be3545c315e8f9b0c1f14dfc312 /src/test/java/com/juick/tests
parentb5b9d41d91f038780c8cf29ddacde82087e43a5a (diff)
more tests
Diffstat (limited to 'src/test/java/com/juick/tests')
-rw-r--r--src/test/java/com/juick/tests/ApiTests.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/java/com/juick/tests/ApiTests.java b/src/test/java/com/juick/tests/ApiTests.java
index 44cd7c1b..ccd53dde 100644
--- a/src/test/java/com/juick/tests/ApiTests.java
+++ b/src/test/java/com/juick/tests/ApiTests.java
@@ -9,6 +9,7 @@ import org.junit.Before;
import org.junit.Test;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.datasource.DriverManagerDataSource;
+import sun.jvm.hotspot.utilities.MessageQueue;
import java.io.FileInputStream;
import java.io.IOException;
@@ -46,6 +47,10 @@ public class ApiTests {
Message msg = MessagesQueries.getMessage(jdbc, 2817722);
User ugnich = msg.getUser();
Assert.assertEquals("ugnich", ugnich.getUName());
+ org.junit.Assert.assertEquals("ugnich", MessagesQueries.getMessageAuthor(jdbc, 281772).getUName());
Assert.assertEquals("Microsoft", msg.Tags.get(0));
+ Message reply = MessagesQueries.getReply(jdbc, 2817722, 8);
+ User linda = reply.getUser();
+ Assert.assertEquals("Linda-chan", linda.getUName());
}
}