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 Elements
    Modifier and Type
    Optional Element
    Description
    The URL that should be used when expanding relative paths.
    boolean
    If a WebClient should be auto-configured when HtmlUnit is on the classpath.
    boolean
    If a WebDriver should be auto-configured when Selenium is on the classpath.
  • Element Details

    • url

      String url
      The URL that should be used when expanding relative paths.
      Returns:
      the URL used to expand relative paths
      Default:
      "http://localhost"
    • webClient

      @PropertyMapping("webclient.enabled") boolean webClient
      If a WebClient should be auto-configured when HtmlUnit is on the classpath. Defaults to true.
      Returns:
      if a WebClient is auto-configured
      Default:
      true
    • webDriver

      @PropertyMapping("webdriver.enabled") boolean webDriver
      If a WebDriver should be auto-configured when Selenium is on the classpath. Defaults to true.
      Returns:
      if a WebDriver is auto-configured
      Default:
      true