Skip to content

Commit

Permalink
extra test
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Nov 28, 2023
1 parent f3a8d0f commit 5d584f8
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/test/java/org/xembly/XemblerTest.java
Expand Up @@ -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("<a>\n <b>\n <c>")
);
}

@Test
void makesChangesToDomDocument() throws Exception {
final Document dom = DocumentBuilderFactory.newInstance()
Expand Down

0 comments on commit 5d584f8

Please sign in to comment.