diff options
author | Vitaly Takmazov | 2016-01-16 14:17:21 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2016-01-16 14:17:21 +0300 |
commit | 439d74c975c6485b501bf1cbbbc04ab47fde9cec (patch) | |
tree | 7c84abfe4b4d7be3545c315e8f9b0c1f14dfc312 /src/test/java/com | |
parent | b5b9d41d91f038780c8cf29ddacde82087e43a5a (diff) |
more tests
Diffstat (limited to 'src/test/java/com')
-rw-r--r-- | src/test/java/com/juick/tests/ApiTests.java | 5 |
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()); } } |