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 2828import org .junit .BeforeClass ;
2929import org .junit .Test ;
3030
31- import java .io .*;
31+ import java .io .File ;
32+ import java .io .InputStream ;
3233import java .net .URL ;
3334import java .util .ArrayList ;
3435import java .util .List ;
@@ -106,7 +107,7 @@ private void runTestFile(String testCaseFile) throws Exception {
106107 }
107108
108109 @ Test (/*expected = java.lang.StackOverflowError.class*/ )
109- public void testLoadingWithId () throws IOException {
110+ public void testLoadingWithId () throws Exception {
110111 URL url = new URL ("http://localhost:1234/self_ref/selfRef.json" );
111112 JsonNode schemaJson = mapper .readTree (url );
112113 JsonSchemaFactory factory = new JsonSchemaFactory ();
Original file line number Diff line number Diff line change 11{
22 "id" : " http://localhost:1234/self_ref/selfRef.json" ,
33 "description" : " Schema with ID set to its own URL"
4- }
4+ }
You can’t perform that action at this time.
0 commit comments