Пример #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)));
 }