Skip to content

Commit

Permalink
fixes #1027 change example.com connection error IOException (#1028)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevehu authored Apr 26, 2024
1 parent 8901a60 commit d592ac0
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit d592ac0

Please sign in to comment.