@@ -43,7 +43,7 @@ class UriMappingTest {
4343 */
4444 @ Test
4545 void testBuilderUriMappingUri () throws IOException {
46- URL mappings = UriMappingTest .class .getResource ("/draft4/extra/ uri_mapping/uri-mapping.json" );
46+ URL mappings = UriMappingTest .class .getResource ("/uri_mapping/uri-mapping.json" );
4747 JsonMetaSchema draftV4 = JsonMetaSchema .getV4 ();
4848 Builder builder = JsonSchemaFactory .builder ()
4949 .defaultMetaSchemaIri (draftV4 .getIri ())
@@ -81,7 +81,7 @@ void testBuilderExampleMappings() throws IOException {
8181 } catch (Exception ex ) {
8282 fail ("Unexpected exception thrown" , ex );
8383 }
84- URL mappings = UriMappingTest .class .getResource ("/draft4/extra/ uri_mapping/invalid-schema-uri.json" );
84+ URL mappings = UriMappingTest .class .getResource ("/uri_mapping/invalid-schema-uri.json" );
8585 JsonMetaSchema draftV4 = JsonMetaSchema .getV4 ();
8686 Builder builder = JsonSchemaFactory .builder ()
8787 .defaultMetaSchemaIri (draftV4 .getIri ())
@@ -100,7 +100,7 @@ void testBuilderExampleMappings() throws IOException {
100100 */
101101 @ Test
102102 void testValidatorConfigUriMappingUri () throws IOException {
103- URL mappings = UriMappingTest .class .getResource ("/draft4/extra/ uri_mapping/uri-mapping.json" );
103+ URL mappings = UriMappingTest .class .getResource ("/uri_mapping/uri-mapping.json" );
104104 JsonSchemaFactory instance = JsonSchemaFactory .builder (JsonSchemaFactory .getInstance (SpecVersion .VersionFlag .V4 ))
105105 .schemaMappers (schemaMappers -> schemaMappers .add (getUriMappingsFromUrl (mappings ))).build ();
106106 JsonSchema schema = instance .getSchema (SchemaLocation .of (
@@ -118,7 +118,7 @@ void testValidatorConfigUriMappingUri() throws IOException {
118118 */
119119 @ Test
120120 void testValidatorConfigExampleMappings () throws IOException {
121- URL mappings = UriMappingTest .class .getResource ("/draft4/extra/ uri_mapping/invalid-schema-uri.json" );
121+ URL mappings = UriMappingTest .class .getResource ("/uri_mapping/invalid-schema-uri.json" );
122122 JsonSchemaFactory instance = JsonSchemaFactory
123123 .builder (JsonSchemaFactory .getInstance (SpecVersion .VersionFlag .V4 )).build ();
124124 SchemaValidatorsConfig config = SchemaValidatorsConfig .builder ().build ();
@@ -145,11 +145,11 @@ void testValidatorConfigExampleMappings() throws IOException {
145145
146146 @ Test
147147 void testMappingsForRef () throws IOException {
148- URL mappings = UriMappingTest .class .getResource ("/draft4/extra/ uri_mapping/schema-with-ref-mapping.json" );
148+ URL mappings = UriMappingTest .class .getResource ("/uri_mapping/schema-with-ref-mapping.json" );
149149 JsonSchemaFactory instance = JsonSchemaFactory .builder (JsonSchemaFactory .getInstance (SpecVersion .VersionFlag .V4 ))
150150 .schemaMappers (schemaMappers -> schemaMappers .add (getUriMappingsFromUrl (mappings ))).build ();
151151 SchemaValidatorsConfig config = SchemaValidatorsConfig .builder ().build ();
152- JsonSchema schema = instance .getSchema (SchemaLocation .of ("resource:draft4/extra/ uri_mapping/schema-with-ref.json" ),
152+ JsonSchema schema = instance .getSchema (SchemaLocation .of ("resource:uri_mapping/schema-with-ref.json" ),
153153 config );
154154 assertEquals (0 , schema .validate (mapper .readTree ("[]" )).size ());
155155 }
0 commit comments