commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1585859 - /commons/proper/jcs/trunk/src/test/org/apache/commons/jcs/auxiliary/remote/server/BasicRemoteCacheClientServerUnitTest.java
Date Tue, 08 Apr 2014 22:39:49 GMT
Author: sebb
Date: Tue Apr  8 22:39:49 2014
New Revision: 1585859

URL: http://svn.apache.org/r1585859
Log:
Check if getLocalHost() really returns a local host

Modified:
    commons/proper/jcs/trunk/src/test/org/apache/commons/jcs/auxiliary/remote/server/BasicRemoteCacheClientServerUnitTest.java

Modified: commons/proper/jcs/trunk/src/test/org/apache/commons/jcs/auxiliary/remote/server/BasicRemoteCacheClientServerUnitTest.java
URL: http://svn.apache.org/viewvc/commons/proper/jcs/trunk/src/test/org/apache/commons/jcs/auxiliary/remote/server/BasicRemoteCacheClientServerUnitTest.java?rev=1585859&r1=1585858&r2=1585859&view=diff
==============================================================================
--- commons/proper/jcs/trunk/src/test/org/apache/commons/jcs/auxiliary/remote/server/BasicRemoteCacheClientServerUnitTest.java
(original)
+++ commons/proper/jcs/trunk/src/test/org/apache/commons/jcs/auxiliary/remote/server/BasicRemoteCacheClientServerUnitTest.java
Tue Apr  8 22:39:49 2014
@@ -254,7 +254,8 @@ public class BasicRemoteCacheClientServe
 
     public void testLocalHost() throws Exception {
         final InetAddress byName = InetAddress.getByName("localhost");
-        System.out.println("BasicRemoteCacheClientServerUnitTest:localhost="+byName);
         assertTrue("Expected localhost ("+byName.getHostAddress()+") to be a loopback address",
byName.isLoopbackAddress());
+        final InetAddress localHost = InetAddress.getLocalHost();
+        assertTrue("Expected getLocalHost() ("+localHost+") to return a site local address",
localHost.isSiteLocalAddress());
     }
 }



Mime
View raw message