Browse Source

Fix broken test in ContentAssertionTests

pull/216/head
Sam Brannen 12 years ago
parent
commit
33ee0ea4a6
  1. 2
      spring-test-mvc/src/test/java/org/springframework/test/web/servlet/samples/standalone/resultmatchers/ContentAssertionTests.java

2
spring-test-mvc/src/test/java/org/springframework/test/web/servlet/samples/standalone/resultmatchers/ContentAssertionTests.java

@ -63,7 +63,7 @@ public class ContentAssertionTests {
this.mockMvc.perform(get("/handleUtf8")) this.mockMvc.perform(get("/handleUtf8"))
.andExpect(content().contentType(MediaType.valueOf("text/plain;charset=UTF-8"))) .andExpect(content().contentType(MediaType.valueOf("text/plain;charset=UTF-8")))
.andExpect(content().contentType("text/plain;charset=UTF-8")) .andExpect(content().contentType("text/plain;charset=UTF-8"))
.andExpect(content().contentTypeCompatibleWith("text/plan")) .andExpect(content().contentTypeCompatibleWith("text/plain"))
.andExpect(content().contentTypeCompatibleWith(MediaType.TEXT_PLAIN)); .andExpect(content().contentTypeCompatibleWith(MediaType.TEXT_PLAIN));
} }

Loading…
Cancel
Save