Skip to content

Commit 672d8c6

Browse files
committed
extra test
1 parent f8a8599 commit 672d8c6

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

src/test/java/com/jcabi/xml/XMLDocumentTest.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,18 @@ void convertsItselfToXml() {
177177
);
178178
}
179179

180+
@Test
181+
void printsWithNamespace() {
182+
MatcherAssert.assertThat(
183+
new XMLDocument(
184+
new XMLDocument(
185+
"<z xmlns:a='hey'><f a:boom='test'/></z>"
186+
).node()
187+
).toString(),
188+
Matchers.containsString("a:boom")
189+
);
190+
}
191+
180192
@Test
181193
void retrievesDomNode() throws Exception {
182194
final XML doc = new XMLDocument(

0 commit comments

Comments
 (0)