From fc4913a024cb64d56ac9ffc345f1c72e04725203 Mon Sep 17 00:00:00 2001 From: Johannes Theiner Date: Sat, 19 May 2018 11:58:32 +0200 Subject: [PATCH] Praktikum 4: mehr Tests --- .../java/de/joethei/hs/java2/tests/KlausurenServerTest.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/test/java/de/joethei/hs/java2/tests/KlausurenServerTest.java b/src/test/java/de/joethei/hs/java2/tests/KlausurenServerTest.java index cde2814..308c6f1 100644 --- a/src/test/java/de/joethei/hs/java2/tests/KlausurenServerTest.java +++ b/src/test/java/de/joethei/hs/java2/tests/KlausurenServerTest.java @@ -25,6 +25,7 @@ public class KlausurenServerTest { @Order(order = 1) public void test() { assertEquals("Hallo Welt", sendRequest("test")); + assertEquals("0", sendRequest("getall")); } @Test(timeout = 120L) @@ -46,6 +47,8 @@ public class KlausurenServerTest { public void get() { assertEquals("1 5, 6, 7, 8", sendRequest("get max@maier")); assertEquals("0", sendRequest("get max@müller")); + assertEquals("0", sendRequest("get")); + assertEquals("0", sendRequest("get max@müller 42")); } @Test(timeout = 500L) @@ -53,6 +56,7 @@ public class KlausurenServerTest { public void del() { assertEquals("0", sendRequest("del max@maier baum")); assertEquals("1 5, 6, 7, 8", sendRequest("del max@maier")); + assertEquals("0", sendRequest("del max@maier")); assertEquals("0", sendRequest("get max@maier")); } @Test(timeout = 2000L)