alles wieder grün, und das nur durch auskommentieren von ein paar System outs
This commit is contained in:
parent
a7cdce30d9
commit
d3459a5077
@ -1,4 +1,4 @@
|
||||
A1:Relativitätstheorie:Einstein:15
|
||||
A1:Relativitätstheorie:Einstein:15
|
||||
B2:Quantenmechanik:Heisenberg:17
|
||||
C2:Quantenphysik:Planck:5
|
||||
T4:Thermodynamik:Kelvin:78
|
||||
|
@ -59,12 +59,11 @@ public class KlausurenServerTest2 {
|
||||
|
||||
@Test //alles in einer Test-Methode, weil die richtige Reihenfolge sonst nicht gewährleistet ist!
|
||||
public void all() throws IOException {
|
||||
|
||||
System.out.println("TEST: del mail1");
|
||||
opensocket();
|
||||
ausSo.println("del mail1");
|
||||
line = einSo.readLine();
|
||||
System.out.println(line);
|
||||
//System.out.println(line);
|
||||
assertEquals(line,"0");
|
||||
closesocket();
|
||||
System.out.println("TEST: OK"+"\n");
|
||||
@ -73,7 +72,7 @@ public class KlausurenServerTest2 {
|
||||
opensocket();
|
||||
ausSo.println("put mail2 22,23,24");
|
||||
line = einSo.readLine();
|
||||
System.out.println(line);
|
||||
//System.out.println(line);
|
||||
assertTrue(line.equals("1 ")||line.equals("1"));
|
||||
closesocket();
|
||||
System.out.println("TEST: OK"+"\n");
|
||||
@ -82,7 +81,7 @@ public class KlausurenServerTest2 {
|
||||
opensocket();
|
||||
ausSo.println("put mail2 33,34,35");
|
||||
line = einSo.readLine();
|
||||
System.out.println(line);
|
||||
//System.out.println(line);
|
||||
assertEquals(line,"1 22,23,24");
|
||||
closesocket();
|
||||
System.out.println("TEST: OK"+"\n");
|
||||
@ -91,7 +90,7 @@ public class KlausurenServerTest2 {
|
||||
opensocket();
|
||||
ausSo.println("get mail2");
|
||||
line = einSo.readLine();
|
||||
System.out.println(line);
|
||||
//System.out.println(line);
|
||||
assertEquals(line,"1 33,34,35");
|
||||
closesocket();
|
||||
System.out.println("TEST: OK"+"\n");
|
||||
@ -100,7 +99,7 @@ public class KlausurenServerTest2 {
|
||||
opensocket();
|
||||
ausSo.println("put mail3 44,45,46");
|
||||
line = einSo.readLine();
|
||||
System.out.println(line);
|
||||
//System.out.println(line);
|
||||
assertTrue(line.equals("1 ")||line.equals("1"));
|
||||
closesocket();
|
||||
System.out.println("TEST: OK"+"\n");
|
||||
@ -109,7 +108,7 @@ public class KlausurenServerTest2 {
|
||||
opensocket();
|
||||
ausSo.println("put mail5 44,45");
|
||||
line = einSo.readLine();
|
||||
System.out.println(line);
|
||||
//System.out.println(line);
|
||||
assertTrue(line.equals("1 ")||line.equals("1"));
|
||||
closesocket();
|
||||
System.out.println("TEST: OK"+"\n");
|
||||
@ -118,7 +117,7 @@ public class KlausurenServerTest2 {
|
||||
opensocket();
|
||||
ausSo.println("getall");
|
||||
line = einSo.readLine();
|
||||
System.out.println(line);
|
||||
//System.out.println(line);
|
||||
assertTrue(line.equals("1 [33,34,35],[44,45,46]")||line.equals("1 [44,45,46],[33,34,35]"));
|
||||
// assertEquals(line,"1 [33,34,35],[44,45,46]");
|
||||
closesocket();
|
||||
@ -128,7 +127,7 @@ public class KlausurenServerTest2 {
|
||||
opensocket();
|
||||
ausSo.println("del mail2");
|
||||
line = einSo.readLine();
|
||||
System.out.println(line);
|
||||
//System.out.println(line);
|
||||
assertEquals(line,"1 33,34,35");
|
||||
closesocket();
|
||||
System.out.println("TEST: OK"+"\n");
|
||||
@ -137,7 +136,7 @@ public class KlausurenServerTest2 {
|
||||
opensocket();
|
||||
ausSo.println("del mail3");
|
||||
line = einSo.readLine();
|
||||
System.out.println(line);
|
||||
//System.out.println(line);
|
||||
assertEquals(line,"1 44,45,46");
|
||||
closesocket();
|
||||
System.out.println("TEST: OK"+"\n");
|
||||
@ -146,7 +145,7 @@ public class KlausurenServerTest2 {
|
||||
opensocket();
|
||||
ausSo.println("get mail2");
|
||||
line = einSo.readLine();
|
||||
System.out.println(line);
|
||||
//System.out.println(line);
|
||||
assertEquals(line,"0");
|
||||
closesocket();
|
||||
System.out.println("TEST: OK"+"\n");
|
||||
@ -155,7 +154,7 @@ public class KlausurenServerTest2 {
|
||||
opensocket();
|
||||
ausSo.println("getall");
|
||||
line = einSo.readLine();
|
||||
System.out.println(line);
|
||||
//System.out.println(line);
|
||||
assertEquals(line,"1 [44,45]");
|
||||
closesocket();
|
||||
System.out.println("TEST: OK"+"\n");
|
||||
@ -164,7 +163,7 @@ public class KlausurenServerTest2 {
|
||||
opensocket();
|
||||
ausSo.println("put mail2 45,46");
|
||||
line = einSo.readLine();
|
||||
System.out.println(line);
|
||||
//System.out.println(line);
|
||||
assertTrue(line.equals("1 ")||line.equals("1"));
|
||||
closesocket();
|
||||
System.out.println("TEST: OK"+"\n");
|
||||
@ -173,7 +172,7 @@ public class KlausurenServerTest2 {
|
||||
opensocket();
|
||||
ausSo.println("put mail3 44,46");
|
||||
line = einSo.readLine();
|
||||
System.out.println(line);
|
||||
//System.out.println(line);
|
||||
assertTrue(line.equals("1 ")||line.equals("1"));
|
||||
closesocket();
|
||||
System.out.println("TEST: OK"+"\n");
|
||||
@ -182,7 +181,7 @@ public class KlausurenServerTest2 {
|
||||
opensocket();
|
||||
ausSo.println("getall");
|
||||
line = einSo.readLine();
|
||||
System.out.println(line);
|
||||
//System.out.println(line);
|
||||
assertTrue(line.equals("1 [44,45],[44,46],[45,46]")||line.equals("1 [44,45],[45,46],[44,46]")||line.equals("1 [44,46],[44,45],[45,46]")||line.equals("1 [44,46],[45,46],[44,45]")||line.equals("1 [45,46],[44,45],[44,46]")||line.equals("1 [45,46],[44,46],[44,45]")||line.equals("1 [44,45,46]"));
|
||||
// assertEquals(line,"1 [44,45],[44,46],[45,46]");
|
||||
closesocket();
|
||||
@ -192,7 +191,7 @@ public class KlausurenServerTest2 {
|
||||
opensocket();
|
||||
ausSo.println("stop");
|
||||
line = einSo.readLine();
|
||||
System.out.println(line);
|
||||
//System.out.println(line);
|
||||
assertTrue(line.equals("1 ")||line.equals("1"));
|
||||
closesocket();
|
||||
System.out.println("TEST: OK"+"\n");
|
||||
|
Loading…
Reference in New Issue
Block a user