类的使用
org.springframework.test.web.servlet.result.JsonPathResultMatchers
使用JsonPathResultMatchers的程序包 程序包 说明 org.springframework.test.web.servlet.result Contains built-inResultMatcherandResultHandlerimplementations.org.springframework.test.web.servlet.result中JsonPathResultMatchers的使用
返回JsonPathResultMatchers的org.springframework.test.web.servlet.result中的方法 修饰符和类型 方法 说明 static JsonPathResultMatchersMockMvcResultMatchers. jsonPath(String expression, Object... args)Access to response body assertions using a JsonPath expression to inspect a specific subset of the body.JsonPathResultMatchersJsonPathResultMatchers. prefix(String prefix)Configures the currentJsonPathResultMatchersinstance to verify that the JSON payload is prepended with the given prefix.