java.lang.AssertionError

JSON path$.nr expected:<5> but was:<5>

Solutions on the web5784

  • JSON path$.nr expected:<5> but was:<5>
  • JSON path$.nr expected:<5> but was:<5>
  • via GitHub by playedinane
    , 1 year ago
    expected:<6> but was:<5>
  • Stack trace

    • java.lang.AssertionError: JSON path$.nr expected:<5> but was:<5> at org.springframework.test.util.AssertionErrors.fail(AssertionErrors.java:60) at org.springframework.test.util.AssertionErrors.assertEquals(AssertionErrors.java:89) at org.springframework.test.util.JsonPathExpectationsHelper.assertValue(JsonPathExpectationsHelper.java:99) at org.springframework.test.web.servlet.result.JsonPathResultMatchers$2.match(JsonPathResultMatchers.java:65) at org.springframework.test.web.servlet.MockMvc$1.andExpect(MockMvc.java:141)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    14 times, 1 week ago
    7 times, 2 months ago
    2 times, 2 months ago
    2 times, 2 months ago
    63 more bugmates