Replaced bitwise operator usage with java lang APIs for robustness. Had found that...
[packetcable.git] / packetcable-driver / src / test / java / org / umu / cops / stack / COPSSyncStateMsgTest.java
index 4f3313d4055f27f183d0ea497459349004fd148e..55349668669595b85b9877ccedcfa6643d6a4a72 100644 (file)
@@ -19,15 +19,14 @@ import java.net.Socket;
  */
 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