harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ghar...@apache.org
Subject svn commit: r419866 - /incubator/harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/tests/java/nio/channels/SocketChannelTest.java
Date Fri, 07 Jul 2006 11:08:05 GMT
Author: gharley
Date: Fri Jul  7 04:08:04 2006
New Revision: 419866

URL: http://svn.apache.org/viewvc?rev=419866&view=rev
Log:
HARMONY 755 : [nio] Refine tests in o.a.h.tests.java.nio.channels.SocketChannelTest

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/tests/java/nio/channels/SocketChannelTest.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/tests/java/nio/channels/SocketChannelTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/tests/java/nio/channels/SocketChannelTest.java?rev=419866&r1=419865&r2=419866&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/tests/java/nio/channels/SocketChannelTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/tests/java/nio/channels/SocketChannelTest.java
Fri Jul  7 04:08:04 2006
@@ -1719,35 +1719,6 @@
     // End of original tests. Test method for CFII with real data.
     // -------------------------------------------------------------------
 
-    public void testConnect_Lock() throws Exception {
-        final Socket sock = new Socket();
-        new Thread() {
-            public void run() {
-                try {
-                    sock.connect(localAddr2);
-                } catch (Exception e) {
-                    System.out.println("in thread1" + e.getMessage());
-                }
-                if (!sock.isClosed())
-                    System.out.println("T1 not closed");
-            }
-        }.start();
-        new Thread() {
-            public void run() {
-                try {
-                    Thread.sleep(200);
-                    sock.connect(localAddr1);
-                } catch (Exception e) {
-                    System.out.println("in thread2" + e.getMessage());
-                }
-                if (!sock.isClosed())
-                    System.out.println("T2 not closed");
-            }
-        }.start();
-        Thread.sleep(2000);
-        sock.close();
-    }
-
     /**
      * @tests java.nio.channels.SocketChannel#read(ByteBuffer)
      */



Mime
View raw message