Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/test/java/com/networknt/schema/UriMappingTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public void testBuilderExampleMappings() throws IOException {
fail("Expected exception not thrown");
} catch (JsonSchemaException ex) {
Throwable cause = ex.getCause();
if (!(cause instanceof FileNotFoundException || cause instanceof UnknownHostException)) {
if (!(cause instanceof IOException )) {
fail("Unexpected cause for JsonSchemaException", ex);
}
// passing, so do nothing
Expand Down Expand Up @@ -132,7 +132,7 @@ public void testValidatorConfigExampleMappings() throws IOException {
fail("Expected exception not thrown");
} catch (JsonSchemaException ex) {
Throwable cause = ex.getCause();
if (!(cause instanceof FileNotFoundException || cause instanceof UnknownHostException)) {
if (!(cause instanceof IOException)) {
fail("Unexpected cause for JsonSchemaException");
}
// passing, so do nothing
Expand Down