annotate src/fdl/test/transfer/two/TestTransfer.java @ 53:629b6cfbd37f

metaprotocol ring
author axmo
date Mon, 19 Jan 2009 17:49:14 +0900
parents
children 82a292aa41ad
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
53
629b6cfbd37f metaprotocol ring
axmo
parents:
diff changeset
1 package fdl.test.transfer.two;
629b6cfbd37f metaprotocol ring
axmo
parents:
diff changeset
2
629b6cfbd37f metaprotocol ring
axmo
parents:
diff changeset
3 import static org.junit.Assert.*;
629b6cfbd37f metaprotocol ring
axmo
parents:
diff changeset
4 import org.junit.Test;
629b6cfbd37f metaprotocol ring
axmo
parents:
diff changeset
5
629b6cfbd37f metaprotocol ring
axmo
parents:
diff changeset
6 public class TestTransfer {
629b6cfbd37f metaprotocol ring
axmo
parents:
diff changeset
7 @Test
629b6cfbd37f metaprotocol ring
axmo
parents:
diff changeset
8 public void testTransfer() throws InterruptedException {
629b6cfbd37f metaprotocol ring
axmo
parents:
diff changeset
9 int port = 10001;
629b6cfbd37f metaprotocol ring
axmo
parents:
diff changeset
10 Server server = new Server("Server1",port);
629b6cfbd37f metaprotocol ring
axmo
parents:
diff changeset
11 server.start();
629b6cfbd37f metaprotocol ring
axmo
parents:
diff changeset
12 server.join();
629b6cfbd37f metaprotocol ring
axmo
parents:
diff changeset
13 TestSend send = new TestSend(port);
629b6cfbd37f metaprotocol ring
axmo
parents:
diff changeset
14 send.start();
629b6cfbd37f metaprotocol ring
axmo
parents:
diff changeset
15
629b6cfbd37f metaprotocol ring
axmo
parents:
diff changeset
16 send.join();
629b6cfbd37f metaprotocol ring
axmo
parents:
diff changeset
17
629b6cfbd37f metaprotocol ring
axmo
parents:
diff changeset
18 assertEquals(1,1);
629b6cfbd37f metaprotocol ring
axmo
parents:
diff changeset
19 }
629b6cfbd37f metaprotocol ring
axmo
parents:
diff changeset
20 }