Class SmokeTestCase
java.lang.Object
software.amazon.smithy.smoketests.traits.SmokeTestCase
- All Implemented Interfaces:
ToNode,Tagged,ToSmithyBuilder<SmokeTestCase>
public final class SmokeTestCase
extends Object
implements Tagged, ToNode, ToSmithyBuilder<SmokeTestCase>
Defines a single smoke test case.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic SmokeTestCase.Builderbuilder()booleanstatic SmokeTestCaseCreates aSmokeTestCasefrom aNode.Get the expected response from the service call for this test case.getId()Get the ID of this test case.Get the input parameters of this test case.getTags()Gets the tags applied to an object.Get the vendor-specific parameters of this test case.Get the shape ID of vendor-specific parameters used by this test case.inthashCode()Take this object and create a builder that contains all of the current property values of this object.toNode()Converts a value to aNode.
-
Method Details
-
builder
- Returns:
- Creates a builder used to build a
SmokeTestCase.
-
fromNode
Creates aSmokeTestCasefrom aNode.- Parameters:
node- Node to deserialize into aSmokeTestCase.- Returns:
- Returns the created
SmokeTestCase.
-
getId
Get the ID of this test case.This ID is unique across all smoke test cases for all operations bound to the same service, and can be used to generate test case names.
- Returns:
- Returns the smoke test case ID.
-
getParams
Get the input parameters of this test case.These parameters, if present, are passed to the operation the smoke test targets. If not present, the operation does not have any input.
- Returns:
- Returns the optionally present input parameters.
-
getVendorParams
Get the vendor-specific parameters of this test case.These are custom parameters that can be used to influence the request for this test case.
These parameters match the shape id returned by
getVendorParamsShape(), if present.- Returns:
- Returns the optionally present vendor-specific parameters.
- See Also:
-
getVendorParamsShape
Get the shape ID of vendor-specific parameters used by this test case.If present,
getVendorParams()will match this shape's definition.- Returns:
- The optionally present shape ID of vendor-specific parameters.
- See Also:
-
getExpectation
Get the expected response from the service call for this test case.This expectation can be either a successful response, any error response, or a specific error response.
- Returns:
- Returns expectation.
-
getTags
Description copied from interface:TaggedGets the tags applied to an object. -
toBuilder
Description copied from interface:ToSmithyBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToSmithyBuilder<SmokeTestCase>- Returns:
- a builder for type T
-
toNode
Description copied from interface:ToNodeConverts a value to aNode. -
equals
-
hashCode
public int hashCode()
-