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