Skip to content

Commit 6e5f5f3

Browse files
committed
extra test
1 parent 9cb87a1 commit 6e5f5f3

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -537,6 +537,14 @@ void validatesXml() throws IOException {
537537
);
538538
}
539539

540+
@Test
541+
void validatesXmlWithoutSchema() {
542+
MatcherAssert.assertThat(
543+
new XMLDocument("<test/>").validate(),
544+
Matchers.not(Matchers.empty())
545+
);
546+
}
547+
540548
@Test
541549
void detectsSchemaViolations() {
542550
final String xsd = StringUtils.join(

0 commit comments

Comments
 (0)