Modifier and Type | Method and Description |
---|---|
protected URI |
MocoServerTestWriter.getTestServer(RequestCase requestCase)
Returns a URI for the API server used by the given test case.
|
Modifier and Type | Method and Description |
---|---|
RequestCase |
RequestCaseResolver.resolve(RequestCaseDef requestCaseDef)
Resolves an
abstract test case for an API request by producing a RequestCase
that describes an executable instance of this test case. |
Modifier and Type | Method and Description |
---|---|
List<RequestCase> |
RequestTestDef.getRequestCases()
Returns all API request test cases.
|
List<RequestCase> |
RequestTestDef.getRequestCases(Collection<String> paths,
Collection<String> ops)
Returns all API request test cases for the given resource paths and operations on the given resource path.
|
List<RequestCase> |
RequestTestDef.getRequestCases(String path)
Returns all API request test cases for the given resource path.
|
List<RequestCase> |
RequestTestDef.getRequestCases(String path,
String... ops)
Returns all API request test cases for the given operations on the given resource path.
|
Modifier and Type | Method and Description |
---|---|
RequestTestDef |
RequestTestDef.add(RequestCase requestCase)
Adds an API request test case.
|
int |
RequestCase.compareTo(RequestCase other) |
RequestTestDef |
RequestTestDef.remove(RequestCase requestCase)
Removes an API request test case.
|
Constructor and Description |
---|
RequestTestDef(Iterable<RequestCase> requestCases)
Creates a new RequestTestDef instance.
|
Modifier and Type | Method and Description |
---|---|
static List<RequestCase> |
RequestCaseJson.asRequestCases(javax.json.JsonArray json)
Returns the RequestCase instances represented by the given JSON array.
|
Modifier and Type | Method and Description |
---|---|
protected void |
RestAssuredTestCaseWriter.writeAuthDefs(String testName,
RequestCase requestCase,
IndentedWriter targetWriter)
Writes request authentication definitions for a target test case to the given stream.
|
protected void |
RestAssuredTestCaseWriter.writeBody(String testName,
RequestCase requestCase,
IndentedWriter targetWriter)
Writes the request body for a target test case to the given stream.
|
protected void |
RestAssuredTestCaseWriter.writeExpectResponse(String testName,
RequestCase requestCase,
IndentedWriter targetWriter)
Writes response expectations for a target test case to the given stream.
|
protected void |
RestAssuredTestCaseWriter.writeParams(String testName,
RequestCase requestCase,
IndentedWriter targetWriter)
Writes request parameter definitions for a target test case to the given stream.
|
protected void |
RestAssuredTestCaseWriter.writeRequest(String testName,
RequestCase requestCase,
IndentedWriter targetWriter)
Writes the request definition for a target test case to the given stream.
|
protected void |
RestAssuredTestCaseWriter.writeServer(String testName,
URI testServer,
RequestCase requestCase,
IndentedWriter targetWriter)
Writes the server URI for a target test case to the given stream.
|
void |
RestAssuredTestCaseWriter.writeTestCase(String testName,
URI testServer,
RequestCase requestCase,
IndentedWriter targetWriter)
Writes a target test case to the given stream.
|
Modifier and Type | Method and Description |
---|---|
List<RequestCase> |
TestSource.getRequestCases()
Returns the request test cases for this source.
|
Modifier and Type | Method and Description |
---|---|
protected String |
AnnotatedJavaTestWriter.createDescriptor(RequestCase requestCase)
Returns an identifier containing a description of the given request case.
|
protected Optional<String> |
AnnotatedJavaTestWriter.getDescriptor(RequestCase requestCase)
Returns an identifier containing a description of the given request case.
|
protected String |
AnnotatedJavaTestWriter.getMethodName(RequestCase requestCase)
Returns a test method name for the given request case.
|
protected URI |
TestWriter.getTestServer(RequestCase requestCase)
Returns a URI for the API server used by the given test case.
|
protected void |
TestNgTestWriter.writeTestAnnotation(JavaTestTarget target,
String testName,
RequestCase requestCase,
IndentedWriter targetWriter)
Writes the annotation for a target test case to the given stream.
|
protected void |
JUnitTestWriter.writeTestAnnotation(JavaTestTarget target,
String testName,
RequestCase requestCase,
IndentedWriter targetWriter)
Writes the annotation for a target test case to the given stream.
|
protected abstract void |
AnnotatedJavaTestWriter.writeTestAnnotation(JavaTestTarget target,
String testName,
RequestCase requestCase,
IndentedWriter targetWriter)
Writes the annotation for a target test case to the given stream.
|
protected void |
AnnotatedJavaTestWriter.writeTestCase(JavaTestTarget target,
String testName,
RequestCase requestCase,
IndentedWriter targetWriter)
Writes a target test case to the given stream.
|
void |
TestCaseWriter.writeTestCase(String testName,
URI testServer,
RequestCase requestCase,
IndentedWriter targetWriter)
Writes a target test case to the given stream.
|
protected void |
TestWriter.writeTestCase(T target,
String testName,
RequestCase requestCase,
IndentedWriter targetWriter)
Writes a target test case to the given stream.
|
Modifier and Type | Method and Description |
---|---|
protected void |
TestWriter.prepareTestCases(List<RequestCase> requestCases)
Prepare this writer to handle the given request cases.
|
default void |
TestCaseWriter.prepareTestCases(List<RequestCase> requestCases)
Prepare this writer to handle the given request cases.
|
void |
BaseTestCaseWriter.prepareTestCases(List<RequestCase> requestCases)
Prepare this writer to handle the given request cases.
|
protected void |
TestWriter.writeTestCases(T target,
String testName,
List<RequestCase> requestCases,
IndentedWriter targetWriter)
Writes the target test cases to the given stream.
|
Modifier and Type | Method and Description |
---|---|
static Optional<String> |
TestCaseWriterUtils.serverUri(URI testServer,
RequestCase requestCase)
Returns the base URI defined for the given test case, if any.
|
Copyright © 2024 The Cornutum Project. All rights reserved.