Package | Description |
---|---|
org.springframework.social.test.client |
Test framework for ServiceProvider APIs.
|
Modifier and Type | Method and Description |
---|---|
static RequestMatcher |
RequestMatchers.anything()
Expects any request.
|
static RequestMatcher |
RequestMatchers.body(String body)
Expects the given request body content
|
static RequestMatcher |
RequestMatchers.header(String header,
String value)
Expects the given request header
|
static RequestMatcher |
RequestMatchers.headerContains(String header,
String substring)
Expects that the specified request header contains a subtring
|
static RequestMatcher |
RequestMatchers.method(org.springframework.http.HttpMethod method)
Expects the given
HttpMethod . |
static RequestMatcher |
RequestMatchers.requestTo(String uri)
Expects a request to the given URI.
|
static RequestMatcher |
RequestMatchers.requestTo(URI uri)
Expects a request to the given URI.
|
Modifier and Type | Method and Description |
---|---|
ResponseActions |
MockClientHttpRequest.andExpect(RequestMatcher requestMatcher) |
ResponseActions |
ResponseActions.andExpect(RequestMatcher requestMatcher)
Allows for further expectations to be set on the request.
|
ResponseActions |
MockRestServiceServer.expect(RequestMatcher requestMatcher)
Records an expectation specified by the given
RequestMatcher . |
Copyright © 2016. All rights reserved.