You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2014/04/09 00:39:49 UTC

svn commit: r1585859 - /commons/proper/jcs/trunk/src/test/org/apache/commons/jcs/auxiliary/remote/server/BasicRemoteCacheClientServerUnitTest.java

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());
     }
 }