Class 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 Detail

      • ID

        public static final ShapeId ID
    • Constructor Detail

      • SmokeTestsTrait

        public SmokeTestsTrait​(java.util.List<SmokeTestCase> testCases)
    • Method Detail

      • getTestCases

        public java.util.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.