commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ohe...@apache.org
Subject svn commit: r1225341 - /commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/TestXMLPropertiesConfiguration.java
Date Wed, 28 Dec 2011 21:18:29 GMT
Author: oheger
Date: Wed Dec 28 21:18:28 2011
New Revision: 1225341

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

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

Modified: commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/TestXMLPropertiesConfiguration.java
URL: http://svn.apache.org/viewvc/commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/TestXMLPropertiesConfiguration.java?rev=1225341&r1=1225340&r2=1225341&view=diff
==============================================================================
--- commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/TestXMLPropertiesConfiguration.java
(original)
+++ commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/TestXMLPropertiesConfiguration.java
Wed Dec 28 21:18:28 2011
@@ -17,16 +17,21 @@
 
 package org.apache.commons.configuration;
 
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertTrue;
+
 import java.io.File;
 
-import junit.framework.TestCase;
+import org.junit.Test;
 
 /**
  * @author Emmanuel Bourg
- * @version $Revision$, $Date$
+ * @version $Id$
  */
-public class TestXMLPropertiesConfiguration extends TestCase
+public class TestXMLPropertiesConfiguration
 {
+    @Test
     public void testLoad() throws Exception
     {
         XMLPropertiesConfiguration conf = new XMLPropertiesConfiguration("test.properties.xml");
@@ -39,6 +44,7 @@ public class TestXMLPropertiesConfigurat
         assertEquals("'key3' property", "value3", conf.getProperty("key3"));
     }
 
+    @Test
     public void testSave() throws Exception
     {
         // load the configuration



Mime
View raw message