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(WebApplicationContext context)
Create a new
SpringBootMockMvcBuilderCustomizer instance. |
Modifier and Type | Method and Description |
---|---|
void |
customize(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(WebApplicationContext context)
SpringBootMockMvcBuilderCustomizer
instance.context
- the source application contextpublic void customize(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 © 2017 Pivotal Software, Inc.. All rights reserved.