"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "subprojects/groovy-xml/src/test/groovy/groovy/xml/XmlUtilTest.groovy" between
apache-groovy-src-3.0.8.zip and apache-groovy-src-3.0.9.zip

About: Groovy is an agile dynamic (scripting) language for the Java Platform. It has features similar to those of Python, Ruby, Perl, and Smalltalk. Source release.

XmlUtilTest.groovy  (apache-groovy-src-3.0.8):XmlUtilTest.groovy  (apache-groovy-src-3.0.9)
skipping to change at line 48 skipping to change at line 48
</Schl\u00FCssel> </Schl\u00FCssel>
""".stripIndent() """.stripIndent()
// GROOVY-5158 // GROOVY-5158
void testSerializeOfGPathResultShouldRoundTrip() { void testSerializeOfGPathResultShouldRoundTrip() {
def source = new InputSource(new StringReader(xml)) def source = new InputSource(new StringReader(xml))
source.encoding = "UTF-8" source.encoding = "UTF-8"
assertXmlEquals(xml, XmlUtil.serialize(new XmlSlurper().parse(source))) assertXmlEquals(xml, XmlUtil.serialize(new XmlSlurper().parse(source)))
} }
def xml2 = '<?xml version="1.0" encoding="UTF-8"?><Name>🎁4</Name>'
// GROOVY-10132
void testSerializeOfSurrogate() {
def source = new InputSource(new StringReader(xml2))
source.encoding = "UTF-8"
assertXmlEquals(xml2, XmlUtil.serialize(new XmlSlurper().parse(source)))
}
// GROOVY-5361 // GROOVY-5361
void testSchemaValidationUtilityMethod() { void testSchemaValidationUtilityMethod() {
Locale dl = Locale.getDefault() Locale dl = Locale.getDefault()
Locale.setDefault(Locale.ENGLISH) Locale.setDefault(Locale.ENGLISH)
def cases = [ def cases = [
"<person><first>James</first><last>Kirk</last></person>", "<person><first>James</first><last>Kirk</last></person>",
"<person><first>James</first><middle>T.</middle><last>Kirk</last></p erson>", "<person><first>James</first><middle>T.</middle><last>Kirk</last></p erson>",
"<person title='Captain'><first>James</first><last>Kirk</last></pers on>" "<person title='Captain'><first>James</first><last>Kirk</last></pers on>"
] ]
 End of changes. 1 change blocks. 
0 lines changed or deleted 9 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)