114
|
1 package fdl.old.test.transfer;
|
48
|
2
|
66
|
3 import static org.junit.Assert.assertEquals;
|
|
4
|
48
|
5 import org.junit.Test;
|
|
6
|
|
7 public class TestTransfer {
|
|
8 @Test
|
|
9 public void testTransfer() {
|
|
10 int port1 = 10001;
|
|
11 int port2 = 10002;
|
|
12 Server server1 = new Server("Server1",port1);
|
|
13 server1.start();
|
|
14 Server server2 = new Server("Server2",port2);
|
|
15 server2.start();
|
|
16 ProtocolEngine pe = new ProtocolEngine("ProtocolEngine",port1,port2);
|
|
17 pe.start();
|
|
18 try {
|
|
19 pe.join();
|
|
20 } catch (InterruptedException e) {
|
|
21 e.printStackTrace();
|
|
22 }
|
|
23 assertEquals(1,1);
|
|
24 }
|
|
25 }
|