Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixes #1027 change example.com connection error IOException #1028

Merged
merged 1 commit into from
Apr 26, 2024
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
Loading