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
Jackson2JsonEncoders and AbstractJacksonDecoders needed to wire a WebTestClient
with hypermedia support.- Since:
- 1.1
- Author:
- Greg Turnquist
-
Method Summary
Modifier and TypeMethodDescriptionvoidafterConfigurerAdded(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 properJackson2JsonEncoders andAbstractJacksonDecoders 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 properJackson2JsonEncoders andAbstractJacksonDecoders for a givenWebTestClient.- Specified by:
afterConfigurerAddedin interfaceorg.springframework.test.web.reactive.server.WebTestClientConfigurer
-