Praktikum 4: mehr Tests
This commit is contained in:
parent
ce4f5bf449
commit
fc4913a024
|
@ -25,6 +25,7 @@ public class KlausurenServerTest {
|
||||||
@Order(order = 1)
|
@Order(order = 1)
|
||||||
public void test() {
|
public void test() {
|
||||||
assertEquals("Hallo Welt", sendRequest("test"));
|
assertEquals("Hallo Welt", sendRequest("test"));
|
||||||
|
assertEquals("0", sendRequest("getall"));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(timeout = 120L)
|
@Test(timeout = 120L)
|
||||||
|
@ -46,6 +47,8 @@ public class KlausurenServerTest {
|
||||||
public void get() {
|
public void get() {
|
||||||
assertEquals("1 5, 6, 7, 8", sendRequest("get max@maier"));
|
assertEquals("1 5, 6, 7, 8", sendRequest("get max@maier"));
|
||||||
assertEquals("0", sendRequest("get max@müller"));
|
assertEquals("0", sendRequest("get max@müller"));
|
||||||
|
assertEquals("0", sendRequest("get"));
|
||||||
|
assertEquals("0", sendRequest("get max@müller 42"));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(timeout = 500L)
|
@Test(timeout = 500L)
|
||||||
|
@ -53,6 +56,7 @@ public class KlausurenServerTest {
|
||||||
public void del() {
|
public void del() {
|
||||||
assertEquals("0", sendRequest("del max@maier baum"));
|
assertEquals("0", sendRequest("del max@maier baum"));
|
||||||
assertEquals("1 5, 6, 7, 8", sendRequest("del max@maier"));
|
assertEquals("1 5, 6, 7, 8", sendRequest("del max@maier"));
|
||||||
|
assertEquals("0", sendRequest("del max@maier"));
|
||||||
assertEquals("0", sendRequest("get max@maier"));
|
assertEquals("0", sendRequest("get max@maier"));
|
||||||
}
|
}
|
||||||
@Test(timeout = 2000L)
|
@Test(timeout = 2000L)
|
||||||
|
|
Loading…
Reference in New Issue