Fixed tests
This commit is contained in:
parent
34962fd631
commit
8ba2925b78
@ -346,13 +346,13 @@ public class OB30Tests {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
void testCompleteJsonInvalidInlineSchemaRef() throws Exception {
|
void testCompleteJsonInvalidInlineSchemaRef() throws Exception {
|
||||||
//404 inline schema ref, and 404 refresh uri
|
//404 inline schema ref
|
||||||
assertDoesNotThrow(()->{
|
assertDoesNotThrow(()->{
|
||||||
Report report = validator.run(Samples.OB30.JSON.COMPLETE_JSON.asFileResource());
|
Report report = validator.run(Samples.OB30.JSON.COMPLETE_JSON.asFileResource());
|
||||||
if(verbose) PrintHelper.print(report, true);
|
if(verbose) PrintHelper.print(report, true);
|
||||||
assertFalse(report.asBoolean());
|
assertFalse(report.asBoolean());
|
||||||
assertTrue(Iterables.size(report.getErrors()) > 0);
|
assertTrue(Iterables.size(report.getErrors()) > 0);
|
||||||
assertTrue(Iterables.size(report.getExceptions()) > 0);
|
// assertTrue(Iterables.size(report.getExceptions()) > 0);
|
||||||
assertHasProbeID(report, InlineJsonSchemaProbe.ID, true);
|
assertHasProbeID(report, InlineJsonSchemaProbe.ID, true);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user