Fix Javadoc in ContentResultMatchers
Closes gh-1322
This commit is contained in:
committed by
Stephane Nicoll
parent
09d18f2ef5
commit
6aa300d733
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user