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 A8F1F7366 for ; Thu, 29 Dec 2011 21:13:18 +0000 (UTC) Received: (qmail 1483 invoked by uid 500); 29 Dec 2011 21:13:18 -0000 Delivered-To: apmail-commons-commits-archive@commons.apache.org Received: (qmail 1342 invoked by uid 500); 29 Dec 2011 21:13:18 -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 1335 invoked by uid 99); 29 Dec 2011 21:13:18 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Dec 2011 21:13:18 +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; Thu, 29 Dec 2011 21:13:16 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id B46B323888FD for ; Thu, 29 Dec 2011 21:12:54 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1225659 - /commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/interpol/TestExprLookup.java Date: Thu, 29 Dec 2011 21:12:54 -0000 To: commits@commons.apache.org From: oheger@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20111229211254.B46B323888FD@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: oheger Date: Thu Dec 29 21:12:54 2011 New Revision: 1225659 URL: http://svn.apache.org/viewvc?rev=1225659&view=rev Log: Converted tests to JUnit 4. Modified: commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/interpol/TestExprLookup.java Modified: commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/interpol/TestExprLookup.java URL: http://svn.apache.org/viewvc/commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/interpol/TestExprLookup.java?rev=1225659&r1=1225658&r2=1225659&view=diff ============================================================================== --- commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/interpol/TestExprLookup.java (original) +++ commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/interpol/TestExprLookup.java Thu Dec 29 21:12:54 2011 @@ -16,9 +16,9 @@ */ package org.apache.commons.configuration.interpol; -import java.io.File; +import static org.junit.Assert.assertTrue; -import junit.framework.TestCase; +import java.io.File; import org.apache.commons.configuration.ConfigurationAssert; import org.apache.commons.configuration.XMLConfiguration; @@ -29,13 +29,14 @@ import org.apache.log4j.ConsoleAppender; import org.apache.log4j.Level; import org.apache.log4j.Logger; import org.apache.log4j.SimpleLayout; +import org.junit.Test; /** * Test class for ExprLookup. * * @version $Id$ */ -public class TestExprLookup extends TestCase +public class TestExprLookup { private static File TEST_FILE = ConfigurationAssert.getTestFile("test.xml"); @@ -44,20 +45,7 @@ public class TestExprLookup extends Test private static String PATTERN2 = "'$[element] ' + String.trimToEmpty('$[space.description]')"; - protected void setUp() throws Exception - { - super.setUp(); - } - - /** - * Clears the test environment. Here the static cache of the constant lookup - * class is wiped out. - */ - protected void tearDown() throws Exception - { - super.tearDown(); - } - + @Test public void testLookup() throws Exception { ConsoleAppender app = new ConsoleAppender(new SimpleLayout()); @@ -82,8 +70,6 @@ public class TestExprLookup extends Test } - - public static class Utility { String message;