Skip to content

Ignore order of fields in snapshot. #9

@ftes

Description

@ftes

The snapshot is serialized as JSON. JSON does not guarantee ordering of object fields.

RFC7159

An object is an unordered collection of zero or more name/value pairs

However, the snapshot test fails if the order of fields in the serialized JSON has changed.

Snapshot.java#L42

if (!rawSnapshot.trim().equals(currentObject.trim()))

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions