Enum Class ApiCodegenStyle

java.lang.Object
java.lang.Enum<ApiCodegenStyle>
com.shaft.capture.generate.api.ApiCodegenStyle
All Implemented Interfaces:
Serializable, Comparable<ApiCodegenStyle>, Constable

public enum ApiCodegenStyle extends Enum<ApiCodegenStyle>
How recorded transactions are grouped into generated test methods.
  • Enum Constant Details

    • SCENARIO

      public static final ApiCodegenStyle SCENARIO
      One @Test method per origin, executing all of that origin's transactions in recorded order, with TransactionCorrelator chaining 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

      public static final ApiCodegenStyle PER_REQUEST
      One independent @Test method per transaction. Simpler and fully isolated (no variable chaining between methods, since each runs standalone) -- every VOLATILE response 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

      public static final ApiCodegenStyle HYBRID_UI_API
      One @Test method per origin, mirroring SCENARIO's correlation, but rendered by ApiTestRenderer.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

      public static ApiCodegenStyle[] 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

      public static ApiCodegenStyle valueOf(String name)
      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 name
      NullPointerException - if the argument is null