You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2010/06/08 14:07:08 UTC
svn commit: r952629 -
/commons/proper/configuration/trunk/src/test/org/apache/commons/configuration/TestSystemConfiguration.java
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"));
}
}