Enum Class ApiCodegenStyle
- All Implemented Interfaces:
Serializable, Comparable<ApiCodegenStyle>, Constable
How recorded transactions are grouped into generated test methods.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionOne@Testmethod per origin, mirroringSCENARIO's correlation, but rendered byApiTestRenderer.render(..., Map)which interleaves caller-supplied UI action source lines with API response assertions placed immediately after the UI anchor each transaction is correlated with (correlatedUiSequence).One independent@Testmethod per transaction.One@Testmethod per origin, executing all of that origin's transactions in recorded order, withTransactionCorrelatorchaining correlated values between them through local variables. -
Method Summary
Modifier and TypeMethodDescriptionstatic ApiCodegenStyleReturns the enum constant of this class with the specified name.static ApiCodegenStyle[]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
-
SCENARIO
One@Testmethod per origin, executing all of that origin's transactions in recorded order, withTransactionCorrelatorchaining correlated values between them through local variables. This is the flagship style: it is what makes a create -> read/update sequence assert as a coherent scenario instead of independent literal replays. -
PER_REQUEST
One independent@Testmethod per transaction. Simpler and fully isolated (no variable chaining between methods, since each runs standalone) -- everyVOLATILEresponse value is asserted/replayed as its recorded literal rather than correlated, since there is no shared later-request scope for a variable to be reused in. -
HYBRID_UI_API
One@Testmethod per origin, mirroringSCENARIO's correlation, but rendered byApiTestRenderer.render(..., Map)which interleaves caller-supplied UI action source lines with API response assertions placed immediately after the UI anchor each transaction is correlated with (correlatedUiSequence). Transactions with no correlated UI sequence are appended at the end of the method, after every anchored transaction, in recorded order.
-
-
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
-