commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ohe...@apache.org
Subject svn commit: r1224639 - /commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/TestEqualsProperty.java
Date Sun, 25 Dec 2011 19:52:46 GMT
Author: oheger
Date: Sun Dec 25 19:52:46 2011
New Revision: 1224639

URL: http://svn.apache.org/viewvc?rev=1224639&view=rev
Log:
Converted tests to JUnit 4.

Modified:
    commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/TestEqualsProperty.java

Modified: commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/TestEqualsProperty.java
URL: http://svn.apache.org/viewvc/commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/TestEqualsProperty.java?rev=1224639&r1=1224638&r2=1224639&view=diff
==============================================================================
--- commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/TestEqualsProperty.java
(original)
+++ commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/TestEqualsProperty.java
Sun Dec 25 19:52:46 2011
@@ -17,18 +17,21 @@ package org.apache.commons.configuration
  * limitations under the License.
  */
 
-import junit.framework.TestCase;
+import static org.junit.Assert.assertEquals;
+
+import org.junit.Test;
 
 /**
  * test if properties that contain a "=" will be loaded correctly.
  *
  * @version $Id$
  */
-public class TestEqualsProperty extends TestCase
+public class TestEqualsProperty
 {
     /** The File that we test with */
     private String testProperties = ConfigurationAssert.getTestFile("test.properties").getAbsolutePath();
 
+    @Test
     public void testEquals() throws Exception
     {
         PropertiesConfiguration conf = new PropertiesConfiguration(testProperties);



Mime
View raw message