@Documented @Retention(value=RUNTIME) @Target(value={TYPE,METHOD}) @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 |
secure
If Spring Security's
MockMvc support should be auto-configured when it is
on the classpath. |
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.@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-configuredpublic abstract boolean secure
MockMvc
support should be auto-configured when it is
on the classpath. Defaults to true
.Copyright © 2016 Pivotal Software, Inc.. All rights reserved.