Commit c07e8b73 authored by Myriam Begel's avatar Myriam Begel

test and make should run

parent 7e0fa5a4
......@@ -7,6 +7,8 @@ import org.junit.BeforeClass;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import org.junit.runners.model.TestTimedOutException;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
......@@ -146,7 +148,7 @@ public class ServerConnectionTest{
@Test(timeout = 1000)
public void testSendEventToSpecificClient(){
try{
//thrown.expect(TestTimedOutException.class);
thrown.expect(TestTimedOutException.class);
server.sendEventToSpecificClient(e,0);
ObjectForTest event1 = (ObjectForTest)client1.getInputStream().readObject();
assertEquals("Network ServerConnection.sendEventToSpecificClient failed", e.str, event1.str);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment