mirror of
https://github.com/stleary/JSON-java.git
synced 2025-08-03 03:15:32 -04:00
refs #537 Show error when unescaping all-caps entity directly
This commit is contained in:
parent
c98da43184
commit
e0a6c2ef34
@ -939,4 +939,19 @@ public class XMLTest {
|
|||||||
fail("file writer error: " +e.getMessage());
|
fail("file writer error: " +e.getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Tests to verify that supported escapes in XML are converted to actual values.
|
||||||
|
*/
|
||||||
|
@Test
|
||||||
|
public void testIssue537CaseSensitiveHexUnEscapeDirect(){
|
||||||
|
String origStr =
|
||||||
|
"Neutrophils.Hypersegmented | Bld-Ser-Plas";
|
||||||
|
String expectedStr =
|
||||||
|
"Neutrophils.Hypersegmented | Bld-Ser-Plas";
|
||||||
|
String actualStr = XML.unescape(origStr);
|
||||||
|
|
||||||
|
assertEquals("Case insensitive Entity unescape", expectedStr, actualStr);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user