mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-24 07:39:09 +00:00
Fix Javadoc in ContentResultMatchers
Closes gh-1322
This commit is contained in:
committed by
Stephane Nicoll
parent
09d18f2ef5
commit
6aa300d733
+1
-1
@@ -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