Package | Description |
---|---|
org.springframework.social.test.client |
Test framework for ServiceProvider APIs.
|
Modifier and Type | Method and Description |
---|---|
static ResponseCreator |
ResponseCreators.withResponse(org.springframework.core.io.Resource responseBody,
org.springframework.http.HttpHeaders headers)
Response with a given response body and headers.
|
static ResponseCreator |
ResponseCreators.withResponse(org.springframework.core.io.Resource responseBodyResource,
org.springframework.http.HttpHeaders headers,
org.springframework.http.HttpStatus statusCode,
String statusText)
Respond with a given response body (from a
Resource ) and headers. |
static ResponseCreator |
ResponseCreators.withResponse(String responseBody,
org.springframework.http.HttpHeaders headers)
Response with a given response body and headers.
|
static ResponseCreator |
ResponseCreators.withResponse(String responseBody,
org.springframework.http.HttpHeaders headers,
org.springframework.http.HttpStatus statusCode,
String statusText)
Respond with a given response body, headers, status code, and status text.
|
Modifier and Type | Method and Description |
---|---|
void |
MockClientHttpRequest.andRespond(ResponseCreator responseCreator) |
void |
ResponseActions.andRespond(ResponseCreator responseCreator)
Sets the
ResponseCreator for this mock. |
Copyright © 2016. All rights reserved.