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 . |
boolean |
isAddFilters() |
boolean |
isAlwaysPrint() |
void |
setAddFilters(boolean addFilters) |
void |
setAlwaysPrint(boolean alwaysPrint) |
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 setAlwaysPrint(boolean alwaysPrint)
public boolean isAlwaysPrint()
Copyright © 2016 Pivotal Software, Inc.. All rights reserved.