Praktikum 4: port für test angepasst, 5000 ist nicht frei auf Servern

This commit is contained in:
Johannes Theiner 2018-05-12 19:28:28 +02:00
parent 02e2165924
commit 123f6d7883

View File

@ -17,7 +17,7 @@ public class KlausurenServerTest {
@BeforeClass
public static void before() {
new KlausurenServer(5000);
new KlausurenServer(6767);
}
@Test
@ -41,7 +41,7 @@ public class KlausurenServerTest {
private String sendRequest(String command) {
try {
socket = new Socket("localhost", 5000);
socket = new Socket("localhost", 6767);
BufferedReader reader = new BufferedReader(new InputStreamReader(socket.getInputStream()));
BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(socket.getOutputStream()));
writer.write(command);