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 Jackson2JsonDecoders needed to wire a WebTestClient with hypermedia support.
Since:
1.1
Author:
Greg Turnquist
  • Method Summary

    Modifier and Type
    Method
    Description
    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 proper Jackson2JsonEncoders and Jackson2JsonDecoders for a given WebTestClient.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 proper Jackson2JsonEncoders and Jackson2JsonDecoders for a given WebTestClient.
      Specified by:
      afterConfigurerAdded in interface org.springframework.test.web.reactive.server.WebTestClientConfigurer