Skip to content

Commit aad38ee

Browse files
committed
added a fail if the exeception occurs
1 parent 35d7df9 commit aad38ee

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/test/java/edu/harvard/iq/dataverse/pidproviders/doi/datacite/XmlMetadataTemplateTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ public void testDataCiteXMLCreation() throws IOException {
212212
new URL("https://schema.datacite.org/meta/kernel-4/metadata.xsd")));
213213
} catch (SAXException e) {
214214
System.out.println("Invalid schema: " + e.getMessage());
215+
fail("Schema validation failed: " + e.getMessage());
215216
}
216217
}
217218

0 commit comments

Comments
 (0)