*/
public class COPSSyncStateMsgTest {
- private final static int testPort = 7777;
TestCOPSServer server;
Socket outSocket;
@Before
public void setup() throws Exception {
- server = new TestCOPSServer(testPort);
+ server = new TestCOPSServer();
server.start();
- outSocket = new Socket(InetAddress.getLocalHost(), testPort);
+ outSocket = new Socket(InetAddress.getLocalHost(), server.getPort());
}
@After