Annotation Interface AutoConfigureMockMvc.HtmlUnit
- Enclosing class:
AutoConfigureMockMvc
@Target({TYPE,METHOD})
@Retention(RUNTIME)
@Documented
@Inherited
public static @interface AutoConfigureMockMvc.HtmlUnit
HtmlUnit settings.
- Since:
- 4.0.0
- Author:
- Phillip Webb
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionThe URL that should be used when expanding relative paths.booleanIf aWebClientshould be auto-configured when HtmlUnit is on the classpath.booleanIf aWebDrivershould be auto-configured when Selenium is on the classpath.
-
Element Details
-
url
String urlThe URL that should be used when expanding relative paths.- Returns:
- the URL used to expand relative paths
- Default:
"http://localhost"
-
webClient
If aWebClientshould be auto-configured when HtmlUnit is on the classpath. Defaults totrue.- Returns:
- if a
WebClientis auto-configured
- Default:
true
-
webDriver
If aWebDrivershould be auto-configured when Selenium is on the classpath. Defaults totrue.- Returns:
- if a
WebDriveris auto-configured
- Default:
true
-