aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/com/juick
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/java/com/juick')
-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());
}
}