public class SpringBootMockMvcBuilderCustomizer extends Object implements MockMvcBuilderCustomizer
MockMvcBuilderCustomizer
for a typical Spring Boot application. Usually applied
automatically via @AutoConfigureMockMvc
, but may also be
used directly.Constructor and Description |
---|
SpringBootMockMvcBuilderCustomizer(org.springframework.web.context.WebApplicationContext context)
Create a new
SpringBootMockMvcBuilderCustomizer instance. |
Modifier and Type | Method and Description |
---|---|
void |
customize(org.springframework.test.web.servlet.setup.ConfigurableMockMvcBuilder<?> builder)
Customize the given
builder . |
MockMvcPrint |
getPrint() |
boolean |
isAddFilters() |
boolean |
isPrintOnlyOnFailure() |
void |
setAddFilters(boolean addFilters) |
void |
setPrint(MockMvcPrint print) |
void |
setPrintOnlyOnFailure(boolean printOnlyOnFailure) |
public SpringBootMockMvcBuilderCustomizer(org.springframework.web.context.WebApplicationContext context)
SpringBootMockMvcBuilderCustomizer
instance.context
- the source application contextpublic void customize(org.springframework.test.web.servlet.setup.ConfigurableMockMvcBuilder<?> builder)
MockMvcBuilderCustomizer
builder
.customize
in interface MockMvcBuilderCustomizer
builder
- the builderpublic void setAddFilters(boolean addFilters)
public boolean isAddFilters()
public void setPrint(MockMvcPrint print)
public MockMvcPrint getPrint()
public void setPrintOnlyOnFailure(boolean printOnlyOnFailure)
public boolean isPrintOnlyOnFailure()
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.