Fix Javadoc in ContentResultMatchers

Closes gh-1322
This commit is contained in:
Masayasu Yamamoto
2017-02-09 21:33:56 +09:00
committed by Stephane Nicoll
parent dde9e27630
commit 56abc4a429

View File

@@ -127,7 +127,7 @@ public class ContentResultMatchers {
* Assert the response body content with a Hamcrest {@link Matcher}.
* <pre class="code">
* mockMvc.perform(get("/path"))
* .andExpect(content(containsString("text")));
* .andExpect(content().string(containsString("text")));
* </pre>
*/
public ResultMatcher string(final Matcher<? super String> matcher) {