Skip to content

Got exception during array assertion #8

Description

@hexwit

Doing assertion like this:
JsonPathAssert(ctx).jsonPathAsString("$.entities").isEmpty();

And got following exception:

java.lang.RuntimeException: Invalid or non Implemented status createArray() in class net.minidev.json.writer.BeansMapper$Bean
        at net.minidev.json.writer.JsonReaderI.createArray(JsonReaderI.java:98)
        at net.minidev.json.parser.JSONParserBase.readArray(JSONParserBase.java:235)
        at net.minidev.json.parser.JSONParserBase.readFirst(JSONParserBase.java:300)
        at net.minidev.json.parser.JSONParserBase.parse(JSONParserBase.java:154)
        at net.minidev.json.parser.JSONParserString.parse(JSONParserString.java:58)
        at net.minidev.json.parser.JSONParser.parse(JSONParser.java:263)
        at net.minidev.json.JSONValue.parse(JSONValue.java:206)
        at com.jayway.jsonpath.spi.mapper.JsonSmartMappingProvider.map(JsonSmartMappingProvider.java:82)
        at com.jayway.jsonpath.internal.JsonContext.convert(JsonContext.java:192)
        at com.jayway.jsonpath.internal.JsonContext.read(JsonContext.java:158)
        at com.revinate.assertj.json.JsonPathAssert.jsonPathAsString(JsonPathAssert.java:31)

Could you say what is the reason and how to fix it?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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