Class SmokeTestsTrait

java.lang.Object
software.amazon.smithy.model.traits.AbstractTrait
software.amazon.smithy.smoketests.traits.SmokeTestsTrait
All Implemented Interfaces:
FromSourceLocation, ToNode, ToShapeId, Trait

public final class SmokeTestsTrait extends AbstractTrait
Defines a set of test cases to send to a live service to ensure that a client can connect to the service and get the right kind of response.
  • Field Details

    • ID

      public static final ShapeId ID
  • Constructor Details

  • Method Details

    • getTestCases

      public List<SmokeTestCase> getTestCases()
      Returns:
      The smoke test cases to perform on the operation.
    • createNode

      protected Node createNode()
      Description copied from class: AbstractTrait
      The result of toNode is used for hashCodes and equality. Subclasses must implement createNode to turn the trait into a Node. This is then cached for subsequent retrievals.
      Specified by:
      createNode in class AbstractTrait
      Returns:
      Returns the trait as a node.