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.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)
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -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")
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user