File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/test/java/com/networknt/schema Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ public void testBuilderExampleMappings() throws IOException {
76
76
fail ("Expected exception not thrown" );
77
77
} catch (JsonSchemaException ex ) {
78
78
Throwable cause = ex .getCause ();
79
- if (!(cause instanceof FileNotFoundException || cause instanceof UnknownHostException )) {
79
+ if (!(cause instanceof IOException )) {
80
80
fail ("Unexpected cause for JsonSchemaException" , ex );
81
81
}
82
82
// passing, so do nothing
@@ -132,7 +132,7 @@ public void testValidatorConfigExampleMappings() throws IOException {
132
132
fail ("Expected exception not thrown" );
133
133
} catch (JsonSchemaException ex ) {
134
134
Throwable cause = ex .getCause ();
135
- if (!(cause instanceof FileNotFoundException || cause instanceof UnknownHostException )) {
135
+ if (!(cause instanceof IOException )) {
136
136
fail ("Unexpected cause for JsonSchemaException" );
137
137
}
138
138
// passing, so do nothing
You can’t perform that action at this time.
0 commit comments