Announcement Announcement Module
Collapse
No announcement yet.
MediaType testing with charset Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • MediaType testing with charset

    I'm using spring-mvc-test to validate my server. One of the things I do is andExpect(content().contentType(MediaType.APPLICAT ION_JSON)), but my server is actually returning "application/json; charset=UTF-8".

    I'd like for the test to pass in this case, and consider it a bug in the testing and/or the MediaType in that it doesn't parse that stuff out.

    Thoughts?
Working...
X