commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From henn...@apache.org
Subject cvs commit: jakarta-commons-sandbox/configuration/src/test/org/apache/commons/configuration TestConfigurationFactory.java
Date Sun, 06 Jul 2003 15:23:53 GMT
henning     2003/07/06 08:23:53

  Modified:    configuration/src/test/org/apache/commons/configuration
                        TestConfigurationFactory.java
  Log:
  The first added configuration has the index == 0.  Change the test to account for
  this.
  
  Revision  Changes    Path
  1.7       +9 -9      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.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- TestConfigurationFactory.java	27 Jun 2003 20:06:08 -0000	1.6
  +++ TestConfigurationFactory.java	6 Jul 2003 15:23:53 -0000	1.7
  @@ -96,8 +96,8 @@
           compositeConfiguration = (CompositeConfiguration) configurationFactory.getConfiguration();
   
           assertEquals("Verify how many configs", 3, compositeConfiguration.getNumberOfConfigurations());
  -        assertEquals(PropertiesConfiguration.class, compositeConfiguration.getConfiguration(1).getClass());
  -        PropertiesConfiguration pc = (PropertiesConfiguration) compositeConfiguration.getConfiguration(1);
  +        assertEquals(PropertiesConfiguration.class, compositeConfiguration.getConfiguration(0).getClass());
  +        PropertiesConfiguration pc = (PropertiesConfiguration) compositeConfiguration.getConfiguration(0);
   
           assertNotNull("Make sure we have a fileName:" + pc.getFileName(), pc.getFileName());
   
  @@ -131,9 +131,9 @@
   
           assertEquals("Verify how many configs", 3, compositeConfiguration.getNumberOfConfigurations());
   
  -        assertEquals(PropertiesConfiguration.class, compositeConfiguration.getConfiguration(1).getClass());
  +        assertEquals(PropertiesConfiguration.class, compositeConfiguration.getConfiguration(0).getClass());
   
  -        PropertiesConfiguration pc = (PropertiesConfiguration) compositeConfiguration.getConfiguration(1);
  +        PropertiesConfiguration pc = (PropertiesConfiguration) compositeConfiguration.getConfiguration(0);
           assertNotNull("Make sure we have a fileName:" + pc.getFileName(), pc.getFileName());
           assertTrue("Make sure we have loaded our key", pc.getBoolean("test.boolean"));
   
  @@ -155,9 +155,9 @@
   
           assertEquals("Verify how many configs", 2, compositeConfiguration.getNumberOfConfigurations());
   
  -        assertEquals(PropertiesConfiguration.class, compositeConfiguration.getConfiguration(1).getClass());
  +        assertEquals(PropertiesConfiguration.class, compositeConfiguration.getConfiguration(0).getClass());
   
  -        PropertiesConfiguration pc = (PropertiesConfiguration) compositeConfiguration.getConfiguration(1);
  +        PropertiesConfiguration pc = (PropertiesConfiguration) compositeConfiguration.getConfiguration(0);
           assertNotNull("Make sure we have a fileName:" + pc.getFileName(), pc.getFileName());
           assertTrue("Make sure we have loaded our key", pc.getBoolean("test.boolean"));
   
  @@ -186,9 +186,9 @@
   
           assertEquals("Verify how many configs", 2, compositeConfiguration.getNumberOfConfigurations());
   
  -        assertEquals(PropertiesConfiguration.class, compositeConfiguration.getConfiguration(1).getClass());
  +        assertEquals(PropertiesConfiguration.class, compositeConfiguration.getConfiguration(0).getClass());
   
  -        PropertiesConfiguration pc = (PropertiesConfiguration) compositeConfiguration.getConfiguration(1);
  +        PropertiesConfiguration pc = (PropertiesConfiguration) compositeConfiguration.getConfiguration(0);
           assertNotNull("Make sure we have a fileName:" + pc.getFileName(), pc.getFileName());
           assertTrue("Make sure we have loaded our key", pc.getBoolean("test.boolean"));
   
  
  
  

---------------------------------------------------------------------
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