@@ -52,7 +52,7 @@ public static void setUp() {
52
52
server = Undertow .builder ()
53
53
.addHttpListener (1234 , "localhost" )
54
54
.setHandler (resource (new FileResourceManager (
55
- new File ("./src/test/resources/tests " ), 100 )))
55
+ new File ("./src/test/resources/draft4 " ), 100 )))
56
56
.build ();
57
57
server .start ();
58
58
}
@@ -136,198 +136,198 @@ public void testLoadingWithId() throws Exception {
136
136
137
137
@ Test
138
138
public void testBignumValidator () throws Exception {
139
- runTestFile ("tests /optional/bignum.json" );
139
+ runTestFile ("draft4 /optional/bignum.json" );
140
140
}
141
141
142
142
@ Test
143
143
public void testFormatValidator () throws Exception {
144
- runTestFile ("tests /optional/format.json" );
144
+ runTestFile ("draft4 /optional/format.json" );
145
145
}
146
146
147
147
@ Test
148
148
public void testComplexSchema () throws Exception {
149
- runTestFile ("tests /optional/complex.json" );
149
+ runTestFile ("draft4 /optional/complex.json" );
150
150
}
151
151
152
152
@ Test
153
153
public void testZeroTerminatedFloatsValidator () throws Exception {
154
- runTestFile ("tests /optional/zeroTerminatedFloats.json" );
154
+ runTestFile ("draft4 /optional/zeroTerminatedFloats.json" );
155
155
}
156
156
157
157
@ Test
158
158
public void testAdditionalItemsValidator () throws Exception {
159
- runTestFile ("tests /additionalItems.json" );
159
+ runTestFile ("draft4 /additionalItems.json" );
160
160
}
161
161
162
162
@ Test
163
163
public void testAdditionalPropertiesValidator () throws Exception {
164
- runTestFile ("tests /additionalProperties.json" );
164
+ runTestFile ("draft4 /additionalProperties.json" );
165
165
}
166
166
167
167
@ Test
168
168
public void testAllOfValidator () throws Exception {
169
- runTestFile ("tests /allOf.json" );
169
+ runTestFile ("draft4 /allOf.json" );
170
170
}
171
171
172
172
@ Test
173
173
public void testAnyOFValidator () throws Exception {
174
- runTestFile ("tests /anyOf.json" );
174
+ runTestFile ("draft4 /anyOf.json" );
175
175
}
176
176
177
177
@ Test
178
178
public void testDefaultValidator () throws Exception {
179
- runTestFile ("tests /default.json" );
179
+ runTestFile ("draft4 /default.json" );
180
180
}
181
181
182
182
@ Test
183
183
public void testDefinitionsValidator () throws Exception {
184
- runTestFile ("tests /definitions.json" );
184
+ runTestFile ("draft4 /definitions.json" );
185
185
}
186
186
187
187
@ Test
188
188
public void testDependenciesValidator () throws Exception {
189
- runTestFile ("tests /dependencies.json" );
189
+ runTestFile ("draft4 /dependencies.json" );
190
190
}
191
191
192
192
@ Test
193
193
public void testEnumValidator () throws Exception {
194
- runTestFile ("tests /enum.json" );
194
+ runTestFile ("draft4 /enum.json" );
195
195
}
196
196
197
197
@ Test
198
198
public void testItemsValidator () throws Exception {
199
- runTestFile ("tests /items.json" );
199
+ runTestFile ("draft4 /items.json" );
200
200
}
201
201
202
202
@ Test
203
203
public void testMaximumValidator () throws Exception {
204
- runTestFile ("tests /maximum.json" );
204
+ runTestFile ("draft4 /maximum.json" );
205
205
}
206
206
207
207
@ Test
208
208
public void testMaxItemsValidator () throws Exception {
209
- runTestFile ("tests /maxItems.json" );
209
+ runTestFile ("draft4 /maxItems.json" );
210
210
}
211
211
212
212
@ Test
213
213
public void testMaxLengthValidator () throws Exception {
214
- runTestFile ("tests /maxLength.json" );
214
+ runTestFile ("draft4 /maxLength.json" );
215
215
}
216
216
217
217
@ Test
218
218
public void testMaxPropertiesValidator () throws Exception {
219
- runTestFile ("tests /maxProperties.json" );
219
+ runTestFile ("draft4 /maxProperties.json" );
220
220
}
221
221
222
222
@ Test
223
223
public void testMinimumValidator () throws Exception {
224
- runTestFile ("tests /minimum.json" );
224
+ runTestFile ("draft4 /minimum.json" );
225
225
}
226
226
227
227
@ Test
228
228
public void testMinItemsValidator () throws Exception {
229
- runTestFile ("tests /minItems.json" );
229
+ runTestFile ("draft4 /minItems.json" );
230
230
}
231
231
232
232
@ Test
233
233
public void testMinLengthValidator () throws Exception {
234
- runTestFile ("tests /minLength.json" );
234
+ runTestFile ("draft4 /minLength.json" );
235
235
}
236
236
237
237
@ Test
238
238
public void testMinPropertiesValidator () throws Exception {
239
- runTestFile ("tests /minProperties.json" );
239
+ runTestFile ("draft4 /minProperties.json" );
240
240
}
241
241
242
242
@ Test
243
243
public void testMultipleOfValidator () throws Exception {
244
- runTestFile ("tests /multipleOf.json" );
244
+ runTestFile ("draft4 /multipleOf.json" );
245
245
}
246
246
247
247
@ Test
248
248
public void testNotValidator () throws Exception {
249
- runTestFile ("tests /not.json" );
249
+ runTestFile ("draft4 /not.json" );
250
250
}
251
251
252
252
@ Test
253
253
public void testOneOfValidator () throws Exception {
254
- runTestFile ("tests /oneOf.json" );
254
+ runTestFile ("draft4 /oneOf.json" );
255
255
}
256
256
257
257
@ Test
258
258
public void testPatternValidator () throws Exception {
259
- runTestFile ("tests /pattern.json" );
259
+ runTestFile ("draft4 /pattern.json" );
260
260
}
261
261
262
262
@ Test
263
263
public void testPatternPropertiesValidator () throws Exception {
264
- runTestFile ("tests /patternProperties.json" );
264
+ runTestFile ("draft4 /patternProperties.json" );
265
265
}
266
266
267
267
@ Test
268
268
public void testPropertiesValidator () throws Exception {
269
- runTestFile ("tests /properties.json" );
269
+ runTestFile ("draft4 /properties.json" );
270
270
}
271
271
272
272
@ Test
273
273
public void testRefValidator () throws Exception {
274
- runTestFile ("tests /ref.json" );
274
+ runTestFile ("draft4 /ref.json" );
275
275
}
276
276
277
277
@ Test
278
278
public void testRefRemoteValidator () throws Exception {
279
- runTestFile ("tests /refRemote.json" );
279
+ runTestFile ("draft4 /refRemote.json" );
280
280
}
281
281
282
282
@ Test
283
283
public void testRelativeRefRemoteValidator () throws Exception {
284
- runTestFile ("tests /relativeRefRemote.json" );
284
+ runTestFile ("draft4 /relativeRefRemote.json" );
285
285
}
286
286
287
287
@ Test
288
288
public void testRequiredValidator () throws Exception {
289
- runTestFile ("tests /required.json" );
289
+ runTestFile ("draft4 /required.json" );
290
290
}
291
291
292
292
293
293
@ Test
294
294
public void testTypeValidator () throws Exception {
295
- runTestFile ("tests /type.json" );
295
+ runTestFile ("draft4 /type.json" );
296
296
}
297
297
298
298
@ Test
299
299
public void testUnionTypeValidator () throws Exception {
300
- runTestFile ("tests /union_type.json" );
300
+ runTestFile ("draft4 /union_type.json" );
301
301
}
302
302
303
303
@ Test
304
304
public void testUniqueItemsValidator () throws Exception {
305
- runTestFile ("tests /uniqueItems.json" );
305
+ runTestFile ("draft4 /uniqueItems.json" );
306
306
}
307
307
308
308
@ Test
309
309
public void testEnumObject () throws Exception {
310
- runTestFile ("tests /enumObject.json" );
310
+ runTestFile ("draft4 /enumObject.json" );
311
311
}
312
312
313
313
@ Test
314
314
public void testIdSchemaWithUrl () throws Exception {
315
- runTestFile ("tests /id_schema/property.json" );
315
+ runTestFile ("draft4 /id_schema/property.json" );
316
316
}
317
317
318
318
@ Test
319
319
public void testSchemaFromClasspath () throws Exception {
320
- runTestFile ("tests /classpath/schema.json" );
320
+ runTestFile ("draft4 /classpath/schema.json" );
321
321
}
322
322
323
323
@ Test
324
324
public void testUUIDValidator () throws Exception {
325
- runTestFile ("tests /uuid.json" );
325
+ runTestFile ("draft4 /uuid.json" );
326
326
}
327
327
328
328
@ Test
329
329
public void testIfValidator () throws Exception {
330
- runTestFile ("tests /if.json" );
330
+ runTestFile ("draft4 /if.json" );
331
331
}
332
332
333
333
/**
@@ -402,7 +402,7 @@ private Set<ValidationMessage> validateFailingFastSchemaFor(final String schemaF
402
402
private JsonNode getJsonNodeFromResource (final ObjectMapper mapper , final String locationInTestResources ) throws IOException {
403
403
return mapper .readTree (
404
404
Thread .currentThread ().getContextClassLoader ()
405
- .getResourceAsStream ("tests " + System .getProperty ("file.separator" ) + locationInTestResources ));
405
+ .getResourceAsStream ("draft4 " + System .getProperty ("file.separator" ) + locationInTestResources ));
406
406
407
407
}
408
408
}
0 commit comments