Skip to content

New W3C json-ld-api test structure does not run #262

@RinkeHoekstra

Description

@RinkeHoekstra

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions