diff --git a/src/test/java/org/xembly/XemblerTest.java b/src/test/java/org/xembly/XemblerTest.java index 8cf2c703..82beaa80 100644 --- a/src/test/java/org/xembly/XemblerTest.java +++ b/src/test/java/org/xembly/XemblerTest.java @@ -50,6 +50,19 @@ @SuppressWarnings("PMD.TooManyMethods") final class XemblerTest { + @Test + void printsNicely() throws Exception { + final Document dom = DocumentBuilderFactory.newInstance() + .newDocumentBuilder().newDocument(); + new Xembler( + new Directives("ADD 'a'; ADD 'b'; ADD 'c'; SET 'hello';") + ).apply(dom); + MatcherAssert.assertThat( + new XMLDocument(dom).toString(), + Matchers.containsString("\n \n ") + ); + } + @Test void makesChangesToDomDocument() throws Exception { final Document dom = DocumentBuilderFactory.newInstance()