Enum Class ApiValidationDepth
- All Implemented Interfaces:
Serializable, Comparable<ApiValidationDepth>, Constable
How thoroughly generated code validates each response.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSTATUSplus a targeted business-value assertion on every response leaf classifiedLeafClassification.STABLE, asserting the recorded value at its JSON path viagetResponseJSONValue.STATUSplus a full-bodyisEqualToFileContentIgnoringOrderassertion against a normalized golden file (volatile/correlated leaves replaced with a stable placeholder, sensitive leaves masked, so the assertion doesn't flake on values that legitimately change every run).STATUSplus amatchesSchemaassertion against a schema inferred byJsonSchemaInferencerfrom the recorded response body.Only the recorded HTTP status code is asserted (viasetTargetStatusCode).STATUSplus an assertion on every response header classifiedLeafClassification.STABLE(sensitive headers are never asserted; volatile ones would flake on replay, so both are skipped). -
Method Summary
Modifier and TypeMethodDescriptionstatic ApiValidationDepthReturns the enum constant of this class with the specified name.static ApiValidationDepth[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
STATUS
Only the recorded HTTP status code is asserted (viasetTargetStatusCode). -
STATUS_HEADERS
STATUSplus an assertion on every response header classifiedLeafClassification.STABLE(sensitive headers are never asserted; volatile ones would flake on replay, so both are skipped). -
SCHEMA
STATUSplus amatchesSchemaassertion against a schema inferred byJsonSchemaInferencerfrom the recorded response body. -
FULL_BODY
STATUSplus a full-bodyisEqualToFileContentIgnoringOrderassertion against a normalized golden file (volatile/correlated leaves replaced with a stable placeholder, sensitive leaves masked, so the assertion doesn't flake on values that legitimately change every run). -
BUSINESS
STATUSplus a targeted business-value assertion on every response leaf classifiedLeafClassification.STABLE, asserting the recorded value at its JSON path viagetResponseJSONValue. Volatile, correlated, and sensitive leaves are skipped so the generated test pins only the business-meaningful fields that a human would check, without flaking on generated IDs/timestamps or leaking secrets. This is the assertion model the business-logic recorder (#3499) uses for chained domain scenarios.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-