public abstract class HttpResultMatchers extends Object
ResultMatcher-based result actions.| 构造器和说明 |
|---|
HttpResultMatchers() |
| 限定符和类型 | 方法和说明 |
|---|---|
static ContentResultMatchers |
content()
Access to http response assertions.
|
static JsonPathResultMatchers |
jsonPath(String expression)
Access to response body assertions using a JSONPath expression to
inspect a specific subset of the body.
|
static <T> ResultMatcher |
jsonPath(String expression,
org.hamcrest.Matcher<T> matcher)
Access to response body assertions using a JSONPath expression to
inspect a specific subset of the body and a Hamcrest match for asserting
the value found at the JSON path.
|
static <T> ResultMatcher |
jsonPath(String expression,
T expected)
Inspect a specific subset of the body and compare it with the expected value
expected. |
static StatusResultMatchers |
status()
Access to http response status assertions.
|
public static StatusResultMatchers status()
public static <T> ResultMatcher jsonPath(String expression, org.hamcrest.Matcher<T> matcher)
expression - the JSON path expressionmatcher - a matcher for the value expected at the JSON pathpublic static <T> ResultMatcher jsonPath(String expression, T expected)
expected.expression - the JSON path expressionexpected - expcted valuepublic static JsonPathResultMatchers jsonPath(String expression)
expression - the JSON path expressionpublic static ContentResultMatchers content()
Copyright © 2016. All rights reserved.