forked from loafle/openapi-generator-original
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,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")
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -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")
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -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")
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user