harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From py...@apache.org
Subject svn commit: r432187 - /incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/net/DatagramSocketTest.java
Date Thu, 17 Aug 2006 09:11:13 GMT
Author: pyang
Date: Thu Aug 17 02:11:12 2006
New Revision: 432187

URL: http://svn.apache.org/viewvc?rev=432187&view=rev
Log:
Patch applied for HARMONY-1204 ([classlib][luni] tests.api.java.net.DatagramSocketTest.test_connectLjava_net_InetAddressI()
is dependent on unnecessary external server.)

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/net/DatagramSocketTest.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/net/DatagramSocketTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/net/DatagramSocketTest.java?rev=432187&r1=432186&r2=432187&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/net/DatagramSocketTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/net/DatagramSocketTest.java
Thu Aug 17 02:11:12 2006
@@ -161,8 +161,7 @@
 	public void test_connectLjava_net_InetAddressI() {
 		try {
 			ds = new java.net.DatagramSocket();
-			InetAddress inetAddress = InetAddress
-					.getByName(Support_Configuration.HomeAddress);
+			InetAddress inetAddress = InetAddress.getLocalHost();
 			int portNumber = Support_PortManager.getNextPort();
 			ds.connect(inetAddress, portNumber);
 			assertTrue("Incorrect InetAddress", ds.getInetAddress().equals(
@@ -553,8 +552,7 @@
 	public void test_disconnect() {
 		try {
 			ds = new java.net.DatagramSocket();
-			InetAddress inetAddress = InetAddress
-					.getByName(Support_Configuration.HomeAddress);
+			InetAddress inetAddress = InetAddress.getLocalHost();
 			int portNumber = Support_PortManager.getNextPort();
 			ds.connect(inetAddress, portNumber);
 			ds.disconnect();



Mime
View raw message