static RequestMatcher | MockRestRequestMatchers.anything() | Match to any request. |
---|
RequestMatcher | XpathRequestMatchers.booleanValue(Boolean value) | Apply the XPath and assert the boolean value found. |
---|
RequestMatcher | ContentRequestMatchers.bytes(byte[] expectedContent) | Compare the body of the request to the given byte array. |
---|
RequestMatcher | ContentRequestMatchers.contentType(String expectedContentType) | Assert the request content type as a String. |
---|
RequestMatcher | ContentRequestMatchers.contentType(MediaType expectedContentType) | Assert the request content type as a MediaType . |
---|
RequestMatcher | ContentRequestMatchers.contentTypeCompatibleWith(String contentType) | |
---|
RequestMatcher | ContentRequestMatchers.contentTypeCompatibleWith(MediaType contentType) | |
---|
RequestMatcher | JsonPathRequestMatchers.doesNotExist() | Evaluate the JSON path expression against the request content and assert that a value does not exist at the given path. |
---|
RequestMatcher | XpathRequestMatchers.doesNotExist() | Assert that content does not exist at the given XPath. |
---|
RequestMatcher | JsonPathRequestMatchers.doesNotHaveJsonPath() | Evaluate the JSON path expression against the supplied content and assert that a value, including null values, does not exist at the given path. |
---|
RequestMatcher | JsonPathRequestMatchers.exists() | Evaluate the JSON path expression against the request content and assert that a non-null value exists at the given path. |
---|
RequestMatcher | XpathRequestMatchers.exists() | Assert that content exists at the given XPath. |
---|
RequestMatcher | ContentRequestMatchers.formData(MultiValueMap<String,String> expectedContent) | Parse the body as form data and compare to the given MultiValueMap . |
---|
RequestMatcher | JsonPathRequestMatchers.hasJsonPath() | Evaluate the JSON path expression against the response content and assert that a value, possibly null , exists. |
---|
static RequestMatcher | MockRestRequestMatchers.header(String name, String... expectedValues) | Assert request header values. |
---|
static RequestMatcher | MockRestRequestMatchers.header(String name, Matcher<? super String>... matchers) | Assert request header values with the given Hamcrest matcher(s). |
---|
static RequestMatcher | MockRestRequestMatchers.headerDoesNotExist(String name) | Assert that the given request header does not exist. |
---|
RequestMatcher | JsonPathRequestMatchers.isArray() | Evaluate the JSON path expression against the request content and assert that the result is an array. |
---|
RequestMatcher | JsonPathRequestMatchers.isBoolean() | Evaluate the JSON path expression against the request content and assert that the result is a Boolean . |
---|
RequestMatcher | JsonPathRequestMatchers.isEmpty() | Evaluate the JSON path expression against the request content and assert that an empty value exists at the given path. |
---|
RequestMatcher | JsonPathRequestMatchers.isMap() | Evaluate the JSON path expression against the request content and assert that the result is a Map . |
---|
RequestMatcher | JsonPathRequestMatchers.isNotEmpty() | Evaluate the JSON path expression against the request content and assert that a non-empty value exists at the given path. |
---|
RequestMatcher | JsonPathRequestMatchers.isNumber() | Evaluate the JSON path expression against the request content and assert that the result is a Number . |
---|
RequestMatcher | JsonPathRequestMatchers.isString() | Evaluate the JSON path expression against the request content and assert that the result is a String . |
---|
RequestMatcher | ContentRequestMatchers.json(String expectedJsonContent) | Parse the expected and actual strings as JSON and assert the two are "similar" - i.e. they contain the same attribute-value pairs regardless of formatting with a lenient checking (extensible, and non-strict array ordering). |
---|
RequestMatcher | ContentRequestMatchers.json(String expectedJsonContent, boolean strict) | Parse the request body and the given string as JSON and assert the two are "similar" - i.e. they contain the same attribute-value pairs regardless of formatting. |
---|
static <T> RequestMatcher | MockRestRequestMatchers.jsonPath(String expression, Matcher<T> matcher) | Access to request body matchers 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 RequestMatcher | MockRestRequestMatchers.method(HttpMethod method) | |
---|
RequestMatcher | ContentRequestMatchers.node(Matcher<? super Node> matcher) | Parse the request content as Node and apply the given Matcher . |
---|
RequestMatcher | XpathRequestMatchers.node(Matcher<? super Node> matcher) | Apply the XPath and assert it with the given Matcher<Node> . |
---|
RequestMatcher | XpathRequestMatchers.nodeCount(int expectedCount) | Apply the XPath and assert the number of nodes found. |
---|
RequestMatcher | XpathRequestMatchers.nodeCount(Matcher<Integer> matcher) | Apply the XPath and assert the number of nodes found with the given Matcher<Integer> . |
---|
RequestMatcher | XpathRequestMatchers.number(Double value) | Apply the XPath and assert the number value found. |
---|
RequestMatcher | XpathRequestMatchers.number(Matcher<? super Double> matcher) | Apply the XPath and assert the number found with the given matcher. |
---|
static RequestMatcher | MockRestRequestMatchers.queryParam(String name, String... expectedValues) | Assert request query parameter values. |
---|
static RequestMatcher | MockRestRequestMatchers.queryParam(String name, Matcher<? super String>... matchers) | Assert request query parameter values with the given Hamcrest matcher(s). |
---|
static RequestMatcher | MockRestRequestMatchers.requestTo(String expectedUri) | Assert the request URI matches the given string. |
---|
static RequestMatcher | MockRestRequestMatchers.requestTo(URI uri) | Expect a request to the given URI. |
---|
static RequestMatcher | MockRestRequestMatchers.requestTo(Matcher<String> matcher) | Assert the request URI string with the given Hamcrest matcher. |
---|
static RequestMatcher | MockRestRequestMatchers.requestToUriTemplate(String expectedUri, Object... uriVars) | |
---|
RequestMatcher | ContentRequestMatchers.source(Matcher<? super Source> matcher) | |
---|
RequestMatcher | ContentRequestMatchers.string(String expectedContent) | Get the body of the request as a UTF-8 string and compare it to the given String. |
---|
RequestMatcher | ContentRequestMatchers.string(Matcher<? super String> matcher) | Get the body of the request as a UTF-8 string and apply the given Matcher . |
---|
RequestMatcher | XpathRequestMatchers.string(String content) | Apply the XPath and assert the String content found. |
---|
RequestMatcher | XpathRequestMatchers.string(Matcher<? super String> matcher) | Apply the XPath and assert the String content found with the given matcher. |
---|
RequestMatcher | JsonPathRequestMatchers.value(Object expectedValue) | Evaluate the JSON path expression against the request content and assert that the result is equal to the supplied value. |
---|
<T> RequestMatcher | JsonPathRequestMatchers.value(Matcher<T> matcher) | Evaluate the JSON path expression against the request content and assert the resulting value with the given Hamcrest Matcher . |
---|
<T> RequestMatcher | JsonPathRequestMatchers.value(Matcher<T> matcher, Class<T> targetType) | |
---|
RequestMatcher | ContentRequestMatchers.xml(String expectedXmlContent) | Parse the request body and the given String as XML and assert that the two are "similar" - i.e. they contain the same elements and attributes regardless of order. |
---|