Annotation Type AutoConfigureMockMvc

    • Optional Element Summary

      Optional Elements 
      Modifier and TypeOptional ElementDescription
      booleanaddFilters
      If filters from the application context should be registered with MockMVC.
      MockMvcPrintprint
      How MvcResult information should be printed after each MockMVC invocation.
      booleanprintOnlyOnFailure
      If MvcResult information should be printed only if the test fails.
      booleansecure
      Deprecated.
      since 2.1.0 in favor of Spring Security's testing support
      booleanwebClientEnabled
      If a WebClient should be auto-configured when HtmlUnit is on the classpath.
      booleanwebDriverEnabled
      If a WebDriver should be auto-configured when Selenium is on the classpath.
    • Element Detail

      • addFilters

        boolean addFilters
        If filters from the application context should be registered with MockMVC. Defaults to true.
        Returns:
        if filters should be added
        Default:
        true
      • printOnlyOnFailure

        boolean printOnlyOnFailure
        If MvcResult information should be printed only if the test fails.
        Returns:
        true if printing only occurs on failure
        Default:
        true
      • webClientEnabled

        @PropertyMapping("webclient.enabled")
        boolean webClientEnabled
        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
      • webDriverEnabled

        @PropertyMapping("webdriver.enabled")
        boolean webDriverEnabled
        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
      • secure

        @Deprecated
        boolean secure
        Deprecated.
        since 2.1.0 in favor of Spring Security's testing support
        If Spring Security's MockMvc support should be auto-configured when it is on the classpath. Defaults to true.
        Returns:
        if Spring Security's MockMvc support is auto-configured
        Default:
        true