GeezerVison is showing github.com — New W3C json-ld-api test structure does not run · Issue #262 · jsonld-java/jsonld-java
New W3C json-ld-api test structure does not run #262
Description
The JSON-LD 1.1 tests at https://github.com/w3c/json-ld-api/tree/master/tests use manifests with an additional layer of nesting: there's a file called manifest.jsonld that contains a list of manifest files, rather than a list of test objects. This breaks the JsonLdProcessor tests as it tries to process all manifest files and expects the latter structure: a list of test objects.
-------------------------------------------------------------------------------
Test set: com.github.jsonldjava.core.JsonLdProcessorTest
-------------------------------------------------------------------------------
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.063 s <<< FAILURE! - in com.github.jsonldjava.core.JsonLdProcessorTest
initializationError(com.github.jsonldjava.core.JsonLdProcessorTest) Time elapsed: 0.025 s <<< ERROR!
java.lang.ClassCastException: class java.lang.String cannot be cast to class java.util.Map (java.lang.String and java.util.Map are in module java.base of loader 'bootstrap')
at com.github.jsonldjava.core.JsonLdProcessorTest.data(JsonLdProcessorTest.java:212)
Solution: either explicitly exclude manifest.jsonld from the processing, or explicitly start with that file to find the "normal" manifest files.
Activity
RinkeHoekstra commented on Jun 21, 2019
I can confirm that excluding the manifest.jsonld explicitly will make the tests run (though very many of them fail).
ansell commented on Jun 26, 2019
RinkeHoekstra commented on Jun 27, 2019
@ansell ok, did my best :-)
The tests now run with a copy of the W3C test suite for JSON-LD 1.1
As the comments in the code already said, ideally these tests would be pulled automatically from that repository. Perhaps an intermediate solution would be to configure a submodule.
Metadata
Metadata
Development
No branches or pull requestsIssue actions