-
Dec 7th, 2012, 06:51 PM
#1
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?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules