Package org.mockserver.openapi
Enum OpenApiResiliencyTest.Classification
- java.lang.Object
-
- java.lang.Enum<OpenApiResiliencyTest.Classification>
-
- org.mockserver.openapi.OpenApiResiliencyTest.Classification
-
- All Implemented Interfaces:
Serializable,Comparable<OpenApiResiliencyTest.Classification>
- Enclosing class:
- OpenApiResiliencyTest
public static enum OpenApiResiliencyTest.Classification extends Enum<OpenApiResiliencyTest.Classification>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description HANDLEDThe service returned a 4xx response — it rejected the bad input cleanly.UNEXPECTEDThe service returned 5xx, 2xx, or a connection error — it failed to handle the bad input.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static OpenApiResiliencyTest.ClassificationvalueOf(String name)Returns the enum constant of this type with the specified name.static OpenApiResiliencyTest.Classification[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
HANDLED
public static final OpenApiResiliencyTest.Classification HANDLED
The service returned a 4xx response — it rejected the bad input cleanly.
-
UNEXPECTED
public static final OpenApiResiliencyTest.Classification UNEXPECTED
The service returned 5xx, 2xx, or a connection error — it failed to handle the bad input.
-
-
Method Detail
-
values
public static OpenApiResiliencyTest.Classification[] 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 (OpenApiResiliencyTest.Classification c : OpenApiResiliencyTest.Classification.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OpenApiResiliencyTest.Classification 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
-
-