Class HypermediaWebTestClientConfigurer
java.lang.Object
org.springframework.hateoas.config.HypermediaWebTestClientConfigurer
- All Implemented Interfaces:
org.springframework.test.web.reactive.server.WebTestClientConfigurer
public class HypermediaWebTestClientConfigurer
extends Object
implements org.springframework.test.web.reactive.server.WebTestClientConfigurer
Assembles
Jackson2JsonEncoder
s and Jackson2JsonDecoder
s needed to wire a WebTestClient
with
hypermedia support.- Since:
- 1.1
- Author:
- Greg Turnquist
-
Method Summary
Modifier and TypeMethodDescriptionvoid
afterConfigurerAdded
(org.springframework.test.web.reactive.server.WebTestClient.Builder builder, @Nullable org.springframework.web.server.adapter.WebHttpHandlerBuilder webHttpHandlerBuilder, @Nullable org.springframework.http.client.reactive.ClientHttpConnector clientHttpConnector) Register the properJackson2JsonEncoder
s andJackson2JsonDecoder
s for a givenWebTestClient
.
-
Method Details
-
afterConfigurerAdded
public void afterConfigurerAdded(org.springframework.test.web.reactive.server.WebTestClient.Builder builder, @Nullable org.springframework.web.server.adapter.WebHttpHandlerBuilder webHttpHandlerBuilder, @Nullable org.springframework.http.client.reactive.ClientHttpConnector clientHttpConnector) Register the properJackson2JsonEncoder
s andJackson2JsonDecoder
s for a givenWebTestClient
.- Specified by:
afterConfigurerAdded
in interfaceorg.springframework.test.web.reactive.server.WebTestClientConfigurer
-