Skip to content

Commit d592ac0

Browse files
authored
fixes #1027 change example.com connection error IOException (#1028)
1 parent 8901a60 commit d592ac0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/java/com/networknt/schema/UriMappingTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public void testBuilderExampleMappings() throws IOException {
7676
fail("Expected exception not thrown");
7777
} catch (JsonSchemaException ex) {
7878
Throwable cause = ex.getCause();
79-
if (!(cause instanceof FileNotFoundException || cause instanceof UnknownHostException)) {
79+
if (!(cause instanceof IOException )) {
8080
fail("Unexpected cause for JsonSchemaException", ex);
8181
}
8282
// passing, so do nothing
@@ -132,7 +132,7 @@ public void testValidatorConfigExampleMappings() throws IOException {
132132
fail("Expected exception not thrown");
133133
} catch (JsonSchemaException ex) {
134134
Throwable cause = ex.getCause();
135-
if (!(cause instanceof FileNotFoundException || cause instanceof UnknownHostException)) {
135+
if (!(cause instanceof IOException)) {
136136
fail("Unexpected cause for JsonSchemaException");
137137
}
138138
// passing, so do nothing

0 commit comments

Comments
 (0)