public final class HttpResponseTestsTrait extends AbstractTrait
Modifier and Type | Class and Description |
---|---|
static class |
HttpResponseTestsTrait.Provider |
Constructor and Description |
---|
HttpResponseTestsTrait(java.util.List<HttpResponseTestCase> testCases) |
HttpResponseTestsTrait(SourceLocation sourceLocation,
java.util.List<HttpResponseTestCase> testCases) |
Modifier and Type | Method and Description |
---|---|
protected Node |
createNode()
The result of toNode is used for hashCodes and equality.
|
java.util.List<HttpResponseTestCase> |
getTestCases() |
java.util.List<HttpResponseTestCase> |
getTestCasesFor(AppliesTo appliesTo)
Gets all test cases that apply to a client or server.
|
equals, getSourceLocation, hashCode, setNodeCache, toNode, toShapeId, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
flatMapStream, getIdiomaticTraitName, getIdiomaticTraitName, isSynthetic, makeAbsoluteName, makeAbsoluteName
public static final ShapeId ID
public HttpResponseTestsTrait(java.util.List<HttpResponseTestCase> testCases)
public HttpResponseTestsTrait(SourceLocation sourceLocation, java.util.List<HttpResponseTestCase> testCases)
public java.util.List<HttpResponseTestCase> getTestCases()
public java.util.List<HttpResponseTestCase> getTestCasesFor(AppliesTo appliesTo)
Test cases that define an appliesTo
member are tests that
should only be implemented by clients or servers. Is is assumed that
test cases that do not define an appliesTo
member are
implemented by both client and server implementations.
appliesTo
- The type of test case to retrieve.protected Node createNode()
AbstractTrait
createNode
in class AbstractTrait