Class EventStreamTestCase
java.lang.Object
software.amazon.smithy.protocoltests.traits.eventstream.EventStreamTestCase
- All Implemented Interfaces:
ToSmithyBuilder<EventStreamTestCase>
public final class EventStreamTestCase
extends Object
implements ToSmithyBuilder<EventStreamTestCase>
A single event stream test case.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic EventStreamTestCase.Builderbuilder()Creates a builder for an EventStreamTestCase.booleanGets the list of events under test.getId()Get the test case identifier.Gets any additional vendor-specific parameters.inthashCode()Take this object and create a builder that contains all of the current property values of this object.
-
Method Details
-
getId
Get the test case identifier.This identifier can be used by protocol test implementations to filter out unsupported test cases by ID, to generate test case names, etc. No two test cases can share the same ID.
- Returns:
- Returns the test case identifier.
-
getProtocol
- Returns:
- Returns the protocol the test case applies to.
-
getInitialRequestParams
- Returns:
- Returns the initial request's parameters as an ObjectNode.
-
getInitialRequest
- Returns:
- Returns the initial request as an ObjectNode.
-
getInitialRequestShape
- Returns:
- Returns a shape describing the structure of the initial request.
-
getInitialResponseParams
- Returns:
- Returns the initial response's parameters as an ObjectNode.
-
getInitialResponse
- Returns:
- Returns the initial response as an ObjectNode.
-
getInitialResponseShape
- Returns:
- Returns a shape describing the structure of the initial response.
-
getEvents
Gets the list of events under test.Each event must be sent in the order presented. Implementations MAY send events concurrently.
- Returns:
- Returns the list of events under test.
-
getExpectation
- Returns:
- Returns the expected result of the test case.
-
getVendorParams
Gets any additional vendor-specific parameters.This could include credentials, endpoint configuration, or anything else that may impact the protocol's serialization of events.
- Returns:
- Returns vendor-specific parameters as an ObjectNode.
-
getVendorParamsShape
- Returns:
- Returns a shape describing the structure of the vendor params.
-
getDocumentation
- Returns:
- Returns documentation to write out at the beginning of the test case.
-
getAppliesTo
- Returns:
- Returns what sort of implementation the test case applies to.
-
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<EventStreamTestCase>- Returns:
- Returns the test case as a builder
-
builder
Creates a builder for an EventStreamTestCase.- Returns:
- Returns a newly-created builder.
-
equals
-
hashCode
public int hashCode()
-