commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Nichols <jnich...@Schools-OPEN.com>
Subject Bug?
Date Fri, 06 Apr 2007 15:21:35 GMT
I think I have found a bug with XMLConfiguration.  When I run the 
following test with the following xml the second assertEquals statement 
fails:

XML:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<test>
 <a name="X">ABC</a>
 <a name="Y">1,2,3</a>
</test

TEST:
public void testXMLConfig() throws Exception {
   File file = new File("/xml/xmlConfigTest.xml");

   XMLConfiguration xmlConfig = new XMLConfiguration(file);
   xmlConfig.load();

   assertEquals("X",xmlConfig.getProperty("a(0)[@name]"));
   assertEquals("Y",xmlConfig.getProperty("a(1)[@name]"));
}

Anyone see this issue before?  I couldn't find it in jira.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message