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