view src/fdl/test/metaTransfer/TestTransfer.java @ 52:00d2203fac80

MetaProtocolEngine still
author axmo
date Fri, 09 Jan 2009 16:09:08 +0900
parents
children 629b6cfbd37f
line wrap: on
line source

package fdl.test.metaTransfer;

import static org.junit.Assert.*;
import org.junit.Test;

public class TestTransfer {
	@Test
	public void testTransfer() {
		int port1 = 10001;
		int port2 = 10002;
		Server server2 = new Server("Server2",port2);
		server2.start();
		Server server1 = new Server("Server1",port1);
		server1.start();
		try {
			server1.join();
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
		TestSend send = new TestSend();
		send.start();
		try {
			send.join();
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
		assertEquals(1,1);
	}
}