Return-Path: X-Original-To: apmail-logging-commits-archive@minotaur.apache.org Delivered-To: apmail-logging-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 ACE73C19B for ; Tue, 12 Jun 2012 08:54:40 +0000 (UTC) Received: (qmail 28573 invoked by uid 500); 12 Jun 2012 08:54:40 -0000 Delivered-To: apmail-logging-commits-archive@logging.apache.org Received: (qmail 28541 invoked by uid 500); 12 Jun 2012 08:54:40 -0000 Mailing-List: contact commits-help@logging.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@logging.apache.org Delivered-To: mailing list commits@logging.apache.org Received: (qmail 28507 invoked by uid 99); 12 Jun 2012 08:54:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Jun 2012 08:54:39 +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, 12 Jun 2012 08:54:36 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id B27202388860; Tue, 12 Jun 2012 08:54:15 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1349197 - /logging/log4j/branches/log4j12-bz53299/core/src/test/java/org/apache/log4j/PropertyConfiguratorTest.java Date: Tue, 12 Jun 2012 08:54:15 -0000 To: commits@logging.apache.org From: grobmeier@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120612085415.B27202388860@eris.apache.org> Author: grobmeier Date: Tue Jun 12 08:54:14 2012 New Revision: 1349197 URL: http://svn.apache.org/viewvc?rev=1349197&view=rev Log: fixed path in unit test Modified: logging/log4j/branches/log4j12-bz53299/core/src/test/java/org/apache/log4j/PropertyConfiguratorTest.java Modified: logging/log4j/branches/log4j12-bz53299/core/src/test/java/org/apache/log4j/PropertyConfiguratorTest.java URL: http://svn.apache.org/viewvc/logging/log4j/branches/log4j12-bz53299/core/src/test/java/org/apache/log4j/PropertyConfiguratorTest.java?rev=1349197&r1=1349196&r2=1349197&view=diff ============================================================================== --- logging/log4j/branches/log4j12-bz53299/core/src/test/java/org/apache/log4j/PropertyConfiguratorTest.java (original) +++ logging/log4j/branches/log4j12-bz53299/core/src/test/java/org/apache/log4j/PropertyConfiguratorTest.java Tue Jun 12 08:54:14 2012 @@ -100,7 +100,7 @@ public class PropertyConfiguratorTest ex * @since 1.2.17 */ public void testInputStream() throws IOException { - File file = new File("input/filter1.properties"); + File file = new File(this.getClass().getResource("/input/filter1.properties").getFile()); assertTrue(file.exists()); FileInputStream inputStream = new FileInputStream(file); try { @@ -312,7 +312,7 @@ public class PropertyConfiguratorTest ex */ public void testNested() { try { - PropertyConfigurator.configure("input/filter1.properties"); + PropertyConfigurator.configure(this.getClass().getResource("/input/filter1.properties").getPath()); this.validateNested(); } finally { LogManager.resetConfiguration();