Skip to content

No detailed message when comparison of JSONString fails #101

@vkorobkov

Description

@vkorobkov

When two JSONString objects are compared with org.skyscreamer.jsonassert.JSONCompare#compareJson
then org.skyscreamer.jsonassert.JSONCompareResult does not have an error message with actual/expected values.

That results with unclear failures of unit tests(in my example it is junit 5):
image

The only option for me was to debug when I wanted to get the actual/expected values mismatch.

How to reproduce with JUnit and Groovy:

@Test
void testJsonAssert() {
    JSONAssert.assertEquals('"EXPECTED"', '"ACTUAL"', true)
}

Cheers

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