Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.4
-
None
-
None
Description
When the following test is run 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]"));
}