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 definition. |
static SystemInputDef |
getRequestInputModel(File api,
ModelOptions options)
Returns a
system input definition for the API requests defined by the given
OpenAPI definition. |
static SystemInputDef |
getRequestInputModel(File api,
String defaultDocType,
ModelOptions options)
Returns a
system input definition for the API requests defined by the given
OpenAPI definition. |
static SystemInputDef |
getRequestInputModel(InputStream api)
Returns a
system input definition for the API requests defined by the
OpenAPI definition 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 definition 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 definition document. |
static SystemTestDef |
getRequestTests(File api)
Returns a
system test definition for the API requests defined by the
OpenAPI definition 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 definition 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 definition. |
static SystemTestDef |
getRequestTests(InputStream api)
Returns a
system test definition for the API requests defined by the
OpenAPI definition 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 definition 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 definition. |
static SystemInputDef |
getResponseInputModel(File api)
Returns a
system input definition for the API responses defined by the given
OpenAPI definition. |
static SystemInputDef |
getResponseInputModel(File api,
ModelOptions options)
Returns a
system input definition for the API responses defined by the given
OpenAPI definition. |
static SystemInputDef |
getResponseInputModel(File api,
String defaultDocType,
ModelOptions options)
Returns a
system input definition for the API responses defined by the given
OpenAPI definition. |
static SystemInputDef |
getResponseInputModel(InputStream api)
Returns a
system input definition for the API responses defined by the
OpenAPI definition 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 definition 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 definition document. |
static ResponsesDef |
getResponsesDef(File api)
Returns a
request responses definition for the given OpenAPI definition. |
static ResponsesDef |
getResponsesDef(File api,
String docType)
Returns a
request responses definition for the given OpenAPI definition. |
static ResponsesDef |
getResponsesDef(InputStream api)
Returns a
request responses definition for the given OpenAPI definition. |
static ResponsesDef |
getResponsesDef(InputStream api,
String docType)
Returns a
request responses definition for the given OpenAPI definition. |
static SystemTestDef |
getResponseTests(File api)
Returns a
system test definition for the API responses defined by the
OpenAPI definition 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 definition 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 definition. |
static SystemTestDef |
getResponseTests(InputStream api)
Returns a
system test definition for the API responses defined by the
OpenAPI definition 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 definition 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 definition. |
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 definition in the given JSON document. Returns null if the given definition 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 definition in the given JSON document. Returns null if the given definition 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 definition document. Returns null if the given definition defines no API requests to model.public static SystemInputDef getRequestInputModel(File api)
system input definition
for the API requests defined by the given
OpenAPI definition. Returns null if the given definition 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 definition. Returns null if the given definition 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 definition. Returns null if the given definition defines no API requests to model.public static SystemTestDef getRequestTests(InputStream api)
system test definition
for the API requests defined by the
OpenAPI definition in the given JSON document. Returns null if the given definition 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 definition in the given JSON document. Returns null if the given definition 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 definition. Returns null if the given definition defines no API requests to model.public static SystemTestDef getRequestTests(File api)
system test definition
for the API requests defined by the
OpenAPI definition in the given JSON document. Returns null if the given definition 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 definition in the given JSON document. Returns null if the given definition 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 definition. Returns null if the given definition defines no API requests to model.public static SystemInputDef getResponseInputModel(InputStream api)
system input definition
for the API responses defined by the
OpenAPI definition in the given JSON document. Returns null if the given definition 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 definition in the given JSON document. Returns null if the given definition 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 definition document. Returns null if the given definition defines no API responses to model.public static SystemInputDef getResponseInputModel(File api)
system input definition
for the API responses defined by the given
OpenAPI definition. Returns null if the given definition 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 definition. Returns null if the given definition 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 definition. Returns null if the given definition defines no API responses to model.public static SystemTestDef getResponseTests(InputStream api)
system test definition
for the API responses defined by the
OpenAPI definition in the given JSON document. Returns null if the given definition 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 definition in the given JSON document. Returns null if the given definition 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 definition. Returns null if the given definition defines no API responses to model.public static SystemTestDef getResponseTests(File api)
system test definition
for the API responses defined by the
OpenAPI definition in the given JSON document. Returns null if the given definition 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 definition in the given JSON document. Returns null if the given definition 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 definition. Returns null if the given definition defines no API responses to model.public static ResponsesDef getResponsesDef(File api)
request responses definition
for the given OpenAPI definition.public static ResponsesDef getResponsesDef(File api, String docType)
request responses definition
for the given OpenAPI definition.public static ResponsesDef getResponsesDef(InputStream api)
request responses definition
for the given OpenAPI definition.public static ResponsesDef getResponsesDef(InputStream api, String docType)
request responses definition
for the given OpenAPI definition.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 © 2024 The Cornutum Project. All rights reserved.