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,64 @@
/**
*
* 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
class DefaultApiTest : ShouldSpec() {
init {
// uncomment below to create an instance of DefaultApi
//val apiInstance = DefaultApi()
// to test test
should("test test") {
// uncomment below to test test
//val pi0 : kotlin.Int = 56 // kotlin.Int |
//val pi1 : kotlin.Int = 56 // kotlin.Int |
//val pn0 : java.math.BigDecimal = 8.14 // java.math.BigDecimal |
//val pn1 : java.math.BigDecimal = 8.14 // java.math.BigDecimal |
//val qi0 : kotlin.Int = 56 // kotlin.Int |
//val qi1 : kotlin.Int = 56 // kotlin.Int |
//val qi2 : kotlin.Int = 56 // kotlin.Int |
//val qi3 : kotlin.Int = 56 // kotlin.Int |
//val qn0 : java.math.BigDecimal = 8.14 // java.math.BigDecimal |
//val qn1 : java.math.BigDecimal = 8.14 // java.math.BigDecimal |
//val qn2 : java.math.BigDecimal = 8.14 // java.math.BigDecimal |
//val qn3 : java.math.BigDecimal = 8.14 // java.math.BigDecimal |
//val hi0 : kotlin.Int = 56 // kotlin.Int |
//val hi1 : kotlin.Int = 56 // kotlin.Int |
//val hi2 : kotlin.Int = 56 // kotlin.Int |
//val hi3 : kotlin.Int = 56 // kotlin.Int |
//val hn0 : java.math.BigDecimal = 8.14 // java.math.BigDecimal |
//val hn1 : java.math.BigDecimal = 8.14 // java.math.BigDecimal |
//val hn2 : java.math.BigDecimal = 8.14 // java.math.BigDecimal |
//val hn3 : java.math.BigDecimal = 8.14 // java.math.BigDecimal |
//val fi0 : kotlin.Int = 56 // kotlin.Int |
//val fi1 : kotlin.Int = 56 // kotlin.Int |
//val fi2 : kotlin.Int = 56 // kotlin.Int |
//val fi3 : kotlin.Int = 56 // kotlin.Int |
//val fn0 : java.math.BigDecimal = 8.14 // java.math.BigDecimal |
//val fn1 : java.math.BigDecimal = 8.14 // java.math.BigDecimal |
//val fn2 : java.math.BigDecimal = 8.14 // java.math.BigDecimal |
//val fn3 : java.math.BigDecimal = 8.14 // java.math.BigDecimal |
//val fn4 : kotlin.collections.List<kotlin.String> = // kotlin.collections.List<kotlin.String> |
//apiInstance.test(pi0, pi1, pn0, pn1, qi0, qi1, qi2, qi3, qn0, qn1, qn2, qn3, hi0, hi1, hi2, hi3, hn0, hn1, hn2, hn3, fi0, fi1, fi2, fi3, fn0, fn1, fn2, fn3, fn4)
}
}
}

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.Apa
class ApaTest : ShouldSpec() {
init {
// uncomment below to create an instance of Apa
//val modelInstance = Apa()
// to test the property `i0`
should("test i0") {
// uncomment below to test the property
//modelInstance.i0 shouldBe ("TODO")
}
// to test the property `n0`
should("test n0") {
// uncomment below to test the property
//modelInstance.n0 shouldBe ("TODO")
}
// to test the property `i1`
should("test i1") {
// uncomment below to test the property
//modelInstance.i1 shouldBe ("TODO")
}
// to test the property `n1`
should("test n1") {
// uncomment below to test the property
//modelInstance.n1 shouldBe ("TODO")
}
}
}