From 0013a43237c65543d7cad2fa582a08e802e89942 Mon Sep 17 00:00:00 2001 From: hupfis Date: Fri, 24 Jan 2014 09:26:09 +0100 Subject: [PATCH] Fixed code example in JavaDoc equalTo is not a valid method on JsonPathResultMatchers I have signed and agree to the terms of the SpringSource Individual Contributor License Agreement. --- .../org/springframework/test/web/servlet/ResultActions.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 903f4011d5..cccc642ac6 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 @@ -37,7 +37,7 @@ public interface ResultActions { * mockMvc.perform(get("/person/1")) * .andExpect(status.isOk()) * .andExpect(content().mimeType(MediaType.APPLICATION_JSON)) - * .andExpect(jsonPath("$.person.name").equalTo("Jason")); + * .andExpect(jsonPath("$.person.name").value("Jason")); * * mockMvc.perform(post("/form")) * .andExpect(status.isOk()) @@ -67,4 +67,4 @@ public interface ResultActions { */ MvcResult andReturn(); -} \ No newline at end of file +}