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 at org.springframework.test.util.AssertionErrors.assertEquals( at org.springframework.test.web.servlet.result.ContentResultMatchers$1.match( at org.springframework.test.web.servlet.MockMvc$1.andExpect(

    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, last one
    Михайло ТітовМихайло Тітов
    7 times, last one
    2 times, last one
    2 times, last one
    63 more bugmates