@Target(value={TYPE,METHOD}) @Retention(value=RUNTIME) @Documented @Inherited @ImportAutoConfiguration @PropertyMapping(value="spring.test.mockmvc") public @interface AutoConfigureMockMvc
MockMvc
.MockMvcAutoConfiguration
,
SpringBootMockMvcBuilderCustomizer
Modifier and Type | Optional Element and Description |
---|---|
boolean |
addFilters
If filters from the application context should be registered with MockMVC.
|
MockMvcPrint |
print
How
MvcResult information should be printed after each MockMVC invocation. |
boolean |
printOnlyOnFailure
If
MvcResult information should be printed only if the test fails. |
boolean |
webClientEnabled
If a
WebClient should be auto-configured when HtmlUnit is on the classpath. |
boolean |
webDriverEnabled
If a
WebDriver should be auto-configured when Selenium is on the classpath. |
public abstract boolean addFilters
true
.@PropertyMapping(skip=ON_DEFAULT_VALUE) public abstract MockMvcPrint print
MvcResult
information should be printed after each MockMVC invocation.public abstract boolean printOnlyOnFailure
MvcResult
information should be printed only if the test fails.true
if printing only occurs on failure@PropertyMapping(value="webclient.enabled") public abstract boolean webClientEnabled
WebClient
should be auto-configured when HtmlUnit is on the classpath.
Defaults to true
.WebClient
is auto-configured@PropertyMapping(value="webdriver.enabled") public abstract boolean webDriverEnabled
WebDriver
should be auto-configured when Selenium is on the classpath.
Defaults to true
.WebDriver
is auto-configured