示例#1
0
 @Test
 public void shouldTransformViaDom() throws Exception {
   assertThat(normalize(Xml.fromDom(Xml.read(xmlFile).getRootElement().toDom()).toXML()))
       .isEqualTo(normalize(IOUtils.slurp(xmlFile)));
 }
示例#2
0
 @Test
 public void serializedShouldMatch() throws Exception {
   assertThat(normalize(Xml.read(xmlFile).copy().toXML()))
       .isEqualTo(normalize(IOUtils.slurp(xmlFile)));
 }