Skip to content

Commit

Permalink
Issue #126 - additional test case
Browse files Browse the repository at this point in the history
  • Loading branch information
rolfl committed Apr 5, 2014
1 parent 9b36948 commit 08df133
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/src/java/org/jdom2/test/cases/input/TestSAXBuilder.java
Expand Up @@ -1094,6 +1094,18 @@ public void testBuildStringNegativeBadURI() {
}
}
}

@Test
public void testXMLNamesVariants() throws JDOMException, IOException {
String toparse = "<xMl:xml xmlns:xMl='MyURI' xml='xml'/>";

SAXBuilder sb = new SAXBuilder();
Document doc = sb.build(new CharArrayReader(toparse.toCharArray()));

assertEquals("Should match: xml", "xml" , doc.getRootElement().getAttributeValue("xml"));


}

@Test
public void testBuildStringNegativeActualXML() {
Expand Down

0 comments on commit 08df133

Please sign in to comment.