mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-08 22:46:09 +00:00
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:
@@ -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")
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -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")
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -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")
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user