File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
java/com/networknt/schema Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 28
28
import org .junit .BeforeClass ;
29
29
import org .junit .Test ;
30
30
31
- import java .io .*;
31
+ import java .io .File ;
32
+ import java .io .InputStream ;
32
33
import java .net .URL ;
33
34
import java .util .ArrayList ;
34
35
import java .util .List ;
@@ -106,7 +107,7 @@ private void runTestFile(String testCaseFile) throws Exception {
106
107
}
107
108
108
109
@ Test (/*expected = java.lang.StackOverflowError.class*/ )
109
- public void testLoadingWithId () throws IOException {
110
+ public void testLoadingWithId () throws Exception {
110
111
URL url = new URL ("http://localhost:1234/self_ref/selfRef.json" );
111
112
JsonNode schemaJson = mapper .readTree (url );
112
113
JsonSchemaFactory factory = new JsonSchemaFactory ();
Original file line number Diff line number Diff line change 1
1
{
2
2
"id" : " http://localhost:1234/self_ref/selfRef.json" ,
3
3
"description" : " Schema with ID set to its own URL"
4
- }
4
+ }
You can’t perform that action at this time.
0 commit comments