Praktikum 4: mehr Tests
This commit is contained in:
parent
ce4f5bf449
commit
fc4913a024
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user