public final class HttpRequestTestsTrait extends AbstractTrait
Modifier and Type | Class and Description |
---|---|
static class |
HttpRequestTestsTrait.Provider |
Constructor and Description |
---|
HttpRequestTestsTrait(java.util.List<HttpRequestTestCase> testCases) |
HttpRequestTestsTrait(SourceLocation sourceLocation,
java.util.List<HttpRequestTestCase> testCases) |
Modifier and Type | Method and Description |
---|---|
protected Node |
createNode()
The result of toNode is used for hashCodes and equality.
|
java.util.List<HttpRequestTestCase> |
getTestCases() |
java.util.List<HttpRequestTestCase> |
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 HttpRequestTestsTrait(java.util.List<HttpRequestTestCase> testCases)
public HttpRequestTestsTrait(SourceLocation sourceLocation, java.util.List<HttpRequestTestCase> testCases)
public java.util.List<HttpRequestTestCase> getTestCases()
public java.util.List<HttpRequestTestCase> 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