From 439d74c975c6485b501bf1cbbbc04ab47fde9cec Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sat, 16 Jan 2016 14:17:21 +0300 Subject: more tests --- src/test/java/com/juick/tests/ApiTests.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/test') 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()); } } -- cgit v1.2.3