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,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")
}
}
}