Return-Path: X-Original-To: apmail-commons-commits-archive@minotaur.apache.org Delivered-To: apmail-commons-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DCDA411DD9 for ; Tue, 8 Apr 2014 22:15:46 +0000 (UTC) Received: (qmail 25594 invoked by uid 500); 8 Apr 2014 22:15:44 -0000 Delivered-To: apmail-commons-commits-archive@commons.apache.org Received: (qmail 25506 invoked by uid 500); 8 Apr 2014 22:15:42 -0000 Mailing-List: contact commits-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list commits@commons.apache.org Received: (qmail 25408 invoked by uid 99); 8 Apr 2014 22:15:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Apr 2014 22:15:40 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Apr 2014 22:15:39 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 8AD142388860; Tue, 8 Apr 2014 22:15:19 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1585852 - /commons/proper/jcs/trunk/src/test/org/apache/commons/jcs/auxiliary/remote/server/BasicRemoteCacheClientServerUnitTest.java Date: Tue, 08 Apr 2014 22:15:19 -0000 To: commits@commons.apache.org From: sebb@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20140408221519.8AD142388860@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: sebb Date: Tue Apr 8 22:15:19 2014 New Revision: 1585852 URL: http://svn.apache.org/r1585852 Log: Check that localhost resolves as expected 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=1585852&r1=1585851&r2=1585852&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:15:19 2014 @@ -19,6 +19,8 @@ package org.apache.commons.jcs.auxiliary * under the License. */ +import java.net.InetAddress; + import junit.framework.TestCase; import org.apache.commons.jcs.auxiliary.AuxiliaryCache; @@ -249,4 +251,9 @@ public class BasicRemoteCacheClientServe throw e; } } + + public void testLocalHost() throws Exception { + final InetAddress byName = InetAddress.getByName("localhost"); + assertTrue("Expected localhost ("+byName.getHostAddress()+") to be a loopback address", byName.isLoopbackAddress()); + } }