Fixed tests

This commit is contained in:
Xavi Aracil 2023-03-03 13:53:42 +01:00
parent 34962fd631
commit 8ba2925b78

View File

@ -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);
}); });
} }