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
318 changed files with 19705 additions and 1 deletions

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.FakeApi
import org.openapitools.client.models.Environment
class FakeApiTest : ShouldSpec() {
init {
// uncomment below to create an instance of FakeApi
//val apiInstance = FakeApi()
// to test getParameterNameMapping
should("test getParameterNameMapping") {
// uncomment below to test getParameterNameMapping
//val underscoreType : kotlin.Long = 789 // kotlin.Long | _type
//val type : kotlin.String = type_example // kotlin.String | type
//val typeWithUnderscore : kotlin.String = typeWithUnderscore_example // kotlin.String | type_
//val httpDebugOption : kotlin.String = httpDebugOption_example // kotlin.String | http debug option (to test parameter naming option)
//val result : Environment = apiInstance.getParameterNameMapping(underscoreType, type, typeWithUnderscore, httpDebugOption)
//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.Environment
class EnvironmentTest : ShouldSpec() {
init {
// uncomment below to create an instance of Environment
//val modelInstance = Environment()
// to test the property `dummy`
should("test dummy") {
// uncomment below to test the property
//modelInstance.dummy shouldBe ("TODO")
}
}
}

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.PropertyNameMapping
class PropertyNameMappingTest : ShouldSpec() {
init {
// uncomment below to create an instance of PropertyNameMapping
//val modelInstance = PropertyNameMapping()
// to test the property `httpDebugOperation`
should("test httpDebugOperation") {
// uncomment below to test the property
//modelInstance.httpDebugOperation shouldBe ("TODO")
}
// to test the property `underscoreType`
should("test underscoreType") {
// uncomment below to test the property
//modelInstance.underscoreType shouldBe ("TODO")
}
// to test the property `type`
should("test type") {
// uncomment below to test the property
//modelInstance.type shouldBe ("TODO")
}
// to test the property `typeWithUnderscore`
should("test typeWithUnderscore") {
// uncomment below to test the property
//modelInstance.typeWithUnderscore shouldBe ("TODO")
}
}
}