Class MockClientHttpRequest

java.lang.Object
org.springframework.mock.http.MockHttpOutputMessage
org.springframework.mock.http.client.MockClientHttpRequest
All Implemented Interfaces:
ClientHttpRequest, HttpMessage, HttpOutputMessage, HttpRequest

public class MockClientHttpRequest extends MockHttpOutputMessage implements ClientHttpRequest
Mock implementation of ClientHttpRequest.
Since:
3.2
Author:
Rossen Stoyanchev, Brian Clozel, Sam Brannen
  • Constructor Details

    • MockClientHttpRequest

      public MockClientHttpRequest()
      Create a MockClientHttpRequest with GET as the HTTP request method and "/" as the URI.
    • MockClientHttpRequest

      public MockClientHttpRequest(HttpMethod httpMethod, String uriTemplate, Object... vars)
      Create a MockClientHttpRequest with the given HttpMethod, URI template, and URI template variable values.
      Since:
      6.0.3
    • MockClientHttpRequest

      public MockClientHttpRequest(HttpMethod httpMethod, URI uri)
      Create a MockClientHttpRequest with the given HttpMethod and URI.
  • Method Details