Add auto-generated test files for kotlin client (#17916)

* add auto-generated test files for kotlin client

* undo changes to doc

* add auto-generated model test files in kotlin clients

* update tests
This commit is contained in:
William Cheng 2024-02-21 18:29:23 +08:00 committed by GitHub
parent 3af7363e76
commit f191904297
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
318 changed files with 19705 additions and 1 deletions

View File

@ -284,6 +284,11 @@ public abstract class AbstractKotlinCodegen extends DefaultCodegen implements Co
return (outputFolder + File.separator + testFolder + File.separator + apiPackage().replace('.', File.separatorChar)).replace('/', File.separatorChar);
}
@Override
public String modelTestFileFolder() {
return (outputFolder + File.separator + testFolder + File.separator + modelPackage().replace('.', File.separatorChar)).replace('/', File.separatorChar);
}
@Override
public String escapeQuotationMark(String input) {
// remove " to avoid code injection

View File

@ -192,6 +192,8 @@ public class KotlinClientCodegen extends AbstractKotlinCodegen {
modelTemplateFiles.put("model_room.mustache", ".kt");
}
apiTemplateFiles.put("api.mustache", ".kt");
apiTestTemplateFiles.put("api_test.mustache", ".kt");
modelTestTemplateFiles.put("model_test.mustache", ".kt");
modelDocTemplateFiles.put("model_doc.mustache", ".md");
apiDocTemplateFiles.put("api_doc.mustache", ".md");
embeddedTemplateDir = templateDir = "kotlin-client";

View File

@ -0,0 +1,33 @@
{{>licenseInfo}}
package {{apiPackage}}
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import {{apiPackage}}.{{{classname}}}
{{#imports}}import {{import}}
{{/imports}}
{{#operations}}
class {{{classname}}}Test : ShouldSpec() {
init {
// uncomment below to create an instance of {{{classname}}}
//val apiInstance = {{{classname}}}()
{{#operation}}
// to test {{{operationId}}}{{#description}} - {{{.}}}{{/description}}
should("test {{{operationId}}}") {
// uncomment below to test {{{operationId}}}
{{#allParams}}
//val {{{paramName}}} : {{{dataType}}} = {{{example}}} // {{{dataType}}} | {{{description}}}
{{/allParams}}
//{{#returnType}}val result : {{{returnType}}}{{#nullableReturnType}}?{{/nullableReturnType}} = {{/returnType}}apiInstance.{{{operationId}}}({{#allParams}}{{{paramName}}}{{^-last}}, {{/-last}}{{/allParams}})
{{#returnType}}
//result shouldBe ("TODO")
{{/returnType}}
}
{{/operation}}
}
}
{{/operations}}

View File

@ -0,0 +1,29 @@
{{>licenseInfo}}
package {{modelPackage}}
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import {{modelPackage}}.{{{classname}}}
{{#imports}}import {{import}}
{{/imports}}
{{#models}}
{{#model}}
class {{{classname}}}Test : ShouldSpec() {
init {
// uncomment below to create an instance of {{{classname}}}
//val modelInstance = {{{classname}}}()
{{#vars}}
// to test the property `{{{name}}}`{{#description}} - {{{.}}}{{/description}}
should("test {{{name}}}") {
// uncomment below to test the property
//modelInstance.{{{name}}} shouldBe ("TODO")
}
{{/vars}}
}
}
{{/model}}
{{/models}}

View File

@ -379,7 +379,7 @@ public class KotlinClientCodegenModelTest {
DefaultGenerator generator = new DefaultGenerator();
List<File> files = generator.opts(clientOptInput).generate();
Assert.assertEquals(files.size(), 28);
Assert.assertEquals(files.size(), 31);
TestUtils.assertFileContains(Paths.get(output + "/src/main/kotlin/xyz/abcdef/api/DefaultApi.kt"),
"fun getSomeValue(@Query(\"since\") since: kotlin.String? = null, @Query(\"sinceBuild\") sinceBuild: kotlin.String? = null, @Query(\"maxBuilds\") maxBuilds: kotlin.Int? = null, @Query(\"maxWaitSecs\") maxWaitSecs: kotlin.Int? = null)"
);

View File

@ -0,0 +1,43 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.apis
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.apis.AuthApi
class AuthApiTest : ShouldSpec() {
init {
// uncomment below to create an instance of AuthApi
//val apiInstance = AuthApi()
// to test testAuthHttpBasic
should("test testAuthHttpBasic") {
// uncomment below to test testAuthHttpBasic
//val result : kotlin.String = apiInstance.testAuthHttpBasic()
//result shouldBe ("TODO")
}
// to test testAuthHttpBearer
should("test testAuthHttpBearer") {
// uncomment below to test testAuthHttpBearer
//val result : kotlin.String = apiInstance.testAuthHttpBearer()
//result shouldBe ("TODO")
}
}
}

View File

@ -0,0 +1,94 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.apis
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.apis.BodyApi
import org.openapitools.client.models.Pet
import org.openapitools.client.models.Tag
class BodyApiTest : ShouldSpec() {
init {
// uncomment below to create an instance of BodyApi
//val apiInstance = BodyApi()
// to test testBinaryGif
should("test testBinaryGif") {
// uncomment below to test testBinaryGif
//val result : java.io.File = apiInstance.testBinaryGif()
//result shouldBe ("TODO")
}
// to test testBodyApplicationOctetstreamBinary
should("test testBodyApplicationOctetstreamBinary") {
// uncomment below to test testBodyApplicationOctetstreamBinary
//val body : java.io.File = BINARY_DATA_HERE // java.io.File |
//val result : kotlin.String = apiInstance.testBodyApplicationOctetstreamBinary(body)
//result shouldBe ("TODO")
}
// to test testBodyMultipartFormdataArrayOfBinary
should("test testBodyMultipartFormdataArrayOfBinary") {
// uncomment below to test testBodyMultipartFormdataArrayOfBinary
//val files : kotlin.collections.List<java.io.File> = /path/to/file.txt // kotlin.collections.List<java.io.File> |
//val result : kotlin.String = apiInstance.testBodyMultipartFormdataArrayOfBinary(files)
//result shouldBe ("TODO")
}
// to test testBodyMultipartFormdataSingleBinary
should("test testBodyMultipartFormdataSingleBinary") {
// uncomment below to test testBodyMultipartFormdataSingleBinary
//val myFile : java.io.File = BINARY_DATA_HERE // java.io.File |
//val result : kotlin.String = apiInstance.testBodyMultipartFormdataSingleBinary(myFile)
//result shouldBe ("TODO")
}
// to test testEchoBodyFreeFormObjectResponseString
should("test testEchoBodyFreeFormObjectResponseString") {
// uncomment below to test testEchoBodyFreeFormObjectResponseString
//val body : kotlin.Any = Object // kotlin.Any | Free form object
//val result : kotlin.String = apiInstance.testEchoBodyFreeFormObjectResponseString(body)
//result shouldBe ("TODO")
}
// to test testEchoBodyPet
should("test testEchoBodyPet") {
// uncomment below to test testEchoBodyPet
//val pet : Pet = // Pet | Pet object that needs to be added to the store
//val result : Pet = apiInstance.testEchoBodyPet(pet)
//result shouldBe ("TODO")
}
// to test testEchoBodyPetResponseString
should("test testEchoBodyPetResponseString") {
// uncomment below to test testEchoBodyPetResponseString
//val pet : Pet = // Pet | Pet object that needs to be added to the store
//val result : kotlin.String = apiInstance.testEchoBodyPetResponseString(pet)
//result shouldBe ("TODO")
}
// to test testEchoBodyTagResponseString
should("test testEchoBodyTagResponseString") {
// uncomment below to test testEchoBodyTagResponseString
//val tag : Tag = // Tag | Tag object
//val result : kotlin.String = apiInstance.testEchoBodyTagResponseString(tag)
//result shouldBe ("TODO")
}
}
}

View File

@ -0,0 +1,52 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.apis
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.apis.FormApi
class FormApiTest : ShouldSpec() {
init {
// uncomment below to create an instance of FormApi
//val apiInstance = FormApi()
// to test testFormIntegerBooleanString
should("test testFormIntegerBooleanString") {
// uncomment below to test testFormIntegerBooleanString
//val integerForm : kotlin.Int = 56 // kotlin.Int |
//val booleanForm : kotlin.Boolean = true // kotlin.Boolean |
//val stringForm : kotlin.String = stringForm_example // kotlin.String |
//val result : kotlin.String = apiInstance.testFormIntegerBooleanString(integerForm, booleanForm, stringForm)
//result shouldBe ("TODO")
}
// to test testFormOneof
should("test testFormOneof") {
// uncomment below to test testFormOneof
//val form1 : kotlin.String = form1_example // kotlin.String |
//val form2 : kotlin.Int = 56 // kotlin.Int |
//val form3 : kotlin.String = form3_example // kotlin.String |
//val form4 : kotlin.Boolean = true // kotlin.Boolean |
//val id : kotlin.Long = 789 // kotlin.Long |
//val name : kotlin.String = name_example // kotlin.String |
//val result : kotlin.String = apiInstance.testFormOneof(form1, form2, form3, form4, id, name)
//result shouldBe ("TODO")
}
}
}

View File

@ -0,0 +1,42 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.apis
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.apis.HeaderApi
import org.openapitools.client.models.StringEnumRef
class HeaderApiTest : ShouldSpec() {
init {
// uncomment below to create an instance of HeaderApi
//val apiInstance = HeaderApi()
// to test testHeaderIntegerBooleanStringEnums
should("test testHeaderIntegerBooleanStringEnums") {
// uncomment below to test testHeaderIntegerBooleanStringEnums
//val integerHeader : kotlin.Int = 56 // kotlin.Int |
//val booleanHeader : kotlin.Boolean = true // kotlin.Boolean |
//val stringHeader : kotlin.String = stringHeader_example // kotlin.String |
//val enumNonrefStringHeader : kotlin.String = enumNonrefStringHeader_example // kotlin.String |
//val enumRefStringHeader : StringEnumRef = // StringEnumRef |
//val result : kotlin.String = apiInstance.testHeaderIntegerBooleanStringEnums(integerHeader, booleanHeader, stringHeader, enumNonrefStringHeader, enumRefStringHeader)
//result shouldBe ("TODO")
}
}
}

View File

@ -0,0 +1,41 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.apis
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.apis.PathApi
import org.openapitools.client.models.StringEnumRef
class PathApiTest : ShouldSpec() {
init {
// uncomment below to create an instance of PathApi
//val apiInstance = PathApi()
// to test testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath
should("test testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath") {
// uncomment below to test testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath
//val pathString : kotlin.String = pathString_example // kotlin.String |
//val pathInteger : kotlin.Int = 56 // kotlin.Int |
//val enumNonrefStringPath : kotlin.String = enumNonrefStringPath_example // kotlin.String |
//val enumRefStringPath : StringEnumRef = // StringEnumRef |
//val result : kotlin.String = apiInstance.testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath(pathString, pathInteger, enumNonrefStringPath, enumRefStringPath)
//result shouldBe ("TODO")
}
}
}

View File

@ -0,0 +1,85 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.apis
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.apis.QueryApi
import org.openapitools.client.models.Pet
import org.openapitools.client.models.StringEnumRef
import org.openapitools.client.models.TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter
class QueryApiTest : ShouldSpec() {
init {
// uncomment below to create an instance of QueryApi
//val apiInstance = QueryApi()
// to test testEnumRefString
should("test testEnumRefString") {
// uncomment below to test testEnumRefString
//val enumNonrefStringQuery : kotlin.String = enumNonrefStringQuery_example // kotlin.String |
//val enumRefStringQuery : StringEnumRef = // StringEnumRef |
//val result : kotlin.String = apiInstance.testEnumRefString(enumNonrefStringQuery, enumRefStringQuery)
//result shouldBe ("TODO")
}
// to test testQueryDatetimeDateString
should("test testQueryDatetimeDateString") {
// uncomment below to test testQueryDatetimeDateString
//val datetimeQuery : java.time.OffsetDateTime = 2013-10-20T19:20:30+01:00 // java.time.OffsetDateTime |
//val dateQuery : java.time.LocalDate = 2013-10-20 // java.time.LocalDate |
//val stringQuery : kotlin.String = stringQuery_example // kotlin.String |
//val result : kotlin.String = apiInstance.testQueryDatetimeDateString(datetimeQuery, dateQuery, stringQuery)
//result shouldBe ("TODO")
}
// to test testQueryIntegerBooleanString
should("test testQueryIntegerBooleanString") {
// uncomment below to test testQueryIntegerBooleanString
//val integerQuery : kotlin.Int = 56 // kotlin.Int |
//val booleanQuery : kotlin.Boolean = true // kotlin.Boolean |
//val stringQuery : kotlin.String = stringQuery_example // kotlin.String |
//val result : kotlin.String = apiInstance.testQueryIntegerBooleanString(integerQuery, booleanQuery, stringQuery)
//result shouldBe ("TODO")
}
// to test testQueryStyleDeepObjectExplodeTrueObject
should("test testQueryStyleDeepObjectExplodeTrueObject") {
// uncomment below to test testQueryStyleDeepObjectExplodeTrueObject
//val queryObject : Pet = // Pet |
//val result : kotlin.String = apiInstance.testQueryStyleDeepObjectExplodeTrueObject(queryObject)
//result shouldBe ("TODO")
}
// to test testQueryStyleFormExplodeTrueArrayString
should("test testQueryStyleFormExplodeTrueArrayString") {
// uncomment below to test testQueryStyleFormExplodeTrueArrayString
//val queryObject : TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter = // TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter |
//val result : kotlin.String = apiInstance.testQueryStyleFormExplodeTrueArrayString(queryObject)
//result shouldBe ("TODO")
}
// to test testQueryStyleFormExplodeTrueObject
should("test testQueryStyleFormExplodeTrueObject") {
// uncomment below to test testQueryStyleFormExplodeTrueObject
//val queryObject : Pet = // Pet |
//val result : kotlin.String = apiInstance.testQueryStyleFormExplodeTrueObject(queryObject)
//result shouldBe ("TODO")
}
}
}

View File

@ -0,0 +1,41 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.models
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.models.Bird
class BirdTest : ShouldSpec() {
init {
// uncomment below to create an instance of Bird
//val modelInstance = Bird()
// to test the property `propertySize`
should("test propertySize") {
// uncomment below to test the property
//modelInstance.propertySize shouldBe ("TODO")
}
// to test the property `color`
should("test color") {
// uncomment below to test the property
//modelInstance.color shouldBe ("TODO")
}
}
}

View File

@ -0,0 +1,41 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.models
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.models.Category
class CategoryTest : ShouldSpec() {
init {
// uncomment below to create an instance of Category
//val modelInstance = Category()
// to test the property `id`
should("test id") {
// uncomment below to test the property
//modelInstance.id shouldBe ("TODO")
}
// to test the property `name`
should("test name") {
// uncomment below to test the property
//modelInstance.name shouldBe ("TODO")
}
}
}

View File

@ -0,0 +1,78 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.models
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.models.DefaultValue
import org.openapitools.client.models.StringEnumRef
class DefaultValueTest : ShouldSpec() {
init {
// uncomment below to create an instance of DefaultValue
//val modelInstance = DefaultValue()
// to test the property `arrayStringEnumRefDefault`
should("test arrayStringEnumRefDefault") {
// uncomment below to test the property
//modelInstance.arrayStringEnumRefDefault shouldBe ("TODO")
}
// to test the property `arrayStringEnumDefault`
should("test arrayStringEnumDefault") {
// uncomment below to test the property
//modelInstance.arrayStringEnumDefault shouldBe ("TODO")
}
// to test the property `arrayStringDefault`
should("test arrayStringDefault") {
// uncomment below to test the property
//modelInstance.arrayStringDefault shouldBe ("TODO")
}
// to test the property `arrayIntegerDefault`
should("test arrayIntegerDefault") {
// uncomment below to test the property
//modelInstance.arrayIntegerDefault shouldBe ("TODO")
}
// to test the property `arrayString`
should("test arrayString") {
// uncomment below to test the property
//modelInstance.arrayString shouldBe ("TODO")
}
// to test the property `arrayStringNullable`
should("test arrayStringNullable") {
// uncomment below to test the property
//modelInstance.arrayStringNullable shouldBe ("TODO")
}
// to test the property `arrayStringExtensionNullable`
should("test arrayStringExtensionNullable") {
// uncomment below to test the property
//modelInstance.arrayStringExtensionNullable shouldBe ("TODO")
}
// to test the property `stringNullable`
should("test stringNullable") {
// uncomment below to test the property
//modelInstance.stringNullable shouldBe ("TODO")
}
}
}

View File

@ -0,0 +1,47 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.models
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.models.NumberPropertiesOnly
class NumberPropertiesOnlyTest : ShouldSpec() {
init {
// uncomment below to create an instance of NumberPropertiesOnly
//val modelInstance = NumberPropertiesOnly()
// to test the property `number`
should("test number") {
// uncomment below to test the property
//modelInstance.number shouldBe ("TODO")
}
// to test the property `float`
should("test float") {
// uncomment below to test the property
//modelInstance.float shouldBe ("TODO")
}
// to test the property `double`
should("test double") {
// uncomment below to test the property
//modelInstance.double shouldBe ("TODO")
}
}
}

View File

@ -0,0 +1,67 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.models
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.models.Pet
import org.openapitools.client.models.Category
import org.openapitools.client.models.Tag
class PetTest : ShouldSpec() {
init {
// uncomment below to create an instance of Pet
//val modelInstance = Pet()
// to test the property `name`
should("test name") {
// uncomment below to test the property
//modelInstance.name shouldBe ("TODO")
}
// to test the property `photoUrls`
should("test photoUrls") {
// uncomment below to test the property
//modelInstance.photoUrls shouldBe ("TODO")
}
// to test the property `id`
should("test id") {
// uncomment below to test the property
//modelInstance.id shouldBe ("TODO")
}
// to test the property `category`
should("test category") {
// uncomment below to test the property
//modelInstance.category shouldBe ("TODO")
}
// to test the property `tags`
should("test tags") {
// uncomment below to test the property
//modelInstance.tags shouldBe ("TODO")
}
// to test the property `status` - pet status in the store
should("test status") {
// uncomment below to test the property
//modelInstance.status shouldBe ("TODO")
}
}
}

View File

@ -0,0 +1,41 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.models
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.models.Query
class QueryTest : ShouldSpec() {
init {
// uncomment below to create an instance of Query
//val modelInstance = Query()
// to test the property `id` - Query
should("test id") {
// uncomment below to test the property
//modelInstance.id shouldBe ("TODO")
}
// to test the property `outcomes`
should("test outcomes") {
// uncomment below to test the property
//modelInstance.outcomes shouldBe ("TODO")
}
}
}

View File

@ -0,0 +1,29 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.models
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.models.StringEnumRef
class StringEnumRefTest : ShouldSpec() {
init {
// uncomment below to create an instance of StringEnumRef
//val modelInstance = StringEnumRef()
}
}

View File

@ -0,0 +1,41 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.models
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.models.Tag
class TagTest : ShouldSpec() {
init {
// uncomment below to create an instance of Tag
//val modelInstance = Tag()
// to test the property `id`
should("test id") {
// uncomment below to test the property
//modelInstance.id shouldBe ("TODO")
}
// to test the property `name`
should("test name") {
// uncomment below to test the property
//modelInstance.name shouldBe ("TODO")
}
}
}

View File

@ -0,0 +1,35 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.models
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.models.TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter
class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameterTest : ShouldSpec() {
init {
// uncomment below to create an instance of TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter
//val modelInstance = TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter()
// to test the property `propertyValues`
should("test propertyValues") {
// uncomment below to test the property
//modelInstance.propertyValues shouldBe ("TODO")
}
}
}

View File

@ -0,0 +1,50 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.apis
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.apis.DefaultApi
class DefaultApi : ShouldSpec() {
init {
// uncomment below to create an instance of DefaultApi
//val apiInstance = DefaultApi()
// to test findPetsByStatus
should("test findPetsByStatus") {
// uncomment below to test findPetsByStatus
//val pathDefault : kotlin.String = pathDefault_example // kotlin.String | path default
//val pathNullable : kotlin.String = pathNullable_example // kotlin.String | path_nullable
//val queryDefault : kotlin.String = queryDefault_example // kotlin.String | query default
//val queryDefaultEnum : kotlin.String = queryDefaultEnum_example // kotlin.String | query default enum
//val queryDefaultInt : java.math.BigDecimal = 8.14 // java.math.BigDecimal | query default int
//val headerDefault : kotlin.String = headerDefault_example // kotlin.String | header default
//val headerDefaultEnum : kotlin.String = headerDefaultEnum_example // kotlin.String | header default enum
//val headerDefaultInt : java.math.BigDecimal = 8.14 // java.math.BigDecimal | header default int
//val cookieDefault : kotlin.String = cookieDefault_example // kotlin.String | cookie default
//val cookieDefaultEnum : kotlin.String = cookieDefaultEnum_example // kotlin.String | cookie default enum
//val cookieDefaultInt : java.math.BigDecimal = 8.14 // java.math.BigDecimal | cookie default int
//val queryNullable : kotlin.String = queryNullable_example // kotlin.String | query nullable
//val headerNullable : kotlin.String = headerNullable_example // kotlin.String | header nullable
//val cookieNullable : kotlin.String = cookieNullable_example // kotlin.String | cookie_nullable
//val dollarQueryDollarDollarSign : kotlin.String = dollarQueryDollarDollarSign_example // kotlin.String | query parameter with dollar sign
//apiInstance.findPetsByStatus(pathDefault, pathNullable, queryDefault, queryDefaultEnum, queryDefaultInt, headerDefault, headerDefaultEnum, headerDefaultInt, cookieDefault, cookieDefaultEnum, cookieDefaultInt, queryNullable, headerNullable, cookieNullable, dollarQueryDollarDollarSign)
}
}
}

View File

@ -0,0 +1,38 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.apis
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.apis.BirdApi
import org.openapitools.client.models.Bird
class BirdApiTest : ShouldSpec() {
init {
// uncomment below to create an instance of BirdApi
//val apiInstance = BirdApi()
// to test getBird
should("test getBird") {
// uncomment below to test getBird
//val id : java.util.UUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d // java.util.UUID |
//val result : Bird = apiInstance.getBird(id)
//result shouldBe ("TODO")
}
}
}

View File

@ -0,0 +1,35 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.models
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.models.Animal
class AnimalTest : ShouldSpec() {
init {
// uncomment below to create an instance of Animal
//val modelInstance = Animal()
// to test the property `id`
should("test id") {
// uncomment below to test the property
//modelInstance.id shouldBe ("TODO")
}
}
}

View File

@ -0,0 +1,36 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.models
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.models.Bird
import org.openapitools.client.models.Animal
class BirdTest : ShouldSpec() {
init {
// uncomment below to create an instance of Bird
//val modelInstance = Bird()
// to test the property `featherType`
should("test featherType") {
// uncomment below to test the property
//modelInstance.featherType shouldBe ("TODO")
}
}
}

View File

@ -0,0 +1,36 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.apis
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.apis.DefaultApi
class DefaultApiTest : ShouldSpec() {
init {
// uncomment below to create an instance of DefaultApi
//val apiInstance = DefaultApi()
// to test idsGet
should("test idsGet") {
// uncomment below to test idsGet
//val ids : kotlin.collections.List<kotlin.String> = // kotlin.collections.List<kotlin.String> |
//apiInstance.idsGet(ids)
}
}
}

View File

@ -0,0 +1,36 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.apis
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.apis.DefaultApi
class DefaultApiTest : ShouldSpec() {
init {
// uncomment below to create an instance of DefaultApi
//val apiInstance = DefaultApi()
// to test idsGet
should("test idsGet") {
// uncomment below to test idsGet
//val ids : kotlin.collections.List<kotlin.String> = // kotlin.collections.List<kotlin.String> |
//apiInstance.idsGet(ids)
}
}
}

View File

@ -0,0 +1,36 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.apis
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.apis.DefaultApi
class DefaultApiTest : ShouldSpec() {
init {
// uncomment below to create an instance of DefaultApi
//val apiInstance = DefaultApi()
// to test idsGet
should("test idsGet") {
// uncomment below to test idsGet
//val ids : kotlin.collections.List<kotlin.String> = // kotlin.collections.List<kotlin.String> |
//apiInstance.idsGet(ids)
}
}
}

View File

@ -0,0 +1,37 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.apis
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.apis.DefaultApi
import org.openapitools.client.models.Apa
class DefaultApiTest : ShouldSpec() {
init {
// uncomment below to create an instance of DefaultApi
//val apiInstance = DefaultApi()
// to test testPost
should("test testPost") {
// uncomment below to test testPost
//val apa : Apa = // Apa |
//apiInstance.testPost(apa)
}
}
}

View File

@ -0,0 +1,65 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.models
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.models.Apa
class ApaTest : ShouldSpec() {
init {
// uncomment below to create an instance of Apa
//val modelInstance = Apa()
// to test the property `bepa`
should("test bepa") {
// uncomment below to test the property
//modelInstance.bepa shouldBe ("TODO")
}
// to test the property `cepa`
should("test cepa") {
// uncomment below to test the property
//modelInstance.cepa shouldBe ("TODO")
}
// to test the property `depa`
should("test depa") {
// uncomment below to test the property
//modelInstance.depa shouldBe ("TODO")
}
// to test the property `epa`
should("test epa") {
// uncomment below to test the property
//modelInstance.epa shouldBe ("TODO")
}
// to test the property `fepa`
should("test fepa") {
// uncomment below to test the property
//modelInstance.fepa shouldBe ("TODO")
}
// to test the property `gepa`
should("test gepa") {
// uncomment below to test the property
//modelInstance.gepa shouldBe ("TODO")
}
}
}

View File

@ -0,0 +1,37 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.apis
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.apis.DefaultApi
import org.openapitools.client.models.Apa
class DefaultApiTest : ShouldSpec() {
init {
// uncomment below to create an instance of DefaultApi
//val apiInstance = DefaultApi()
// to test testPost
should("test testPost") {
// uncomment below to test testPost
//val apa : Apa = // Apa |
//apiInstance.testPost(apa)
}
}
}

View File

@ -0,0 +1,65 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.models
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.models.Apa
class ApaTest : ShouldSpec() {
init {
// uncomment below to create an instance of Apa
//val modelInstance = Apa()
// to test the property `bepa`
should("test bepa") {
// uncomment below to test the property
//modelInstance.bepa shouldBe ("TODO")
}
// to test the property `cepa`
should("test cepa") {
// uncomment below to test the property
//modelInstance.cepa shouldBe ("TODO")
}
// to test the property `depa`
should("test depa") {
// uncomment below to test the property
//modelInstance.depa shouldBe ("TODO")
}
// to test the property `epa`
should("test epa") {
// uncomment below to test the property
//modelInstance.epa shouldBe ("TODO")
}
// to test the property `fepa`
should("test fepa") {
// uncomment below to test the property
//modelInstance.fepa shouldBe ("TODO")
}
// to test the property `gepa`
should("test gepa") {
// uncomment below to test the property
//modelInstance.gepa shouldBe ("TODO")
}
}
}

View File

@ -0,0 +1,64 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.apis
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.apis.DefaultApi
class DefaultApiTest : ShouldSpec() {
init {
// uncomment below to create an instance of DefaultApi
//val apiInstance = DefaultApi()
// to test test
should("test test") {
// uncomment below to test test
//val pi0 : kotlin.Int = 56 // kotlin.Int |
//val pi1 : kotlin.Int = 56 // kotlin.Int |
//val pn0 : java.math.BigDecimal = 8.14 // java.math.BigDecimal |
//val pn1 : java.math.BigDecimal = 8.14 // java.math.BigDecimal |
//val qi0 : kotlin.Int = 56 // kotlin.Int |
//val qi1 : kotlin.Int = 56 // kotlin.Int |
//val qi2 : kotlin.Int = 56 // kotlin.Int |
//val qi3 : kotlin.Int = 56 // kotlin.Int |
//val qn0 : java.math.BigDecimal = 8.14 // java.math.BigDecimal |
//val qn1 : java.math.BigDecimal = 8.14 // java.math.BigDecimal |
//val qn2 : java.math.BigDecimal = 8.14 // java.math.BigDecimal |
//val qn3 : java.math.BigDecimal = 8.14 // java.math.BigDecimal |
//val hi0 : kotlin.Int = 56 // kotlin.Int |
//val hi1 : kotlin.Int = 56 // kotlin.Int |
//val hi2 : kotlin.Int = 56 // kotlin.Int |
//val hi3 : kotlin.Int = 56 // kotlin.Int |
//val hn0 : java.math.BigDecimal = 8.14 // java.math.BigDecimal |
//val hn1 : java.math.BigDecimal = 8.14 // java.math.BigDecimal |
//val hn2 : java.math.BigDecimal = 8.14 // java.math.BigDecimal |
//val hn3 : java.math.BigDecimal = 8.14 // java.math.BigDecimal |
//val fi0 : kotlin.Int = 56 // kotlin.Int |
//val fi1 : kotlin.Int = 56 // kotlin.Int |
//val fi2 : kotlin.Int = 56 // kotlin.Int |
//val fi3 : kotlin.Int = 56 // kotlin.Int |
//val fn0 : java.math.BigDecimal = 8.14 // java.math.BigDecimal |
//val fn1 : java.math.BigDecimal = 8.14 // java.math.BigDecimal |
//val fn2 : java.math.BigDecimal = 8.14 // java.math.BigDecimal |
//val fn3 : java.math.BigDecimal = 8.14 // java.math.BigDecimal |
//val fn4 : kotlin.collections.List<kotlin.String> = // kotlin.collections.List<kotlin.String> |
//apiInstance.test(pi0, pi1, pn0, pn1, qi0, qi1, qi2, qi3, qn0, qn1, qn2, qn3, hi0, hi1, hi2, hi3, hn0, hn1, hn2, hn3, fi0, fi1, fi2, fi3, fn0, fn1, fn2, fn3, fn4)
}
}
}

View File

@ -0,0 +1,53 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.models
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.models.Apa
class ApaTest : ShouldSpec() {
init {
// uncomment below to create an instance of Apa
//val modelInstance = Apa()
// to test the property `i0`
should("test i0") {
// uncomment below to test the property
//modelInstance.i0 shouldBe ("TODO")
}
// to test the property `n0`
should("test n0") {
// uncomment below to test the property
//modelInstance.n0 shouldBe ("TODO")
}
// to test the property `i1`
should("test i1") {
// uncomment below to test the property
//modelInstance.i1 shouldBe ("TODO")
}
// to test the property `n1`
should("test n1") {
// uncomment below to test the property
//modelInstance.n1 shouldBe ("TODO")
}
}
}

View File

@ -0,0 +1,64 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.apis
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.apis.DefaultApi
class DefaultApiTest : ShouldSpec() {
init {
// uncomment below to create an instance of DefaultApi
//val apiInstance = DefaultApi()
// to test test
should("test test") {
// uncomment below to test test
//val pi0 : kotlin.Int = 56 // kotlin.Int |
//val pi1 : kotlin.Int = 56 // kotlin.Int |
//val pn0 : java.math.BigDecimal = 8.14 // java.math.BigDecimal |
//val pn1 : java.math.BigDecimal = 8.14 // java.math.BigDecimal |
//val qi0 : kotlin.Int = 56 // kotlin.Int |
//val qi1 : kotlin.Int = 56 // kotlin.Int |
//val qi2 : kotlin.Int = 56 // kotlin.Int |
//val qi3 : kotlin.Int = 56 // kotlin.Int |
//val qn0 : java.math.BigDecimal = 8.14 // java.math.BigDecimal |
//val qn1 : java.math.BigDecimal = 8.14 // java.math.BigDecimal |
//val qn2 : java.math.BigDecimal = 8.14 // java.math.BigDecimal |
//val qn3 : java.math.BigDecimal = 8.14 // java.math.BigDecimal |
//val hi0 : kotlin.Int = 56 // kotlin.Int |
//val hi1 : kotlin.Int = 56 // kotlin.Int |
//val hi2 : kotlin.Int = 56 // kotlin.Int |
//val hi3 : kotlin.Int = 56 // kotlin.Int |
//val hn0 : java.math.BigDecimal = 8.14 // java.math.BigDecimal |
//val hn1 : java.math.BigDecimal = 8.14 // java.math.BigDecimal |
//val hn2 : java.math.BigDecimal = 8.14 // java.math.BigDecimal |
//val hn3 : java.math.BigDecimal = 8.14 // java.math.BigDecimal |
//val fi0 : kotlin.Int = 56 // kotlin.Int |
//val fi1 : kotlin.Int = 56 // kotlin.Int |
//val fi2 : kotlin.Int = 56 // kotlin.Int |
//val fi3 : kotlin.Int = 56 // kotlin.Int |
//val fn0 : java.math.BigDecimal = 8.14 // java.math.BigDecimal |
//val fn1 : java.math.BigDecimal = 8.14 // java.math.BigDecimal |
//val fn2 : java.math.BigDecimal = 8.14 // java.math.BigDecimal |
//val fn3 : java.math.BigDecimal = 8.14 // java.math.BigDecimal |
//val fn4 : kotlin.collections.List<kotlin.String> = // kotlin.collections.List<kotlin.String> |
//apiInstance.test(pi0, pi1, pn0, pn1, qi0, qi1, qi2, qi3, qn0, qn1, qn2, qn3, hi0, hi1, hi2, hi3, hn0, hn1, hn2, hn3, fi0, fi1, fi2, fi3, fn0, fn1, fn2, fn3, fn4)
}
}
}

View File

@ -0,0 +1,53 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.models
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.models.Apa
class ApaTest : ShouldSpec() {
init {
// uncomment below to create an instance of Apa
//val modelInstance = Apa()
// to test the property `i0`
should("test i0") {
// uncomment below to test the property
//modelInstance.i0 shouldBe ("TODO")
}
// to test the property `n0`
should("test n0") {
// uncomment below to test the property
//modelInstance.n0 shouldBe ("TODO")
}
// to test the property `i1`
should("test i1") {
// uncomment below to test the property
//modelInstance.i1 shouldBe ("TODO")
}
// to test the property `n1`
should("test n1") {
// uncomment below to test the property
//modelInstance.n1 shouldBe ("TODO")
}
}
}

View File

@ -0,0 +1,64 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.apis
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.apis.DefaultApi
class DefaultApiTest : ShouldSpec() {
init {
// uncomment below to create an instance of DefaultApi
//val apiInstance = DefaultApi()
// to test test
should("test test") {
// uncomment below to test test
//val pi0 : kotlin.Int = 56 // kotlin.Int |
//val pi1 : kotlin.Int = 56 // kotlin.Int |
//val pn0 : java.math.BigDecimal = 8.14 // java.math.BigDecimal |
//val pn1 : java.math.BigDecimal = 8.14 // java.math.BigDecimal |
//val qi0 : kotlin.Int = 56 // kotlin.Int |
//val qi1 : kotlin.Int = 56 // kotlin.Int |
//val qi2 : kotlin.Int = 56 // kotlin.Int |
//val qi3 : kotlin.Int = 56 // kotlin.Int |
//val qn0 : java.math.BigDecimal = 8.14 // java.math.BigDecimal |
//val qn1 : java.math.BigDecimal = 8.14 // java.math.BigDecimal |
//val qn2 : java.math.BigDecimal = 8.14 // java.math.BigDecimal |
//val qn3 : java.math.BigDecimal = 8.14 // java.math.BigDecimal |
//val hi0 : kotlin.Int = 56 // kotlin.Int |
//val hi1 : kotlin.Int = 56 // kotlin.Int |
//val hi2 : kotlin.Int = 56 // kotlin.Int |
//val hi3 : kotlin.Int = 56 // kotlin.Int |
//val hn0 : java.math.BigDecimal = 8.14 // java.math.BigDecimal |
//val hn1 : java.math.BigDecimal = 8.14 // java.math.BigDecimal |
//val hn2 : java.math.BigDecimal = 8.14 // java.math.BigDecimal |
//val hn3 : java.math.BigDecimal = 8.14 // java.math.BigDecimal |
//val fi0 : kotlin.Int = 56 // kotlin.Int |
//val fi1 : kotlin.Int = 56 // kotlin.Int |
//val fi2 : kotlin.Int = 56 // kotlin.Int |
//val fi3 : kotlin.Int = 56 // kotlin.Int |
//val fn0 : java.math.BigDecimal = 8.14 // java.math.BigDecimal |
//val fn1 : java.math.BigDecimal = 8.14 // java.math.BigDecimal |
//val fn2 : java.math.BigDecimal = 8.14 // java.math.BigDecimal |
//val fn3 : java.math.BigDecimal = 8.14 // java.math.BigDecimal |
//val fn4 : kotlin.collections.List<kotlin.String> = // kotlin.collections.List<kotlin.String> |
//apiInstance.test(pi0, pi1, pn0, pn1, qi0, qi1, qi2, qi3, qn0, qn1, qn2, qn3, hi0, hi1, hi2, hi3, hn0, hn1, hn2, hn3, fi0, fi1, fi2, fi3, fn0, fn1, fn2, fn3, fn4)
}
}
}

View File

@ -0,0 +1,53 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.models
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.models.Apa
class ApaTest : ShouldSpec() {
init {
// uncomment below to create an instance of Apa
//val modelInstance = Apa()
// to test the property `i0`
should("test i0") {
// uncomment below to test the property
//modelInstance.i0 shouldBe ("TODO")
}
// to test the property `n0`
should("test n0") {
// uncomment below to test the property
//modelInstance.n0 shouldBe ("TODO")
}
// to test the property `i1`
should("test i1") {
// uncomment below to test the property
//modelInstance.i1 shouldBe ("TODO")
}
// to test the property `n1`
should("test n1") {
// uncomment below to test the property
//modelInstance.n1 shouldBe ("TODO")
}
}
}

View File

@ -0,0 +1,64 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.apis
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.apis.DefaultApi
class DefaultApiTest : ShouldSpec() {
init {
// uncomment below to create an instance of DefaultApi
//val apiInstance = DefaultApi()
// to test test
should("test test") {
// uncomment below to test test
//val pi0 : kotlin.Int = 56 // kotlin.Int |
//val pi1 : kotlin.Int = 56 // kotlin.Int |
//val pn0 : kotlin.Double = 8.14 // kotlin.Double |
//val pn1 : kotlin.Double = 8.14 // kotlin.Double |
//val qi0 : kotlin.Int = 56 // kotlin.Int |
//val qi1 : kotlin.Int = 56 // kotlin.Int |
//val qi2 : kotlin.Int = 56 // kotlin.Int |
//val qi3 : kotlin.Int = 56 // kotlin.Int |
//val qn0 : kotlin.Double = 8.14 // kotlin.Double |
//val qn1 : kotlin.Double = 8.14 // kotlin.Double |
//val qn2 : kotlin.Double = 8.14 // kotlin.Double |
//val qn3 : kotlin.Double = 8.14 // kotlin.Double |
//val hi0 : kotlin.Int = 56 // kotlin.Int |
//val hi1 : kotlin.Int = 56 // kotlin.Int |
//val hi2 : kotlin.Int = 56 // kotlin.Int |
//val hi3 : kotlin.Int = 56 // kotlin.Int |
//val hn0 : kotlin.Double = 8.14 // kotlin.Double |
//val hn1 : kotlin.Double = 8.14 // kotlin.Double |
//val hn2 : kotlin.Double = 8.14 // kotlin.Double |
//val hn3 : kotlin.Double = 8.14 // kotlin.Double |
//val fi0 : kotlin.Int = 56 // kotlin.Int |
//val fi1 : kotlin.Int = 56 // kotlin.Int |
//val fi2 : kotlin.Int = 56 // kotlin.Int |
//val fi3 : kotlin.Int = 56 // kotlin.Int |
//val fn0 : kotlin.Double = 8.14 // kotlin.Double |
//val fn1 : kotlin.Double = 8.14 // kotlin.Double |
//val fn2 : kotlin.Double = 8.14 // kotlin.Double |
//val fn3 : kotlin.Double = 8.14 // kotlin.Double |
//val fn4 : kotlin.collections.List<kotlin.String> = // kotlin.collections.List<kotlin.String> |
//apiInstance.test(pi0, pi1, pn0, pn1, qi0, qi1, qi2, qi3, qn0, qn1, qn2, qn3, hi0, hi1, hi2, hi3, hn0, hn1, hn2, hn3, fi0, fi1, fi2, fi3, fn0, fn1, fn2, fn3, fn4)
}
}
}

View File

@ -0,0 +1,53 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.models
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.models.Apa
class ApaTest : ShouldSpec() {
init {
// uncomment below to create an instance of Apa
//val modelInstance = Apa()
// to test the property `i0`
should("test i0") {
// uncomment below to test the property
//modelInstance.i0 shouldBe ("TODO")
}
// to test the property `n0`
should("test n0") {
// uncomment below to test the property
//modelInstance.n0 shouldBe ("TODO")
}
// to test the property `i1`
should("test i1") {
// uncomment below to test the property
//modelInstance.i1 shouldBe ("TODO")
}
// to test the property `n1`
should("test n1") {
// uncomment below to test the property
//modelInstance.n1 shouldBe ("TODO")
}
}
}

View File

@ -0,0 +1,77 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.models
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.models.ModelWithPropertyHavingDefault
class ModelWithPropertyHavingDefaultTest : ShouldSpec() {
init {
// uncomment below to create an instance of ModelWithPropertyHavingDefault
//val modelInstance = ModelWithPropertyHavingDefault()
// to test the property `propertyInt`
should("test propertyInt") {
// uncomment below to test the property
//modelInstance.propertyInt shouldBe ("TODO")
}
// to test the property `propertyLong`
should("test propertyLong") {
// uncomment below to test the property
//modelInstance.propertyLong shouldBe ("TODO")
}
// to test the property `propertyFloat1`
should("test propertyFloat1") {
// uncomment below to test the property
//modelInstance.propertyFloat1 shouldBe ("TODO")
}
// to test the property `propertyFloat2`
should("test propertyFloat2") {
// uncomment below to test the property
//modelInstance.propertyFloat2 shouldBe ("TODO")
}
// to test the property `propertyFloat3`
should("test propertyFloat3") {
// uncomment below to test the property
//modelInstance.propertyFloat3 shouldBe ("TODO")
}
// to test the property `propertyDouble1`
should("test propertyDouble1") {
// uncomment below to test the property
//modelInstance.propertyDouble1 shouldBe ("TODO")
}
// to test the property `propertyDouble2`
should("test propertyDouble2") {
// uncomment below to test the property
//modelInstance.propertyDouble2 shouldBe ("TODO")
}
// to test the property `propertyDouble3`
should("test propertyDouble3") {
// uncomment below to test the property
//modelInstance.propertyDouble3 shouldBe ("TODO")
}
}
}

View File

@ -0,0 +1,37 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.apis
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.apis.DefaultApi
import org.openapitools.client.models.ModelWithEnumPropertyHavingDefault
class DefaultApiTest : ShouldSpec() {
init {
// uncomment below to create an instance of DefaultApi
//val apiInstance = DefaultApi()
// to test operation
should("test operation") {
// uncomment below to test operation
//val result : ModelWithEnumPropertyHavingDefault = apiInstance.operation()
//result shouldBe ("TODO")
}
}
}

View File

@ -0,0 +1,35 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.models
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.models.ModelWithEnumPropertyHavingDefault
class ModelWithEnumPropertyHavingDefaultTest : ShouldSpec() {
init {
// uncomment below to create an instance of ModelWithEnumPropertyHavingDefault
//val modelInstance = ModelWithEnumPropertyHavingDefault()
// to test the property `propertyName`
should("test propertyName") {
// uncomment below to test the property
//modelInstance.propertyName shouldBe ("TODO")
}
}
}

View File

@ -0,0 +1,65 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.models
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.models.PropertyOfDay
class PropertyOfDayTest : ShouldSpec() {
init {
// uncomment below to create an instance of PropertyOfDay
//val modelInstance = PropertyOfDay()
// to test the property `name` - Name of property of day
should("test name") {
// uncomment below to test the property
//modelInstance.name shouldBe ("TODO")
}
// to test the property `description` - Description of the property of day
should("test description") {
// uncomment below to test the property
//modelInstance.description shouldBe ("TODO")
}
// to test the property `daysOfWeek` - Days of week
should("test daysOfWeek") {
// uncomment below to test the property
//modelInstance.daysOfWeek shouldBe ("TODO")
}
// to test the property `monthOfYear` - Month of year
should("test monthOfYear") {
// uncomment below to test the property
//modelInstance.monthOfYear shouldBe ("TODO")
}
// to test the property `dayOfYear` - Day of year
should("test dayOfYear") {
// uncomment below to test the property
//modelInstance.dayOfYear shouldBe ("TODO")
}
// to test the property `holidayTypes` - Holiday types
should("test holidayTypes") {
// uncomment below to test the property
//modelInstance.holidayTypes shouldBe ("TODO")
}
}
}

View File

@ -0,0 +1,96 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.apis
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.apis.PetApi
import org.openapitools.client.models.ModelApiResponse
import org.openapitools.client.models.Pet
class PetApiTest : ShouldSpec() {
init {
// uncomment below to create an instance of PetApi
//val apiInstance = PetApi()
// to test addPet
should("test addPet") {
// uncomment below to test addPet
//val body : Pet = // Pet | Pet object that needs to be added to the store
//apiInstance.addPet(body)
}
// to test deletePet
should("test deletePet") {
// uncomment below to test deletePet
//val petId : kotlin.Long = 789 // kotlin.Long | Pet id to delete
//val apiKey : kotlin.String = apiKey_example // kotlin.String |
//apiInstance.deletePet(petId, apiKey)
}
// to test findPetsByStatus
should("test findPetsByStatus") {
// uncomment below to test findPetsByStatus
//val status : kotlin.collections.List<kotlin.String> = // kotlin.collections.List<kotlin.String> | Status values that need to be considered for filter
//val result : kotlin.collections.List<Pet> = apiInstance.findPetsByStatus(status)
//result shouldBe ("TODO")
}
// to test findPetsByTags
should("test findPetsByTags") {
// uncomment below to test findPetsByTags
//val tags : kotlin.collections.List<kotlin.String> = // kotlin.collections.List<kotlin.String> | Tags to filter by
//val result : kotlin.collections.List<Pet> = apiInstance.findPetsByTags(tags)
//result shouldBe ("TODO")
}
// to test getPetById
should("test getPetById") {
// uncomment below to test getPetById
//val petId : kotlin.Long = 789 // kotlin.Long | ID of pet to return
//val result : Pet = apiInstance.getPetById(petId)
//result shouldBe ("TODO")
}
// to test updatePet
should("test updatePet") {
// uncomment below to test updatePet
//val body : Pet = // Pet | Pet object that needs to be added to the store
//apiInstance.updatePet(body)
}
// to test updatePetWithForm
should("test updatePetWithForm") {
// uncomment below to test updatePetWithForm
//val petId : kotlin.Long = 789 // kotlin.Long | ID of pet that needs to be updated
//val name : kotlin.String = name_example // kotlin.String | Updated name of the pet
//val status : kotlin.String = status_example // kotlin.String | Updated status of the pet
//apiInstance.updatePetWithForm(petId, name, status)
}
// to test uploadFile
should("test uploadFile") {
// uncomment below to test uploadFile
//val petId : kotlin.Long = 789 // kotlin.Long | ID of pet to update
//val additionalMetadata : kotlin.String = additionalMetadata_example // kotlin.String | Additional data to pass to server
//val file : java.io.File = BINARY_DATA_HERE // java.io.File | file to upload
//val result : ModelApiResponse = apiInstance.uploadFile(petId, additionalMetadata, file)
//result shouldBe ("TODO")
}
}
}

View File

@ -0,0 +1,60 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.apis
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.apis.StoreApi
import org.openapitools.client.models.Order
class StoreApiTest : ShouldSpec() {
init {
// uncomment below to create an instance of StoreApi
//val apiInstance = StoreApi()
// to test deleteOrder
should("test deleteOrder") {
// uncomment below to test deleteOrder
//val orderId : kotlin.String = orderId_example // kotlin.String | ID of the order that needs to be deleted
//apiInstance.deleteOrder(orderId)
}
// to test getInventory
should("test getInventory") {
// uncomment below to test getInventory
//val result : kotlin.collections.Map<kotlin.String, kotlin.Int> = apiInstance.getInventory()
//result shouldBe ("TODO")
}
// to test getOrderById
should("test getOrderById") {
// uncomment below to test getOrderById
//val orderId : kotlin.Long = 789 // kotlin.Long | ID of pet that needs to be fetched
//val result : Order = apiInstance.getOrderById(orderId)
//result shouldBe ("TODO")
}
// to test placeOrder
should("test placeOrder") {
// uncomment below to test placeOrder
//val body : Order = // Order | order placed for purchasing the pet
//val result : Order = apiInstance.placeOrder(body)
//result shouldBe ("TODO")
}
}
}

View File

@ -0,0 +1,89 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.apis
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.apis.UserApi
import org.openapitools.client.models.User
class UserApiTest : ShouldSpec() {
init {
// uncomment below to create an instance of UserApi
//val apiInstance = UserApi()
// to test createUser
should("test createUser") {
// uncomment below to test createUser
//val body : User = // User | Created user object
//apiInstance.createUser(body)
}
// to test createUsersWithArrayInput
should("test createUsersWithArrayInput") {
// uncomment below to test createUsersWithArrayInput
//val body : kotlin.collections.List<User> = // kotlin.collections.List<User> | List of user object
//apiInstance.createUsersWithArrayInput(body)
}
// to test createUsersWithListInput
should("test createUsersWithListInput") {
// uncomment below to test createUsersWithListInput
//val body : kotlin.collections.List<User> = // kotlin.collections.List<User> | List of user object
//apiInstance.createUsersWithListInput(body)
}
// to test deleteUser
should("test deleteUser") {
// uncomment below to test deleteUser
//val username : kotlin.String = username_example // kotlin.String | The name that needs to be deleted
//apiInstance.deleteUser(username)
}
// to test getUserByName
should("test getUserByName") {
// uncomment below to test getUserByName
//val username : kotlin.String = username_example // kotlin.String | The name that needs to be fetched. Use user1 for testing.
//val result : User = apiInstance.getUserByName(username)
//result shouldBe ("TODO")
}
// to test loginUser
should("test loginUser") {
// uncomment below to test loginUser
//val username : kotlin.String = username_example // kotlin.String | The user name for login
//val password : kotlin.String = password_example // kotlin.String | The password for login in clear text
//val result : kotlin.String = apiInstance.loginUser(username, password)
//result shouldBe ("TODO")
}
// to test logoutUser
should("test logoutUser") {
// uncomment below to test logoutUser
//apiInstance.logoutUser()
}
// to test updateUser
should("test updateUser") {
// uncomment below to test updateUser
//val username : kotlin.String = username_example // kotlin.String | name that need to be deleted
//val body : User = // User | Updated user object
//apiInstance.updateUser(username, body)
}
}
}

View File

@ -0,0 +1,47 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.models
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.models.ModelApiResponse
class ModelApiResponseTest : ShouldSpec() {
init {
// uncomment below to create an instance of ModelApiResponse
//val modelInstance = ModelApiResponse()
// to test the property `code`
should("test code") {
// uncomment below to test the property
//modelInstance.code shouldBe ("TODO")
}
// to test the property `type`
should("test type") {
// uncomment below to test the property
//modelInstance.type shouldBe ("TODO")
}
// to test the property `message`
should("test message") {
// uncomment below to test the property
//modelInstance.message shouldBe ("TODO")
}
}
}

View File

@ -0,0 +1,41 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.models
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.models.Category
class CategoryTest : ShouldSpec() {
init {
// uncomment below to create an instance of Category
//val modelInstance = Category()
// to test the property `id`
should("test id") {
// uncomment below to test the property
//modelInstance.id shouldBe ("TODO")
}
// to test the property `name`
should("test name") {
// uncomment below to test the property
//modelInstance.name shouldBe ("TODO")
}
}
}

View File

@ -0,0 +1,65 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.models
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.models.Order
class OrderTest : ShouldSpec() {
init {
// uncomment below to create an instance of Order
//val modelInstance = Order()
// to test the property `id`
should("test id") {
// uncomment below to test the property
//modelInstance.id shouldBe ("TODO")
}
// to test the property `petId`
should("test petId") {
// uncomment below to test the property
//modelInstance.petId shouldBe ("TODO")
}
// to test the property `quantity`
should("test quantity") {
// uncomment below to test the property
//modelInstance.quantity shouldBe ("TODO")
}
// to test the property `shipDate`
should("test shipDate") {
// uncomment below to test the property
//modelInstance.shipDate shouldBe ("TODO")
}
// to test the property `status` - Order Status
should("test status") {
// uncomment below to test the property
//modelInstance.status shouldBe ("TODO")
}
// to test the property `complete`
should("test complete") {
// uncomment below to test the property
//modelInstance.complete shouldBe ("TODO")
}
}
}

View File

@ -0,0 +1,67 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.models
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.models.Pet
import org.openapitools.client.models.Category
import org.openapitools.client.models.Tag
class PetTest : ShouldSpec() {
init {
// uncomment below to create an instance of Pet
//val modelInstance = Pet()
// to test the property `name`
should("test name") {
// uncomment below to test the property
//modelInstance.name shouldBe ("TODO")
}
// to test the property `photoUrls`
should("test photoUrls") {
// uncomment below to test the property
//modelInstance.photoUrls shouldBe ("TODO")
}
// to test the property `id`
should("test id") {
// uncomment below to test the property
//modelInstance.id shouldBe ("TODO")
}
// to test the property `category`
should("test category") {
// uncomment below to test the property
//modelInstance.category shouldBe ("TODO")
}
// to test the property `tags`
should("test tags") {
// uncomment below to test the property
//modelInstance.tags shouldBe ("TODO")
}
// to test the property `status` - pet status in the store
should("test status") {
// uncomment below to test the property
//modelInstance.status shouldBe ("TODO")
}
}
}

View File

@ -0,0 +1,41 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.models
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.models.Tag
class TagTest : ShouldSpec() {
init {
// uncomment below to create an instance of Tag
//val modelInstance = Tag()
// to test the property `id`
should("test id") {
// uncomment below to test the property
//modelInstance.id shouldBe ("TODO")
}
// to test the property `name`
should("test name") {
// uncomment below to test the property
//modelInstance.name shouldBe ("TODO")
}
}
}

View File

@ -0,0 +1,77 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.models
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.models.User
class UserTest : ShouldSpec() {
init {
// uncomment below to create an instance of User
//val modelInstance = User()
// to test the property `id`
should("test id") {
// uncomment below to test the property
//modelInstance.id shouldBe ("TODO")
}
// to test the property `username`
should("test username") {
// uncomment below to test the property
//modelInstance.username shouldBe ("TODO")
}
// to test the property `firstName`
should("test firstName") {
// uncomment below to test the property
//modelInstance.firstName shouldBe ("TODO")
}
// to test the property `lastName`
should("test lastName") {
// uncomment below to test the property
//modelInstance.lastName shouldBe ("TODO")
}
// to test the property `email`
should("test email") {
// uncomment below to test the property
//modelInstance.email shouldBe ("TODO")
}
// to test the property `password`
should("test password") {
// uncomment below to test the property
//modelInstance.password shouldBe ("TODO")
}
// to test the property `phone`
should("test phone") {
// uncomment below to test the property
//modelInstance.phone shouldBe ("TODO")
}
// to test the property `userStatus` - User Status
should("test userStatus") {
// uncomment below to test the property
//modelInstance.userStatus shouldBe ("TODO")
}
}
}

View File

@ -0,0 +1,96 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.apis
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.apis.PetApi
import org.openapitools.client.models.ModelApiResponse
import org.openapitools.client.models.Pet
class PetApiTest : ShouldSpec() {
init {
// uncomment below to create an instance of PetApi
//val apiInstance = PetApi()
// to test addPet
should("test addPet") {
// uncomment below to test addPet
//val body : Pet = // Pet | Pet object that needs to be added to the store
//apiInstance.addPet(body)
}
// to test deletePet
should("test deletePet") {
// uncomment below to test deletePet
//val petId : kotlin.Long = 789 // kotlin.Long | Pet id to delete
//val apiKey : kotlin.String = apiKey_example // kotlin.String |
//apiInstance.deletePet(petId, apiKey)
}
// to test findPetsByStatus
should("test findPetsByStatus") {
// uncomment below to test findPetsByStatus
//val status : kotlin.collections.List<kotlin.String> = // kotlin.collections.List<kotlin.String> | Status values that need to be considered for filter
//val result : kotlin.collections.List<Pet> = apiInstance.findPetsByStatus(status)
//result shouldBe ("TODO")
}
// to test findPetsByTags
should("test findPetsByTags") {
// uncomment below to test findPetsByTags
//val tags : kotlin.collections.List<kotlin.String> = // kotlin.collections.List<kotlin.String> | Tags to filter by
//val result : kotlin.collections.List<Pet> = apiInstance.findPetsByTags(tags)
//result shouldBe ("TODO")
}
// to test getPetById
should("test getPetById") {
// uncomment below to test getPetById
//val petId : kotlin.Long = 789 // kotlin.Long | ID of pet to return
//val result : Pet = apiInstance.getPetById(petId)
//result shouldBe ("TODO")
}
// to test updatePet
should("test updatePet") {
// uncomment below to test updatePet
//val body : Pet = // Pet | Pet object that needs to be added to the store
//apiInstance.updatePet(body)
}
// to test updatePetWithForm
should("test updatePetWithForm") {
// uncomment below to test updatePetWithForm
//val petId : kotlin.Long = 789 // kotlin.Long | ID of pet that needs to be updated
//val name : kotlin.String = name_example // kotlin.String | Updated name of the pet
//val status : kotlin.String = status_example // kotlin.String | Updated status of the pet
//apiInstance.updatePetWithForm(petId, name, status)
}
// to test uploadFile
should("test uploadFile") {
// uncomment below to test uploadFile
//val petId : kotlin.Long = 789 // kotlin.Long | ID of pet to update
//val additionalMetadata : kotlin.String = additionalMetadata_example // kotlin.String | Additional data to pass to server
//val file : java.io.File = BINARY_DATA_HERE // java.io.File | file to upload
//val result : ModelApiResponse = apiInstance.uploadFile(petId, additionalMetadata, file)
//result shouldBe ("TODO")
}
}
}

View File

@ -0,0 +1,60 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.apis
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.apis.StoreApi
import org.openapitools.client.models.Order
class StoreApiTest : ShouldSpec() {
init {
// uncomment below to create an instance of StoreApi
//val apiInstance = StoreApi()
// to test deleteOrder
should("test deleteOrder") {
// uncomment below to test deleteOrder
//val orderId : kotlin.String = orderId_example // kotlin.String | ID of the order that needs to be deleted
//apiInstance.deleteOrder(orderId)
}
// to test getInventory
should("test getInventory") {
// uncomment below to test getInventory
//val result : kotlin.collections.Map<kotlin.String, kotlin.Int> = apiInstance.getInventory()
//result shouldBe ("TODO")
}
// to test getOrderById
should("test getOrderById") {
// uncomment below to test getOrderById
//val orderId : kotlin.Long = 789 // kotlin.Long | ID of pet that needs to be fetched
//val result : Order = apiInstance.getOrderById(orderId)
//result shouldBe ("TODO")
}
// to test placeOrder
should("test placeOrder") {
// uncomment below to test placeOrder
//val body : Order = // Order | order placed for purchasing the pet
//val result : Order = apiInstance.placeOrder(body)
//result shouldBe ("TODO")
}
}
}

View File

@ -0,0 +1,89 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.apis
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.apis.UserApi
import org.openapitools.client.models.User
class UserApiTest : ShouldSpec() {
init {
// uncomment below to create an instance of UserApi
//val apiInstance = UserApi()
// to test createUser
should("test createUser") {
// uncomment below to test createUser
//val body : User = // User | Created user object
//apiInstance.createUser(body)
}
// to test createUsersWithArrayInput
should("test createUsersWithArrayInput") {
// uncomment below to test createUsersWithArrayInput
//val body : kotlin.collections.List<User> = // kotlin.collections.List<User> | List of user object
//apiInstance.createUsersWithArrayInput(body)
}
// to test createUsersWithListInput
should("test createUsersWithListInput") {
// uncomment below to test createUsersWithListInput
//val body : kotlin.collections.List<User> = // kotlin.collections.List<User> | List of user object
//apiInstance.createUsersWithListInput(body)
}
// to test deleteUser
should("test deleteUser") {
// uncomment below to test deleteUser
//val username : kotlin.String = username_example // kotlin.String | The name that needs to be deleted
//apiInstance.deleteUser(username)
}
// to test getUserByName
should("test getUserByName") {
// uncomment below to test getUserByName
//val username : kotlin.String = username_example // kotlin.String | The name that needs to be fetched. Use user1 for testing.
//val result : User = apiInstance.getUserByName(username)
//result shouldBe ("TODO")
}
// to test loginUser
should("test loginUser") {
// uncomment below to test loginUser
//val username : kotlin.String = username_example // kotlin.String | The user name for login
//val password : kotlin.String = password_example // kotlin.String | The password for login in clear text
//val result : kotlin.String = apiInstance.loginUser(username, password)
//result shouldBe ("TODO")
}
// to test logoutUser
should("test logoutUser") {
// uncomment below to test logoutUser
//apiInstance.logoutUser()
}
// to test updateUser
should("test updateUser") {
// uncomment below to test updateUser
//val username : kotlin.String = username_example // kotlin.String | name that need to be deleted
//val body : User = // User | Updated user object
//apiInstance.updateUser(username, body)
}
}
}

View File

@ -0,0 +1,47 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.models
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.models.ModelApiResponse
class ModelApiResponseTest : ShouldSpec() {
init {
// uncomment below to create an instance of ModelApiResponse
//val modelInstance = ModelApiResponse()
// to test the property `code`
should("test code") {
// uncomment below to test the property
//modelInstance.code shouldBe ("TODO")
}
// to test the property `type`
should("test type") {
// uncomment below to test the property
//modelInstance.type shouldBe ("TODO")
}
// to test the property `message`
should("test message") {
// uncomment below to test the property
//modelInstance.message shouldBe ("TODO")
}
}
}

View File

@ -0,0 +1,41 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.models
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.models.Category
class CategoryTest : ShouldSpec() {
init {
// uncomment below to create an instance of Category
//val modelInstance = Category()
// to test the property `id`
should("test id") {
// uncomment below to test the property
//modelInstance.id shouldBe ("TODO")
}
// to test the property `name`
should("test name") {
// uncomment below to test the property
//modelInstance.name shouldBe ("TODO")
}
}
}

View File

@ -0,0 +1,65 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.models
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.models.Order
class OrderTest : ShouldSpec() {
init {
// uncomment below to create an instance of Order
//val modelInstance = Order()
// to test the property `id`
should("test id") {
// uncomment below to test the property
//modelInstance.id shouldBe ("TODO")
}
// to test the property `petId`
should("test petId") {
// uncomment below to test the property
//modelInstance.petId shouldBe ("TODO")
}
// to test the property `quantity`
should("test quantity") {
// uncomment below to test the property
//modelInstance.quantity shouldBe ("TODO")
}
// to test the property `shipDate`
should("test shipDate") {
// uncomment below to test the property
//modelInstance.shipDate shouldBe ("TODO")
}
// to test the property `status` - Order Status
should("test status") {
// uncomment below to test the property
//modelInstance.status shouldBe ("TODO")
}
// to test the property `complete`
should("test complete") {
// uncomment below to test the property
//modelInstance.complete shouldBe ("TODO")
}
}
}

View File

@ -0,0 +1,67 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.models
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.models.Pet
import org.openapitools.client.models.Category
import org.openapitools.client.models.Tag
class PetTest : ShouldSpec() {
init {
// uncomment below to create an instance of Pet
//val modelInstance = Pet()
// to test the property `name`
should("test name") {
// uncomment below to test the property
//modelInstance.name shouldBe ("TODO")
}
// to test the property `photoUrls`
should("test photoUrls") {
// uncomment below to test the property
//modelInstance.photoUrls shouldBe ("TODO")
}
// to test the property `id`
should("test id") {
// uncomment below to test the property
//modelInstance.id shouldBe ("TODO")
}
// to test the property `category`
should("test category") {
// uncomment below to test the property
//modelInstance.category shouldBe ("TODO")
}
// to test the property `tags`
should("test tags") {
// uncomment below to test the property
//modelInstance.tags shouldBe ("TODO")
}
// to test the property `status` - pet status in the store
should("test status") {
// uncomment below to test the property
//modelInstance.status shouldBe ("TODO")
}
}
}

View File

@ -0,0 +1,41 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.models
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.models.Tag
class TagTest : ShouldSpec() {
init {
// uncomment below to create an instance of Tag
//val modelInstance = Tag()
// to test the property `id`
should("test id") {
// uncomment below to test the property
//modelInstance.id shouldBe ("TODO")
}
// to test the property `name`
should("test name") {
// uncomment below to test the property
//modelInstance.name shouldBe ("TODO")
}
}
}

View File

@ -0,0 +1,77 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.models
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.models.User
class UserTest : ShouldSpec() {
init {
// uncomment below to create an instance of User
//val modelInstance = User()
// to test the property `id`
should("test id") {
// uncomment below to test the property
//modelInstance.id shouldBe ("TODO")
}
// to test the property `username`
should("test username") {
// uncomment below to test the property
//modelInstance.username shouldBe ("TODO")
}
// to test the property `firstName`
should("test firstName") {
// uncomment below to test the property
//modelInstance.firstName shouldBe ("TODO")
}
// to test the property `lastName`
should("test lastName") {
// uncomment below to test the property
//modelInstance.lastName shouldBe ("TODO")
}
// to test the property `email`
should("test email") {
// uncomment below to test the property
//modelInstance.email shouldBe ("TODO")
}
// to test the property `password`
should("test password") {
// uncomment below to test the property
//modelInstance.password shouldBe ("TODO")
}
// to test the property `phone`
should("test phone") {
// uncomment below to test the property
//modelInstance.phone shouldBe ("TODO")
}
// to test the property `userStatus` - User Status
should("test userStatus") {
// uncomment below to test the property
//modelInstance.userStatus shouldBe ("TODO")
}
}
}

View File

@ -0,0 +1,96 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.apis
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.apis.PetApi
import org.openapitools.client.models.ModelApiResponse
import org.openapitools.client.models.Pet
class PetApiTest : ShouldSpec() {
init {
// uncomment below to create an instance of PetApi
//val apiInstance = PetApi()
// to test addPet
should("test addPet") {
// uncomment below to test addPet
//val body : Pet = // Pet | Pet object that needs to be added to the store
//apiInstance.addPet(body)
}
// to test deletePet
should("test deletePet") {
// uncomment below to test deletePet
//val petId : kotlin.Long = 789 // kotlin.Long | Pet id to delete
//val apiKey : kotlin.String = apiKey_example // kotlin.String |
//apiInstance.deletePet(petId, apiKey)
}
// to test findPetsByTags
should("test findPetsByTags") {
// uncomment below to test findPetsByTags
//val tags : kotlin.collections.List<kotlin.String> = // kotlin.collections.List<kotlin.String> | Tags to filter by
//val result : kotlin.collections.List<Pet> = apiInstance.findPetsByTags(tags)
//result shouldBe ("TODO")
}
// to test getAllPets
should("test getAllPets") {
// uncomment below to test getAllPets
//val lastUpdated : java.time.OffsetDateTime = 2013-10-20T19:20:30+01:00 // java.time.OffsetDateTime | When this endpoint was hit last to help identify if the client already has the latest copy.
//val result : kotlin.collections.List<Pet> = apiInstance.getAllPets(lastUpdated)
//result shouldBe ("TODO")
}
// to test getPetById
should("test getPetById") {
// uncomment below to test getPetById
//val petId : kotlin.Long = 789 // kotlin.Long | ID of pet to return
//val result : Pet = apiInstance.getPetById(petId)
//result shouldBe ("TODO")
}
// to test updatePet
should("test updatePet") {
// uncomment below to test updatePet
//val body : Pet = // Pet | Pet object that needs to be added to the store
//apiInstance.updatePet(body)
}
// to test updatePetWithForm
should("test updatePetWithForm") {
// uncomment below to test updatePetWithForm
//val petId : kotlin.Long = 789 // kotlin.Long | ID of pet that needs to be updated
//val name : kotlin.String = name_example // kotlin.String | Updated name of the pet
//val status : kotlin.String = status_example // kotlin.String | Updated status of the pet
//apiInstance.updatePetWithForm(petId, name, status)
}
// to test uploadFile
should("test uploadFile") {
// uncomment below to test uploadFile
//val petId : kotlin.Long = 789 // kotlin.Long | ID of pet to update
//val additionalMetadata : kotlin.String = additionalMetadata_example // kotlin.String | Additional data to pass to server
//val file : java.io.File = BINARY_DATA_HERE // java.io.File | file to upload
//val result : ModelApiResponse = apiInstance.uploadFile(petId, additionalMetadata, file)
//result shouldBe ("TODO")
}
}
}

View File

@ -0,0 +1,60 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.apis
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.apis.StoreApi
import org.openapitools.client.models.Order
class StoreApiTest : ShouldSpec() {
init {
// uncomment below to create an instance of StoreApi
//val apiInstance = StoreApi()
// to test deleteOrder
should("test deleteOrder") {
// uncomment below to test deleteOrder
//val orderId : kotlin.String = orderId_example // kotlin.String | ID of the order that needs to be deleted
//apiInstance.deleteOrder(orderId)
}
// to test getInventory
should("test getInventory") {
// uncomment below to test getInventory
//val result : kotlin.collections.Map<kotlin.String, kotlin.Int> = apiInstance.getInventory()
//result shouldBe ("TODO")
}
// to test getOrderById
should("test getOrderById") {
// uncomment below to test getOrderById
//val orderId : kotlin.Long = 789 // kotlin.Long | ID of pet that needs to be fetched
//val result : Order = apiInstance.getOrderById(orderId)
//result shouldBe ("TODO")
}
// to test placeOrder
should("test placeOrder") {
// uncomment below to test placeOrder
//val body : Order = // Order | order placed for purchasing the pet
//val result : Order = apiInstance.placeOrder(body)
//result shouldBe ("TODO")
}
}
}

View File

@ -0,0 +1,89 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.apis
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.apis.UserApi
import org.openapitools.client.models.User
class UserApiTest : ShouldSpec() {
init {
// uncomment below to create an instance of UserApi
//val apiInstance = UserApi()
// to test createUser
should("test createUser") {
// uncomment below to test createUser
//val body : User = // User | Created user object
//apiInstance.createUser(body)
}
// to test createUsersWithArrayInput
should("test createUsersWithArrayInput") {
// uncomment below to test createUsersWithArrayInput
//val body : kotlin.collections.List<User> = // kotlin.collections.List<User> | List of user object
//apiInstance.createUsersWithArrayInput(body)
}
// to test createUsersWithListInput
should("test createUsersWithListInput") {
// uncomment below to test createUsersWithListInput
//val body : kotlin.collections.List<User> = // kotlin.collections.List<User> | List of user object
//apiInstance.createUsersWithListInput(body)
}
// to test deleteUser
should("test deleteUser") {
// uncomment below to test deleteUser
//val username : kotlin.String = username_example // kotlin.String | The name that needs to be deleted
//apiInstance.deleteUser(username)
}
// to test getUserByName
should("test getUserByName") {
// uncomment below to test getUserByName
//val username : kotlin.String = username_example // kotlin.String | The name that needs to be fetched. Use user1 for testing.
//val result : User = apiInstance.getUserByName(username)
//result shouldBe ("TODO")
}
// to test loginUser
should("test loginUser") {
// uncomment below to test loginUser
//val username : kotlin.String = username_example // kotlin.String | The user name for login
//val password : kotlin.String = password_example // kotlin.String | The password for login in clear text
//val result : kotlin.String = apiInstance.loginUser(username, password)
//result shouldBe ("TODO")
}
// to test logoutUser
should("test logoutUser") {
// uncomment below to test logoutUser
//apiInstance.logoutUser()
}
// to test updateUser
should("test updateUser") {
// uncomment below to test updateUser
//val username : kotlin.String = username_example // kotlin.String | name that need to be deleted
//val body : User = // User | Updated user object
//apiInstance.updateUser(username, body)
}
}
}

View File

@ -0,0 +1,47 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.models
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.models.ModelApiResponse
class ModelApiResponseTest : ShouldSpec() {
init {
// uncomment below to create an instance of ModelApiResponse
//val modelInstance = ModelApiResponse()
// to test the property `code`
should("test code") {
// uncomment below to test the property
//modelInstance.code shouldBe ("TODO")
}
// to test the property `type`
should("test type") {
// uncomment below to test the property
//modelInstance.type shouldBe ("TODO")
}
// to test the property `message`
should("test message") {
// uncomment below to test the property
//modelInstance.message shouldBe ("TODO")
}
}
}

View File

@ -0,0 +1,41 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.models
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.models.Category
class CategoryTest : ShouldSpec() {
init {
// uncomment below to create an instance of Category
//val modelInstance = Category()
// to test the property `id`
should("test id") {
// uncomment below to test the property
//modelInstance.id shouldBe ("TODO")
}
// to test the property `name`
should("test name") {
// uncomment below to test the property
//modelInstance.name shouldBe ("TODO")
}
}
}

View File

@ -0,0 +1,65 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.models
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.models.Order
class OrderTest : ShouldSpec() {
init {
// uncomment below to create an instance of Order
//val modelInstance = Order()
// to test the property `id`
should("test id") {
// uncomment below to test the property
//modelInstance.id shouldBe ("TODO")
}
// to test the property `petId`
should("test petId") {
// uncomment below to test the property
//modelInstance.petId shouldBe ("TODO")
}
// to test the property `quantity`
should("test quantity") {
// uncomment below to test the property
//modelInstance.quantity shouldBe ("TODO")
}
// to test the property `shipDate`
should("test shipDate") {
// uncomment below to test the property
//modelInstance.shipDate shouldBe ("TODO")
}
// to test the property `status` - Order Status
should("test status") {
// uncomment below to test the property
//modelInstance.status shouldBe ("TODO")
}
// to test the property `complete`
should("test complete") {
// uncomment below to test the property
//modelInstance.complete shouldBe ("TODO")
}
}
}

View File

@ -0,0 +1,67 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.models
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.models.Pet
import org.openapitools.client.models.Category
import org.openapitools.client.models.Tag
class PetTest : ShouldSpec() {
init {
// uncomment below to create an instance of Pet
//val modelInstance = Pet()
// to test the property `name`
should("test name") {
// uncomment below to test the property
//modelInstance.name shouldBe ("TODO")
}
// to test the property `photoUrls`
should("test photoUrls") {
// uncomment below to test the property
//modelInstance.photoUrls shouldBe ("TODO")
}
// to test the property `id`
should("test id") {
// uncomment below to test the property
//modelInstance.id shouldBe ("TODO")
}
// to test the property `category`
should("test category") {
// uncomment below to test the property
//modelInstance.category shouldBe ("TODO")
}
// to test the property `tags`
should("test tags") {
// uncomment below to test the property
//modelInstance.tags shouldBe ("TODO")
}
// to test the property `status` - pet status in the store
should("test status") {
// uncomment below to test the property
//modelInstance.status shouldBe ("TODO")
}
}
}

View File

@ -0,0 +1,41 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.models
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.models.Tag
class TagTest : ShouldSpec() {
init {
// uncomment below to create an instance of Tag
//val modelInstance = Tag()
// to test the property `id`
should("test id") {
// uncomment below to test the property
//modelInstance.id shouldBe ("TODO")
}
// to test the property `name`
should("test name") {
// uncomment below to test the property
//modelInstance.name shouldBe ("TODO")
}
}
}

View File

@ -0,0 +1,77 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.models
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.models.User
class UserTest : ShouldSpec() {
init {
// uncomment below to create an instance of User
//val modelInstance = User()
// to test the property `id`
should("test id") {
// uncomment below to test the property
//modelInstance.id shouldBe ("TODO")
}
// to test the property `username`
should("test username") {
// uncomment below to test the property
//modelInstance.username shouldBe ("TODO")
}
// to test the property `firstName`
should("test firstName") {
// uncomment below to test the property
//modelInstance.firstName shouldBe ("TODO")
}
// to test the property `lastName`
should("test lastName") {
// uncomment below to test the property
//modelInstance.lastName shouldBe ("TODO")
}
// to test the property `email`
should("test email") {
// uncomment below to test the property
//modelInstance.email shouldBe ("TODO")
}
// to test the property `password`
should("test password") {
// uncomment below to test the property
//modelInstance.password shouldBe ("TODO")
}
// to test the property `phone`
should("test phone") {
// uncomment below to test the property
//modelInstance.phone shouldBe ("TODO")
}
// to test the property `userStatus` - User Status
should("test userStatus") {
// uncomment below to test the property
//modelInstance.userStatus shouldBe ("TODO")
}
}
}

View File

@ -0,0 +1,98 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.apis
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.apis.PetApi
import org.openapitools.client.models.ModelApiResponse
import org.openapitools.client.models.Pet
class PetApiTest : ShouldSpec() {
init {
// uncomment below to create an instance of PetApi
//val apiInstance = PetApi()
// to test addPet
should("test addPet") {
// uncomment below to test addPet
//val pet : Pet = // Pet | Pet object that needs to be added to the store
//val result : Pet = apiInstance.addPet(pet)
//result shouldBe ("TODO")
}
// to test deletePet
should("test deletePet") {
// uncomment below to test deletePet
//val petId : kotlin.Long = 789 // kotlin.Long | Pet id to delete
//val apiKey : kotlin.String = apiKey_example // kotlin.String |
//apiInstance.deletePet(petId, apiKey)
}
// to test findPetsByStatus
should("test findPetsByStatus") {
// uncomment below to test findPetsByStatus
//val status : kotlin.collections.List<kotlin.String> = // kotlin.collections.List<kotlin.String> | Status values that need to be considered for filter
//val result : kotlin.collections.List<Pet> = apiInstance.findPetsByStatus(status)
//result shouldBe ("TODO")
}
// to test findPetsByTags
should("test findPetsByTags") {
// uncomment below to test findPetsByTags
//val tags : kotlin.collections.List<kotlin.String> = // kotlin.collections.List<kotlin.String> | Tags to filter by
//val result : kotlin.collections.List<Pet> = apiInstance.findPetsByTags(tags)
//result shouldBe ("TODO")
}
// to test getPetById
should("test getPetById") {
// uncomment below to test getPetById
//val petId : kotlin.Long = 789 // kotlin.Long | ID of pet to return
//val result : Pet = apiInstance.getPetById(petId)
//result shouldBe ("TODO")
}
// to test updatePet
should("test updatePet") {
// uncomment below to test updatePet
//val pet : Pet = // Pet | Pet object that needs to be added to the store
//val result : Pet = apiInstance.updatePet(pet)
//result shouldBe ("TODO")
}
// to test updatePetWithForm
should("test updatePetWithForm") {
// uncomment below to test updatePetWithForm
//val petId : kotlin.Long = 789 // kotlin.Long | ID of pet that needs to be updated
//val name : kotlin.String = name_example // kotlin.String | Updated name of the pet
//val status : kotlin.String = status_example // kotlin.String | Updated status of the pet
//apiInstance.updatePetWithForm(petId, name, status)
}
// to test uploadFile
should("test uploadFile") {
// uncomment below to test uploadFile
//val petId : kotlin.Long = 789 // kotlin.Long | ID of pet to update
//val additionalMetadata : kotlin.String = additionalMetadata_example // kotlin.String | Additional data to pass to server
//val file : java.io.File = BINARY_DATA_HERE // java.io.File | file to upload
//val result : ModelApiResponse = apiInstance.uploadFile(petId, additionalMetadata, file)
//result shouldBe ("TODO")
}
}
}

View File

@ -0,0 +1,60 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.apis
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.apis.StoreApi
import org.openapitools.client.models.Order
class StoreApiTest : ShouldSpec() {
init {
// uncomment below to create an instance of StoreApi
//val apiInstance = StoreApi()
// to test deleteOrder
should("test deleteOrder") {
// uncomment below to test deleteOrder
//val orderId : kotlin.String = orderId_example // kotlin.String | ID of the order that needs to be deleted
//apiInstance.deleteOrder(orderId)
}
// to test getInventory
should("test getInventory") {
// uncomment below to test getInventory
//val result : kotlin.collections.Map<kotlin.String, kotlin.Int> = apiInstance.getInventory()
//result shouldBe ("TODO")
}
// to test getOrderById
should("test getOrderById") {
// uncomment below to test getOrderById
//val orderId : kotlin.Long = 789 // kotlin.Long | ID of pet that needs to be fetched
//val result : Order = apiInstance.getOrderById(orderId)
//result shouldBe ("TODO")
}
// to test placeOrder
should("test placeOrder") {
// uncomment below to test placeOrder
//val order : Order = // Order | order placed for purchasing the pet
//val result : Order = apiInstance.placeOrder(order)
//result shouldBe ("TODO")
}
}
}

View File

@ -0,0 +1,89 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.apis
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.apis.UserApi
import org.openapitools.client.models.User
class UserApiTest : ShouldSpec() {
init {
// uncomment below to create an instance of UserApi
//val apiInstance = UserApi()
// to test createUser
should("test createUser") {
// uncomment below to test createUser
//val user : User = // User | Created user object
//apiInstance.createUser(user)
}
// to test createUsersWithArrayInput
should("test createUsersWithArrayInput") {
// uncomment below to test createUsersWithArrayInput
//val user : kotlin.collections.List<User> = // kotlin.collections.List<User> | List of user object
//apiInstance.createUsersWithArrayInput(user)
}
// to test createUsersWithListInput
should("test createUsersWithListInput") {
// uncomment below to test createUsersWithListInput
//val user : kotlin.collections.List<User> = // kotlin.collections.List<User> | List of user object
//apiInstance.createUsersWithListInput(user)
}
// to test deleteUser
should("test deleteUser") {
// uncomment below to test deleteUser
//val username : kotlin.String = username_example // kotlin.String | The name that needs to be deleted
//apiInstance.deleteUser(username)
}
// to test getUserByName
should("test getUserByName") {
// uncomment below to test getUserByName
//val username : kotlin.String = username_example // kotlin.String | The name that needs to be fetched. Use user1 for testing.
//val result : User = apiInstance.getUserByName(username)
//result shouldBe ("TODO")
}
// to test loginUser
should("test loginUser") {
// uncomment below to test loginUser
//val username : kotlin.String = username_example // kotlin.String | The user name for login
//val password : kotlin.String = password_example // kotlin.String | The password for login in clear text
//val result : kotlin.String = apiInstance.loginUser(username, password)
//result shouldBe ("TODO")
}
// to test logoutUser
should("test logoutUser") {
// uncomment below to test logoutUser
//apiInstance.logoutUser()
}
// to test updateUser
should("test updateUser") {
// uncomment below to test updateUser
//val username : kotlin.String = username_example // kotlin.String | name that need to be deleted
//val user : User = // User | Updated user object
//apiInstance.updateUser(username, user)
}
}
}

View File

@ -0,0 +1,47 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.models
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.models.ModelApiResponse
class ModelApiResponseTest : ShouldSpec() {
init {
// uncomment below to create an instance of ModelApiResponse
//val modelInstance = ModelApiResponse()
// to test the property `code`
should("test code") {
// uncomment below to test the property
//modelInstance.code shouldBe ("TODO")
}
// to test the property `type`
should("test type") {
// uncomment below to test the property
//modelInstance.type shouldBe ("TODO")
}
// to test the property `message`
should("test message") {
// uncomment below to test the property
//modelInstance.message shouldBe ("TODO")
}
}
}

View File

@ -0,0 +1,41 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.models
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.models.Category
class CategoryTest : ShouldSpec() {
init {
// uncomment below to create an instance of Category
//val modelInstance = Category()
// to test the property `id`
should("test id") {
// uncomment below to test the property
//modelInstance.id shouldBe ("TODO")
}
// to test the property `name`
should("test name") {
// uncomment below to test the property
//modelInstance.name shouldBe ("TODO")
}
}
}

View File

@ -0,0 +1,65 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.models
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.models.Order
class OrderTest : ShouldSpec() {
init {
// uncomment below to create an instance of Order
//val modelInstance = Order()
// to test the property `id`
should("test id") {
// uncomment below to test the property
//modelInstance.id shouldBe ("TODO")
}
// to test the property `petId`
should("test petId") {
// uncomment below to test the property
//modelInstance.petId shouldBe ("TODO")
}
// to test the property `quantity`
should("test quantity") {
// uncomment below to test the property
//modelInstance.quantity shouldBe ("TODO")
}
// to test the property `shipDate`
should("test shipDate") {
// uncomment below to test the property
//modelInstance.shipDate shouldBe ("TODO")
}
// to test the property `status` - Order Status
should("test status") {
// uncomment below to test the property
//modelInstance.status shouldBe ("TODO")
}
// to test the property `complete`
should("test complete") {
// uncomment below to test the property
//modelInstance.complete shouldBe ("TODO")
}
}
}

View File

@ -0,0 +1,67 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.models
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.models.Pet
import org.openapitools.client.models.Category
import org.openapitools.client.models.Tag
class PetTest : ShouldSpec() {
init {
// uncomment below to create an instance of Pet
//val modelInstance = Pet()
// to test the property `name`
should("test name") {
// uncomment below to test the property
//modelInstance.name shouldBe ("TODO")
}
// to test the property `photoUrls`
should("test photoUrls") {
// uncomment below to test the property
//modelInstance.photoUrls shouldBe ("TODO")
}
// to test the property `id`
should("test id") {
// uncomment below to test the property
//modelInstance.id shouldBe ("TODO")
}
// to test the property `category`
should("test category") {
// uncomment below to test the property
//modelInstance.category shouldBe ("TODO")
}
// to test the property `tags`
should("test tags") {
// uncomment below to test the property
//modelInstance.tags shouldBe ("TODO")
}
// to test the property `status` - pet status in the store
should("test status") {
// uncomment below to test the property
//modelInstance.status shouldBe ("TODO")
}
}
}

View File

@ -0,0 +1,41 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.models
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.models.Tag
class TagTest : ShouldSpec() {
init {
// uncomment below to create an instance of Tag
//val modelInstance = Tag()
// to test the property `id`
should("test id") {
// uncomment below to test the property
//modelInstance.id shouldBe ("TODO")
}
// to test the property `name`
should("test name") {
// uncomment below to test the property
//modelInstance.name shouldBe ("TODO")
}
}
}

View File

@ -0,0 +1,77 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.models
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.models.User
class UserTest : ShouldSpec() {
init {
// uncomment below to create an instance of User
//val modelInstance = User()
// to test the property `id`
should("test id") {
// uncomment below to test the property
//modelInstance.id shouldBe ("TODO")
}
// to test the property `username`
should("test username") {
// uncomment below to test the property
//modelInstance.username shouldBe ("TODO")
}
// to test the property `firstName`
should("test firstName") {
// uncomment below to test the property
//modelInstance.firstName shouldBe ("TODO")
}
// to test the property `lastName`
should("test lastName") {
// uncomment below to test the property
//modelInstance.lastName shouldBe ("TODO")
}
// to test the property `email`
should("test email") {
// uncomment below to test the property
//modelInstance.email shouldBe ("TODO")
}
// to test the property `password`
should("test password") {
// uncomment below to test the property
//modelInstance.password shouldBe ("TODO")
}
// to test the property `phone`
should("test phone") {
// uncomment below to test the property
//modelInstance.phone shouldBe ("TODO")
}
// to test the property `userStatus` - User Status
should("test userStatus") {
// uncomment below to test the property
//modelInstance.userStatus shouldBe ("TODO")
}
}
}

View File

@ -0,0 +1,96 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.apis
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.apis.PetApi
import org.openapitools.client.models.ModelApiResponse
import org.openapitools.client.models.Pet
class PetApiTest : ShouldSpec() {
init {
// uncomment below to create an instance of PetApi
//val apiInstance = PetApi()
// to test addPet
should("test addPet") {
// uncomment below to test addPet
//val body : Pet = // Pet | Pet object that needs to be added to the store
//apiInstance.addPet(body)
}
// to test deletePet
should("test deletePet") {
// uncomment below to test deletePet
//val petId : kotlin.Long = 789 // kotlin.Long | Pet id to delete
//val apiKey : kotlin.String = apiKey_example // kotlin.String |
//apiInstance.deletePet(petId, apiKey)
}
// to test findPetsByStatus
should("test findPetsByStatus") {
// uncomment below to test findPetsByStatus
//val status : kotlin.collections.List<kotlin.String> = // kotlin.collections.List<kotlin.String> | Status values that need to be considered for filter
//val result : kotlin.collections.List<Pet> = apiInstance.findPetsByStatus(status)
//result shouldBe ("TODO")
}
// to test findPetsByTags
should("test findPetsByTags") {
// uncomment below to test findPetsByTags
//val tags : kotlin.collections.List<kotlin.String> = // kotlin.collections.List<kotlin.String> | Tags to filter by
//val result : kotlin.collections.List<Pet> = apiInstance.findPetsByTags(tags)
//result shouldBe ("TODO")
}
// to test getPetById
should("test getPetById") {
// uncomment below to test getPetById
//val petId : kotlin.Long = 789 // kotlin.Long | ID of pet to return
//val result : Pet = apiInstance.getPetById(petId)
//result shouldBe ("TODO")
}
// to test updatePet
should("test updatePet") {
// uncomment below to test updatePet
//val body : Pet = // Pet | Pet object that needs to be added to the store
//apiInstance.updatePet(body)
}
// to test updatePetWithForm
should("test updatePetWithForm") {
// uncomment below to test updatePetWithForm
//val petId : kotlin.Long = 789 // kotlin.Long | ID of pet that needs to be updated
//val name : kotlin.String = name_example // kotlin.String | Updated name of the pet
//val status : kotlin.String = status_example // kotlin.String | Updated status of the pet
//apiInstance.updatePetWithForm(petId, name, status)
}
// to test uploadFile
should("test uploadFile") {
// uncomment below to test uploadFile
//val petId : kotlin.Long = 789 // kotlin.Long | ID of pet to update
//val additionalMetadata : kotlin.String = additionalMetadata_example // kotlin.String | Additional data to pass to server
//val file : io.ktor.client.request.forms.InputProvider = BINARY_DATA_HERE // io.ktor.client.request.forms.InputProvider | file to upload
//val result : ModelApiResponse = apiInstance.uploadFile(petId, additionalMetadata, file)
//result shouldBe ("TODO")
}
}
}

View File

@ -0,0 +1,60 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.apis
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.apis.StoreApi
import org.openapitools.client.models.Order
class StoreApiTest : ShouldSpec() {
init {
// uncomment below to create an instance of StoreApi
//val apiInstance = StoreApi()
// to test deleteOrder
should("test deleteOrder") {
// uncomment below to test deleteOrder
//val orderId : kotlin.String = orderId_example // kotlin.String | ID of the order that needs to be deleted
//apiInstance.deleteOrder(orderId)
}
// to test getInventory
should("test getInventory") {
// uncomment below to test getInventory
//val result : kotlin.collections.Map<kotlin.String, kotlin.Int> = apiInstance.getInventory()
//result shouldBe ("TODO")
}
// to test getOrderById
should("test getOrderById") {
// uncomment below to test getOrderById
//val orderId : kotlin.Long = 789 // kotlin.Long | ID of pet that needs to be fetched
//val result : Order = apiInstance.getOrderById(orderId)
//result shouldBe ("TODO")
}
// to test placeOrder
should("test placeOrder") {
// uncomment below to test placeOrder
//val body : Order = // Order | order placed for purchasing the pet
//val result : Order = apiInstance.placeOrder(body)
//result shouldBe ("TODO")
}
}
}

View File

@ -0,0 +1,89 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.apis
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.apis.UserApi
import org.openapitools.client.models.User
class UserApiTest : ShouldSpec() {
init {
// uncomment below to create an instance of UserApi
//val apiInstance = UserApi()
// to test createUser
should("test createUser") {
// uncomment below to test createUser
//val body : User = // User | Created user object
//apiInstance.createUser(body)
}
// to test createUsersWithArrayInput
should("test createUsersWithArrayInput") {
// uncomment below to test createUsersWithArrayInput
//val body : kotlin.collections.List<User> = // kotlin.collections.List<User> | List of user object
//apiInstance.createUsersWithArrayInput(body)
}
// to test createUsersWithListInput
should("test createUsersWithListInput") {
// uncomment below to test createUsersWithListInput
//val body : kotlin.collections.List<User> = // kotlin.collections.List<User> | List of user object
//apiInstance.createUsersWithListInput(body)
}
// to test deleteUser
should("test deleteUser") {
// uncomment below to test deleteUser
//val username : kotlin.String = username_example // kotlin.String | The name that needs to be deleted
//apiInstance.deleteUser(username)
}
// to test getUserByName
should("test getUserByName") {
// uncomment below to test getUserByName
//val username : kotlin.String = username_example // kotlin.String | The name that needs to be fetched. Use user1 for testing.
//val result : User = apiInstance.getUserByName(username)
//result shouldBe ("TODO")
}
// to test loginUser
should("test loginUser") {
// uncomment below to test loginUser
//val username : kotlin.String = username_example // kotlin.String | The user name for login
//val password : kotlin.String = password_example // kotlin.String | The password for login in clear text
//val result : kotlin.String = apiInstance.loginUser(username, password)
//result shouldBe ("TODO")
}
// to test logoutUser
should("test logoutUser") {
// uncomment below to test logoutUser
//apiInstance.logoutUser()
}
// to test updateUser
should("test updateUser") {
// uncomment below to test updateUser
//val username : kotlin.String = username_example // kotlin.String | name that need to be deleted
//val body : User = // User | Updated user object
//apiInstance.updateUser(username, body)
}
}
}

View File

@ -0,0 +1,47 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.models
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.models.ModelApiResponse
class ModelApiResponseTest : ShouldSpec() {
init {
// uncomment below to create an instance of ModelApiResponse
//val modelInstance = ModelApiResponse()
// to test the property `code`
should("test code") {
// uncomment below to test the property
//modelInstance.code shouldBe ("TODO")
}
// to test the property `type`
should("test type") {
// uncomment below to test the property
//modelInstance.type shouldBe ("TODO")
}
// to test the property `message`
should("test message") {
// uncomment below to test the property
//modelInstance.message shouldBe ("TODO")
}
}
}

View File

@ -0,0 +1,41 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.models
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.models.Category
class CategoryTest : ShouldSpec() {
init {
// uncomment below to create an instance of Category
//val modelInstance = Category()
// to test the property `id`
should("test id") {
// uncomment below to test the property
//modelInstance.id shouldBe ("TODO")
}
// to test the property `name`
should("test name") {
// uncomment below to test the property
//modelInstance.name shouldBe ("TODO")
}
}
}

View File

@ -0,0 +1,65 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.models
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.models.Order
class OrderTest : ShouldSpec() {
init {
// uncomment below to create an instance of Order
//val modelInstance = Order()
// to test the property `id`
should("test id") {
// uncomment below to test the property
//modelInstance.id shouldBe ("TODO")
}
// to test the property `petId`
should("test petId") {
// uncomment below to test the property
//modelInstance.petId shouldBe ("TODO")
}
// to test the property `quantity`
should("test quantity") {
// uncomment below to test the property
//modelInstance.quantity shouldBe ("TODO")
}
// to test the property `shipDate`
should("test shipDate") {
// uncomment below to test the property
//modelInstance.shipDate shouldBe ("TODO")
}
// to test the property `status` - Order Status
should("test status") {
// uncomment below to test the property
//modelInstance.status shouldBe ("TODO")
}
// to test the property `complete`
should("test complete") {
// uncomment below to test the property
//modelInstance.complete shouldBe ("TODO")
}
}
}

View File

@ -0,0 +1,67 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.models
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.models.Pet
import org.openapitools.client.models.Category
import org.openapitools.client.models.Tag
class PetTest : ShouldSpec() {
init {
// uncomment below to create an instance of Pet
//val modelInstance = Pet()
// to test the property `name`
should("test name") {
// uncomment below to test the property
//modelInstance.name shouldBe ("TODO")
}
// to test the property `photoUrls`
should("test photoUrls") {
// uncomment below to test the property
//modelInstance.photoUrls shouldBe ("TODO")
}
// to test the property `id`
should("test id") {
// uncomment below to test the property
//modelInstance.id shouldBe ("TODO")
}
// to test the property `category`
should("test category") {
// uncomment below to test the property
//modelInstance.category shouldBe ("TODO")
}
// to test the property `tags`
should("test tags") {
// uncomment below to test the property
//modelInstance.tags shouldBe ("TODO")
}
// to test the property `status` - pet status in the store
should("test status") {
// uncomment below to test the property
//modelInstance.status shouldBe ("TODO")
}
}
}

View File

@ -0,0 +1,41 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.models
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.models.Tag
class TagTest : ShouldSpec() {
init {
// uncomment below to create an instance of Tag
//val modelInstance = Tag()
// to test the property `id`
should("test id") {
// uncomment below to test the property
//modelInstance.id shouldBe ("TODO")
}
// to test the property `name`
should("test name") {
// uncomment below to test the property
//modelInstance.name shouldBe ("TODO")
}
}
}

View File

@ -0,0 +1,77 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.models
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.models.User
class UserTest : ShouldSpec() {
init {
// uncomment below to create an instance of User
//val modelInstance = User()
// to test the property `id`
should("test id") {
// uncomment below to test the property
//modelInstance.id shouldBe ("TODO")
}
// to test the property `username`
should("test username") {
// uncomment below to test the property
//modelInstance.username shouldBe ("TODO")
}
// to test the property `firstName`
should("test firstName") {
// uncomment below to test the property
//modelInstance.firstName shouldBe ("TODO")
}
// to test the property `lastName`
should("test lastName") {
// uncomment below to test the property
//modelInstance.lastName shouldBe ("TODO")
}
// to test the property `email`
should("test email") {
// uncomment below to test the property
//modelInstance.email shouldBe ("TODO")
}
// to test the property `password`
should("test password") {
// uncomment below to test the property
//modelInstance.password shouldBe ("TODO")
}
// to test the property `phone`
should("test phone") {
// uncomment below to test the property
//modelInstance.phone shouldBe ("TODO")
}
// to test the property `userStatus` - User Status
should("test userStatus") {
// uncomment below to test the property
//modelInstance.userStatus shouldBe ("TODO")
}
}
}

View File

@ -0,0 +1,96 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.apis
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.apis.PetApi
import org.openapitools.client.models.ModelApiResponse
import org.openapitools.client.models.Pet
class PetApiTest : ShouldSpec() {
init {
// uncomment below to create an instance of PetApi
//val apiInstance = PetApi()
// to test addPet
should("test addPet") {
// uncomment below to test addPet
//val body : Pet = // Pet | Pet object that needs to be added to the store
//apiInstance.addPet(body)
}
// to test deletePet
should("test deletePet") {
// uncomment below to test deletePet
//val petId : kotlin.Long = 789 // kotlin.Long | Pet id to delete
//val apiKey : kotlin.String = apiKey_example // kotlin.String |
//apiInstance.deletePet(petId, apiKey)
}
// to test findPetsByStatus
should("test findPetsByStatus") {
// uncomment below to test findPetsByStatus
//val status : kotlin.collections.List<kotlin.String> = // kotlin.collections.List<kotlin.String> | Status values that need to be considered for filter
//val result : kotlin.collections.List<Pet> = apiInstance.findPetsByStatus(status)
//result shouldBe ("TODO")
}
// to test findPetsByTags
should("test findPetsByTags") {
// uncomment below to test findPetsByTags
//val tags : kotlin.collections.List<kotlin.String> = // kotlin.collections.List<kotlin.String> | Tags to filter by
//val result : kotlin.collections.List<Pet> = apiInstance.findPetsByTags(tags)
//result shouldBe ("TODO")
}
// to test getPetById
should("test getPetById") {
// uncomment below to test getPetById
//val petId : kotlin.Long = 789 // kotlin.Long | ID of pet to return
//val result : Pet = apiInstance.getPetById(petId)
//result shouldBe ("TODO")
}
// to test updatePet
should("test updatePet") {
// uncomment below to test updatePet
//val body : Pet = // Pet | Pet object that needs to be added to the store
//apiInstance.updatePet(body)
}
// to test updatePetWithForm
should("test updatePetWithForm") {
// uncomment below to test updatePetWithForm
//val petId : kotlin.Long = 789 // kotlin.Long | ID of pet that needs to be updated
//val name : kotlin.String = name_example // kotlin.String | Updated name of the pet
//val status : kotlin.String = status_example // kotlin.String | Updated status of the pet
//apiInstance.updatePetWithForm(petId, name, status)
}
// to test uploadFile
should("test uploadFile") {
// uncomment below to test uploadFile
//val petId : kotlin.Long = 789 // kotlin.Long | ID of pet to update
//val additionalMetadata : kotlin.String = additionalMetadata_example // kotlin.String | Additional data to pass to server
//val file : io.ktor.client.request.forms.InputProvider = BINARY_DATA_HERE // io.ktor.client.request.forms.InputProvider | file to upload
//val result : ModelApiResponse = apiInstance.uploadFile(petId, additionalMetadata, file)
//result shouldBe ("TODO")
}
}
}

View File

@ -0,0 +1,60 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.apis
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.apis.StoreApi
import org.openapitools.client.models.Order
class StoreApiTest : ShouldSpec() {
init {
// uncomment below to create an instance of StoreApi
//val apiInstance = StoreApi()
// to test deleteOrder
should("test deleteOrder") {
// uncomment below to test deleteOrder
//val orderId : kotlin.String = orderId_example // kotlin.String | ID of the order that needs to be deleted
//apiInstance.deleteOrder(orderId)
}
// to test getInventory
should("test getInventory") {
// uncomment below to test getInventory
//val result : kotlin.collections.Map<kotlin.String, kotlin.Int> = apiInstance.getInventory()
//result shouldBe ("TODO")
}
// to test getOrderById
should("test getOrderById") {
// uncomment below to test getOrderById
//val orderId : kotlin.Long = 789 // kotlin.Long | ID of pet that needs to be fetched
//val result : Order = apiInstance.getOrderById(orderId)
//result shouldBe ("TODO")
}
// to test placeOrder
should("test placeOrder") {
// uncomment below to test placeOrder
//val body : Order = // Order | order placed for purchasing the pet
//val result : Order = apiInstance.placeOrder(body)
//result shouldBe ("TODO")
}
}
}

View File

@ -0,0 +1,89 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.apis
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.apis.UserApi
import org.openapitools.client.models.User
class UserApiTest : ShouldSpec() {
init {
// uncomment below to create an instance of UserApi
//val apiInstance = UserApi()
// to test createUser
should("test createUser") {
// uncomment below to test createUser
//val body : User = // User | Created user object
//apiInstance.createUser(body)
}
// to test createUsersWithArrayInput
should("test createUsersWithArrayInput") {
// uncomment below to test createUsersWithArrayInput
//val body : kotlin.collections.List<User> = // kotlin.collections.List<User> | List of user object
//apiInstance.createUsersWithArrayInput(body)
}
// to test createUsersWithListInput
should("test createUsersWithListInput") {
// uncomment below to test createUsersWithListInput
//val body : kotlin.collections.List<User> = // kotlin.collections.List<User> | List of user object
//apiInstance.createUsersWithListInput(body)
}
// to test deleteUser
should("test deleteUser") {
// uncomment below to test deleteUser
//val username : kotlin.String = username_example // kotlin.String | The name that needs to be deleted
//apiInstance.deleteUser(username)
}
// to test getUserByName
should("test getUserByName") {
// uncomment below to test getUserByName
//val username : kotlin.String = username_example // kotlin.String | The name that needs to be fetched. Use user1 for testing.
//val result : User = apiInstance.getUserByName(username)
//result shouldBe ("TODO")
}
// to test loginUser
should("test loginUser") {
// uncomment below to test loginUser
//val username : kotlin.String = username_example // kotlin.String | The user name for login
//val password : kotlin.String = password_example // kotlin.String | The password for login in clear text
//val result : kotlin.String = apiInstance.loginUser(username, password)
//result shouldBe ("TODO")
}
// to test logoutUser
should("test logoutUser") {
// uncomment below to test logoutUser
//apiInstance.logoutUser()
}
// to test updateUser
should("test updateUser") {
// uncomment below to test updateUser
//val username : kotlin.String = username_example // kotlin.String | name that need to be deleted
//val body : User = // User | Updated user object
//apiInstance.updateUser(username, body)
}
}
}

View File

@ -0,0 +1,47 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.models
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.models.ModelApiResponse
class ModelApiResponseTest : ShouldSpec() {
init {
// uncomment below to create an instance of ModelApiResponse
//val modelInstance = ModelApiResponse()
// to test the property `code`
should("test code") {
// uncomment below to test the property
//modelInstance.code shouldBe ("TODO")
}
// to test the property `type`
should("test type") {
// uncomment below to test the property
//modelInstance.type shouldBe ("TODO")
}
// to test the property `message`
should("test message") {
// uncomment below to test the property
//modelInstance.message shouldBe ("TODO")
}
}
}

View File

@ -0,0 +1,41 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.models
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.models.Category
class CategoryTest : ShouldSpec() {
init {
// uncomment below to create an instance of Category
//val modelInstance = Category()
// to test the property `id`
should("test id") {
// uncomment below to test the property
//modelInstance.id shouldBe ("TODO")
}
// to test the property `name`
should("test name") {
// uncomment below to test the property
//modelInstance.name shouldBe ("TODO")
}
}
}

View File

@ -0,0 +1,65 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.models
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.models.Order
class OrderTest : ShouldSpec() {
init {
// uncomment below to create an instance of Order
//val modelInstance = Order()
// to test the property `id`
should("test id") {
// uncomment below to test the property
//modelInstance.id shouldBe ("TODO")
}
// to test the property `petId`
should("test petId") {
// uncomment below to test the property
//modelInstance.petId shouldBe ("TODO")
}
// to test the property `quantity`
should("test quantity") {
// uncomment below to test the property
//modelInstance.quantity shouldBe ("TODO")
}
// to test the property `shipDate`
should("test shipDate") {
// uncomment below to test the property
//modelInstance.shipDate shouldBe ("TODO")
}
// to test the property `status` - Order Status
should("test status") {
// uncomment below to test the property
//modelInstance.status shouldBe ("TODO")
}
// to test the property `complete`
should("test complete") {
// uncomment below to test the property
//modelInstance.complete shouldBe ("TODO")
}
}
}

View File

@ -0,0 +1,67 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.models
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.models.Pet
import org.openapitools.client.models.Category
import org.openapitools.client.models.Tag
class PetTest : ShouldSpec() {
init {
// uncomment below to create an instance of Pet
//val modelInstance = Pet()
// to test the property `name`
should("test name") {
// uncomment below to test the property
//modelInstance.name shouldBe ("TODO")
}
// to test the property `photoUrls`
should("test photoUrls") {
// uncomment below to test the property
//modelInstance.photoUrls shouldBe ("TODO")
}
// to test the property `id`
should("test id") {
// uncomment below to test the property
//modelInstance.id shouldBe ("TODO")
}
// to test the property `category`
should("test category") {
// uncomment below to test the property
//modelInstance.category shouldBe ("TODO")
}
// to test the property `tags`
should("test tags") {
// uncomment below to test the property
//modelInstance.tags shouldBe ("TODO")
}
// to test the property `status` - pet status in the store
should("test status") {
// uncomment below to test the property
//modelInstance.status shouldBe ("TODO")
}
}
}

View File

@ -0,0 +1,41 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.models
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.models.Tag
class TagTest : ShouldSpec() {
init {
// uncomment below to create an instance of Tag
//val modelInstance = Tag()
// to test the property `id`
should("test id") {
// uncomment below to test the property
//modelInstance.id shouldBe ("TODO")
}
// to test the property `name`
should("test name") {
// uncomment below to test the property
//modelInstance.name shouldBe ("TODO")
}
}
}

View File

@ -0,0 +1,77 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.models
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.models.User
class UserTest : ShouldSpec() {
init {
// uncomment below to create an instance of User
//val modelInstance = User()
// to test the property `id`
should("test id") {
// uncomment below to test the property
//modelInstance.id shouldBe ("TODO")
}
// to test the property `username`
should("test username") {
// uncomment below to test the property
//modelInstance.username shouldBe ("TODO")
}
// to test the property `firstName`
should("test firstName") {
// uncomment below to test the property
//modelInstance.firstName shouldBe ("TODO")
}
// to test the property `lastName`
should("test lastName") {
// uncomment below to test the property
//modelInstance.lastName shouldBe ("TODO")
}
// to test the property `email`
should("test email") {
// uncomment below to test the property
//modelInstance.email shouldBe ("TODO")
}
// to test the property `password`
should("test password") {
// uncomment below to test the property
//modelInstance.password shouldBe ("TODO")
}
// to test the property `phone`
should("test phone") {
// uncomment below to test the property
//modelInstance.phone shouldBe ("TODO")
}
// to test the property `userStatus` - User Status
should("test userStatus") {
// uncomment below to test the property
//modelInstance.userStatus shouldBe ("TODO")
}
}
}

View File

@ -0,0 +1,98 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.apis
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.apis.PetApi
import org.openapitools.client.models.ModelApiResponse
import org.openapitools.client.models.Pet
class PetApiTest : ShouldSpec() {
init {
// uncomment below to create an instance of PetApi
//val apiInstance = PetApi()
// to test addPet
should("test addPet") {
// uncomment below to test addPet
//val pet : Pet = // Pet | Pet object that needs to be added to the store
//val result : Pet = apiInstance.addPet(pet)
//result shouldBe ("TODO")
}
// to test deletePet
should("test deletePet") {
// uncomment below to test deletePet
//val petId : kotlin.Long = 789 // kotlin.Long | Pet id to delete
//val apiKey : kotlin.String = apiKey_example // kotlin.String |
//apiInstance.deletePet(petId, apiKey)
}
// to test findPetsByStatus
should("test findPetsByStatus") {
// uncomment below to test findPetsByStatus
//val status : kotlin.collections.List<kotlin.String> = // kotlin.collections.List<kotlin.String> | Status values that need to be considered for filter
//val result : kotlin.collections.List<Pet> = apiInstance.findPetsByStatus(status)
//result shouldBe ("TODO")
}
// to test findPetsByTags
should("test findPetsByTags") {
// uncomment below to test findPetsByTags
//val tags : kotlin.collections.List<kotlin.String> = // kotlin.collections.List<kotlin.String> | Tags to filter by
//val result : kotlin.collections.List<Pet> = apiInstance.findPetsByTags(tags)
//result shouldBe ("TODO")
}
// to test getPetById
should("test getPetById") {
// uncomment below to test getPetById
//val petId : kotlin.Long = 789 // kotlin.Long | ID of pet to return
//val result : Pet = apiInstance.getPetById(petId)
//result shouldBe ("TODO")
}
// to test updatePet
should("test updatePet") {
// uncomment below to test updatePet
//val pet : Pet = // Pet | Pet object that needs to be added to the store
//val result : Pet = apiInstance.updatePet(pet)
//result shouldBe ("TODO")
}
// to test updatePetWithForm
should("test updatePetWithForm") {
// uncomment below to test updatePetWithForm
//val petId : kotlin.Long = 789 // kotlin.Long | ID of pet that needs to be updated
//val name : kotlin.String = name_example // kotlin.String | Updated name of the pet
//val status : kotlin.String = status_example // kotlin.String | Updated status of the pet
//apiInstance.updatePetWithForm(petId, name, status)
}
// to test uploadFile
should("test uploadFile") {
// uncomment below to test uploadFile
//val petId : kotlin.Long = 789 // kotlin.Long | ID of pet to update
//val additionalMetadata : kotlin.String = additionalMetadata_example // kotlin.String | Additional data to pass to server
//val file : io.ktor.client.request.forms.InputProvider = BINARY_DATA_HERE // io.ktor.client.request.forms.InputProvider | file to upload
//val result : ModelApiResponse = apiInstance.uploadFile(petId, additionalMetadata, file)
//result shouldBe ("TODO")
}
}
}

View File

@ -0,0 +1,60 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.apis
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.apis.StoreApi
import org.openapitools.client.models.Order
class StoreApiTest : ShouldSpec() {
init {
// uncomment below to create an instance of StoreApi
//val apiInstance = StoreApi()
// to test deleteOrder
should("test deleteOrder") {
// uncomment below to test deleteOrder
//val orderId : kotlin.String = orderId_example // kotlin.String | ID of the order that needs to be deleted
//apiInstance.deleteOrder(orderId)
}
// to test getInventory
should("test getInventory") {
// uncomment below to test getInventory
//val result : kotlin.collections.Map<kotlin.String, kotlin.Int> = apiInstance.getInventory()
//result shouldBe ("TODO")
}
// to test getOrderById
should("test getOrderById") {
// uncomment below to test getOrderById
//val orderId : kotlin.Long = 789 // kotlin.Long | ID of pet that needs to be fetched
//val result : Order = apiInstance.getOrderById(orderId)
//result shouldBe ("TODO")
}
// to test placeOrder
should("test placeOrder") {
// uncomment below to test placeOrder
//val order : Order = // Order | order placed for purchasing the pet
//val result : Order = apiInstance.placeOrder(order)
//result shouldBe ("TODO")
}
}
}

View File

@ -0,0 +1,89 @@
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.apis
import io.kotlintest.shouldBe
import io.kotlintest.specs.ShouldSpec
import org.openapitools.client.apis.UserApi
import org.openapitools.client.models.User
class UserApiTest : ShouldSpec() {
init {
// uncomment below to create an instance of UserApi
//val apiInstance = UserApi()
// to test createUser
should("test createUser") {
// uncomment below to test createUser
//val user : User = // User | Created user object
//apiInstance.createUser(user)
}
// to test createUsersWithArrayInput
should("test createUsersWithArrayInput") {
// uncomment below to test createUsersWithArrayInput
//val user : kotlin.collections.List<User> = // kotlin.collections.List<User> | List of user object
//apiInstance.createUsersWithArrayInput(user)
}
// to test createUsersWithListInput
should("test createUsersWithListInput") {
// uncomment below to test createUsersWithListInput
//val user : kotlin.collections.List<User> = // kotlin.collections.List<User> | List of user object
//apiInstance.createUsersWithListInput(user)
}
// to test deleteUser
should("test deleteUser") {
// uncomment below to test deleteUser
//val username : kotlin.String = username_example // kotlin.String | The name that needs to be deleted
//apiInstance.deleteUser(username)
}
// to test getUserByName
should("test getUserByName") {
// uncomment below to test getUserByName
//val username : kotlin.String = username_example // kotlin.String | The name that needs to be fetched. Use user1 for testing.
//val result : User = apiInstance.getUserByName(username)
//result shouldBe ("TODO")
}
// to test loginUser
should("test loginUser") {
// uncomment below to test loginUser
//val username : kotlin.String = username_example // kotlin.String | The user name for login
//val password : kotlin.String = password_example // kotlin.String | The password for login in clear text
//val result : kotlin.String = apiInstance.loginUser(username, password)
//result shouldBe ("TODO")
}
// to test logoutUser
should("test logoutUser") {
// uncomment below to test logoutUser
//apiInstance.logoutUser()
}
// to test updateUser
should("test updateUser") {
// uncomment below to test updateUser
//val username : kotlin.String = username_example // kotlin.String | name that need to be deleted
//val user : User = // User | Updated user object
//apiInstance.updateUser(username, user)
}
}
}

Some files were not shown because too many files have changed in this diff Show More