Merge pull request #71 from imsglc/feature/upload_uri_in_api
Fixed tests
This commit is contained in:
commit
3ba3c642a9
@ -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