Enum MockMvcPrint
- java.lang.Object
- java.lang.Enum<MockMvcPrint>
- org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrint
- All Implemented Interfaces:
Serializable
,Comparable<MockMvcPrint>
public enum MockMvcPrint extends Enum<MockMvcPrint>
MVC print options specified fromAutoConfigureMockMvc
.- Since:
- 1.4.0
Enum Constant Summary
Enum Constants Enum Constant Description DEFAULT
Use the default print setting (MockMvcPrint.SYSTEM_OUT
unless explicitly overridden).LOG_DEBUG
Log MVC interactions at theDEBUG
level.NONE
Do not print MVC interactions.SYSTEM_ERR
Print MVC interactions toSystem.err
.SYSTEM_OUT
Print MVC interactions toSystem.out
.
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MockMvcPrint
valueOf(String name)
Returns the enum constant of this type with the specified name.static MockMvcPrint[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
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 theDEBUG
level.
SYSTEM_OUT
public static final MockMvcPrint SYSTEM_OUT
Print MVC interactions toSystem.out
.
SYSTEM_ERR
public static final MockMvcPrint SYSTEM_ERR
Print MVC interactions toSystem.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 nameNullPointerException
- if the argument is null