Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@apache.org Received: (qmail 31345 invoked from network); 2 Jun 2003 10:04:52 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 2 Jun 2003 10:04:52 -0000 Received: (qmail 13738 invoked by uid 97); 2 Jun 2003 10:07:17 -0000 Delivered-To: qmlist-jakarta-archive-commons-dev@nagoya.betaversion.org Received: (qmail 13731 invoked from network); 2 Jun 2003 10:07:17 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 2 Jun 2003 10:07:17 -0000 Received: (qmail 31142 invoked by uid 500); 2 Jun 2003 10:04:49 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 31129 invoked by uid 500); 2 Jun 2003 10:04:48 -0000 Received: (qmail 31126 invoked from network); 2 Jun 2003 10:04:48 -0000 Received: from icarus.apache.org (208.185.179.13) by daedalus.apache.org with SMTP; 2 Jun 2003 10:04:48 -0000 Received: (qmail 66799 invoked by uid 1332); 2 Jun 2003 10:04:59 -0000 Date: 2 Jun 2003 10:04:48 -0000 Message-ID: <20030602100448.66790.qmail@icarus.apache.org> From: henning@apache.org To: jakarta-commons-sandbox-cvs@apache.org Subject: cvs commit: jakarta-commons-sandbox/configuration/src/test/org/apache/commons/configuration TestPropertiesConfiguration.java X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N henning 2003/06/02 03:04:47 Modified: configuration/src/test/org/apache/commons/configuration TestPropertiesConfiguration.java Log: Make the TestPropertiesConfiguration test case work again. If you want to pass a file name relative to a base directory, you must not pass an absolute file name but a relative. Revision Changes Path 1.11 +2 -2 jakarta-commons-sandbox/configuration/src/test/org/apache/commons/configuration/TestPropertiesConfiguration.java Index: TestPropertiesConfiguration.java =================================================================== RCS file: /home/cvs/jakarta-commons-sandbox/configuration/src/test/org/apache/commons/configuration/TestPropertiesConfiguration.java,v retrieving revision 1.10 retrieving revision 1.11 diff -u -r1.10 -r1.11 --- TestPropertiesConfiguration.java 24 Mar 2003 07:23:48 -0000 1.10 +++ TestPropertiesConfiguration.java 2 Jun 2003 10:04:47 -0000 1.11 @@ -123,7 +123,7 @@ PropertiesConfiguration pc = new PropertiesConfiguration(); pc.setBasePath(testBasePath2); - pc.setFileName("/conf/test.properties"); + pc.setFileName("conf/test.properties"); pc.load(); assertTrue("Make sure we have multiple keys", pc.getBoolean("test.boolean")); --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org