annotate src/fdl/old/test/transfer/TestTransfer.java @ 114:3b877c9a44f5

gather old packages
author kazz
date Mon, 11 Oct 2010 14:29:37 +0900
parents src/fdl/test/transfer/TestTransfer.java@82a292aa41ad
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
114
3b877c9a44f5 gather old packages
kazz
parents: 66
diff changeset
1 package fdl.old.test.transfer;
48
e457d6c8907a (no commit message)
axmo
parents:
diff changeset
2
66
one
parents: 53
diff changeset
3 import static org.junit.Assert.assertEquals;
one
parents: 53
diff changeset
4
48
e457d6c8907a (no commit message)
axmo
parents:
diff changeset
5 import org.junit.Test;
e457d6c8907a (no commit message)
axmo
parents:
diff changeset
6
e457d6c8907a (no commit message)
axmo
parents:
diff changeset
7 public class TestTransfer {
e457d6c8907a (no commit message)
axmo
parents:
diff changeset
8 @Test
e457d6c8907a (no commit message)
axmo
parents:
diff changeset
9 public void testTransfer() {
e457d6c8907a (no commit message)
axmo
parents:
diff changeset
10 int port1 = 10001;
e457d6c8907a (no commit message)
axmo
parents:
diff changeset
11 int port2 = 10002;
e457d6c8907a (no commit message)
axmo
parents:
diff changeset
12 Server server1 = new Server("Server1",port1);
e457d6c8907a (no commit message)
axmo
parents:
diff changeset
13 server1.start();
e457d6c8907a (no commit message)
axmo
parents:
diff changeset
14 Server server2 = new Server("Server2",port2);
e457d6c8907a (no commit message)
axmo
parents:
diff changeset
15 server2.start();
e457d6c8907a (no commit message)
axmo
parents:
diff changeset
16 ProtocolEngine pe = new ProtocolEngine("ProtocolEngine",port1,port2);
e457d6c8907a (no commit message)
axmo
parents:
diff changeset
17 pe.start();
e457d6c8907a (no commit message)
axmo
parents:
diff changeset
18 try {
e457d6c8907a (no commit message)
axmo
parents:
diff changeset
19 pe.join();
e457d6c8907a (no commit message)
axmo
parents:
diff changeset
20 } catch (InterruptedException e) {
e457d6c8907a (no commit message)
axmo
parents:
diff changeset
21 e.printStackTrace();
e457d6c8907a (no commit message)
axmo
parents:
diff changeset
22 }
e457d6c8907a (no commit message)
axmo
parents:
diff changeset
23 assertEquals(1,1);
e457d6c8907a (no commit message)
axmo
parents:
diff changeset
24 }
e457d6c8907a (no commit message)
axmo
parents:
diff changeset
25 }