open fun string(matcher: Matcher<in String>): ResultMatcher
Assert the response body content with a Hamcrest Matcher.
mockMvc.perform(get("/path")) .andExpect(content().string(containsString("text")));
open fun string(expectedContent: String): ResultMatcher
Assert the response body content as a String.