java.lang.AssertionError

Content type expected: but was:

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web93

  • via Unknown by Unknown author,
  • via Unknown by Unknown author,
  • Stack trace

    • java.lang.AssertionError: Content type expected: but was: at org.springframework.test.util.AssertionErrors.fail(AssertionErrors.java:60) at org.springframework.test.util.AssertionErrors.assertEquals(AssertionErrors.java:89) at org.springframework.test.web.servlet.result.ContentResultMatchers$1.match(ContentResultMatchers.java:71) 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

    AxeloAxelo
    14 times, last one
    Михайло ТітовМихайло Тітов
    olle.hallinolle.hallin
    7 times, last one
    tvrmsmithtvrmsmith
    2 times, last one
    jpveejpvee
    2 times, last one
    63 more bugmates