open class DefaultRequestExpectation : RequestExpectation
Default implementation of |
|
open class MockMvcClientHttpRequestFactory : ClientHttpRequestFactory, AsyncClientHttpRequestFactory
A ClientHttpRequestFactory for requests executed via MockMvc. As of 5.0 this class also implements org.springframework.http.client.AsyncClientHttpRequestFactory. However note that org.springframework.web.client.AsyncRestTemplate and related classes have been deprecated at the same time. |
|
open class MockRestServiceServer
Main entry point for client-side REST testing. Used for tests that involve direct or indirect use of the RestTemplate. Provides a way to set up expected requests that will be performed through the Below is an example that assumes static imports from
Note that as an alternative to the above you can also set the MockMvcClientHttpRequestFactory on a |
|
interface RequestExpectation : ResponseActions, RequestMatcher, ResponseCreator
An extension of While |
|
interface ResponseCreator
A contract for creating a ClientHttpResponse. Implementations can be obtained via MockRestResponseCreators. |
|
open class SimpleRequestExpectationManager : AbstractRequestExpectationManager
Simple When request expectations have an expected count greater than one, only the first execution is expected to match the order of declaration. Subsequent request executions may be inserted anywhere thereafter. |
|
open class UnorderedRequestExpectationManager : AbstractRequestExpectationManager
|