commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ohe...@apache.org
Subject svn commit: r701691 - in /commons/proper/configuration/trunk/src: java/org/apache/commons/configuration/DefaultConfigurationBuilder.java test/org/apache/commons/configuration/TestDefaultConfigurationBuilder.java
Date Sat, 04 Oct 2008 19:14:06 GMT
Author: oheger
Date: Sat Oct  4 12:14:06 2008
New Revision: 701691

URL: http://svn.apache.org/viewvc?rev=701691&view=rev
Log:
[CONFIGURATION-377] Minor cleanup of a unit test. Fix of a typo.

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

Modified: commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/DefaultConfigurationBuilder.java
URL: http://svn.apache.org/viewvc/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/DefaultConfigurationBuilder.java?rev=701691&r1=701690&r2=701691&view=diff
==============================================================================
--- commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/DefaultConfigurationBuilder.java
(original)
+++ commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/DefaultConfigurationBuilder.java
Sat Oct  4 12:14:06 2008
@@ -421,9 +421,9 @@
     /**
      * Sets the base path for the configuration sources to load. Normally a base
      * path need not to be set because it is determined by the location of the
-     * configuration definition file to load. All relative pathes in this file
+     * configuration definition file to load. All relative paths in this file
      * are resolved relative to this file. Setting a base path makes sense if
-     * such relative pathes should be otherwise resolved, e.g. if the
+     * such relative paths should be otherwise resolved, e.g. if the
      * configuration file is loaded from the class path and all sub
      * configurations it refers to are stored in a special config directory.
      *

Modified: commons/proper/configuration/trunk/src/test/org/apache/commons/configuration/TestDefaultConfigurationBuilder.java
URL: http://svn.apache.org/viewvc/commons/proper/configuration/trunk/src/test/org/apache/commons/configuration/TestDefaultConfigurationBuilder.java?rev=701691&r1=701690&r2=701691&view=diff
==============================================================================
--- commons/proper/configuration/trunk/src/test/org/apache/commons/configuration/TestDefaultConfigurationBuilder.java
(original)
+++ commons/proper/configuration/trunk/src/test/org/apache/commons/configuration/TestDefaultConfigurationBuilder.java
Sat Oct  4 12:14:06 2008
@@ -756,9 +756,8 @@
      */
     public void testExtendedClass() throws ConfigurationException
     {
-        DefaultConfigurationBuilder builder = new DefaultConfigurationBuilder();
-        builder.setFile(CLASS_FILE);
-        CombinedConfiguration cc = builder.getConfiguration(true);
+        factory.setFile(CLASS_FILE);
+        CombinedConfiguration cc = factory.getConfiguration(true);
         assertEquals("Extended", cc.getProperty("test"));
         assertTrue("Wrong result class: " + cc.getClass(),
                 cc instanceof ExtendedCombinedConfiguration);



Mime
View raw message