commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r952629 - /commons/proper/configuration/trunk/src/test/org/apache/commons/configuration/TestSystemConfiguration.java
Date Tue, 08 Jun 2010 12:07:08 GMT
Author: sebb
Date: Tue Jun  8 12:07:08 2010
New Revision: 952629

URL: http://svn.apache.org/viewvc?rev=952629&view=rev
Log:
setSystemProperties is a static method; no need to create an instance

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

Modified: commons/proper/configuration/trunk/src/test/org/apache/commons/configuration/TestSystemConfiguration.java
URL: http://svn.apache.org/viewvc/commons/proper/configuration/trunk/src/test/org/apache/commons/configuration/TestSystemConfiguration.java?rev=952629&r1=952628&r2=952629&view=diff
==============================================================================
--- commons/proper/configuration/trunk/src/test/org/apache/commons/configuration/TestSystemConfiguration.java
(original)
+++ commons/proper/configuration/trunk/src/test/org/apache/commons/configuration/TestSystemConfiguration.java
Tue Jun  8 12:07:08 2010
@@ -42,8 +42,7 @@ public class TestSystemConfiguration ext
     {
         PropertiesConfiguration props = new PropertiesConfiguration();
         props.addProperty("test.name", "Apache");
-        SystemConfiguration conf = new SystemConfiguration();
-        conf.setSystemProperties(props);
-        assertEquals("System Properties", "Apache", System.getProperty("test.name"));   
   
+        SystemConfiguration.setSystemProperties(props);
+        assertEquals("System Properties", "Apache", System.getProperty("test.name"));
     }
 }



Mime
View raw message