Praktikum 4: port für test angepasst, 5000 ist nicht frei auf Servern
This commit is contained in:
parent
02e2165924
commit
123f6d7883
|
@ -17,7 +17,7 @@ public class KlausurenServerTest {
|
||||||
|
|
||||||
@BeforeClass
|
@BeforeClass
|
||||||
public static void before() {
|
public static void before() {
|
||||||
new KlausurenServer(5000);
|
new KlausurenServer(6767);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -41,7 +41,7 @@ public class KlausurenServerTest {
|
||||||
|
|
||||||
private String sendRequest(String command) {
|
private String sendRequest(String command) {
|
||||||
try {
|
try {
|
||||||
socket = new Socket("localhost", 5000);
|
socket = new Socket("localhost", 6767);
|
||||||
BufferedReader reader = new BufferedReader(new InputStreamReader(socket.getInputStream()));
|
BufferedReader reader = new BufferedReader(new InputStreamReader(socket.getInputStream()));
|
||||||
BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(socket.getOutputStream()));
|
BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(socket.getOutputStream()));
|
||||||
writer.write(command);
|
writer.write(command);
|
||||||
|
|
Loading…
Reference in New Issue