commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ebo...@apache.org
Subject cvs commit: jakarta-commons/configuration/src/test/org/apache/commons/configuration TestSubsetConfiguration.java
Date Thu, 23 Sep 2004 11:37:40 GMT
ebourg      2004/09/23 04:37:40

  Modified:    configuration/src/test/org/apache/commons/configuration
                        TestSubsetConfiguration.java
  Log:
  Trivial tests for SubsetConfiguration
  
  Revision  Changes    Path
  1.4       +11 -1     jakarta-commons/configuration/src/test/org/apache/commons/configuration/TestSubsetConfiguration.java
  
  Index: TestSubsetConfiguration.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/configuration/src/test/org/apache/commons/configuration/TestSubsetConfiguration.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- TestSubsetConfiguration.java	16 Aug 2004 22:16:31 -0000	1.3
  +++ TestSubsetConfiguration.java	23 Sep 2004 11:37:40 -0000	1.4
  @@ -129,4 +129,14 @@
           assertEquals(3, vector.size());
       }
   
  +    public void testEmptySubset() {
  +        BaseConfiguration conf = new BaseConfiguration();
  +        Configuration subset = new SubsetConfiguration(conf, "test", ".");
  +
  +        assertTrue("the subset is not empty", subset.isEmpty());
  +
  +        conf.addProperty("foo", "bar");
  +        assertTrue("the subset is not empty", subset.isEmpty());
  +    }
  +
   }
  
  
  

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