spring-framework / org.springframework.test.web.client.match / MockRestRequestMatchers / requestTo

requestTo

open static fun requestTo(matcher: Matcher<String>): RequestMatcher

Assert the request URI string with the given matcher.

Parameters

matcher - String matcher for the expected URI

Return
the request matcher

open static fun requestTo(expectedUri: String): RequestMatcher

Assert the request URI matches the given string.

Parameters

expectedUri - the expected URI

Return
the request matcher

open static fun requestTo(uri: URI): RequestMatcher

Expect a request to the given URI.

Parameters

uri - the expected URI

Return
the request matcher