Skip to content

Introduce NON_EXTENSIBLE JSON assertion support in spring-test #25079

@membersound

Description

@membersound

Please add a method for JSONCompareMode.NON_EXTENSIBLE to JsonExpectationsHelper in spring-test.

Because: mostly you want to assert that both requests contain exactly the same content and the same fields. But order of elements usually does not matter, as json is nothing other than a HashMap.

That's simply not possible to assert as of now.

NON_EXTENSIBLE is the correct mode in that case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: testIssues in the test modulein: webIssues in web modules (web, webmvc, webflux, websocket)status: declinedA suggestion or change that we don't feel we should currently applystatus: feedback-providedFeedback has been provided

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions