harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From py...@apache.org
Subject svn commit: r427413 - /incubator/harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/tests/java/nio/channels/DatagramChannelTest.java
Date Tue, 01 Aug 2006 02:55:54 GMT
Author: pyang
Date: Mon Jul 31 19:55:54 2006
New Revision: 427413

URL: http://svn.apache.org/viewvc?rev=427413&view=rev
Log:
Fix for HARMONY-1004 ( [classlib][nio] Remove two magic numbers from o.a.h.tests.java.nio.channels.DatagramChannelTest)

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

Modified: incubator/harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/tests/java/nio/channels/DatagramChannelTest.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/DatagramChannelTest.java?rev=427413&r1=427412&r2=427413&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/tests/java/nio/channels/DatagramChannelTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/tests/java/nio/channels/DatagramChannelTest.java
Mon Jul 31 19:55:54 2006
@@ -386,7 +386,6 @@
 
     private void assertSocketActionBeforeConnect(DatagramSocket s)
             throws IOException {
-        this.datagramSocket2 = new DatagramSocket(1082);
         s.connect(localAddr2);
         assertFalse(this.channel1.isConnected());
         assertFalse(s.isConnected());
@@ -403,7 +402,6 @@
     private void assertSocketActionAfterConnect(DatagramSocket s)
             throws IOException {
         assertEquals(s.getPort(), localAddr1.getPort());
-        this.datagramSocket2 = new DatagramSocket(1082);
         s.connect(localAddr2);
         assertTrue(this.channel1.isConnected());
         assertTrue(s.isConnected());



Mime
View raw message