Package org.springframework.test.web.client
@NonNullApi
@NonNullFields
package org.springframework.test.web.client
Contains client-side REST testing support.
- See Also:
-
ClassDescriptionBase class for
RequestExpectationManager
implementations responsible for storing expectations and actual requests, and checking for unsatisfied expectations at the end.Helper class to manage a group of remaining expectations.Default implementation ofRequestExpectation
that simply delegates to the request matchers and the response creator it contains.Helper class that keeps track of actual vs expected request count.A simple type representing a range for an expected count.AClientHttpRequestFactory
for requests executed viaMockMvc
.Main entry point for client-side REST testing.Builder to create aMockRestServiceServer
.An extension ofResponseActions
that also implementsRequestMatcher
andResponseCreator
Encapsulates the behavior required to implementMockRestServiceServer
including its public API (create expectations + verify/reset) along with an extra method for verifying actual requests.A contract for matching requests to expectations.A contract for setting up request expectations and defining a response.A contract for creating aClientHttpResponse
.SimpleRequestExpectationManager
that matches requests to expectations sequentially, i.e.RequestExpectationManager
that matches requests to expectations regardless of the order of declaration of expected requests.