commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ohe...@apache.org
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 GMT
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;



Mime
View raw message