commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ep...@apache.org
Subject cvs commit: jakarta-commons/configuration/src/test/org/apache/commons/configuration TestBaseConfiguration.java
Date Tue, 09 Mar 2004 15:34:03 GMT
epugh       2004/03/09 07:34:02

  Modified:    configuration/src/test/org/apache/commons/configuration
                        TestBaseConfiguration.java
  Log:
  Enhanced test case from Jörg Schaible.
  
  Revision  Changes    Path
  1.8       +11 -1     jakarta-commons/configuration/src/test/org/apache/commons/configuration/TestBaseConfiguration.java
  
  Index: TestBaseConfiguration.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/configuration/src/test/org/apache/commons/configuration/TestBaseConfiguration.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- TestBaseConfiguration.java	27 Feb 2004 17:41:34 -0000	1.7
  +++ TestBaseConfiguration.java	9 Mar 2004 15:34:02 -0000	1.8
  @@ -18,6 +18,7 @@
   
   import java.math.BigDecimal;
   import java.math.BigInteger;
  +import java.util.Iterator;
   import java.util.List;
   import java.util.NoSuchElementException;
   import java.util.Properties;
  @@ -286,6 +287,7 @@
           String prop = "hey, that's a test";
           String prop2 = "hey\\, that's a test";
           eprop.setProperty("prop.string", prop2);
  +        eprop.setProperty("property.string", "hello");
   
           Configuration subEprop = eprop.subset("prop");
   
  @@ -309,6 +311,14 @@
           {
               fail("Should return a list");
           }
  +        
  +        Iterator it = subEprop.getKeys();
  +        it.next();
  +        assertFalse(it.hasNext());
  +        
  +        subEprop = eprop.subset("prop.");
  +        it = subEprop.getKeys();
  +        assertFalse(it.hasNext());
       }
   
       public void testInterpolation() throws Exception
  
  
  

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