From 1cf38a98a4acd1b0e15d4931a9b7abedaa470f23 Mon Sep 17 00:00:00 2001 From: Anton Bobov Date: Mon, 10 Feb 2014 14:09:09 +0600 Subject: [PATCH] Fixed example in JavaDoc. mimeType is not a valid method on ContentResultMatche. I have signed and agree to the terms of the SpringSource Individual Contributor License Agreement. --- .../org/springframework/test/web/servlet/ResultActions.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-test/src/main/java/org/springframework/test/web/servlet/ResultActions.java b/spring-test/src/main/java/org/springframework/test/web/servlet/ResultActions.java index cccc642ac6..234b95411b 100644 --- a/spring-test/src/main/java/org/springframework/test/web/servlet/ResultActions.java +++ b/spring-test/src/main/java/org/springframework/test/web/servlet/ResultActions.java @@ -36,7 +36,7 @@ public interface ResultActions { * * mockMvc.perform(get("/person/1")) * .andExpect(status.isOk()) - * .andExpect(content().mimeType(MediaType.APPLICATION_JSON)) + * .andExpect(content().contentType(MediaType.APPLICATION_JSON)) * .andExpect(jsonPath("$.person.name").value("Jason")); * * mockMvc.perform(post("/form"))