public final class TcasesOpenApiIO extends Object
| Modifier and Type | Method and Description |
|---|---|
static SystemInputDef |
getRequestInputModel(File api)
Returns a
system input definition for the API requests defined by the given
OpenAPI specification. |
static SystemInputDef |
getRequestInputModel(File api,
ModelOptions options)
Returns a
system input definition for the API requests defined by the given
OpenAPI specification. |
static SystemInputDef |
getRequestInputModel(File api,
String defaultDocType,
ModelOptions options)
Returns a
system input definition for the API requests defined by the given
OpenAPI specification. |
static SystemInputDef |
getRequestInputModel(InputStream api)
Returns a
system input definition for the API requests defined by the
OpenAPI specification in the given JSON document. |
static SystemInputDef |
getRequestInputModel(InputStream api,
ModelOptions options)
Returns a
system input definition for the API requests defined by the
OpenAPI specification in the given JSON document. |
static SystemInputDef |
getRequestInputModel(InputStream api,
String docType,
ModelOptions options)
Returns a
system input definition for the API requests defined by the given
OpenAPI specification document. |
static SystemTestDef |
getRequestTests(File api)
Returns a
system test definition for the API requests defined by the
OpenAPI specification in the given JSON document. |
static SystemTestDef |
getRequestTests(File api,
ModelOptions options)
Returns a
system test definition for the API requests defined by the
OpenAPI specification in the given JSON document. |
static SystemTestDef |
getRequestTests(File api,
String defaultDocType,
ModelOptions options)
Returns a
system test definition for the API requests defined by the given
OpenAPI specification. |
static SystemTestDef |
getRequestTests(InputStream api)
Returns a
system test definition for the API requests defined by the
OpenAPI specification in the given JSON document. |
static SystemTestDef |
getRequestTests(InputStream api,
ModelOptions options)
Returns a
system test definition for the API requests defined by the
OpenAPI specification in the given JSON document. |
static SystemTestDef |
getRequestTests(InputStream api,
String docType,
ModelOptions options)
Returns a
system test definition for the API requests defined by the given
OpenAPI specification. |
static SystemInputDef |
getResponseInputModel(File api)
Returns a
system input definition for the API responses defined by the given
OpenAPI specification. |
static SystemInputDef |
getResponseInputModel(File api,
ModelOptions options)
Returns a
system input definition for the API responses defined by the given
OpenAPI specification. |
static SystemInputDef |
getResponseInputModel(File api,
String defaultDocType,
ModelOptions options)
Returns a
system input definition for the API responses defined by the given
OpenAPI specification. |
static SystemInputDef |
getResponseInputModel(InputStream api)
Returns a
system input definition for the API responses defined by the
OpenAPI specification in the given JSON document. |
static SystemInputDef |
getResponseInputModel(InputStream api,
ModelOptions options)
Returns a
system input definition for the API responses defined by the
OpenAPI specification in the given JSON document. |
static SystemInputDef |
getResponseInputModel(InputStream api,
String docType,
ModelOptions options)
Returns a
system input definition for the API responses defined by the given
OpenAPI specification document. |
static SystemTestDef |
getResponseTests(File api)
Returns a
system test definition for the API responses defined by the
OpenAPI specification in the given JSON document. |
static SystemTestDef |
getResponseTests(File api,
ModelOptions options)
Returns a
system test definition for the API responses defined by the
OpenAPI specification in the given JSON document. |
static SystemTestDef |
getResponseTests(File api,
String defaultDocType,
ModelOptions options)
Returns a
system test definition for the API responses defined by the given
OpenAPI specification. |
static SystemTestDef |
getResponseTests(InputStream api)
Returns a
system test definition for the API responses defined by the
OpenAPI specification in the given JSON document. |
static SystemTestDef |
getResponseTests(InputStream api,
ModelOptions options)
Returns a
system test definition for the API responses defined by the
OpenAPI specification in the given JSON document. |
static SystemTestDef |
getResponseTests(InputStream api,
String docType,
ModelOptions options)
Returns a
system test definition for the API responses defined by the given
OpenAPI specification. |
static void |
writeInputModel(SystemInputDef inputDef,
OutputStream outputStream)
Writes a
JSON document describing the given system input definition to the given output stream. |
static void |
writeRequestCases(RequestTestDef requestTestDef,
OutputStream outputStream)
Writes a
JSON document listing the given request test cases
to the given output stream. |
static void |
writeRequestCases(SystemTestDef testDef,
ResolverContext context,
OutputStream outputStream)
Writes a
JSON document listing test cases defined by the given
request test case definitions to the given output stream. |
static void |
writeTests(SystemTestDef testDef,
OutputStream outputStream)
Writes a
JSON document describing the given test case definitions to the given output stream. |
public static SystemInputDef getRequestInputModel(InputStream api)
system input definition for the API requests defined by the
OpenAPI specification in the given JSON document. Returns null if the given spec defines no API requests to model.public static SystemInputDef getRequestInputModel(InputStream api, ModelOptions options)
system input definition for the API requests defined by the
OpenAPI specification in the given JSON document. Returns null if the given spec defines no API requests to model.public static SystemInputDef getRequestInputModel(InputStream api, String docType, ModelOptions options)
system input definition for the API requests defined by the given
OpenAPI specification document. Returns null if the given spec defines no API requests to model.public static SystemInputDef getRequestInputModel(File api)
system input definition for the API requests defined by the given
OpenAPI specification. Returns null if the given spec defines no API requests to model.public static SystemInputDef getRequestInputModel(File api, ModelOptions options)
system input definition for the API requests defined by the given
OpenAPI specification. Returns null if the given spec defines no API requests to model.public static SystemInputDef getRequestInputModel(File api, String defaultDocType, ModelOptions options)
system input definition for the API requests defined by the given
OpenAPI specification. Returns null if the given spec defines no API requests to model.public static SystemTestDef getRequestTests(InputStream api)
system test definition for the API requests defined by the
OpenAPI specification in the given JSON document. Returns null if the given spec defines no API requests to model.public static SystemTestDef getRequestTests(InputStream api, ModelOptions options)
system test definition for the API requests defined by the
OpenAPI specification in the given JSON document. Returns null if the given spec defines no API requests to model.public static SystemTestDef getRequestTests(InputStream api, String docType, ModelOptions options)
system test definition for the API requests defined by the given
OpenAPI specification. Returns null if the given spec defines no API requests to model.public static SystemTestDef getRequestTests(File api)
system test definition for the API requests defined by the
OpenAPI specification in the given JSON document. Returns null if the given spec defines no API requests to model.public static SystemTestDef getRequestTests(File api, ModelOptions options)
system test definition for the API requests defined by the
OpenAPI specification in the given JSON document. Returns null if the given spec defines no API requests to model.public static SystemTestDef getRequestTests(File api, String defaultDocType, ModelOptions options)
system test definition for the API requests defined by the given
OpenAPI specification. Returns null if the given spec defines no API requests to model.public static SystemInputDef getResponseInputModel(InputStream api)
system input definition for the API responses defined by the
OpenAPI specification in the given JSON document. Returns null if the given spec defines no API responses to model.public static SystemInputDef getResponseInputModel(InputStream api, ModelOptions options)
system input definition for the API responses defined by the
OpenAPI specification in the given JSON document. Returns null if the given spec defines no API responses to model.public static SystemInputDef getResponseInputModel(InputStream api, String docType, ModelOptions options)
system input definition for the API responses defined by the given
OpenAPI specification document. Returns null if the given spec defines no API responses to model.public static SystemInputDef getResponseInputModel(File api)
system input definition for the API responses defined by the given
OpenAPI specification. Returns null if the given spec defines no API responses to model.public static SystemInputDef getResponseInputModel(File api, ModelOptions options)
system input definition for the API responses defined by the given
OpenAPI specification. Returns null if the given spec defines no API responses to model.public static SystemInputDef getResponseInputModel(File api, String defaultDocType, ModelOptions options)
system input definition for the API responses defined by the given
OpenAPI specification. Returns null if the given spec defines no API responses to model.public static SystemTestDef getResponseTests(InputStream api)
system test definition for the API responses defined by the
OpenAPI specification in the given JSON document. Returns null if the given spec defines no API responses to model.public static SystemTestDef getResponseTests(InputStream api, ModelOptions options)
system test definition for the API responses defined by the
OpenAPI specification in the given JSON document. Returns null if the given spec defines no API responses to model.public static SystemTestDef getResponseTests(InputStream api, String docType, ModelOptions options)
system test definition for the API responses defined by the given
OpenAPI specification. Returns null if the given spec defines no API responses to model.public static SystemTestDef getResponseTests(File api)
system test definition for the API responses defined by the
OpenAPI specification in the given JSON document. Returns null if the given spec defines no API responses to model.public static SystemTestDef getResponseTests(File api, ModelOptions options)
system test definition for the API responses defined by the
OpenAPI specification in the given JSON document. Returns null if the given spec defines no API responses to model.public static SystemTestDef getResponseTests(File api, String defaultDocType, ModelOptions options)
system test definition for the API responses defined by the given
OpenAPI specification. Returns null if the given spec defines no API responses to model.public static void writeInputModel(SystemInputDef inputDef, OutputStream outputStream)
JSON document describing the given system input definition to the given output stream.public static void writeTests(SystemTestDef testDef, OutputStream outputStream)
JSON document describing the given test case definitions to the given output stream.public static void writeRequestCases(SystemTestDef testDef, ResolverContext context, OutputStream outputStream)
JSON document listing test cases defined by the given
request test case definitions to the given output stream.public static void writeRequestCases(RequestTestDef requestTestDef, OutputStream outputStream)
JSON document listing the given request test cases
to the given output stream.Copyright © 2020 The Cornutum Project. All rights reserved.