ebourg      2004/10/04 11:14:59

  Modified:    configuration/src/test/org/apache/commons/configuration
                        TestXMLConfiguration.java
  Log:
  Test case for Bug 30799
  
  Revision  Changes    Path
  1.12      +9 -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.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- TestXMLConfiguration.java 22 Sep 2004 17:17:30 -0000      1.11
  +++ TestXMLConfiguration.java 4 Oct 2004 18:14:59 -0000       1.12
  @@ -336,6 +336,14 @@
           assertEquals("I'm complex!", 
conf.getProperty("element2.subelement.subsubelement"));
       }
   
  +    public void testSetProperty() throws Exception
  +    {
  +        conf.setProperty("element.string", "hello");
  +
  +        assertEquals("'element.string'", "hello", conf.getString("element.string"));
  +        assertEquals("XML value of element.string", "hello", 
conf.getXmlProperty("element.string"));
  +    }
  +
       public void testAddProperty()
       {
           // add a property to a non initialized xml configuration
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to