How-to articles, tricks, and solutions about SPRING-TEST-MVC
How to check String in response body with mockMvc
To check a string in the response body with MockMvc, you can use the andExpect() method of the MockMvcResultMatchers class.