spring-framework / org.springframework.test.web.client / SimpleRequestExpectationManager

SimpleRequestExpectationManager

open class SimpleRequestExpectationManager : AbstractRequestExpectationManager

Simple RequestExpectationManager that matches requests to expectations sequentially, i.e. in the order of declaration of expectations.

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.

Author
Rossen Stoyanchev

Author
Juergen Hoeller

Since
4.3

Constructors

<init>

SimpleRequestExpectationManager()

Simple RequestExpectationManager that matches requests to expectations sequentially, i.e. in the order of declaration of expectations.

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.

Functions

reset

open fun reset(): Unit

validateRequestInternal

open fun validateRequestInternal(request: ClientHttpRequest): ClientHttpResponse