org.springframework.boot.test.autoconfigure.web.servlet

Enum MockMvcPrint

    • Enum Constant Detail

      • 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 Detail

      • values

        public static MockMvcPrint[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (MockMvcPrint c : MockMvcPrint.values())
            System.out.println(c);
        
        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