Skip to content

Commit

Permalink
extra test
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Dec 2, 2024
1 parent 9cb87a1 commit 6e5f5f3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/test/java/com/jcabi/xml/XMLDocumentTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,14 @@ void validatesXml() throws IOException {
);
}

@Test
void validatesXmlWithoutSchema() {
MatcherAssert.assertThat(
new XMLDocument("<test/>").validate(),
Matchers.not(Matchers.empty())
);
}

@Test
void detectsSchemaViolations() {
final String xsd = StringUtils.join(
Expand Down

0 comments on commit 6e5f5f3

Please sign in to comment.