java.lang.Object
java.lang.Enum<MockMvcPrint>
org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrint
All Implemented Interfaces:
Serializable, Comparable<MockMvcPrint>, Constable

public enum MockMvcPrint extends Enum<MockMvcPrint>
MVC print options specified from @AutoConfigureMockMvc.
Since:
1.4.0
Author:
Phillip Webb
  • Enum Constant Details

    • DEFAULT

      public static final MockMvcPrint DEFAULT
      Use the default print setting (MockMvcPrint.SYSTEM_OUT unless explicitly overridden).
    • LOG_DEBUG

      public static final MockMvcPrint LOG_DEBUG
      Log MVC interactions at the DEBUG level.
    • SYSTEM_OUT

      public static final MockMvcPrint SYSTEM_OUT
      Print MVC interactions to System.out.
    • SYSTEM_ERR

      public static final MockMvcPrint SYSTEM_ERR
      Print MVC interactions to System.err.
    • NONE

      public static final MockMvcPrint NONE
      Do not print MVC interactions.
  • Method Details

    • values

      public static MockMvcPrint[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static MockMvcPrint valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null