@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 |
secure
Deprecated.
since 2.1.0 in favor of Spring Security's testing support
|
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@Deprecated public abstract boolean secure
MockMvc support should be auto-configured when it is
on the classpath. Defaults to true.Copyright © 2019 Pivotal Software, Inc.. All rights reserved.