Skip to content

Should fail on JSON fields duplication #95

Description

@vl021188

There is an issue with comparion of JSON with duplicated fields:

    @Test
    public void testJSONAssert() throws JSONException {
        String expected = "{\"field\":\"val1\"}";
        String actual = "{\"field\":\"val2\",\"field\":\"val1\"}";
        JSONAssert.assertEquals(expected, actual, JSONCompareMode.STRICT);
    }

This test has passed but it don't looks like expected behavior.

The issue is actual for Jackson serializer in java. It behaves incorrect in some cases and I would like to check it in my tests.

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