Class MockMvcClientHttpRequestFactory
java.lang.Object
org.springframework.test.web.client.MockMvcClientHttpRequestFactory
- All Implemented Interfaces:
org.springframework.http.client.ClientHttpRequestFactory
@Deprecated(since="7.0")
public class MockMvcClientHttpRequestFactory
extends Object
implements org.springframework.http.client.ClientHttpRequestFactory
Deprecated.
A
ClientHttpRequestFactory for requests executed via MockMvc.- Since:
- 3.2
- Author:
- Rossen Stoyanchev
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.client.ClientHttpRequestcreateRequest(URI uri, org.springframework.http.HttpMethod httpMethod) Deprecated.
-
Constructor Details
-
MockMvcClientHttpRequestFactory
Deprecated.
-
-
Method Details
-
createRequest
public org.springframework.http.client.ClientHttpRequest createRequest(URI uri, org.springframework.http.HttpMethod httpMethod) Deprecated.- Specified by:
createRequestin interfaceorg.springframework.http.client.ClientHttpRequestFactory
-
MockMvcClientHttpRequestFactory, or consider also usingRestTestClient.bindTo(MockMvc)for tests against a MockMvc server through a test client.