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 TestXMLConfiguration.java
Date Thu, 12 Aug 2004 16:53:52 GMT
epugh       2004/08/12 09:53:52

  Modified:    configuration/xdocs changes.xml
               configuration/conf test.xml
               configuration/src/test/org/apache/commons/configuration
                        TestXMLConfiguration.java
  Log:
  Another unit test for clearing properties
  
  Revision  Changes    Path
  1.31      +1 -0      jakarta-commons/configuration/xdocs/changes.xml
  
  Index: changes.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/configuration/xdocs/changes.xml,v
  retrieving revision 1.30
  retrieving revision 1.31
  diff -u -r1.30 -r1.31
  --- changes.xml	12 Aug 2004 16:29:38 -0000	1.30
  +++ changes.xml	12 Aug 2004 16:53:52 -0000	1.31
  @@ -7,6 +7,7 @@
   
     <body>
       <release version="1.0rc1" date="2004-06-??">
  +      <action dev="epugh" type="add" due-to="Brent Worden" issue="30234 ">clearXmlProperty
doesn't remove list properties completely</action>        
         <action dev="epugh" type="add" due-to="Ricardo Gladwell" issue="30545">new
ConfigurationDynaBean </action>        
         <action dev="epugh" type="add" due-to="Ricardo Gladwell" issue="29611">new
ConfigurationMap and ConfigurationSet</action>        
         <action dev="epugh" type="fix" due-to="Ricardo Gladwell" issue="30598">Problem
adding property XMLConfiguration</action>        
  
  
  
  1.4       +14 -0     jakarta-commons/configuration/conf/test.xml
  
  Index: test.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/configuration/conf/test.xml,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- test.xml	21 Jul 2004 12:36:26 -0000	1.3
  +++ test.xml	12 Aug 2004 16:53:52 -0000	1.4
  @@ -19,4 +19,18 @@
       <test>
           <short>8</short>
       </test>
  +	
  +	<!-- list properties -->
  +	<list>
  +		<item name="one">one</item>
  +		<item>two</item>
  +	</list>
  +	<list>
  +		<item name="three">three</item>
  +		<item>four</item>
  +		<sublist>
  +			<item>five</item>
  +			<item>six</item>
  +		</sublist>
  +	</list>
   </configuration>
  
  
  
  1.6       +4 -1      jakarta-commons/configuration/src/test/org/apache/commons/configuration/TestXMLConfiguration.java
  
  Index: TestXMLConfiguration.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/configuration/src/test/org/apache/commons/configuration/TestXMLConfiguration.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- TestXMLConfiguration.java	12 Aug 2004 15:45:22 -0000	1.5
  +++ TestXMLConfiguration.java	12 Aug 2004 16:53:52 -0000	1.6
  @@ -61,6 +61,9 @@
       {
           conf.clearProperty("element");
           assertEquals("element", null, conf.getProperty("element"));
  +        
  +        conf.clearProperty("list.item");
  +        assertEquals("list.item", null, conf.getProperty("list.item"));
       }
   
       public void testGetAttribute() 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