spring-framework / org.springframework.test.web.servlet.htmlunit / MockMvcWebClientBuilder / build

build

open fun build(): WebClient

Build the WebClient configured via this builder.

The returned client will use the configured MockMvc instance for processing any WebRequestMatcher requests and a delegate WebClient for all other requests.

If a delegate has been explicitly configured, it will be used; otherwise, a default WebClient will be configured as the delegate.

Return
the WebClient to use

See Also
#withDelegate(WebClient)