public class MockHttpClient extends Object
| Constructor and Description |
|---|
MockHttpClient(org.springframework.test.web.servlet.MockMvc mockMvc,
com.fasterxml.jackson.databind.ObjectMapper objectMapper) |
| Modifier and Type | Method and Description |
|---|---|
Request<Void> |
delete(String path) |
<RESP> Request<RESP> |
delete(String path,
Class<RESP> responseType) |
<RESP> Request<RESP> |
delete(String path,
org.springframework.core.ParameterizedTypeReference<RESP> responseType) |
<RESP> Response<RESP> |
execute(Request<RESP> request) |
<RESP> Request<RESP> |
get(String path,
Class<RESP> responseType) |
<RESP> Request<RESP> |
get(String path,
org.springframework.core.ParameterizedTypeReference<RESP> responseType) |
<RESP> Request<RESP> |
patch(String path,
Class<RESP> responseType) |
<RESP> Request<RESP> |
patch(String path,
org.springframework.core.ParameterizedTypeReference<RESP> responseType) |
<RESP> Request<RESP> |
post(String path,
Class<RESP> responseType) |
<RESP> Request<RESP> |
post(String path,
org.springframework.core.ParameterizedTypeReference<RESP> responseType) |
<RESP> Request<RESP> |
put(String path,
Class<RESP> responseType) |
<RESP> Request<RESP> |
put(String path,
org.springframework.core.ParameterizedTypeReference<RESP> responseType) |
<RESP> Request<RESP> |
request(org.springframework.http.HttpMethod method,
String path,
Class<RESP> responseType) |
<RESP> Request<RESP> |
request(org.springframework.http.HttpMethod method,
String path,
org.springframework.core.ParameterizedTypeReference<RESP> responseType) |
<RESP> Request<RESP> |
request(org.springframework.http.HttpMethod method,
String path,
Type responseType) |
public MockHttpClient(org.springframework.test.web.servlet.MockMvc mockMvc,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
public <RESP> Request<RESP> request(org.springframework.http.HttpMethod method, String path, Type responseType)
public <RESP> Request<RESP> request(org.springframework.http.HttpMethod method, String path, Class<RESP> responseType)
public <RESP> Request<RESP> request(org.springframework.http.HttpMethod method, String path, org.springframework.core.ParameterizedTypeReference<RESP> responseType)
public <RESP> Request<RESP> get(String path, org.springframework.core.ParameterizedTypeReference<RESP> responseType)
public <RESP> Request<RESP> post(String path, org.springframework.core.ParameterizedTypeReference<RESP> responseType)
public <RESP> Request<RESP> put(String path, org.springframework.core.ParameterizedTypeReference<RESP> responseType)
public <RESP> Request<RESP> patch(String path, org.springframework.core.ParameterizedTypeReference<RESP> responseType)
public <RESP> Request<RESP> delete(String path, org.springframework.core.ParameterizedTypeReference<RESP> responseType)
Copyright © 2020. All rights reserved.