Class Expectation
java.lang.Object
software.amazon.smithy.smoketests.traits.Expectation
- All Implemented Interfaces:
- ToNode
Defines the expected result of the service call for a smoke test case.
 
This can either be a successful response, any error response, or a specific error response.
- 
Method SummaryModifier and TypeMethodDescriptionbooleanstatic Expectationfailure(FailureExpectation failure) static ExpectationCreates aExpectationfrom aNode.inthashCode()booleanbooleanstatic Expectationsuccess()toNode()Converts a value to aNode.
- 
Method Details- 
success- Returns:
- Creates an expectation that the service call for a smoke test case is successful.
 
- 
failure- Parameters:
- failure- The failure to expect.
- Returns:
- Creates an expectation that the service call for a smoke test case will result in the given failure.
 
- 
fromNodeCreates aExpectationfrom aNode.- Parameters:
- node- Node to deserialize into a- Expectation.
- Returns:
- Returns the created Expectation.
 
- 
isSuccesspublic boolean isSuccess()- Returns:
- Whether the service call is expected to succeed.
 
- 
isFailurepublic boolean isFailure()- Returns:
- Whether the service call is expected to fail.
 
- 
getFailure- Returns:
- The expected failure, if this expectation is a failure expectation.
 
- 
toNodeDescription copied from interface:ToNodeConverts a value to aNode.
- 
equals
- 
hashCodepublic int hashCode()
 
-