commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ohe...@apache.org
Subject svn commit: r1225020 - /commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/TestSystemConfiguration.java
Date Tue, 27 Dec 2011 21:20:45 GMT
Author: oheger
Date: Tue Dec 27 21:20:45 2011
New Revision: 1225020

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

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

Modified: commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/TestSystemConfiguration.java
URL: http://svn.apache.org/viewvc/commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/TestSystemConfiguration.java?rev=1225020&r1=1225019&r2=1225020&view=diff
==============================================================================
--- commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/TestSystemConfiguration.java
(original)
+++ commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/TestSystemConfiguration.java
Tue Dec 27 21:20:45 2011
@@ -17,18 +17,21 @@
 
 package org.apache.commons.configuration;
 
+import static org.junit.Assert.assertEquals;
+
 import java.util.Properties;
 
-import junit.framework.TestCase;
+import org.junit.Test;
 
 /**
- * Tests for MapConfiguration.
+ * Tests for {@code SystemConfiguration}.
  *
  * @author Emmanuel Bourg
- * @version $Revision$, $Date$
+ * @version $Id$
  */
-public class TestSystemConfiguration extends TestCase
+public class TestSystemConfiguration
 {
+    @Test
     public void testSystemConfiguration()
     {
         Properties props = System.getProperties();
@@ -38,6 +41,7 @@ public class TestSystemConfiguration ext
         assertEquals("number", 123, conf.getInt("test.number"));
     }
 
+    @Test
     public void testSetSystemProperties()
     {
         PropertiesConfiguration props = new PropertiesConfiguration();



Mime
View raw message