Changeset 475
- Timestamp:
- 07/22/07 18:36:10 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
version_0/java/src/com/rubyeventmachine/tests/ApplicationTest.java
r467 r475 37 37 import org.junit.BeforeClass; 38 38 import org.junit.Test; 39 import org.junit.Assert; 39 40 import java.net.*; 40 41 import java.io.*; … … 86 87 87 88 @Test 88 public void testTcpServer() {89 public void testTcpServer() throws EmReactorException { 89 90 final Application a = new Application(); 90 91 final SocketAddress saddr = new InetSocketAddress ("127.0.0.1", 9008); 91 92 a.run (new Runnable() { 92 93 public void run() { 93 a.startServer (saddr, new F()); 94 try { 95 a.startServer (saddr, new F()); 96 } catch (EmReactorException e) { Assert.fail(); } 94 97 new Thread() { 95 98 public void run() { version_0/java/src/com/rubyeventmachine/tests/ConnectTest.java
r467 r475 26 26 * 27 27 */ 28 29 /* $Id$ */30 28 31 29 … … 115 113 public final void test3() { 116 114 final Application a = new Application(); 117 C1 c = new C1 (a);118 115 a.run (new Runnable() { 119 116 public void run() {
