Class SpringBootRestTestClientBuilderCustomizer

java.lang.Object
org.springframework.boot.resttestclient.autoconfigure.SpringBootRestTestClientBuilderCustomizer
All Implemented Interfaces:
RestTestClientBuilderCustomizer

public class SpringBootRestTestClientBuilderCustomizer extends Object implements RestTestClientBuilderCustomizer
RestTestClientBuilderCustomizer for a typical Spring Boot application. Usually applied automatically via @AutoConfigureRestTestClient, but may also be used directly.
Since:
4.0.0
  • Constructor Summary

    Constructors
    Constructor
    Description
    SpringBootRestTestClientBuilderCustomizer(Collection<org.springframework.boot.http.converter.autoconfigure.ClientHttpMessageConvertersCustomizer> messageConverterCustomizers)
    Create a new SpringBootRestTestClientBuilderCustomizer that will configure the builder's message converters using the given messageConverterCustomizers.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    customize(org.springframework.test.web.servlet.client.RestTestClient.Builder<?> builder)
    Customize the given RestTestClient.Builder.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SpringBootRestTestClientBuilderCustomizer

      public SpringBootRestTestClientBuilderCustomizer(Collection<org.springframework.boot.http.converter.autoconfigure.ClientHttpMessageConvertersCustomizer> messageConverterCustomizers)
      Create a new SpringBootRestTestClientBuilderCustomizer that will configure the builder's message converters using the given messageConverterCustomizers.
      Parameters:
      messageConverterCustomizers - the message converter customizers
  • Method Details