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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue