commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mpoes...@apache.org
Subject cvs commit: jakarta-commons-sandbox/configuration/src/test/org/apache/commons/configuration TestConfigurationFactory.java
Date Fri, 27 Jun 2003 20:06:08 GMT
mpoeschl    2003/06/27 13:06:08

  Modified:    configuration/src/test/org/apache/commons/configuration
                        TestConfigurationFactory.java
  Log:
  remove log as it is not used
  
  Revision  Changes    Path
  1.6       +5 -21     jakarta-commons-sandbox/configuration/src/test/org/apache/commons/configuration/TestConfigurationFactory.java
  
  Index: TestConfigurationFactory.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/configuration/src/test/org/apache/commons/configuration/TestConfigurationFactory.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- TestConfigurationFactory.java	7 Jun 2003 17:57:29 -0000	1.5
  +++ TestConfigurationFactory.java	27 Jun 2003 20:06:08 -0000	1.6
  @@ -58,9 +58,6 @@
   
   import junit.framework.TestCase;
   
  -import org.apache.commons.logging.Log;
  -import org.apache.commons.logging.LogFactory;
  -
   /**
    * Test the ConfigurationFactory
    *
  @@ -69,9 +66,6 @@
    */
   public class TestConfigurationFactory extends TestCase
   {
  -
  -    private static Log log = LogFactory.getLog(TestConfigurationFactory.class);
  -
       /** The Files that we test with */
       private File digesterRules = new File("conf/digesterRules.xml");
       private File testDigesterFile = new File("conf/testDigesterConfiguration.xml");
  @@ -88,7 +82,6 @@
       public TestConfigurationFactory(String s) throws Exception
       {
           super(s);
  -
       }
   
       public void setUp() throws Exception
  @@ -98,7 +91,6 @@
   
       public void testLoadingConfiguration() throws Exception
       {
  -
           configurationFactory.setConfigurationFileName(testDigesterFile.toString());
   
           compositeConfiguration = (CompositeConfiguration) configurationFactory.getConfiguration();
  @@ -114,12 +106,10 @@
   
           configuration = (Configuration) compositeConfiguration;
           assertEquals("I'm complex!", configuration.getProperty("element2.subelement.subsubelement"));
  -
       }
   
       public void testLoadingConfigurationReverseOrder() throws Exception
       {
  -
           configurationFactory.setConfigurationFileName(testDigesterFileReverseOrder.toString());
   
           configuration = configurationFactory.getConfiguration();
  @@ -130,12 +120,10 @@
   
           configuration = configurationFactory.getConfiguration();
           assertEquals("1", configuration.getProperty("test.short"));
  -
       }
   
       public void testLoadingConfigurationWithRulesXML() throws Exception
       {
  -
           configurationFactory.setConfigurationFileName(testDigesterFile.toString());
           configurationFactory.setDigesterRules(digesterRules.toURL());
   
  @@ -155,7 +143,6 @@
   
           configuration = (Configuration) compositeConfiguration;
           assertEquals("I'm complex!", configuration.getProperty("element2.subelement.subsubelement"));
  -
       }
   
       public void testLoadingConfigurationNamespaceAware() throws Exception
  @@ -178,18 +165,16 @@
   
           try
           {
  -
               compositeConfiguration.getProperty("element2.subelement.subsubelement");
               fail("Should have thrown an exception");
           }
           catch (java.util.NoSuchElementException nsee)
  -        {}
  -
  +        {
  +        }
       }
   
       public void testLoadingConfigurationBasePath() throws Exception
       {
  -
           configurationFactory.setConfigurationFileName(testDigesterFileBasePath.toString());
   
           configurationFactory.setBasePath(testBasePath);
  @@ -211,12 +196,11 @@
   
           try
           {
  -
               compositeConfiguration.getProperty("element2.subelement.subsubelement");
               fail("Should have thrown an exception");
           }
           catch (java.util.NoSuchElementException nsee)
  -        {}
  -
  +        {
  +        }
       }
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message