forRestTemplate

open fun forRestTemplate(restTemplate: RestTemplate, expectationManager: RequestExpectationManager): RequestExpectationManager

Return RequestExpectationManager to be used for binding with the specified RestTemplate. If the RestTemplate is using a RootUriTemplateHandler then a RootUriRequestExpectationManager is returned, otherwise the source manager is returned unchanged.

Return

a RequestExpectationManager to be bound to the template

Parameters

restTemplate

the source REST template

expectationManager

the source RequestExpectationManager