harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From odea...@apache.org
Subject svn commit: r964012 - /harmony/enhanced/java/trunk/classlib/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/InetSocketAddressTest.java
Date Wed, 14 Jul 2010 11:47:37 GMT
Author: odeakin
Date: Wed Jul 14 11:47:37 2010
New Revision: 964012

URL: http://svn.apache.org/viewvc?rev=964012&view=rev
Log:
Don't assume that the local host name will be "localhost".

Modified:
    harmony/enhanced/java/trunk/classlib/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/InetSocketAddressTest.java

Modified: harmony/enhanced/java/trunk/classlib/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/InetSocketAddressTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/trunk/classlib/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/InetSocketAddressTest.java?rev=964012&r1=964011&r2=964012&view=diff
==============================================================================
--- harmony/enhanced/java/trunk/classlib/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/InetSocketAddressTest.java
(original)
+++ harmony/enhanced/java/trunk/classlib/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/InetSocketAddressTest.java
Wed Jul 14 11:47:37 2010
@@ -32,8 +32,9 @@ public class InetSocketAddressTest exten
         // regression test for Harmony-1042
         InetSocketAddress address = new InetSocketAddress("127.0.0.1", 0);
         assertEquals("/127.0.0.1:0", address.toString());
-        assertEquals("localhost", address.getHostName());
-        assertEquals("localhost/127.0.0.1:0", address.toString());
+        String localhostName = address.getHostName();
+        assertNotNull(localhostName);
+        assertEquals(localhostName+"/127.0.0.1:0", address.toString());
     }
     
     /**



Mime
View raw message