Class SpringBootMockMvcBuilderCustomizer

java.lang.Object
org.springframework.boot.test.autoconfigure.web.servlet.SpringBootMockMvcBuilderCustomizer
All Implemented Interfaces:
MockMvcBuilderCustomizer

public class SpringBootMockMvcBuilderCustomizer extends Object implements MockMvcBuilderCustomizer
MockMvcBuilderCustomizer for a typical Spring Boot application. Usually applied automatically through @AutoConfigureMockMvc, but may also be used directly.
Since:
1.4.0
Author:
Phillip Webb, Andy Wilkinson, Moritz Halbritter
  • Constructor Details

  • Method Details

    • customize

      public void customize(ConfigurableMockMvcBuilder<?> builder)
      Description copied from interface: MockMvcBuilderCustomizer
      Customize the given builder.
      Specified by:
      customize in interface MockMvcBuilderCustomizer
      Parameters:
      builder - the builder
    • setAddFilters

      public void setAddFilters(boolean addFilters)
    • isAddFilters

      public boolean isAddFilters()
    • setPrint

      public void setPrint(MockMvcPrint print)
    • getPrint

      public MockMvcPrint getPrint()
    • setPrintOnlyOnFailure

      public void setPrintOnlyOnFailure(boolean printOnlyOnFailure)
    • isPrintOnlyOnFailure

      public boolean isPrintOnlyOnFailure()