From ea4b9a7955af264a1716e3048998bde4cf8a7bf9 Mon Sep 17 00:00:00 2001 From: Martin <2026226+martin-mfg@users.noreply.github.com> Date: Mon, 2 Dec 2024 11:42:34 +0100 Subject: [PATCH 1/5] replace removed forkMode --- .../src/main/resources/Java/libraries/restclient/pom.mustache | 2 +- .../src/main/resources/Java/libraries/resttemplate/pom.mustache | 2 +- samples/client/echo_api/java/restclient/pom.xml | 2 +- samples/client/echo_api/java/resttemplate/pom.xml | 2 +- .../others/java/restclient-useAbstractionForFiles/pom.xml | 2 +- .../others/java/resttemplate-list-schema-validation/pom.xml | 2 +- .../others/java/resttemplate-useAbstractionForFiles/pom.xml | 2 +- samples/client/petstore/java/restclient-nullable-arrays/pom.xml | 2 +- samples/client/petstore/java/restclient-swagger2/pom.xml | 2 +- .../petstore/java/restclient-useSingleRequestParameter/pom.xml | 2 +- samples/client/petstore/java/restclient/pom.xml | 2 +- samples/client/petstore/java/resttemplate-jakarta/pom.xml | 2 +- samples/client/petstore/java/resttemplate-swagger1/pom.xml | 2 +- samples/client/petstore/java/resttemplate-swagger2/pom.xml | 2 +- samples/client/petstore/java/resttemplate-withXml/pom.xml | 2 +- samples/client/petstore/java/resttemplate/pom.xml | 2 +- 16 files changed, 16 insertions(+), 16 deletions(-) diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/restclient/pom.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/restclient/pom.mustache index 5ed5aaeef2a3..8d3d1fead59f 100644 --- a/modules/openapi-generator/src/main/resources/Java/libraries/restclient/pom.mustache +++ b/modules/openapi-generator/src/main/resources/Java/libraries/restclient/pom.mustache @@ -73,7 +73,7 @@ -Xms512m -Xmx1500m methods - pertest + false true diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/resttemplate/pom.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/resttemplate/pom.mustache index 1c933ad1e1c1..3d3d352996e0 100644 --- a/modules/openapi-generator/src/main/resources/Java/libraries/resttemplate/pom.mustache +++ b/modules/openapi-generator/src/main/resources/Java/libraries/resttemplate/pom.mustache @@ -73,7 +73,7 @@ -Xms512m -Xmx1500m methods - pertest + false true diff --git a/samples/client/echo_api/java/restclient/pom.xml b/samples/client/echo_api/java/restclient/pom.xml index b61ae8db3f4a..a407027a0c66 100644 --- a/samples/client/echo_api/java/restclient/pom.xml +++ b/samples/client/echo_api/java/restclient/pom.xml @@ -66,7 +66,7 @@ -Xms512m -Xmx1500m methods - pertest + false true diff --git a/samples/client/echo_api/java/resttemplate/pom.xml b/samples/client/echo_api/java/resttemplate/pom.xml index f60f70b15e09..175b47566675 100644 --- a/samples/client/echo_api/java/resttemplate/pom.xml +++ b/samples/client/echo_api/java/resttemplate/pom.xml @@ -66,7 +66,7 @@ -Xms512m -Xmx1500m methods - pertest + false true diff --git a/samples/client/others/java/restclient-useAbstractionForFiles/pom.xml b/samples/client/others/java/restclient-useAbstractionForFiles/pom.xml index ae545b66d114..aa99f031c325 100644 --- a/samples/client/others/java/restclient-useAbstractionForFiles/pom.xml +++ b/samples/client/others/java/restclient-useAbstractionForFiles/pom.xml @@ -66,7 +66,7 @@ -Xms512m -Xmx1500m methods - pertest + false true diff --git a/samples/client/others/java/resttemplate-list-schema-validation/pom.xml b/samples/client/others/java/resttemplate-list-schema-validation/pom.xml index 2801e8f6b4be..c261457cfdbb 100644 --- a/samples/client/others/java/resttemplate-list-schema-validation/pom.xml +++ b/samples/client/others/java/resttemplate-list-schema-validation/pom.xml @@ -66,7 +66,7 @@ -Xms512m -Xmx1500m methods - pertest + false true diff --git a/samples/client/others/java/resttemplate-useAbstractionForFiles/pom.xml b/samples/client/others/java/resttemplate-useAbstractionForFiles/pom.xml index a7c1f9713a20..d911c604a7df 100644 --- a/samples/client/others/java/resttemplate-useAbstractionForFiles/pom.xml +++ b/samples/client/others/java/resttemplate-useAbstractionForFiles/pom.xml @@ -66,7 +66,7 @@ -Xms512m -Xmx1500m methods - pertest + false true diff --git a/samples/client/petstore/java/restclient-nullable-arrays/pom.xml b/samples/client/petstore/java/restclient-nullable-arrays/pom.xml index e744bf677ff9..fc86cf891ae8 100644 --- a/samples/client/petstore/java/restclient-nullable-arrays/pom.xml +++ b/samples/client/petstore/java/restclient-nullable-arrays/pom.xml @@ -66,7 +66,7 @@ -Xms512m -Xmx1500m methods - pertest + false true diff --git a/samples/client/petstore/java/restclient-swagger2/pom.xml b/samples/client/petstore/java/restclient-swagger2/pom.xml index fd0cc38e229a..4a6fc23d53d8 100644 --- a/samples/client/petstore/java/restclient-swagger2/pom.xml +++ b/samples/client/petstore/java/restclient-swagger2/pom.xml @@ -66,7 +66,7 @@ -Xms512m -Xmx1500m methods - pertest + false true diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/pom.xml b/samples/client/petstore/java/restclient-useSingleRequestParameter/pom.xml index b76cf6c2dd24..6b421286f8b5 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/pom.xml +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/pom.xml @@ -66,7 +66,7 @@ -Xms512m -Xmx1500m methods - pertest + false true diff --git a/samples/client/petstore/java/restclient/pom.xml b/samples/client/petstore/java/restclient/pom.xml index ff4d29f2afad..d8be4f28248a 100644 --- a/samples/client/petstore/java/restclient/pom.xml +++ b/samples/client/petstore/java/restclient/pom.xml @@ -66,7 +66,7 @@ -Xms512m -Xmx1500m methods - pertest + false true diff --git a/samples/client/petstore/java/resttemplate-jakarta/pom.xml b/samples/client/petstore/java/resttemplate-jakarta/pom.xml index 4c6f3e894381..c885ce4e8548 100644 --- a/samples/client/petstore/java/resttemplate-jakarta/pom.xml +++ b/samples/client/petstore/java/resttemplate-jakarta/pom.xml @@ -66,7 +66,7 @@ -Xms512m -Xmx1500m methods - pertest + false true diff --git a/samples/client/petstore/java/resttemplate-swagger1/pom.xml b/samples/client/petstore/java/resttemplate-swagger1/pom.xml index da5f1d42eca8..d5c1c1c92629 100644 --- a/samples/client/petstore/java/resttemplate-swagger1/pom.xml +++ b/samples/client/petstore/java/resttemplate-swagger1/pom.xml @@ -66,7 +66,7 @@ -Xms512m -Xmx1500m methods - pertest + false true diff --git a/samples/client/petstore/java/resttemplate-swagger2/pom.xml b/samples/client/petstore/java/resttemplate-swagger2/pom.xml index dab9814c6c99..e871c3fab058 100644 --- a/samples/client/petstore/java/resttemplate-swagger2/pom.xml +++ b/samples/client/petstore/java/resttemplate-swagger2/pom.xml @@ -66,7 +66,7 @@ -Xms512m -Xmx1500m methods - pertest + false true diff --git a/samples/client/petstore/java/resttemplate-withXml/pom.xml b/samples/client/petstore/java/resttemplate-withXml/pom.xml index 473667b8ed93..ecac00c4e95e 100644 --- a/samples/client/petstore/java/resttemplate-withXml/pom.xml +++ b/samples/client/petstore/java/resttemplate-withXml/pom.xml @@ -66,7 +66,7 @@ -Xms512m -Xmx1500m methods - pertest + false true diff --git a/samples/client/petstore/java/resttemplate/pom.xml b/samples/client/petstore/java/resttemplate/pom.xml index dd2d23b6cc02..75185c6d1f93 100644 --- a/samples/client/petstore/java/resttemplate/pom.xml +++ b/samples/client/petstore/java/resttemplate/pom.xml @@ -66,7 +66,7 @@ -Xms512m -Xmx1500m methods - pertest + false true From e4fdea842066d63222adf390c8d2e361d6dc6706 Mon Sep 17 00:00:00 2001 From: Martin <2026226+martin-mfg@users.noreply.github.com> Date: Sun, 8 Dec 2024 14:02:27 +0100 Subject: [PATCH 2/5] remove junit runner where it's not needed --- .../main/resources/Java/libraries/restclient/pom.mustache | 7 ------- .../resources/Java/libraries/resttemplate/pom.mustache | 7 ------- samples/client/echo_api/java/restclient/pom.xml | 7 ------- samples/client/echo_api/java/resttemplate/pom.xml | 7 ------- .../others/java/restclient-useAbstractionForFiles/pom.xml | 7 ------- .../java/resttemplate-list-schema-validation/pom.xml | 7 ------- .../java/resttemplate-useAbstractionForFiles/pom.xml | 7 ------- .../petstore/java/restclient-nullable-arrays/pom.xml | 7 ------- samples/client/petstore/java/restclient-swagger2/pom.xml | 7 ------- .../java/restclient-useSingleRequestParameter/pom.xml | 7 ------- samples/client/petstore/java/restclient/pom.xml | 7 ------- samples/client/petstore/java/resttemplate-jakarta/pom.xml | 7 ------- samples/client/petstore/java/resttemplate-swagger1/pom.xml | 7 ------- samples/client/petstore/java/resttemplate-swagger2/pom.xml | 7 ------- samples/client/petstore/java/resttemplate-withXml/pom.xml | 7 ------- samples/client/petstore/java/resttemplate/pom.xml | 7 ------- 16 files changed, 112 deletions(-) diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/restclient/pom.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/restclient/pom.mustache index 8d3d1fead59f..f926d47b4b31 100644 --- a/modules/openapi-generator/src/main/resources/Java/libraries/restclient/pom.mustache +++ b/modules/openapi-generator/src/main/resources/Java/libraries/restclient/pom.mustache @@ -337,12 +337,6 @@ ${junit-version} test - - org.junit.platform - junit-platform-runner - ${junit-platform-runner.version} - test - UTF-8 @@ -367,6 +361,5 @@ 5.4.3.Final {{/performBeanValidation}} 5.10.2 - 1.10.0 diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/resttemplate/pom.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/resttemplate/pom.mustache index 3d3d352996e0..90de86cbad26 100644 --- a/modules/openapi-generator/src/main/resources/Java/libraries/resttemplate/pom.mustache +++ b/modules/openapi-generator/src/main/resources/Java/libraries/resttemplate/pom.mustache @@ -352,12 +352,6 @@ ${junit-version} test - - org.junit.platform - junit-platform-runner - ${junit-platform-runner.version} - test - UTF-8 @@ -389,6 +383,5 @@ 5.4.3.Final {{/performBeanValidation}} 5.10.2 - 1.10.0 diff --git a/samples/client/echo_api/java/restclient/pom.xml b/samples/client/echo_api/java/restclient/pom.xml index a407027a0c66..b075100afbb7 100644 --- a/samples/client/echo_api/java/restclient/pom.xml +++ b/samples/client/echo_api/java/restclient/pom.xml @@ -271,12 +271,6 @@ ${junit-version} test - - org.junit.platform - junit-platform-runner - ${junit-platform-runner.version} - test - UTF-8 @@ -287,6 +281,5 @@ 2.1.1 3.0.2 5.10.2 - 1.10.0 diff --git a/samples/client/echo_api/java/resttemplate/pom.xml b/samples/client/echo_api/java/resttemplate/pom.xml index 175b47566675..bbec31c345f3 100644 --- a/samples/client/echo_api/java/resttemplate/pom.xml +++ b/samples/client/echo_api/java/resttemplate/pom.xml @@ -271,12 +271,6 @@ ${junit-version} test - - org.junit.platform - junit-platform-runner - ${junit-platform-runner.version} - test - UTF-8 @@ -287,6 +281,5 @@ 1.3.5 2.0.2 5.10.2 - 1.10.0 diff --git a/samples/client/others/java/restclient-useAbstractionForFiles/pom.xml b/samples/client/others/java/restclient-useAbstractionForFiles/pom.xml index aa99f031c325..9d271da9bb3c 100644 --- a/samples/client/others/java/restclient-useAbstractionForFiles/pom.xml +++ b/samples/client/others/java/restclient-useAbstractionForFiles/pom.xml @@ -271,12 +271,6 @@ ${junit-version} test - - org.junit.platform - junit-platform-runner - ${junit-platform-runner.version} - test - UTF-8 @@ -287,6 +281,5 @@ 2.1.1 3.0.2 5.10.2 - 1.10.0 diff --git a/samples/client/others/java/resttemplate-list-schema-validation/pom.xml b/samples/client/others/java/resttemplate-list-schema-validation/pom.xml index c261457cfdbb..b4271e2651b2 100644 --- a/samples/client/others/java/resttemplate-list-schema-validation/pom.xml +++ b/samples/client/others/java/resttemplate-list-schema-validation/pom.xml @@ -278,12 +278,6 @@ ${junit-version} test - - org.junit.platform - junit-platform-runner - ${junit-platform-runner.version} - test - UTF-8 @@ -294,6 +288,5 @@ 1.3.5 2.0.2 5.10.2 - 1.10.0 diff --git a/samples/client/others/java/resttemplate-useAbstractionForFiles/pom.xml b/samples/client/others/java/resttemplate-useAbstractionForFiles/pom.xml index d911c604a7df..90bf1ab856c3 100644 --- a/samples/client/others/java/resttemplate-useAbstractionForFiles/pom.xml +++ b/samples/client/others/java/resttemplate-useAbstractionForFiles/pom.xml @@ -271,12 +271,6 @@ ${junit-version} test - - org.junit.platform - junit-platform-runner - ${junit-platform-runner.version} - test - UTF-8 @@ -287,6 +281,5 @@ 1.3.5 2.0.2 5.10.2 - 1.10.0 diff --git a/samples/client/petstore/java/restclient-nullable-arrays/pom.xml b/samples/client/petstore/java/restclient-nullable-arrays/pom.xml index fc86cf891ae8..e3cbc88733eb 100644 --- a/samples/client/petstore/java/restclient-nullable-arrays/pom.xml +++ b/samples/client/petstore/java/restclient-nullable-arrays/pom.xml @@ -271,12 +271,6 @@ ${junit-version} test - - org.junit.platform - junit-platform-runner - ${junit-platform-runner.version} - test - UTF-8 @@ -287,6 +281,5 @@ 2.1.1 3.0.2 5.10.2 - 1.10.0 diff --git a/samples/client/petstore/java/restclient-swagger2/pom.xml b/samples/client/petstore/java/restclient-swagger2/pom.xml index 4a6fc23d53d8..5ec46d119590 100644 --- a/samples/client/petstore/java/restclient-swagger2/pom.xml +++ b/samples/client/petstore/java/restclient-swagger2/pom.xml @@ -276,12 +276,6 @@ ${junit-version} test - - org.junit.platform - junit-platform-runner - ${junit-platform-runner.version} - test - UTF-8 @@ -293,6 +287,5 @@ 2.1.1 3.0.2 5.10.2 - 1.10.0 diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/pom.xml b/samples/client/petstore/java/restclient-useSingleRequestParameter/pom.xml index 6b421286f8b5..05566ac5820e 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/pom.xml +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/pom.xml @@ -271,12 +271,6 @@ ${junit-version} test - - org.junit.platform - junit-platform-runner - ${junit-platform-runner.version} - test - UTF-8 @@ -287,6 +281,5 @@ 2.1.1 3.0.2 5.10.2 - 1.10.0 diff --git a/samples/client/petstore/java/restclient/pom.xml b/samples/client/petstore/java/restclient/pom.xml index d8be4f28248a..9d5369c46fb4 100644 --- a/samples/client/petstore/java/restclient/pom.xml +++ b/samples/client/petstore/java/restclient/pom.xml @@ -271,12 +271,6 @@ ${junit-version} test - - org.junit.platform - junit-platform-runner - ${junit-platform-runner.version} - test - UTF-8 @@ -287,6 +281,5 @@ 2.1.1 3.0.2 5.10.2 - 1.10.0 diff --git a/samples/client/petstore/java/resttemplate-jakarta/pom.xml b/samples/client/petstore/java/resttemplate-jakarta/pom.xml index c885ce4e8548..16707917a47b 100644 --- a/samples/client/petstore/java/resttemplate-jakarta/pom.xml +++ b/samples/client/petstore/java/resttemplate-jakarta/pom.xml @@ -271,12 +271,6 @@ ${junit-version} test - - org.junit.platform - junit-platform-runner - ${junit-platform-runner.version} - test - UTF-8 @@ -287,6 +281,5 @@ 2.1.1 3.0.2 5.10.2 - 1.10.0 diff --git a/samples/client/petstore/java/resttemplate-swagger1/pom.xml b/samples/client/petstore/java/resttemplate-swagger1/pom.xml index d5c1c1c92629..855a156b17c3 100644 --- a/samples/client/petstore/java/resttemplate-swagger1/pom.xml +++ b/samples/client/petstore/java/resttemplate-swagger1/pom.xml @@ -276,12 +276,6 @@ ${junit-version} test - - org.junit.platform - junit-platform-runner - ${junit-platform-runner.version} - test - UTF-8 @@ -293,6 +287,5 @@ 1.3.5 2.0.2 5.10.2 - 1.10.0 diff --git a/samples/client/petstore/java/resttemplate-swagger2/pom.xml b/samples/client/petstore/java/resttemplate-swagger2/pom.xml index e871c3fab058..b57e6754caf9 100644 --- a/samples/client/petstore/java/resttemplate-swagger2/pom.xml +++ b/samples/client/petstore/java/resttemplate-swagger2/pom.xml @@ -276,12 +276,6 @@ ${junit-version} test - - org.junit.platform - junit-platform-runner - ${junit-platform-runner.version} - test - UTF-8 @@ -293,6 +287,5 @@ 1.3.5 2.0.2 5.10.2 - 1.10.0 diff --git a/samples/client/petstore/java/resttemplate-withXml/pom.xml b/samples/client/petstore/java/resttemplate-withXml/pom.xml index ecac00c4e95e..668051eb02cb 100644 --- a/samples/client/petstore/java/resttemplate-withXml/pom.xml +++ b/samples/client/petstore/java/resttemplate-withXml/pom.xml @@ -283,12 +283,6 @@ ${junit-version} test - - org.junit.platform - junit-platform-runner - ${junit-platform-runner.version} - test - UTF-8 @@ -299,6 +293,5 @@ 1.3.5 2.0.2 5.10.2 - 1.10.0 diff --git a/samples/client/petstore/java/resttemplate/pom.xml b/samples/client/petstore/java/resttemplate/pom.xml index 75185c6d1f93..f6f67584ae9a 100644 --- a/samples/client/petstore/java/resttemplate/pom.xml +++ b/samples/client/petstore/java/resttemplate/pom.xml @@ -271,12 +271,6 @@ ${junit-version} test - - org.junit.platform - junit-platform-runner - ${junit-platform-runner.version} - test - UTF-8 @@ -287,6 +281,5 @@ 1.3.5 2.0.2 5.10.2 - 1.10.0 From 04b5ff1e3accbf7f534c413a649e7e57072783df Mon Sep 17 00:00:00 2001 From: Martin <2026226+martin-mfg@users.noreply.github.com> Date: Sun, 8 Dec 2024 19:24:18 +0100 Subject: [PATCH 3/5] update samples without skipping test files, but skip files named "FILES" --- .../Org.OpenAPITools.Test/Api/AuthApiTests.cs | 11 + .../Org.OpenAPITools.Test/Api/BodyApiTests.cs | 56 +- .../Org.OpenAPITools.Test/Api/FormApiTests.cs | 31 + .../Api/HeaderApiTests.cs | 10 +- .../Org.OpenAPITools.Test/Api/PathApiTests.cs | 10 +- .../Api/QueryApiTests.cs | 29 +- .../Model/NumberPropertiesOnlyTests.cs | 12 +- .../client/echo_api/go/test/api_auth_test.go | 12 + .../client/echo_api/go/test/api_body_test.go | 59 +- .../client/echo_api/go/test/api_form_test.go | 12 + .../echo_api/go/test/api_header_test.go | 9 +- .../client/echo_api/go/test/api_path_test.go | 13 +- .../client/echo_api/go/test/api_query_test.go | 24 + .../openapitools/client/api/AuthApiTest.java | 14 +- .../openapitools/client/api/BodyApiTest.java | 141 +++- .../openapitools/client/api/FormApiTest.java | 40 +- .../client/api/HeaderApiTest.java | 4 +- .../openapitools/client/api/PathApiTest.java | 4 +- .../openapitools/client/api/QueryApiTest.java | 117 +++- .../openapitools/client/model/BirdTest.java | 9 +- .../client/model/CategoryTest.java | 9 +- .../client/model/DataQueryTest.java | 38 +- .../client/model/DefaultValueTest.java | 35 +- .../model/NumberPropertiesOnlyTest.java | 11 +- .../openapitools/client/model/PetTest.java | 18 +- .../openapitools/client/model/QueryTest.java | 10 +- .../client/model/StringEnumRefTest.java | 5 +- .../openapitools/client/model/TagTest.java | 9 +- ...tFormObjectMultipartRequestMarkerTest.java | 6 +- ...ueObjectAllOfQueryObjectParameterTest.java | 13 +- ...ueArrayStringQueryObjectParameterTest.java | 8 +- .../openapitools/client/api/AuthApiTest.java | 19 +- .../openapitools/client/api/BodyApiTest.java | 128 ++++ .../openapitools/client/api/FormApiTest.java | 34 + .../client/api/HeaderApiTest.java | 7 +- .../openapitools/client/api/PathApiTest.java | 7 +- .../openapitools/client/api/QueryApiTest.java | 221 +++++++ .../openapitools/client/model/BirdTest.java | 1 - .../client/model/CategoryTest.java | 1 - .../client/model/DataQueryTest.java | 34 +- .../client/model/DefaultValueTest.java | 19 +- .../model/NumberPropertiesOnlyTest.java | 1 - .../openapitools/client/model/PetTest.java | 2 +- .../openapitools/client/model/QueryTest.java | 2 +- .../client/model/StringEnumRefTest.java | 1 - .../openapitools/client/model/TagTest.java | 1 - ...ueObjectAllOfQueryObjectParameterTest.java | 1 - ...ueArrayStringQueryObjectParameterTest.java | 2 +- .../openapitools/client/api/AuthApiTest.java | 8 +- .../openapitools/client/api/BodyApiTest.java | 165 ++++- .../openapitools/client/api/FormApiTest.java | 48 +- .../client/api/HeaderApiTest.java | 10 +- .../openapitools/client/api/PathApiTest.java | 10 +- .../openapitools/client/api/QueryApiTest.java | 176 ++++- .../openapitools/client/model/BirdTest.java | 17 +- .../client/model/CategoryTest.java | 19 +- .../client/model/DataQueryTest.java | 49 +- .../client/model/DefaultValueTest.java | 54 +- .../model/NumberPropertiesOnlyTest.java | 20 +- .../openapitools/client/model/PetTest.java | 31 +- .../openapitools/client/model/QueryTest.java | 19 +- .../client/model/StringEnumRefTest.java | 7 +- .../openapitools/client/model/TagTest.java | 19 +- ...tFormObjectMultipartRequestMarkerTest.java | 14 +- ...ueObjectAllOfQueryObjectParameterTest.java | 37 +- ...ueArrayStringQueryObjectParameterTest.java | 19 +- .../openapitools/client/api/AuthApiTest.java | 14 +- .../openapitools/client/api/BodyApiTest.java | 128 ++++ .../openapitools/client/api/FormApiTest.java | 34 + .../openapitools/client/api/QueryApiTest.java | 77 +++ .../openapitools/client/model/BirdTest.java | 2 +- .../client/model/CategoryTest.java | 2 +- .../client/model/DataQueryTest.java | 34 +- .../client/model/DefaultValueTest.java | 19 +- .../model/NumberPropertiesOnlyTest.java | 2 +- .../openapitools/client/model/PetTest.java | 2 +- .../openapitools/client/model/QueryTest.java | 2 +- .../client/model/StringEnumRefTest.java | 1 - .../openapitools/client/model/TagTest.java | 2 +- ...ueObjectAllOfQueryObjectParameterTest.java | 2 +- ...ueArrayStringQueryObjectParameterTest.java | 2 +- .../openapitools/client/api/AuthApiTest.java | 10 +- .../openapitools/client/api/BodyApiTest.java | 91 +-- .../openapitools/client/api/FormApiTest.java | 28 +- .../client/api/HeaderApiTest.java | 8 +- .../openapitools/client/api/PathApiTest.java | 8 +- .../openapitools/client/api/QueryApiTest.java | 56 +- .../openapitools/client/model/BirdTest.java | 8 +- .../client/model/CategoryTest.java | 8 +- .../client/model/DataQueryTest.java | 14 +- .../client/model/DefaultValueTest.java | 20 +- .../model/NumberPropertiesOnlyTest.java | 10 +- .../openapitools/client/model/PetTest.java | 16 +- .../openapitools/client/model/QueryTest.java | 8 +- .../client/model/StringEnumRefTest.java | 4 +- .../openapitools/client/model/TagTest.java | 8 +- ...tFormObjectMultipartRequestMarkerTest.java | 6 +- ...ueObjectAllOfQueryObjectParameterTest.java | 12 +- ...ueArrayStringQueryObjectParameterTest.java | 6 +- .../openapitools/client/api/AuthApiTest.java | 27 +- .../openapitools/client/api/BodyApiTest.java | 76 ++- .../openapitools/client/api/FormApiTest.java | 35 +- .../client/api/HeaderApiTest.java | 13 +- .../openapitools/client/api/PathApiTest.java | 13 +- .../openapitools/client/api/QueryApiTest.java | 75 ++- .../openapitools/client/model/BirdTest.java | 14 +- .../client/model/CategoryTest.java | 14 +- .../client/model/DataQueryTest.java | 20 +- .../client/model/DefaultValueTest.java | 26 +- .../model/NumberPropertiesOnlyTest.java | 16 +- .../openapitools/client/model/PetTest.java | 22 +- .../openapitools/client/model/QueryTest.java | 14 +- .../client/model/StringEnumRefTest.java | 10 +- .../openapitools/client/model/TagTest.java | 14 +- ...tFormObjectMultipartRequestMarkerTest.java | 12 +- ...ueObjectAllOfQueryObjectParameterTest.java | 18 +- ...ueArrayStringQueryObjectParameterTest.java | 12 +- .../tests/Api/AuthApiTest.php | 2 +- .../tests/Api/BodyApiTest.php | 2 +- .../tests/Api/FormApiTest.php | 2 +- .../tests/Api/HeaderApiTest.php | 2 +- .../tests/Api/PathApiTest.php | 2 +- .../tests/Api/QueryApiTest.php | 2 +- .../tests/Model/BirdTest.php | 2 +- .../tests/Model/CategoryTest.php | 2 +- .../tests/Model/DataQueryTest.php | 2 +- .../tests/Model/DefaultValueTest.php | 2 +- .../tests/Model/NumberPropertiesOnlyTest.php | 2 +- .../tests/Model/PetTest.php | 2 +- .../tests/Model/QueryTest.php | 2 +- .../tests/Model/StringEnumRefTest.php | 2 +- .../tests/Model/TagTest.php | 2 +- ...stFormObjectMultipartRequestMarkerTest.php | 2 +- ...rueObjectAllOfQueryObjectParameterTest.php | 2 +- ...rueArrayStringQueryObjectParameterTest.php | 2 +- .../php-nextgen/tests/Api/AuthApiTest.php | 22 +- .../php-nextgen/tests/Api/BodyApiTest.php | 46 +- .../php-nextgen/tests/Api/FormApiTest.php | 22 +- .../php-nextgen/tests/Api/HeaderApiTest.php | 14 +- .../php-nextgen/tests/Api/PathApiTest.php | 14 +- .../php-nextgen/tests/Api/QueryApiTest.php | 34 +- .../php-nextgen/tests/Model/BirdTest.php | 4 +- .../php-nextgen/tests/Model/CategoryTest.php | 4 +- .../php-nextgen/tests/Model/DataQueryTest.php | 4 +- .../tests/Model/DefaultValueTest.php | 4 +- .../tests/Model/NumberPropertiesOnlyTest.php | 4 +- .../php-nextgen/tests/Model/PetTest.php | 4 +- .../php-nextgen/tests/Model/QueryTest.php | 4 +- .../tests/Model/StringEnumRefTest.php | 4 +- .../php-nextgen/tests/Model/TagTest.php | 4 +- ...stFormObjectMultipartRequestMarkerTest.php | 2 +- ...rueObjectAllOfQueryObjectParameterTest.php | 4 +- ...rueArrayStringQueryObjectParameterTest.php | 4 +- .../powershell/tests/Api/AuthApi.Tests.ps1 | 8 + .../powershell/tests/Api/BodyApi.Tests.ps1 | 16 + .../powershell/tests/Api/FormApi.Tests.ps1 | 8 + .../powershell/tests/Api/QueryApi.Tests.ps1 | 16 + .../test/test_auth_api.py | 13 +- .../test/test_bird.py | 25 +- .../test/test_body_api.py | 85 ++- .../test/test_category.py | 25 +- .../test/test_data_query.py | 27 +- .../test/test_default_value.py | 39 +- .../test/test_form_api.py | 36 +- .../test/test_header_api.py | 24 +- .../test/test_number_properties_only.py | 25 +- .../test/test_path_api.py | 24 +- .../test/test_pet.py | 33 +- .../test/test_query.py | 25 +- .../test/test_query_api.py | 79 ++- .../test/test_string_enum_ref.py | 13 +- .../test/test_tag.py | 25 +- ...st_form_object_multipart_request_marker.py | 2 +- ...ue_object_all_of_query_object_parameter.py | 29 +- ...rue_array_string_query_object_parameter.py | 23 +- .../python-pydantic-v1/test/test_auth_api.py | 9 +- .../python-pydantic-v1/test/test_bird.py | 20 +- .../python-pydantic-v1/test/test_body_api.py | 81 ++- .../python-pydantic-v1/test/test_category.py | 20 +- .../test/test_data_query.py | 22 +- .../test/test_default_value.py | 34 +- .../python-pydantic-v1/test/test_form_api.py | 32 +- .../test/test_header_api.py | 20 +- .../test/test_number_properties_only.py | 20 +- .../python-pydantic-v1/test/test_path_api.py | 20 +- .../python-pydantic-v1/test/test_pet.py | 28 +- .../python-pydantic-v1/test/test_query.py | 20 +- .../python-pydantic-v1/test/test_query_api.py | 71 +- .../test/test_string_enum_ref.py | 10 +- .../python-pydantic-v1/test/test_tag.py | 20 +- ...ue_object_all_of_query_object_parameter.py | 24 +- ...rue_array_string_query_object_parameter.py | 18 +- .../echo_api/python/test/test_auth_api.py | 13 +- .../client/echo_api/python/test/test_bird.py | 25 +- .../echo_api/python/test/test_body_api.py | 85 ++- .../echo_api/python/test/test_category.py | 25 +- .../echo_api/python/test/test_data_query.py | 27 +- .../python/test/test_default_value.py | 39 +- .../echo_api/python/test/test_form_api.py | 36 +- .../echo_api/python/test/test_header_api.py | 24 +- .../test/test_number_properties_only.py | 25 +- .../echo_api/python/test/test_path_api.py | 24 +- .../client/echo_api/python/test/test_pet.py | 33 +- .../client/echo_api/python/test/test_query.py | 25 +- .../echo_api/python/test/test_query_api.py | 79 ++- .../python/test/test_string_enum_ref.py | 13 +- .../client/echo_api/python/test/test_tag.py | 25 +- ...st_form_object_multipart_request_marker.py | 2 +- ...ue_object_all_of_query_object_parameter.py | 29 +- ...rue_array_string_query_object_parameter.py | 23 +- .../echo_api/r/tests/testthat/test_body_api.R | 12 + .../echo_api/r/tests/testthat/test_form_api.R | 12 + .../r/tests/testthat/test_query_api.R | 24 + .../ruby-faraday/spec/api/auth_api_spec.rb | 2 +- .../ruby-faraday/spec/api/body_api_spec.rb | 26 +- .../ruby-faraday/spec/api/form_api_spec.rb | 14 +- .../ruby-faraday/spec/api/header_api_spec.rb | 2 +- .../ruby-faraday/spec/api/path_api_spec.rb | 2 +- .../ruby-faraday/spec/api/query_api_spec.rb | 26 +- .../ruby-faraday/spec/models/bird_spec.rb | 2 +- .../ruby-faraday/spec/models/category_spec.rb | 2 +- .../spec/models/data_query_spec.rb | 2 +- .../spec/models/default_value_spec.rb | 2 +- .../models/number_properties_only_spec.rb | 2 +- .../ruby-faraday/spec/models/pet_spec.rb | 2 +- .../ruby-faraday/spec/models/query_spec.rb | 2 +- .../spec/models/string_enum_ref_spec.rb | 2 +- .../ruby-faraday/spec/models/tag_spec.rb | 2 +- ...rm_object_multipart_request_marker_spec.rb | 2 +- ...ject_all_of_query_object_parameter_spec.rb | 2 +- ...rray_string_query_object_parameter_spec.rb | 2 +- .../ruby-httpx/spec/api/auth_api_spec.rb | 13 +- .../ruby-httpx/spec/api/body_api_spec.rb | 38 +- .../ruby-httpx/spec/api/form_api_spec.rb | 14 +- .../ruby-httpx/spec/api/header_api_spec.rb | 8 +- .../ruby-httpx/spec/api/path_api_spec.rb | 8 +- .../ruby-httpx/spec/api/query_api_spec.rb | 27 +- .../ruby-httpx/spec/models/bird_spec.rb | 2 +- .../ruby-httpx/spec/models/category_spec.rb | 2 +- .../ruby-httpx/spec/models/data_query_spec.rb | 2 +- .../spec/models/default_value_spec.rb | 2 +- .../models/number_properties_only_spec.rb | 2 +- .../ruby-httpx/spec/models/pet_spec.rb | 2 +- .../ruby-httpx/spec/models/query_spec.rb | 2 +- .../spec/models/string_enum_ref_spec.rb | 2 +- .../ruby-httpx/spec/models/tag_spec.rb | 2 +- ...rm_object_multipart_request_marker_spec.rb | 2 +- ...ject_all_of_query_object_parameter_spec.rb | 2 +- ...rray_string_query_object_parameter_spec.rb | 2 +- .../ruby-typhoeus/spec/api/auth_api_spec.rb | 2 +- .../ruby-typhoeus/spec/api/body_api_spec.rb | 26 +- .../ruby-typhoeus/spec/api/form_api_spec.rb | 14 +- .../ruby-typhoeus/spec/api/header_api_spec.rb | 2 +- .../ruby-typhoeus/spec/api/path_api_spec.rb | 2 +- .../ruby-typhoeus/spec/api/query_api_spec.rb | 26 +- .../ruby-typhoeus/spec/models/bird_spec.rb | 2 +- .../spec/models/category_spec.rb | 2 +- .../spec/models/data_query_spec.rb | 2 +- .../spec/models/default_value_spec.rb | 2 +- .../models/number_properties_only_spec.rb | 2 +- .../ruby-typhoeus/spec/models/pet_spec.rb | 2 +- .../ruby-typhoeus/spec/models/query_spec.rb | 2 +- .../spec/models/string_enum_ref_spec.rb | 2 +- .../ruby-typhoeus/spec/models/tag_spec.rb | 2 +- ...rm_object_multipart_request_marker_spec.rb | 2 +- ...ject_all_of_query_object_parameter_spec.rb | 2 +- ...rray_string_query_object_parameter_spec.rb | 2 +- .../openapitools/client/api/PingApiTest.java | 27 +- .../client/model/SomeObjTest.java | 2 +- .../client/api/ResourceApiTest.java | 13 +- .../client/apis/DefaultApiTest.kt | 2 +- .../tests/testthat/test_category.R | 7 +- .../tests/testthat/test_date.R | 15 + .../tests/testthat/test_fake_api.R | 56 +- .../tests/testthat/test_model_api_response.R | 9 +- .../tests/testthat/test_order.R | 15 +- .../R-httr2-wrapper/tests/testthat/test_pet.R | 15 +- .../tests/testthat/test_pet_api.R | 84 ++- .../tests/testthat/test_special.R | 46 +- .../tests/testthat/test_store_api.R | 26 +- .../R-httr2-wrapper/tests/testthat/test_tag.R | 7 +- .../tests/testthat/test_user.R | 19 +- .../tests/testthat/test_user_api.R | 48 +- .../R-httr2/tests/testthat/test_category.R | 7 +- .../R-httr2/tests/testthat/test_date.R | 15 + .../R-httr2/tests/testthat/test_fake_api.R | 56 +- .../tests/testthat/test_model_api_response.R | 9 +- .../R-httr2/tests/testthat/test_order.R | 15 +- .../R-httr2/tests/testthat/test_pet.R | 15 +- .../R-httr2/tests/testthat/test_pet_api.R | 84 ++- .../R-httr2/tests/testthat/test_special.R | 46 +- .../R-httr2/tests/testthat/test_store_api.R | 26 +- .../R-httr2/tests/testthat/test_tag.R | 7 +- .../R-httr2/tests/testthat/test_user.R | 19 +- .../R-httr2/tests/testthat/test_user_api.R | 48 +- .../petstore/R/tests/testthat/test_category.R | 7 +- .../petstore/R/tests/testthat/test_date.R | 15 + .../petstore/R/tests/testthat/test_fake_api.R | 52 +- .../tests/testthat/test_model_api_response.R | 9 +- .../petstore/R/tests/testthat/test_order.R | 15 +- .../petstore/R/tests/testthat/test_pet.R | 15 +- .../petstore/R/tests/testthat/test_pet_api.R | 52 +- .../petstore/R/tests/testthat/test_special.R | 46 +- .../R/tests/testthat/test_store_api.R | 10 +- .../petstore/R/tests/testthat/test_tag.R | 7 +- .../petstore/R/tests/testthat/test_user.R | 19 +- .../petstore/R/tests/testthat/test_user_api.R | 16 +- .../default/classes/OASApiResponseTest.cls | 7 - .../main/default/classes/OASPetApiTest.cls | 40 +- .../main/default/classes/OASStoreApiTest.cls | 2 +- .../main/default/classes/OASUserApiTest.cls | 28 +- .../unit-test/test_user.c | 8 +- .../petstore/c/unit-test/test_mapped_model.c | 6 +- .../client/petstore/c/unit-test/test_user.c | 8 +- .../lib/TestFiles/ApiResponseTest.cpp | 12 +- .../cpp-tiny/lib/TestFiles/CategoryTest.cpp | 8 +- .../cpp-tiny/lib/TestFiles/OrderTest.cpp | 20 +- .../cpp-tiny/lib/TestFiles/PetTest.cpp | 12 +- .../cpp-tiny/lib/TestFiles/TagTest.cpp | 8 +- .../cpp-tiny/lib/TestFiles/UserTest.cpp | 32 +- .../crystal/spec/api/fake_api_spec.cr | 10 +- .../petstore/crystal/spec/api/pet_api_spec.cr | 52 +- .../crystal/spec/api/store_api_spec.cr | 3 +- .../crystal/spec/api/user_api_spec.cr | 7 +- .../another_property_name_mapping_spec.cr | 2 +- .../crystal/spec/models/api_response_spec.cr | 2 +- .../crystal/spec/models/category_spec.cr | 2 +- .../crystal/spec/models/format_test_spec.cr | 2 +- .../crystal/spec/models/order_spec.cr | 2 +- .../petstore/crystal/spec/models/pet_spec.cr | 46 +- .../petstore/crystal/spec/models/tag_spec.cr | 17 +- .../petstore/crystal/spec/models/user_spec.cr | 2 +- .../Api/DefaultApiTests.cs | 44 ++ .../Org.OpenAPITools.Test/Api/FakeApiTests.cs | 74 ++- .../Org.OpenAPITools.Test/Api/PetApiTests.cs | 336 ++-------- ...ctivityOutputElementRepresentationTests.cs | 5 +- .../Model/ActivityTests.cs | 4 - .../Model/AdditionalPropertiesClassTests.cs | 11 +- .../Model/AnimalTests.cs | 5 +- .../Model/ApiResponseTests.cs | 6 +- .../Model/AppleReqTests.cs | 5 +- .../Org.OpenAPITools.Test/Model/AppleTests.cs | 12 +- .../Model/ArrayOfArrayOfNumberOnlyTests.cs | 4 - .../Model/ArrayOfNumberOnlyTests.cs | 4 - .../Model/ArrayTestTests.cs | 6 +- .../Model/BananaReqTests.cs | 5 +- .../Model/BananaTests.cs | 4 - .../Model/BasquePigTests.cs | 4 - .../Model/CapitalizationTests.cs | 9 +- .../Org.OpenAPITools.Test/Model/CatTests.cs | 4 - .../Model/CategoryTests.cs | 5 +- .../Model/ChildCatTests.cs | 5 +- .../Model/ClassModelTests.cs | 4 - .../Model/ComplexQuadrilateralTests.cs | 5 +- .../Model/DanishPigTests.cs | 4 - .../Model/DateOnlyClassTests.cs | 4 - .../Model/DeprecatedObjectTests.cs | 4 - .../Org.OpenAPITools.Test/Model/DogTests.cs | 4 - .../Model/DrawingTests.cs | 7 +- .../Model/EnumArraysTests.cs | 5 +- .../Model/EnumClassTests.cs | 5 - .../Model/EnumTestTests.cs | 12 +- .../Model/EquilateralTriangleTests.cs | 5 +- .../Model/FileSchemaTestClassTests.cs | 5 +- .../Org.OpenAPITools.Test/Model/FileTests.cs | 4 - .../Model/FooGetDefaultResponseTests.cs | 4 - .../Org.OpenAPITools.Test/Model/FooTests.cs | 4 - .../Model/FormatTestTests.cs | 89 ++- .../Model/FruitReqTests.cs | 7 +- .../Org.OpenAPITools.Test/Model/FruitTests.cs | 16 +- .../Model/GmFruitTests.cs | 16 +- .../Model/GrandparentAnimalTests.cs | 4 +- .../Model/HasOnlyReadOnlyTests.cs | 5 +- .../Model/HealthCheckResultTests.cs | 4 - .../Model/IsoscelesTriangleTests.cs | 5 +- .../Org.OpenAPITools.Test/Model/ListTests.cs | 10 +- .../Model/LiteralStringClassTests.cs | 4 +- .../Model/MammalTests.cs | 7 +- .../Model/MapTestTests.cs | 7 +- ...ertiesAndAdditionalPropertiesClassTests.cs | 13 +- .../Model/Model200ResponseTests.cs | 5 +- .../Model/ModelClientTests.cs | 10 +- .../Org.OpenAPITools.Test/Model/NameTests.cs | 19 +- .../Model/NullableClassTests.cs | 15 +- .../Model/NullableGuidClassTests.cs | 4 - .../Model/NullableShapeTests.cs | 5 +- .../Model/NumberOnlyTests.cs | 4 - .../Model/ObjectWithDeprecatedFieldsTests.cs | 7 +- .../Model/OneOfStringTests.cs | 4 - .../Org.OpenAPITools.Test/Model/OrderTests.cs | 9 +- .../Model/OuterCompositeTests.cs | 6 +- .../Model/OuterEnumDefaultValueTests.cs | 5 - .../OuterEnumIntegerDefaultValueTests.cs | 5 - .../Model/OuterEnumIntegerTests.cs | 5 - .../Model/OuterEnumTests.cs | 5 - .../Model/ParentPetTests.cs | 4 - .../Org.OpenAPITools.Test/Model/PetTests.cs | 9 +- .../Org.OpenAPITools.Test/Model/PigTests.cs | 4 - .../Model/PolymorphicPropertyTests.cs | 5 - .../Model/QuadrilateralInterfaceTests.cs | 4 - .../Model/QuadrilateralTests.cs | 5 +- .../Model/ReadOnlyFirstTests.cs | 5 +- .../Model/ReturnTests.cs | 33 +- .../Model/ScaleneTriangleTests.cs | 5 +- .../Model/ShapeInterfaceTests.cs | 4 - .../Model/ShapeOrNullTests.cs | 5 +- .../Org.OpenAPITools.Test/Model/ShapeTests.cs | 5 +- .../Model/SimpleQuadrilateralTests.cs | 5 +- .../Model/SpecialModelNameTests.cs | 11 +- .../Org.OpenAPITools.Test/Model/TagTests.cs | 5 +- ...CollectionEndingWithWordListObjectTests.cs | 3 - .../TestCollectionEndingWithWordListTests.cs | 3 - .../Model/TriangleInterfaceTests.cs | 4 - .../Model/TriangleTests.cs | 5 +- .../Org.OpenAPITools.Test/Model/UserTests.cs | 15 +- .../Org.OpenAPITools.Test/Model/WhaleTests.cs | 6 +- .../Org.OpenAPITools.Test/Model/ZebraTests.cs | 5 +- .../Model/ZeroBasedEnumClassTests.cs | 3 - .../Model/ZeroBasedEnumTests.cs | 4 - .../Org.OpenAPITools.Test/Api/PetApiTests.cs | 1 - .../Model/ApiResponseTests.cs | 6 +- .../Model/CategoryTests.cs | 5 +- .../Org.OpenAPITools.Test/Model/OrderTests.cs | 9 +- .../Org.OpenAPITools.Test/Model/PetTests.cs | 9 +- .../Org.OpenAPITools.Test/Model/TagTests.cs | 5 +- .../Org.OpenAPITools.Test/Model/UserTests.cs | 11 +- .../Api/DefaultApiTests.cs | 44 ++ .../Org.OpenAPITools.Test/Api/FakeApiTests.cs | 74 ++- ...ctivityOutputElementRepresentationTests.cs | 5 +- .../Model/ActivityTests.cs | 4 - .../Model/AdditionalPropertiesClassTests.cs | 11 +- .../Model/AnimalTests.cs | 5 +- .../Model/ApiResponseTests.cs | 6 +- .../Model/AppleReqTests.cs | 5 +- .../Org.OpenAPITools.Test/Model/AppleTests.cs | 12 +- .../Model/ArrayOfArrayOfNumberOnlyTests.cs | 4 - .../Model/ArrayOfNumberOnlyTests.cs | 4 - .../Model/ArrayTestTests.cs | 6 +- .../Model/BananaReqTests.cs | 5 +- .../Model/BananaTests.cs | 4 - .../Model/BasquePigTests.cs | 4 - .../Model/CapitalizationTests.cs | 9 +- .../Org.OpenAPITools.Test/Model/CatTests.cs | 4 - .../Model/CategoryTests.cs | 5 +- .../Model/ChildCatTests.cs | 5 +- .../Model/ClassModelTests.cs | 4 - .../Model/ComplexQuadrilateralTests.cs | 5 +- .../Model/DanishPigTests.cs | 4 - .../Model/DateOnlyClassTests.cs | 4 - .../Model/DeprecatedObjectTests.cs | 4 - .../Org.OpenAPITools.Test/Model/DogTests.cs | 4 - .../Model/DrawingTests.cs | 7 +- .../Model/EnumArraysTests.cs | 5 +- .../Model/EnumClassTests.cs | 5 - .../Model/EnumTestTests.cs | 12 +- .../Model/EquilateralTriangleTests.cs | 5 +- .../Model/FileSchemaTestClassTests.cs | 5 +- .../Org.OpenAPITools.Test/Model/FileTests.cs | 4 - .../Model/FooGetDefaultResponseTests.cs | 4 - .../Org.OpenAPITools.Test/Model/FooTests.cs | 4 - .../Model/FormatTestTests.cs | 44 +- .../Model/FruitReqTests.cs | 7 +- .../Org.OpenAPITools.Test/Model/FruitTests.cs | 16 +- .../Model/GmFruitTests.cs | 16 +- .../Model/GrandparentAnimalTests.cs | 4 +- .../Model/HasOnlyReadOnlyTests.cs | 5 +- .../Model/HealthCheckResultTests.cs | 4 - .../Model/IsoscelesTriangleTests.cs | 5 +- .../Org.OpenAPITools.Test/Model/ListTests.cs | 10 +- .../Model/LiteralStringClassTests.cs | 4 +- .../Model/MammalTests.cs | 7 +- .../Model/MapTestTests.cs | 7 +- ...ertiesAndAdditionalPropertiesClassTests.cs | 13 +- .../Model/Model200ResponseTests.cs | 5 +- .../Model/ModelClientTests.cs | 10 +- .../Org.OpenAPITools.Test/Model/NameTests.cs | 19 +- .../Model/NullableClassTests.cs | 15 +- .../Model/NullableGuidClassTests.cs | 4 - .../Model/NullableShapeTests.cs | 5 +- .../Model/NumberOnlyTests.cs | 4 - .../Model/ObjectWithDeprecatedFieldsTests.cs | 7 +- .../Model/OneOfStringTests.cs | 4 - .../Org.OpenAPITools.Test/Model/OrderTests.cs | 9 +- .../Model/OuterCompositeTests.cs | 6 +- .../Model/OuterEnumDefaultValueTests.cs | 5 - .../OuterEnumIntegerDefaultValueTests.cs | 5 - .../Model/OuterEnumIntegerTests.cs | 5 - .../Model/OuterEnumTests.cs | 5 - .../Model/ParentPetTests.cs | 4 - .../Org.OpenAPITools.Test/Model/PetTests.cs | 9 +- .../Org.OpenAPITools.Test/Model/PigTests.cs | 4 - .../Model/PolymorphicPropertyTests.cs | 5 - .../Model/QuadrilateralInterfaceTests.cs | 4 - .../Model/QuadrilateralTests.cs | 5 +- .../Model/ReadOnlyFirstTests.cs | 5 +- .../Model/ReturnTests.cs | 10 +- .../Model/ScaleneTriangleTests.cs | 5 +- .../Model/ShapeInterfaceTests.cs | 4 - .../Model/ShapeOrNullTests.cs | 5 +- .../Org.OpenAPITools.Test/Model/ShapeTests.cs | 5 +- .../Model/SimpleQuadrilateralTests.cs | 5 +- .../Model/SpecialModelNameTests.cs | 11 +- .../Org.OpenAPITools.Test/Model/TagTests.cs | 5 +- ...CollectionEndingWithWordListObjectTests.cs | 3 - .../TestCollectionEndingWithWordListTests.cs | 3 - .../Model/TriangleInterfaceTests.cs | 4 - .../Model/TriangleTests.cs | 5 +- .../Org.OpenAPITools.Test/Model/UserTests.cs | 15 +- .../Org.OpenAPITools.Test/Model/WhaleTests.cs | 6 +- .../Org.OpenAPITools.Test/Model/ZebraTests.cs | 5 +- .../Model/ZeroBasedEnumClassTests.cs | 3 - .../Model/ZeroBasedEnumTests.cs | 4 - .../Api/DefaultApiTests.cs | 44 ++ .../Org.OpenAPITools.Test/Api/FakeApiTests.cs | 74 ++- ...ctivityOutputElementRepresentationTests.cs | 5 +- .../Model/ActivityTests.cs | 4 - .../Model/AdditionalPropertiesClassTests.cs | 11 +- .../Model/AnimalTests.cs | 5 +- .../Model/ApiResponseTests.cs | 6 +- .../Model/AppleReqTests.cs | 5 +- .../Org.OpenAPITools.Test/Model/AppleTests.cs | 12 +- .../Model/ArrayOfArrayOfNumberOnlyTests.cs | 4 - .../Model/ArrayOfNumberOnlyTests.cs | 4 - .../Model/ArrayTestTests.cs | 6 +- .../Model/BananaReqTests.cs | 5 +- .../Model/BananaTests.cs | 4 - .../Model/BasquePigTests.cs | 4 - .../Model/CapitalizationTests.cs | 9 +- .../Org.OpenAPITools.Test/Model/CatTests.cs | 4 - .../Model/CategoryTests.cs | 5 +- .../Model/ChildCatTests.cs | 5 +- .../Model/ClassModelTests.cs | 4 - .../Model/ComplexQuadrilateralTests.cs | 5 +- .../Model/DanishPigTests.cs | 4 - .../Model/DateOnlyClassTests.cs | 4 - .../Model/DeprecatedObjectTests.cs | 4 - .../Org.OpenAPITools.Test/Model/DogTests.cs | 4 - .../Model/DrawingTests.cs | 7 +- .../Model/EnumArraysTests.cs | 5 +- .../Model/EnumClassTests.cs | 5 - .../Model/EnumTestTests.cs | 12 +- .../Model/EquilateralTriangleTests.cs | 5 +- .../Model/FileSchemaTestClassTests.cs | 5 +- .../Org.OpenAPITools.Test/Model/FileTests.cs | 4 - .../Model/FooGetDefaultResponseTests.cs | 4 - .../Org.OpenAPITools.Test/Model/FooTests.cs | 4 - .../Model/FormatTestTests.cs | 44 +- .../Model/FruitReqTests.cs | 7 +- .../Org.OpenAPITools.Test/Model/FruitTests.cs | 16 +- .../Model/GmFruitTests.cs | 16 +- .../Model/GrandparentAnimalTests.cs | 4 +- .../Model/HasOnlyReadOnlyTests.cs | 5 +- .../Model/HealthCheckResultTests.cs | 4 - .../Model/IsoscelesTriangleTests.cs | 5 +- .../Org.OpenAPITools.Test/Model/ListTests.cs | 10 +- .../Model/LiteralStringClassTests.cs | 4 +- .../Model/MammalTests.cs | 7 +- .../Model/MapTestTests.cs | 7 +- ...ertiesAndAdditionalPropertiesClassTests.cs | 13 +- .../Model/Model200ResponseTests.cs | 5 +- .../Model/ModelClientTests.cs | 10 +- .../Org.OpenAPITools.Test/Model/NameTests.cs | 19 +- .../Model/NullableClassTests.cs | 15 +- .../Model/NullableGuidClassTests.cs | 4 - .../Model/NullableShapeTests.cs | 5 +- .../Model/NumberOnlyTests.cs | 4 - .../Model/ObjectWithDeprecatedFieldsTests.cs | 7 +- .../Model/OneOfStringTests.cs | 4 - .../Org.OpenAPITools.Test/Model/OrderTests.cs | 9 +- .../Model/OuterCompositeTests.cs | 6 +- .../Model/OuterEnumDefaultValueTests.cs | 5 - .../OuterEnumIntegerDefaultValueTests.cs | 5 - .../Model/OuterEnumIntegerTests.cs | 5 - .../Model/OuterEnumTests.cs | 5 - .../Model/ParentPetTests.cs | 4 - .../Org.OpenAPITools.Test/Model/PetTests.cs | 9 +- .../Org.OpenAPITools.Test/Model/PigTests.cs | 4 - .../Model/PolymorphicPropertyTests.cs | 5 - .../Model/QuadrilateralInterfaceTests.cs | 4 - .../Model/QuadrilateralTests.cs | 5 +- .../Model/ReadOnlyFirstTests.cs | 5 +- .../Model/ReturnTests.cs | 10 +- .../Model/ScaleneTriangleTests.cs | 5 +- .../Model/ShapeInterfaceTests.cs | 4 - .../Model/ShapeOrNullTests.cs | 5 +- .../Org.OpenAPITools.Test/Model/ShapeTests.cs | 5 +- .../Model/SimpleQuadrilateralTests.cs | 5 +- .../Model/SpecialModelNameTests.cs | 11 +- .../Org.OpenAPITools.Test/Model/TagTests.cs | 5 +- ...CollectionEndingWithWordListObjectTests.cs | 3 - .../TestCollectionEndingWithWordListTests.cs | 3 - .../Model/TriangleInterfaceTests.cs | 4 - .../Model/TriangleTests.cs | 5 +- .../Org.OpenAPITools.Test/Model/UserTests.cs | 15 +- .../Org.OpenAPITools.Test/Model/WhaleTests.cs | 6 +- .../Org.OpenAPITools.Test/Model/ZebraTests.cs | 5 +- .../Model/ZeroBasedEnumClassTests.cs | 3 - .../Model/ZeroBasedEnumTests.cs | 4 - .../Api/DefaultApiTests.cs | 44 ++ .../Org.OpenAPITools.Test/Api/FakeApiTests.cs | 98 ++- .../Org.OpenAPITools.Test/Api/PetApiTests.cs | 12 +- ...ctivityOutputElementRepresentationTests.cs | 5 +- .../Model/ActivityTests.cs | 4 - .../Model/AdditionalPropertiesClassTests.cs | 11 +- .../Model/AnimalTests.cs | 5 +- .../Model/ApiResponseTests.cs | 6 +- .../Model/AppleReqTests.cs | 5 +- .../Org.OpenAPITools.Test/Model/AppleTests.cs | 12 +- .../Model/ArrayOfArrayOfNumberOnlyTests.cs | 4 - .../Model/ArrayOfNumberOnlyTests.cs | 4 - .../Model/ArrayTestTests.cs | 6 +- .../Model/BananaReqTests.cs | 5 +- .../Model/BananaTests.cs | 4 - .../Model/BasquePigTests.cs | 4 - .../Model/CapitalizationTests.cs | 9 +- .../Org.OpenAPITools.Test/Model/CatTests.cs | 4 - .../Model/CategoryTests.cs | 5 +- .../Model/ChildCatTests.cs | 5 +- .../Model/ClassModelTests.cs | 4 - .../Model/ComplexQuadrilateralTests.cs | 5 +- .../Model/DanishPigTests.cs | 4 - .../Model/DateOnlyClassTests.cs | 4 - .../Model/DeprecatedObjectTests.cs | 4 - .../Org.OpenAPITools.Test/Model/DogTests.cs | 4 - .../Model/DrawingTests.cs | 7 +- .../Model/EnumArraysTests.cs | 5 +- .../Model/EnumClassTests.cs | 5 - .../Model/EnumTestTests.cs | 12 +- .../Model/EquilateralTriangleTests.cs | 5 +- .../Model/FileSchemaTestClassTests.cs | 5 +- .../Org.OpenAPITools.Test/Model/FileTests.cs | 4 - .../Model/FooGetDefaultResponseTests.cs | 4 - .../Org.OpenAPITools.Test/Model/FooTests.cs | 4 - .../Model/FormatTestTests.cs | 44 +- .../Model/FruitReqTests.cs | 7 +- .../Org.OpenAPITools.Test/Model/FruitTests.cs | 16 +- .../Model/GmFruitTests.cs | 16 +- .../Model/GrandparentAnimalTests.cs | 4 +- .../Model/HasOnlyReadOnlyTests.cs | 5 +- .../Model/HealthCheckResultTests.cs | 4 - .../Model/IsoscelesTriangleTests.cs | 5 +- .../Org.OpenAPITools.Test/Model/ListTests.cs | 10 +- .../Model/LiteralStringClassTests.cs | 4 +- .../Model/MammalTests.cs | 7 +- .../Model/MapTestTests.cs | 7 +- ...ertiesAndAdditionalPropertiesClassTests.cs | 13 +- .../Model/Model200ResponseTests.cs | 5 +- .../Model/ModelClientTests.cs | 10 +- .../Org.OpenAPITools.Test/Model/NameTests.cs | 19 +- .../Model/NullableClassTests.cs | 15 +- .../Model/NullableGuidClassTests.cs | 4 - .../Model/NullableShapeTests.cs | 5 +- .../Model/NumberOnlyTests.cs | 4 - .../Model/ObjectWithDeprecatedFieldsTests.cs | 7 +- .../Model/OneOfStringTests.cs | 4 - .../Org.OpenAPITools.Test/Model/OrderTests.cs | 9 +- .../Model/OuterCompositeTests.cs | 6 +- .../Model/OuterEnumDefaultValueTests.cs | 5 - .../OuterEnumIntegerDefaultValueTests.cs | 5 - .../Model/OuterEnumIntegerTests.cs | 5 - .../Model/OuterEnumTests.cs | 5 - .../Model/ParentPetTests.cs | 4 - .../Org.OpenAPITools.Test/Model/PetTests.cs | 9 +- .../Org.OpenAPITools.Test/Model/PigTests.cs | 4 - .../Model/PolymorphicPropertyTests.cs | 5 - .../Model/QuadrilateralInterfaceTests.cs | 4 - .../Model/QuadrilateralTests.cs | 5 +- .../Model/ReadOnlyFirstTests.cs | 5 +- .../Model/ReturnTests.cs | 10 +- .../Model/ScaleneTriangleTests.cs | 5 +- .../Model/ShapeInterfaceTests.cs | 4 - .../Model/ShapeOrNullTests.cs | 5 +- .../Org.OpenAPITools.Test/Model/ShapeTests.cs | 5 +- .../Model/SimpleQuadrilateralTests.cs | 5 +- .../Model/SpecialModelNameTests.cs | 11 +- .../Org.OpenAPITools.Test/Model/TagTests.cs | 5 +- ...CollectionEndingWithWordListObjectTests.cs | 3 - .../TestCollectionEndingWithWordListTests.cs | 3 - .../Model/TriangleInterfaceTests.cs | 4 - .../Model/TriangleTests.cs | 5 +- .../Org.OpenAPITools.Test/Model/UserTests.cs | 15 +- .../Org.OpenAPITools.Test/Model/WhaleTests.cs | 6 +- .../Org.OpenAPITools.Test/Model/ZebraTests.cs | 5 +- .../Model/ZeroBasedEnumClassTests.cs | 3 - .../Model/ZeroBasedEnumTests.cs | 4 - .../Api/DefaultApiTests.cs | 44 ++ .../Org.OpenAPITools.Test/Api/FakeApiTests.cs | 98 ++- .../Org.OpenAPITools.Test/Api/PetApiTests.cs | 12 +- ...ctivityOutputElementRepresentationTests.cs | 5 +- .../Model/ActivityTests.cs | 4 - .../Model/AdditionalPropertiesClassTests.cs | 11 +- .../Model/AnimalTests.cs | 5 +- .../Model/ApiResponseTests.cs | 6 +- .../Model/AppleReqTests.cs | 5 +- .../Org.OpenAPITools.Test/Model/AppleTests.cs | 12 +- .../Model/ArrayOfArrayOfNumberOnlyTests.cs | 4 - .../Model/ArrayOfNumberOnlyTests.cs | 4 - .../Model/ArrayTestTests.cs | 6 +- .../Model/BananaReqTests.cs | 5 +- .../Model/BananaTests.cs | 4 - .../Model/BasquePigTests.cs | 4 - .../Model/CapitalizationTests.cs | 9 +- .../Org.OpenAPITools.Test/Model/CatTests.cs | 4 - .../Model/CategoryTests.cs | 5 +- .../Model/ChildCatTests.cs | 5 +- .../Model/ClassModelTests.cs | 4 - .../Model/ComplexQuadrilateralTests.cs | 5 +- .../Model/DanishPigTests.cs | 4 - .../Model/DateOnlyClassTests.cs | 4 - .../Model/DeprecatedObjectTests.cs | 4 - .../Org.OpenAPITools.Test/Model/DogTests.cs | 4 - .../Model/DrawingTests.cs | 7 +- .../Model/EnumArraysTests.cs | 5 +- .../Model/EnumClassTests.cs | 5 - .../Model/EnumTestTests.cs | 12 +- .../Model/EquilateralTriangleTests.cs | 5 +- .../Model/FileSchemaTestClassTests.cs | 5 +- .../Org.OpenAPITools.Test/Model/FileTests.cs | 4 - .../Model/FooGetDefaultResponseTests.cs | 4 - .../Org.OpenAPITools.Test/Model/FooTests.cs | 4 - .../Model/FormatTestTests.cs | 89 ++- .../Model/FruitReqTests.cs | 7 +- .../Org.OpenAPITools.Test/Model/FruitTests.cs | 16 +- .../Model/GmFruitTests.cs | 16 +- .../Model/GrandparentAnimalTests.cs | 4 +- .../Model/HasOnlyReadOnlyTests.cs | 5 +- .../Model/HealthCheckResultTests.cs | 4 - .../Model/IsoscelesTriangleTests.cs | 5 +- .../Org.OpenAPITools.Test/Model/ListTests.cs | 10 +- .../Model/LiteralStringClassTests.cs | 4 +- .../Model/MammalTests.cs | 7 +- .../Model/MapTestTests.cs | 7 +- ...ertiesAndAdditionalPropertiesClassTests.cs | 13 +- .../Model/Model200ResponseTests.cs | 5 +- .../Model/ModelClientTests.cs | 10 +- .../Org.OpenAPITools.Test/Model/NameTests.cs | 19 +- .../Model/NullableClassTests.cs | 15 +- .../Model/NullableGuidClassTests.cs | 4 - .../Model/NullableShapeTests.cs | 5 +- .../Model/NumberOnlyTests.cs | 4 - .../Model/ObjectWithDeprecatedFieldsTests.cs | 7 +- .../Model/OneOfStringTests.cs | 4 - .../Org.OpenAPITools.Test/Model/OrderTests.cs | 9 +- .../Model/OuterCompositeTests.cs | 6 +- .../Model/OuterEnumDefaultValueTests.cs | 5 - .../OuterEnumIntegerDefaultValueTests.cs | 5 - .../Model/OuterEnumIntegerTests.cs | 5 - .../Model/OuterEnumTests.cs | 5 - .../Model/ParentPetTests.cs | 4 - .../Org.OpenAPITools.Test/Model/PetTests.cs | 9 +- .../Org.OpenAPITools.Test/Model/PigTests.cs | 4 - .../Model/PolymorphicPropertyTests.cs | 5 - .../Model/QuadrilateralInterfaceTests.cs | 4 - .../Model/QuadrilateralTests.cs | 5 +- .../Model/ReadOnlyFirstTests.cs | 5 +- .../Model/ReturnTests.cs | 33 +- .../Model/ScaleneTriangleTests.cs | 5 +- .../Model/ShapeInterfaceTests.cs | 4 - .../Model/ShapeOrNullTests.cs | 5 +- .../Org.OpenAPITools.Test/Model/ShapeTests.cs | 5 +- .../Model/SimpleQuadrilateralTests.cs | 5 +- .../Model/SpecialModelNameTests.cs | 11 +- .../Org.OpenAPITools.Test/Model/TagTests.cs | 5 +- ...CollectionEndingWithWordListObjectTests.cs | 3 - .../TestCollectionEndingWithWordListTests.cs | 3 - .../Model/TriangleInterfaceTests.cs | 4 - .../Model/TriangleTests.cs | 5 +- .../Org.OpenAPITools.Test/Model/UserTests.cs | 15 +- .../Org.OpenAPITools.Test/Model/WhaleTests.cs | 6 +- .../Org.OpenAPITools.Test/Model/ZebraTests.cs | 5 +- .../Model/ZeroBasedEnumClassTests.cs | 3 - .../Model/ZeroBasedEnumTests.cs | 4 - .../Api/DefaultApiTests.cs | 44 ++ .../Org.OpenAPITools.Test/Api/FakeApiTests.cs | 74 ++- ...ctivityOutputElementRepresentationTests.cs | 5 +- .../Model/ActivityTests.cs | 4 - .../Model/AdditionalPropertiesClassTests.cs | 11 +- .../Model/AnimalTests.cs | 5 +- .../Model/ApiResponseTests.cs | 6 +- .../Model/AppleReqTests.cs | 5 +- .../Org.OpenAPITools.Test/Model/AppleTests.cs | 12 +- .../Model/ArrayOfArrayOfNumberOnlyTests.cs | 4 - .../Model/ArrayOfNumberOnlyTests.cs | 4 - .../Model/ArrayTestTests.cs | 6 +- .../Model/BananaReqTests.cs | 5 +- .../Model/BananaTests.cs | 4 - .../Model/BasquePigTests.cs | 4 - .../Model/CapitalizationTests.cs | 9 +- .../Org.OpenAPITools.Test/Model/CatTests.cs | 4 - .../Model/CategoryTests.cs | 5 +- .../Model/ChildCatTests.cs | 5 +- .../Model/ClassModelTests.cs | 4 - .../Model/ComplexQuadrilateralTests.cs | 5 +- .../Model/DanishPigTests.cs | 4 - .../Model/DateOnlyClassTests.cs | 4 - .../Model/DeprecatedObjectTests.cs | 4 - .../Org.OpenAPITools.Test/Model/DogTests.cs | 4 - .../Model/DrawingTests.cs | 7 +- .../Model/EnumArraysTests.cs | 5 +- .../Model/EnumClassTests.cs | 5 - .../Model/EnumTestTests.cs | 12 +- .../Model/EquilateralTriangleTests.cs | 5 +- .../Model/FileSchemaTestClassTests.cs | 5 +- .../Org.OpenAPITools.Test/Model/FileTests.cs | 4 - .../Model/FooGetDefaultResponseTests.cs | 4 - .../Org.OpenAPITools.Test/Model/FooTests.cs | 4 - .../Model/FormatTestTests.cs | 89 ++- .../Model/FruitReqTests.cs | 7 +- .../Org.OpenAPITools.Test/Model/FruitTests.cs | 16 +- .../Model/GmFruitTests.cs | 16 +- .../Model/GrandparentAnimalTests.cs | 4 +- .../Model/HasOnlyReadOnlyTests.cs | 5 +- .../Model/HealthCheckResultTests.cs | 4 - .../Model/IsoscelesTriangleTests.cs | 5 +- .../Org.OpenAPITools.Test/Model/ListTests.cs | 10 +- .../Model/LiteralStringClassTests.cs | 4 +- .../Model/MammalTests.cs | 7 +- .../Model/MapTestTests.cs | 7 +- ...ertiesAndAdditionalPropertiesClassTests.cs | 13 +- .../Model/Model200ResponseTests.cs | 5 +- .../Model/ModelClientTests.cs | 10 +- .../Org.OpenAPITools.Test/Model/NameTests.cs | 19 +- .../Model/NullableClassTests.cs | 15 +- .../Model/NullableGuidClassTests.cs | 4 - .../Model/NullableShapeTests.cs | 5 +- .../Model/NumberOnlyTests.cs | 4 - .../Model/ObjectWithDeprecatedFieldsTests.cs | 7 +- .../Model/OneOfStringTests.cs | 4 - .../Org.OpenAPITools.Test/Model/OrderTests.cs | 9 +- .../Model/OuterCompositeTests.cs | 6 +- .../Model/OuterEnumDefaultValueTests.cs | 5 - .../OuterEnumIntegerDefaultValueTests.cs | 5 - .../Model/OuterEnumIntegerTests.cs | 5 - .../Model/OuterEnumTests.cs | 5 - .../Model/ParentPetTests.cs | 4 - .../Org.OpenAPITools.Test/Model/PetTests.cs | 9 +- .../Org.OpenAPITools.Test/Model/PigTests.cs | 4 - .../Model/PolymorphicPropertyTests.cs | 5 - .../Model/QuadrilateralInterfaceTests.cs | 4 - .../Model/QuadrilateralTests.cs | 5 +- .../Model/ReadOnlyFirstTests.cs | 5 +- .../Model/ReturnTests.cs | 33 +- .../Model/ScaleneTriangleTests.cs | 5 +- .../Model/ShapeInterfaceTests.cs | 4 - .../Model/ShapeOrNullTests.cs | 5 +- .../Org.OpenAPITools.Test/Model/ShapeTests.cs | 5 +- .../Model/SimpleQuadrilateralTests.cs | 5 +- .../Model/SpecialModelNameTests.cs | 11 +- .../Org.OpenAPITools.Test/Model/TagTests.cs | 5 +- ...CollectionEndingWithWordListObjectTests.cs | 3 - .../TestCollectionEndingWithWordListTests.cs | 3 - .../Model/TriangleInterfaceTests.cs | 4 - .../Model/TriangleTests.cs | 5 +- .../Org.OpenAPITools.Test/Model/UserTests.cs | 15 +- .../Org.OpenAPITools.Test/Model/WhaleTests.cs | 6 +- .../Org.OpenAPITools.Test/Model/ZebraTests.cs | 5 +- .../Model/ZeroBasedEnumClassTests.cs | 3 - .../Model/ZeroBasedEnumTests.cs | 4 - .../Api/DefaultApiTests.cs | 44 ++ .../Org.OpenAPITools.Test/Api/FakeApiTests.cs | 74 ++- ...ctivityOutputElementRepresentationTests.cs | 5 +- .../Model/ActivityTests.cs | 4 - .../Model/AdditionalPropertiesClassTests.cs | 11 +- .../Model/AnimalTests.cs | 5 +- .../Model/ApiResponseTests.cs | 6 +- .../Model/AppleReqTests.cs | 5 +- .../Org.OpenAPITools.Test/Model/AppleTests.cs | 12 +- .../Model/ArrayOfArrayOfNumberOnlyTests.cs | 70 +- .../Model/ArrayOfNumberOnlyTests.cs | 4 - .../Model/ArrayTestTests.cs | 6 +- .../Model/BananaReqTests.cs | 5 +- .../Model/BananaTests.cs | 4 - .../Model/BasquePigTests.cs | 4 - .../Model/CapitalizationTests.cs | 9 +- .../Org.OpenAPITools.Test/Model/CatTests.cs | 4 - .../Model/CategoryTests.cs | 5 +- .../Model/ChildCatTests.cs | 5 +- .../Model/ClassModelTests.cs | 4 - .../Model/ComplexQuadrilateralTests.cs | 5 +- .../Model/DanishPigTests.cs | 4 - .../Model/DateOnlyClassTests.cs | 4 - .../Model/DeprecatedObjectTests.cs | 4 - .../Org.OpenAPITools.Test/Model/DogTests.cs | 4 - .../Model/DrawingTests.cs | 7 +- .../Model/EnumArraysTests.cs | 5 +- .../Model/EnumClassTests.cs | 5 - .../Model/EnumTestTests.cs | 12 +- .../Model/EquilateralTriangleTests.cs | 5 +- .../Model/FileSchemaTestClassTests.cs | 5 +- .../Org.OpenAPITools.Test/Model/FileTests.cs | 4 - .../Model/FooGetDefaultResponseTests.cs | 4 - .../Org.OpenAPITools.Test/Model/FooTests.cs | 4 - .../Model/FormatTestTests.cs | 44 +- .../Model/FruitReqTests.cs | 7 +- .../Org.OpenAPITools.Test/Model/FruitTests.cs | 16 +- .../Model/GmFruitTests.cs | 16 +- .../Model/GrandparentAnimalTests.cs | 4 +- .../Model/HasOnlyReadOnlyTests.cs | 5 +- .../Model/HealthCheckResultTests.cs | 4 - .../Model/IsoscelesTriangleTests.cs | 5 +- .../Org.OpenAPITools.Test/Model/ListTests.cs | 10 +- .../Model/LiteralStringClassTests.cs | 4 +- .../Model/MammalTests.cs | 7 +- .../Model/MapTestTests.cs | 7 +- ...ertiesAndAdditionalPropertiesClassTests.cs | 13 +- .../Model/Model200ResponseTests.cs | 5 +- .../Model/ModelClientTests.cs | 10 +- .../Org.OpenAPITools.Test/Model/NameTests.cs | 19 +- .../Model/NullableClassTests.cs | 15 +- .../Model/NullableGuidClassTests.cs | 4 - .../Model/NullableShapeTests.cs | 5 +- .../Model/NumberOnlyTests.cs | 4 - .../Model/ObjectWithDeprecatedFieldsTests.cs | 7 +- .../Model/OneOfStringTests.cs | 4 - .../Org.OpenAPITools.Test/Model/OrderTests.cs | 9 +- .../Model/OuterCompositeTests.cs | 6 +- .../Model/OuterEnumDefaultValueTests.cs | 5 - .../OuterEnumIntegerDefaultValueTests.cs | 5 - .../Model/OuterEnumIntegerTests.cs | 5 - .../Model/OuterEnumTests.cs | 5 - .../Model/ParentPetTests.cs | 4 - .../Org.OpenAPITools.Test/Model/PetTests.cs | 136 +--- .../Org.OpenAPITools.Test/Model/PigTests.cs | 4 - .../Model/PolymorphicPropertyTests.cs | 5 - .../Model/QuadrilateralInterfaceTests.cs | 4 - .../Model/QuadrilateralTests.cs | 5 +- .../Model/ReadOnlyFirstTests.cs | 5 +- .../Model/ReturnTests.cs | 10 +- .../Model/ScaleneTriangleTests.cs | 5 +- .../Model/ShapeInterfaceTests.cs | 4 - .../Model/ShapeOrNullTests.cs | 5 +- .../Org.OpenAPITools.Test/Model/ShapeTests.cs | 5 +- .../Model/SimpleQuadrilateralTests.cs | 5 +- .../Model/SpecialModelNameTests.cs | 43 +- .../Org.OpenAPITools.Test/Model/TagTests.cs | 5 +- ...CollectionEndingWithWordListObjectTests.cs | 3 - .../TestCollectionEndingWithWordListTests.cs | 3 - .../Model/TriangleInterfaceTests.cs | 4 - .../Model/TriangleTests.cs | 5 +- .../Org.OpenAPITools.Test/Model/UserTests.cs | 15 +- .../Org.OpenAPITools.Test/Model/WhaleTests.cs | 6 +- .../Org.OpenAPITools.Test/Model/ZebraTests.cs | 5 +- .../Model/ZeroBasedEnumClassTests.cs | 3 - .../Model/ZeroBasedEnumTests.cs | 4 - .../Api/DefaultApiTests.cs | 33 + .../Org.OpenAPITools.Test/Api/FakeApiTests.cs | 71 +- ...ctivityOutputElementRepresentationTests.cs | 1 - .../Model/ActivityTests.cs | 1 - .../Model/AdditionalPropertiesClassTests.cs | 1 - .../Model/AnimalTests.cs | 19 - .../Model/ApiResponseTests.cs | 1 - .../Model/AppleReqTests.cs | 1 - .../Org.OpenAPITools.Test/Model/AppleTests.cs | 9 +- .../Model/ArrayOfArrayOfNumberOnlyTests.cs | 1 - .../Model/ArrayOfNumberOnlyTests.cs | 1 - .../Model/ArrayTestTests.cs | 1 - .../Model/BananaReqTests.cs | 1 - .../Model/BananaTests.cs | 1 - .../Model/BasquePigTests.cs | 1 - .../Model/CapitalizationTests.cs | 1 - .../Org.OpenAPITools.Test/Model/CatTests.cs | 1 - .../Model/CategoryTests.cs | 1 - .../Model/ChildCatTests.cs | 1 - .../Model/ClassModelTests.cs | 1 - .../Model/ComplexQuadrilateralTests.cs | 1 - .../Model/DanishPigTests.cs | 1 - .../Model/DateOnlyClassTests.cs | 1 - .../Model/DeprecatedObjectTests.cs | 1 - .../Org.OpenAPITools.Test/Model/DogTests.cs | 1 - .../Model/DrawingTests.cs | 1 - .../Model/EnumArraysTests.cs | 1 - .../Model/EnumClassTests.cs | 1 - .../Model/EnumTestTests.cs | 1 - .../Model/EquilateralTriangleTests.cs | 1 - .../Model/FileSchemaTestClassTests.cs | 1 - .../Org.OpenAPITools.Test/Model/FileTests.cs | 1 - .../Model/FooGetDefaultResponseTests.cs | 1 - .../Org.OpenAPITools.Test/Model/FooTests.cs | 1 - .../Model/FormatTestTests.cs | 65 +- .../Model/FruitReqTests.cs | 1 - .../Org.OpenAPITools.Test/Model/FruitTests.cs | 9 +- .../Model/GmFruitTests.cs | 9 +- .../Model/GrandparentAnimalTests.cs | 19 - .../Model/HasOnlyReadOnlyTests.cs | 1 - .../Model/HealthCheckResultTests.cs | 1 - .../Model/IsoscelesTriangleTests.cs | 1 - .../Org.OpenAPITools.Test/Model/ListTests.cs | 7 +- .../Model/MammalTests.cs | 1 - .../Model/MapTestTests.cs | 1 - ...ertiesAndAdditionalPropertiesClassTests.cs | 1 - .../Model/Model200ResponseTests.cs | 1 - .../Model/ModelClientTests.cs | 7 +- .../Org.OpenAPITools.Test/Model/NameTests.cs | 13 +- .../Model/NullableClassTests.cs | 1 - .../Model/NullableGuidClassTests.cs | 1 - .../Model/NullableShapeTests.cs | 1 - .../Model/NumberOnlyTests.cs | 1 - .../Model/ObjectWithDeprecatedFieldsTests.cs | 1 - .../Org.OpenAPITools.Test/Model/OrderTests.cs | 1 - .../Model/OuterCompositeTests.cs | 1 - .../Model/OuterEnumDefaultValueTests.cs | 1 - .../OuterEnumIntegerDefaultValueTests.cs | 1 - .../Model/OuterEnumIntegerTests.cs | 1 - .../Model/OuterEnumTests.cs | 1 - .../Model/ParentPetTests.cs | 10 - .../Org.OpenAPITools.Test/Model/PetTests.cs | 1 - .../Org.OpenAPITools.Test/Model/PigTests.cs | 1 - .../Model/PolymorphicPropertyTests.cs | 1 - .../Model/QuadrilateralInterfaceTests.cs | 1 - .../Model/QuadrilateralTests.cs | 1 - .../Model/ReadOnlyFirstTests.cs | 1 - .../Model/ReturnTests.cs | 31 +- .../Model/ScaleneTriangleTests.cs | 1 - .../Model/ShapeInterfaceTests.cs | 1 - .../Model/ShapeOrNullTests.cs | 1 - .../Org.OpenAPITools.Test/Model/ShapeTests.cs | 1 - .../Model/SimpleQuadrilateralTests.cs | 1 - .../Model/SpecialModelNameTests.cs | 7 +- .../Org.OpenAPITools.Test/Model/TagTests.cs | 1 - .../Model/TriangleInterfaceTests.cs | 1 - .../Model/TriangleTests.cs | 1 - .../Org.OpenAPITools.Test/Model/UserTests.cs | 1 - .../Org.OpenAPITools.Test/Model/WhaleTests.cs | 1 - .../Org.OpenAPITools.Test/Model/ZebraTests.cs | 1 - .../go-petstore/test/api_another_fake_test.go | 32 +- .../test/api_fake_classname_tags123_test.go | 32 +- .../go/go-petstore/test/api_fake_test.go | 205 +++--- .../go/go-petstore/test/api_pet_test.go | 150 +++-- .../go/go-petstore/test/api_store_test.go | 77 ++- .../go/go-petstore/test/api_user_test.go | 130 ++-- .../api/AnotherFakeApiSpec.groovy | 18 +- .../org/openapitools/api/FakeApiSpec.groovy | 240 ++++--- .../api/FakeClassnameTags123ApiSpec.groovy | 16 +- .../org/openapitools/api/PetApiSpec.groovy | 276 +++----- .../org/openapitools/api/StoreApiSpec.groovy | 74 ++- .../org/openapitools/api/UserApiSpec.groovy | 103 +-- .../model/ArrayOfArrayOfNumberOnlySpec.groovy | 1 + .../model/ArrayOfNumberOnlySpec.groovy | 1 + .../openapitools/model/ArrayTestSpec.groovy | 1 + .../openapitools/model/EnumArraysSpec.groovy | 1 + .../model/FileSchemaTestClassSpec.groovy | 1 + .../org/openapitools/model/MapTestSpec.groovy | 1 - ...iesAndAdditionalPropertiesClassSpec.groovy | 1 - .../org/openapitools/model/PetSpec.groovy | 1 + .../model/TypeHolderDefaultSpec.groovy | 1 + .../model/TypeHolderExampleSpec.groovy | 1 + .../org/openapitools/model/XmlItemSpec.groovy | 1 + .../client/api/AnotherFakeApiTest.java | 10 +- .../client/api/DefaultApiTest.java | 4 +- .../openapitools/client/api/FakeApiTest.java | 79 ++- .../api/FakeClassnameTags123ApiTest.java | 10 +- .../openapitools/client/api/PetApiTest.java | 30 +- .../openapitools/client/api/StoreApiTest.java | 12 +- .../openapitools/client/api/UserApiTest.java | 33 +- .../model/AdditionalPropertiesClassTest.java | 91 +-- .../client/model/AllOfWithSingleRefTest.java | 9 +- .../openapitools/client/model/AnimalTest.java | 12 +- .../model/ArrayOfArrayOfNumberOnlyTest.java | 8 +- .../client/model/ArrayOfNumberOnlyTest.java | 8 +- .../client/model/ArrayTestTest.java | 12 +- .../client/model/CapitalizationTest.java | 17 +- .../openapitools/client/model/CatTest.java | 12 +- .../client/model/CategoryTest.java | 9 +- .../client/model/ChildWithNullableTest.java | 10 +- .../client/model/ClassModelTest.java | 7 +- .../openapitools/client/model/ClientTest.java | 7 +- .../client/model/DeprecatedObjectTest.java | 7 +- .../openapitools/client/model/DogTest.java | 11 +- .../client/model/EnumArraysTest.java | 10 +- .../client/model/EnumClassTest.java | 5 +- .../client/model/EnumTestTest.java | 46 +- .../FakeBigDecimalMap200ResponseTest.java | 8 +- .../client/model/FileSchemaTestClassTest.java | 10 +- .../model/FooGetDefaultResponseTest.java | 7 +- .../openapitools/client/model/FooTest.java | 7 +- .../client/model/FormatTestTest.java | 53 +- .../client/model/HasOnlyReadOnlyTest.java | 9 +- .../client/model/HealthCheckResultTest.java | 7 +- .../client/model/MapTestTest.java | 13 +- ...rtiesAndAdditionalPropertiesClassTest.java | 11 +- .../client/model/Model200ResponseTest.java | 9 +- .../client/model/ModelApiResponseTest.java | 11 +- .../client/model/ModelFileTest.java | 7 +- .../client/model/ModelListTest.java | 7 +- .../client/model/ModelReturnTest.java | 7 +- .../openapitools/client/model/NameTest.java | 13 +- .../client/model/NullableClassTest.java | 30 +- .../client/model/NumberOnlyTest.java | 7 +- .../model/ObjectWithDeprecatedFieldsTest.java | 14 +- .../openapitools/client/model/OrderTest.java | 17 +- .../client/model/OuterCompositeTest.java | 11 +- .../model/OuterEnumDefaultValueTest.java | 5 +- .../OuterEnumIntegerDefaultValueTest.java | 5 +- .../client/model/OuterEnumIntegerTest.java | 5 +- .../client/model/OuterEnumTest.java | 5 +- .../OuterObjectWithEnumPropertyTest.java | 7 +- .../client/model/ParentWithNullableTest.java | 8 +- .../openapitools/client/model/PetTest.java | 18 +- .../client/model/ReadOnlyFirstTest.java | 9 +- .../client/model/SingleRefTypeTest.java | 5 +- .../client/model/SpecialModelNameTest.java | 7 +- .../openapitools/client/model/TagTest.java | 9 +- ...eeformAdditionalPropertiesRequestTest.java | 6 +- .../openapitools/client/model/UserTest.java | 21 +- .../client/api/AnotherFakeApiTest.java | 6 +- .../openapitools/client/api/FakeApiTest.java | 2 + .../api/FakeClassnameTags123ApiTest.java | 2 + .../openapitools/client/api/PetApiTest.java | 2 + .../openapitools/client/api/StoreApiTest.java | 2 + .../openapitools/client/api/UserApiTest.java | 3 + .../AdditionalPropertiesAnyTypeTest.java | 1 - .../model/AdditionalPropertiesArrayTest.java | 1 - .../AdditionalPropertiesBooleanTest.java | 1 - .../model/AdditionalPropertiesClassTest.java | 1 - .../AdditionalPropertiesIntegerTest.java | 1 - .../model/AdditionalPropertiesNumberTest.java | 1 - .../model/AdditionalPropertiesObjectTest.java | 1 - .../model/AdditionalPropertiesStringTest.java | 1 - .../openapitools/client/model/AnimalTest.java | 5 +- .../model/ArrayOfArrayOfNumberOnlyTest.java | 2 +- .../client/model/ArrayOfNumberOnlyTest.java | 2 +- .../client/model/ArrayTestTest.java | 2 +- .../openapitools/client/model/BigCatTest.java | 2 + .../client/model/CapitalizationTest.java | 1 - .../openapitools/client/model/CatTest.java | 4 +- .../client/model/CategoryTest.java | 1 - .../client/model/ClassModelTest.java | 1 - .../openapitools/client/model/ClientTest.java | 1 - .../openapitools/client/model/DogTest.java | 3 +- .../client/model/EnumArraysTest.java | 2 +- .../client/model/EnumClassTest.java | 1 - .../client/model/EnumTestTest.java | 1 - .../client/model/FileSchemaTestClassTest.java | 3 +- .../openapitools/client/model/FileTest.java | 1 - .../client/model/FormatTestTest.java | 3 +- .../client/model/HasOnlyReadOnlyTest.java | 1 - .../client/model/MapTestTest.java | 2 - ...rtiesAndAdditionalPropertiesClassTest.java | 3 +- .../client/model/Model200ResponseTest.java | 1 - .../client/model/ModelApiResponseTest.java | 1 - .../client/model/ModelListTest.java | 1 - .../client/model/ModelReturnTest.java | 1 - .../openapitools/client/model/NameTest.java | 1 - .../client/model/NumberOnlyTest.java | 1 - .../openapitools/client/model/OrderTest.java | 2 +- .../client/model/OuterCompositeTest.java | 1 - .../client/model/OuterEnumTest.java | 1 - .../openapitools/client/model/PetTest.java | 3 +- .../client/model/ReadOnlyFirstTest.java | 1 - .../client/model/SpecialModelNameTest.java | 1 - .../openapitools/client/model/TagTest.java | 1 - .../client/model/TypeHolderDefaultTest.java | 2 +- .../client/model/TypeHolderExampleTest.java | 2 +- .../openapitools/client/model/UserTest.java | 1 - .../client/model/XmlItemTest.java | 2 +- .../openapitools/client/api/FakeApiTest.java | 43 ++ .../client/api/AnotherFakeApiTest.java | 4 +- .../AdditionalPropertiesAnyTypeTest.java | 1 + .../model/AdditionalPropertiesArrayTest.java | 1 + .../AdditionalPropertiesBooleanTest.java | 1 + .../model/AdditionalPropertiesClassTest.java | 1 + .../AdditionalPropertiesIntegerTest.java | 1 + .../model/AdditionalPropertiesNumberTest.java | 1 + .../model/AdditionalPropertiesObjectTest.java | 1 + .../model/AdditionalPropertiesStringTest.java | 1 + .../openapitools/client/model/AnimalTest.java | 4 +- .../model/ArrayOfArrayOfNumberOnlyTest.java | 1 + .../client/model/ArrayOfNumberOnlyTest.java | 1 + .../client/model/ArrayTestTest.java | 1 + .../openapitools/client/model/BigCatTest.java | 1 + .../client/model/CapitalizationTest.java | 1 + .../openapitools/client/model/CatTest.java | 2 +- .../client/model/CategoryTest.java | 1 + .../client/model/ClassModelTest.java | 1 + .../openapitools/client/model/ClientTest.java | 1 + .../openapitools/client/model/DogTest.java | 1 + .../client/model/EnumArraysTest.java | 1 + .../client/model/EnumTestTest.java | 1 + .../client/model/FileSchemaTestClassTest.java | 1 + .../client/model/FormatTestTest.java | 1 + .../client/model/HasOnlyReadOnlyTest.java | 1 + .../client/model/MapTestTest.java | 1 + ...rtiesAndAdditionalPropertiesClassTest.java | 1 + .../client/model/Model200ResponseTest.java | 1 + .../client/model/ModelApiResponseTest.java | 1 + .../client/model/ModelFileTest.java | 1 + .../client/model/ModelListTest.java | 1 + .../client/model/ModelReturnTest.java | 1 + .../openapitools/client/model/NameTest.java | 1 + .../client/model/NumberOnlyTest.java | 1 + .../openapitools/client/model/OrderTest.java | 1 + .../client/model/OuterCompositeTest.java | 1 + .../openapitools/client/model/PetTest.java | 1 + .../client/model/ReadOnlyFirstTest.java | 1 + .../client/model/SpecialModelNameTest.java | 1 + .../openapitools/client/model/TagTest.java | 1 + .../client/model/TypeHolderDefaultTest.java | 1 + .../client/model/TypeHolderExampleTest.java | 1 + .../openapitools/client/model/UserTest.java | 1 + .../client/model/XmlItemTest.java | 1 + .../openapitools/client/api/FakeApiTest.java | 235 +++---- .../api/FakeClassnameTags123ApiTest.java | 18 +- .../openapitools/client/api/PetApiTest.java | 147 ++--- .../openapitools/client/api/StoreApiTest.java | 45 +- .../openapitools/client/api/UserApiTest.java | 94 ++- .../AdditionalPropertiesAnyTypeTest.java | 1 + .../model/AdditionalPropertiesArrayTest.java | 1 + .../AdditionalPropertiesBooleanTest.java | 1 + .../model/AdditionalPropertiesClassTest.java | 1 + .../AdditionalPropertiesIntegerTest.java | 1 + .../model/AdditionalPropertiesNumberTest.java | 1 + .../model/AdditionalPropertiesObjectTest.java | 1 + .../model/AdditionalPropertiesStringTest.java | 1 + .../openapitools/client/model/AnimalTest.java | 4 +- .../model/ArrayOfArrayOfNumberOnlyTest.java | 1 + .../client/model/ArrayOfNumberOnlyTest.java | 1 + .../client/model/ArrayTestTest.java | 1 + .../openapitools/client/model/BigCatTest.java | 1 + .../client/model/CapitalizationTest.java | 1 + .../openapitools/client/model/CatTest.java | 2 +- .../client/model/CategoryTest.java | 1 + .../client/model/ClassModelTest.java | 1 + .../openapitools/client/model/ClientTest.java | 1 + .../openapitools/client/model/DogTest.java | 1 + .../client/model/EnumArraysTest.java | 1 + .../client/model/EnumTestTest.java | 1 + .../client/model/FileSchemaTestClassTest.java | 1 + .../client/model/FormatTestTest.java | 1 + .../client/model/HasOnlyReadOnlyTest.java | 1 + .../client/model/MapTestTest.java | 1 + ...rtiesAndAdditionalPropertiesClassTest.java | 1 + .../client/model/Model200ResponseTest.java | 1 + .../client/model/ModelApiResponseTest.java | 1 + .../client/model/ModelFileTest.java | 1 + .../client/model/ModelListTest.java | 1 + .../client/model/ModelReturnTest.java | 1 + .../openapitools/client/model/NameTest.java | 1 + .../client/model/NumberOnlyTest.java | 1 + .../openapitools/client/model/OrderTest.java | 1 + .../client/model/OuterCompositeTest.java | 1 + .../openapitools/client/model/PetTest.java | 1 + .../client/model/ReadOnlyFirstTest.java | 1 + .../client/model/SpecialModelNameTest.java | 1 + .../openapitools/client/model/TagTest.java | 1 + .../client/model/TypeHolderDefaultTest.java | 1 + .../client/model/TypeHolderExampleTest.java | 1 + .../openapitools/client/model/UserTest.java | 1 + .../client/model/XmlItemTest.java | 1 + .../client/api/AnotherFakeApiTest.java | 3 + .../client/api/DefaultApiTest.java | 3 + .../openapitools/client/api/FakeApiTest.java | 58 ++ .../api/FakeClassnameTags123ApiTest.java | 3 + .../openapitools/client/api/PetApiTest.java | 68 +- .../openapitools/client/api/StoreApiTest.java | 3 + .../openapitools/client/api/UserApiTest.java | 7 +- .../model/AdditionalPropertiesClassTest.java | 1 + .../openapitools/client/model/AnimalTest.java | 3 +- .../client/model/AppleReqTest.java | 1 + .../openapitools/client/model/AppleTest.java | 1 + .../model/ArrayOfArrayOfNumberOnlyTest.java | 1 + .../client/model/ArrayOfNumberOnlyTest.java | 1 + .../client/model/ArrayTestTest.java | 1 + .../client/model/BananaReqTest.java | 1 + .../openapitools/client/model/BananaTest.java | 1 + .../client/model/BasquePigTest.java | 1 + .../client/model/CapitalizationTest.java | 1 + .../openapitools/client/model/CatTest.java | 2 + .../client/model/CategoryTest.java | 1 + .../client/model/ChildCatTest.java | 1 + .../client/model/ClassModelTest.java | 1 + .../openapitools/client/model/ClientTest.java | 1 + .../model/ComplexQuadrilateralTest.java | 1 + .../client/model/DanishPigTest.java | 1 + .../client/model/DeprecatedObjectTest.java | 1 + .../openapitools/client/model/DogTest.java | 1 + .../client/model/DrawingTest.java | 1 + .../client/model/EnumArraysTest.java | 1 + .../client/model/EnumTestTest.java | 1 + .../client/model/EquilateralTriangleTest.java | 1 + .../client/model/FileSchemaTestClassTest.java | 1 + .../model/FooGetDefaultResponseTest.java | 1 + .../openapitools/client/model/FooTest.java | 1 + .../client/model/FormatTestTest.java | 1 + .../client/model/FruitReqTest.java | 1 + .../openapitools/client/model/FruitTest.java | 1 + .../client/model/GmFruitTest.java | 1 + .../client/model/GrandparentAnimalTest.java | 3 +- .../client/model/HasOnlyReadOnlyTest.java | 1 + .../client/model/HealthCheckResultTest.java | 1 + .../client/model/IsoscelesTriangleTest.java | 1 + .../openapitools/client/model/MammalTest.java | 58 +- .../client/model/MapTestTest.java | 1 + ...rtiesAndAdditionalPropertiesClassTest.java | 1 + .../client/model/Model200ResponseTest.java | 1 + .../client/model/ModelApiResponseTest.java | 1 + .../client/model/ModelFileTest.java | 1 + .../client/model/ModelListTest.java | 1 + .../client/model/ModelReturnTest.java | 1 + .../openapitools/client/model/NameTest.java | 1 + .../client/model/NullableClassTest.java | 1 + .../client/model/NullableShapeTest.java | 1 + .../client/model/NumberOnlyTest.java | 1 + .../model/ObjectWithDeprecatedFieldsTest.java | 1 + .../openapitools/client/model/OrderTest.java | 1 + .../client/model/OuterCompositeTest.java | 1 + .../client/model/ParentPetTest.java | 2 +- .../openapitools/client/model/PetTest.java | 1 + .../openapitools/client/model/PigTest.java | 1 + .../model/QuadrilateralInterfaceTest.java | 1 + .../client/model/QuadrilateralTest.java | 1 + .../client/model/ReadOnlyFirstTest.java | 1 + .../client/model/ScaleneTriangleTest.java | 1 + .../client/model/ShapeInterfaceTest.java | 1 + .../client/model/ShapeOrNullTest.java | 1 + .../openapitools/client/model/ShapeTest.java | 1 + .../client/model/SimpleQuadrilateralTest.java | 1 + .../client/model/SpecialModelNameTest.java | 1 + .../openapitools/client/model/TagTest.java | 1 + .../client/model/TriangleInterfaceTest.java | 1 + .../client/model/TriangleTest.java | 1 + .../openapitools/client/model/UserTest.java | 1 + .../openapitools/client/model/WhaleTest.java | 1 + .../openapitools/client/model/ZebraTest.java | 50 +- .../openapitools/client/api/PetApiTest.java | 31 +- .../openapitools/client/api/StoreApiTest.java | 2 +- .../openapitools/client/api/UserApiTest.java | 2 +- .../openapitools/client/api/PetApiTest.java | 31 +- .../openapitools/client/api/StoreApiTest.java | 2 +- .../openapitools/client/api/UserApiTest.java | 2 +- .../openapitools/client/api/PetApiTest.java | 31 +- .../openapitools/client/api/StoreApiTest.java | 2 +- .../openapitools/client/api/UserApiTest.java | 2 +- .../client/model/CategoryTest.java | 2 +- .../client/model/ModelApiResponseTest.java | 2 +- .../openapitools/client/model/OrderTest.java | 2 +- .../openapitools/client/model/PetTest.java | 4 +- .../openapitools/client/model/TagTest.java | 2 +- .../openapitools/client/model/UserTest.java | 2 +- .../client/api/AnotherFakeApiTest.java | 2 +- .../client/api/DefaultApiTest.java | 2 +- .../openapitools/client/api/FakeApiTest.java | 87 ++- .../api/FakeClassnameTags123ApiTest.java | 2 +- .../openapitools/client/api/PetApiTest.java | 2 +- .../openapitools/client/api/StoreApiTest.java | 2 +- .../openapitools/client/api/UserApiTest.java | 2 +- .../model/AdditionalPropertiesClassTest.java | 62 +- .../openapitools/client/model/AnimalTest.java | 12 +- .../client/model/AppleReqTest.java | 10 +- .../openapitools/client/model/AppleTest.java | 10 +- .../model/ArrayOfArrayOfNumberOnlyTest.java | 8 +- .../client/model/ArrayOfNumberOnlyTest.java | 8 +- .../client/model/ArrayTestTest.java | 12 +- .../client/model/BananaReqTest.java | 10 +- .../openapitools/client/model/BananaTest.java | 8 +- .../client/model/BasquePigTest.java | 8 +- .../client/model/CapitalizationTest.java | 18 +- .../openapitools/client/model/CatTest.java | 13 +- .../client/model/CategoryTest.java | 10 +- .../client/model/ChildCatTest.java | 10 +- .../client/model/ClassModelTest.java | 8 +- .../openapitools/client/model/ClientTest.java | 8 +- .../model/ComplexQuadrilateralTest.java | 10 +- .../client/model/DanishPigTest.java | 8 +- .../client/model/DeprecatedObjectTest.java | 8 +- .../openapitools/client/model/DogTest.java | 12 +- .../client/model/DrawingTest.java | 14 +- .../client/model/EnumArraysTest.java | 10 +- .../client/model/EnumClassTest.java | 5 +- .../client/model/EnumTestTest.java | 30 +- .../client/model/EquilateralTriangleTest.java | 10 +- .../FakeBigDecimalMap200ResponseTest.java | 9 +- .../client/model/FileSchemaTestClassTest.java | 10 +- .../model/FooGetDefaultResponseTest.java | 8 +- .../openapitools/client/model/FooTest.java | 8 +- .../client/model/FormatTestTest.java | 38 +- .../client/model/FruitReqTest.java | 14 +- .../openapitools/client/model/FruitTest.java | 12 +- .../client/model/GmFruitTest.java | 12 +- .../client/model/GrandparentAnimalTest.java | 10 +- .../client/model/HasOnlyReadOnlyTest.java | 10 +- .../client/model/HealthCheckResultTest.java | 8 +- .../client/model/IsoscelesTriangleTest.java | 10 +- .../openapitools/client/model/MammalTest.java | 14 +- .../client/model/MapTestTest.java | 14 +- ...rtiesAndAdditionalPropertiesClassTest.java | 12 +- .../client/model/Model200ResponseTest.java | 10 +- .../client/model/ModelApiResponseTest.java | 12 +- .../client/model/ModelFileTest.java | 8 +- .../client/model/ModelListTest.java | 8 +- .../client/model/ModelReturnTest.java | 8 +- .../openapitools/client/model/NameTest.java | 14 +- .../client/model/NullableClassTest.java | 30 +- .../client/model/NullableShapeTest.java | 12 +- .../client/model/NumberOnlyTest.java | 8 +- .../model/ObjectWithDeprecatedFieldsTest.java | 14 +- .../openapitools/client/model/OrderTest.java | 18 +- .../client/model/OuterCompositeTest.java | 12 +- .../model/OuterEnumDefaultValueTest.java | 5 +- .../OuterEnumIntegerDefaultValueTest.java | 5 +- .../client/model/OuterEnumIntegerTest.java | 5 +- .../client/model/OuterEnumTest.java | 5 +- .../client/model/ParentPetTest.java | 9 +- .../openapitools/client/model/PetTest.java | 21 +- .../openapitools/client/model/PigTest.java | 8 +- .../model/QuadrilateralInterfaceTest.java | 8 +- .../client/model/QuadrilateralTest.java | 10 +- .../client/model/ReadOnlyFirstTest.java | 10 +- .../client/model/ScaleneTriangleTest.java | 10 +- .../client/model/ShapeInterfaceTest.java | 8 +- .../client/model/ShapeOrNullTest.java | 12 +- .../openapitools/client/model/ShapeTest.java | 12 +- .../client/model/SimpleQuadrilateralTest.java | 10 +- .../client/model/SpecialModelNameTest.java | 16 +- .../openapitools/client/model/TagTest.java | 10 +- ...eeformAdditionalPropertiesRequestTest.java | 6 +- .../client/model/TriangleInterfaceTest.java | 8 +- .../client/model/TriangleTest.java | 10 +- .../openapitools/client/model/UserTest.java | 58 +- .../openapitools/client/model/WhaleTest.java | 12 +- .../openapitools/client/model/ZebraTest.java | 10 +- .../openapitools/client/api/PetApiTest.java | 2 +- .../openapitools/client/api/StoreApiTest.java | 2 +- .../openapitools/client/api/UserApiTest.java | 2 +- .../client/model/CategoryTest.java | 10 +- .../client/model/ModelApiResponseTest.java | 12 +- .../openapitools/client/model/OrderTest.java | 18 +- .../openapitools/client/model/PetTest.java | 18 +- .../openapitools/client/model/TagTest.java | 10 +- .../openapitools/client/model/UserTest.java | 22 +- .../client/api/AnotherFakeApiTest.java | 2 +- .../client/api/DefaultApiTest.java | 2 +- .../openapitools/client/api/FakeApiTest.java | 87 ++- .../api/FakeClassnameTags123ApiTest.java | 2 +- .../openapitools/client/api/PetApiTest.java | 2 +- .../openapitools/client/api/StoreApiTest.java | 2 +- .../openapitools/client/api/UserApiTest.java | 2 +- .../model/AdditionalPropertiesClassTest.java | 62 +- .../openapitools/client/model/AnimalTest.java | 12 +- .../client/model/AppleReqTest.java | 10 +- .../openapitools/client/model/AppleTest.java | 10 +- .../model/ArrayOfArrayOfNumberOnlyTest.java | 8 +- .../client/model/ArrayOfNumberOnlyTest.java | 8 +- .../client/model/ArrayTestTest.java | 12 +- .../client/model/BananaReqTest.java | 10 +- .../openapitools/client/model/BananaTest.java | 8 +- .../client/model/BasquePigTest.java | 8 +- .../client/model/CapitalizationTest.java | 18 +- .../openapitools/client/model/CatTest.java | 13 +- .../client/model/CategoryTest.java | 10 +- .../client/model/ChildCatTest.java | 10 +- .../client/model/ClassModelTest.java | 8 +- .../openapitools/client/model/ClientTest.java | 8 +- .../model/ComplexQuadrilateralTest.java | 10 +- .../client/model/DanishPigTest.java | 8 +- .../client/model/DeprecatedObjectTest.java | 8 +- .../openapitools/client/model/DogTest.java | 12 +- .../client/model/DrawingTest.java | 14 +- .../client/model/EnumArraysTest.java | 10 +- .../client/model/EnumClassTest.java | 5 +- .../client/model/EnumTestTest.java | 30 +- .../client/model/EquilateralTriangleTest.java | 10 +- .../FakeBigDecimalMap200ResponseTest.java | 9 +- .../client/model/FileSchemaTestClassTest.java | 10 +- .../model/FooGetDefaultResponseTest.java | 8 +- .../openapitools/client/model/FooTest.java | 8 +- .../client/model/FormatTestTest.java | 38 +- .../client/model/FruitReqTest.java | 14 +- .../openapitools/client/model/FruitTest.java | 12 +- .../client/model/GmFruitTest.java | 12 +- .../client/model/GrandparentAnimalTest.java | 10 +- .../client/model/HasOnlyReadOnlyTest.java | 10 +- .../client/model/HealthCheckResultTest.java | 8 +- .../client/model/IsoscelesTriangleTest.java | 10 +- .../openapitools/client/model/MammalTest.java | 14 +- .../client/model/MapTestTest.java | 14 +- ...rtiesAndAdditionalPropertiesClassTest.java | 12 +- .../client/model/Model200ResponseTest.java | 10 +- .../client/model/ModelApiResponseTest.java | 12 +- .../client/model/ModelFileTest.java | 8 +- .../client/model/ModelListTest.java | 8 +- .../client/model/ModelReturnTest.java | 8 +- .../openapitools/client/model/NameTest.java | 14 +- .../client/model/NullableClassTest.java | 30 +- .../client/model/NullableShapeTest.java | 12 +- .../client/model/NumberOnlyTest.java | 8 +- .../model/ObjectWithDeprecatedFieldsTest.java | 14 +- .../openapitools/client/model/OrderTest.java | 18 +- .../client/model/OuterCompositeTest.java | 12 +- .../model/OuterEnumDefaultValueTest.java | 5 +- .../OuterEnumIntegerDefaultValueTest.java | 5 +- .../client/model/OuterEnumIntegerTest.java | 5 +- .../client/model/OuterEnumTest.java | 5 +- .../client/model/ParentPetTest.java | 9 +- .../openapitools/client/model/PetTest.java | 21 +- .../openapitools/client/model/PigTest.java | 8 +- .../model/QuadrilateralInterfaceTest.java | 8 +- .../client/model/QuadrilateralTest.java | 10 +- .../client/model/ReadOnlyFirstTest.java | 10 +- .../client/model/ScaleneTriangleTest.java | 10 +- .../client/model/ShapeInterfaceTest.java | 8 +- .../client/model/ShapeOrNullTest.java | 12 +- .../openapitools/client/model/ShapeTest.java | 12 +- .../client/model/SimpleQuadrilateralTest.java | 10 +- .../client/model/SpecialModelNameTest.java | 16 +- .../openapitools/client/model/TagTest.java | 10 +- ...eeformAdditionalPropertiesRequestTest.java | 6 +- .../client/model/TriangleInterfaceTest.java | 8 +- .../client/model/TriangleTest.java | 10 +- .../openapitools/client/model/UserTest.java | 58 +- .../openapitools/client/model/WhaleTest.java | 12 +- .../openapitools/client/model/ZebraTest.java | 10 +- .../openapitools/client/api/FakeApiTest.java | 99 +++ .../openapitools/client/api/PetApiTest.java | 580 +++-------------- .../client/model/AnyTypeTestTest.java | 18 + ...SelfReferenceAdditionalPropertiesTest.java | 1 - .../client/model/CategoryTest.java | 2 +- .../client/model/ModelApiResponseTest.java | 2 +- .../openapitools/client/model/OrderTest.java | 2 +- .../openapitools/client/model/PetTest.java | 2 +- .../openapitools/client/model/TagTest.java | 2 +- .../openapitools/client/model/UserTest.java | 2 +- .../client/api/AnotherFakeApiTest.java | 4 +- .../openapitools/client/api/PetApiTest.java | 609 +++--------------- .../AdditionalPropertiesAnyTypeTest.java | 6 +- .../model/AdditionalPropertiesArrayTest.java | 6 +- .../AdditionalPropertiesBooleanTest.java | 6 +- .../model/AdditionalPropertiesClassTest.java | 4 +- .../AdditionalPropertiesIntegerTest.java | 6 +- .../model/AdditionalPropertiesNumberTest.java | 6 +- .../model/AdditionalPropertiesObjectTest.java | 5 +- .../model/AdditionalPropertiesStringTest.java | 6 +- .../openapitools/client/model/AnimalTest.java | 7 +- .../model/ArrayOfArrayOfNumberOnlyTest.java | 30 +- .../client/model/ArrayOfNumberOnlyTest.java | 4 +- .../client/model/ArrayTestTest.java | 4 +- .../openapitools/client/model/BigCatTest.java | 1 + .../client/model/CapitalizationTest.java | 4 +- .../openapitools/client/model/CatTest.java | 6 +- .../client/model/CategoryTest.java | 4 +- .../client/model/ClassModelTest.java | 4 +- .../openapitools/client/model/ClientTest.java | 4 +- .../openapitools/client/model/DogTest.java | 5 +- .../client/model/EnumArraysTest.java | 4 +- .../client/model/EnumClassTest.java | 1 - .../client/model/EnumTestTest.java | 4 +- .../client/model/FileSchemaTestClassTest.java | 4 +- .../client/model/FormatTestTest.java | 4 +- .../client/model/HasOnlyReadOnlyTest.java | 4 +- .../client/model/MapTestTest.java | 5 +- ...rtiesAndAdditionalPropertiesClassTest.java | 5 +- .../client/model/Model200ResponseTest.java | 4 +- .../client/model/ModelApiResponseTest.java | 4 +- .../client/model/ModelFileTest.java | 4 +- .../client/model/ModelListTest.java | 4 +- .../client/model/ModelReturnTest.java | 4 +- .../openapitools/client/model/NameTest.java | 4 +- .../client/model/NumberOnlyTest.java | 4 +- .../openapitools/client/model/OrderTest.java | 4 +- .../client/model/OuterCompositeTest.java | 4 +- .../client/model/OuterEnumTest.java | 1 - .../openapitools/client/model/PetTest.java | 4 +- .../client/model/ReadOnlyFirstTest.java | 4 +- .../client/model/SpecialModelNameTest.java | 4 +- .../openapitools/client/model/TagTest.java | 4 +- .../client/model/TypeHolderDefaultTest.java | 4 +- .../client/model/TypeHolderExampleTest.java | 4 +- .../openapitools/client/model/UserTest.java | 4 +- .../client/model/XmlItemTest.java | 4 +- .../client/model/CategoryTest.java | 4 +- .../client/model/ModelApiResponseTest.java | 4 +- .../openapitools/client/model/OrderTest.java | 4 +- .../openapitools/client/model/PetTest.java | 4 +- .../openapitools/client/model/TagTest.java | 4 +- .../openapitools/client/model/UserTest.java | 4 +- .../openapitools/client/api/PetApiTest.java | 12 +- .../openapitools/client/api/StoreApiTest.java | 4 +- .../openapitools/client/api/UserApiTest.java | 12 +- .../client/model/CategoryTest.java | 4 +- .../client/model/ModelApiResponseTest.java | 4 +- .../openapitools/client/model/OrderTest.java | 4 +- .../openapitools/client/model/PetTest.java | 4 +- .../PetWithRequiredNullableCases1Test.java | 2 +- .../PetWithRequiredNullableCases2Test.java | 2 +- .../openapitools/client/model/TagTest.java | 4 +- .../openapitools/client/model/UserTest.java | 4 +- .../client/api/AnotherFakeApiTest.java | 17 +- .../openapitools/client/api/FakeApiTest.java | 111 +--- .../api/FakeClassnameTags123ApiTest.java | 13 +- .../openapitools/client/api/PetApiTest.java | 77 +-- .../openapitools/client/api/StoreApiTest.java | 33 +- .../openapitools/client/api/UserApiTest.java | 66 +- .../AdditionalPropertiesAnyTypeTest.java | 11 +- .../model/AdditionalPropertiesArrayTest.java | 11 +- .../AdditionalPropertiesBooleanTest.java | 11 +- .../model/AdditionalPropertiesClassTest.java | 9 +- .../AdditionalPropertiesIntegerTest.java | 11 +- .../model/AdditionalPropertiesNumberTest.java | 11 +- .../model/AdditionalPropertiesObjectTest.java | 10 +- .../model/AdditionalPropertiesStringTest.java | 11 +- .../openapitools/client/model/AnimalTest.java | 12 +- .../model/ArrayOfArrayOfNumberOnlyTest.java | 9 +- .../client/model/ArrayOfNumberOnlyTest.java | 9 +- .../client/model/ArrayTestTest.java | 9 +- .../openapitools/client/model/BigCatTest.java | 1 + .../client/model/CapitalizationTest.java | 9 +- .../openapitools/client/model/CatTest.java | 11 +- .../client/model/CategoryTest.java | 9 +- .../client/model/ClassModelTest.java | 9 +- .../openapitools/client/model/ClientTest.java | 9 +- .../openapitools/client/model/DogTest.java | 10 +- .../client/model/EnumArraysTest.java | 9 +- .../client/model/EnumClassTest.java | 6 +- .../client/model/EnumTestTest.java | 9 +- .../client/model/FileSchemaTestClassTest.java | 16 +- .../client/model/FormatTestTest.java | 11 +- .../client/model/HasOnlyReadOnlyTest.java | 9 +- .../client/model/MapTestTest.java | 10 +- ...rtiesAndAdditionalPropertiesClassTest.java | 12 +- .../client/model/Model200ResponseTest.java | 9 +- .../client/model/ModelApiResponseTest.java | 9 +- .../client/model/ModelFileTest.java | 9 +- .../client/model/ModelListTest.java | 9 +- .../client/model/ModelReturnTest.java | 9 +- .../openapitools/client/model/NameTest.java | 9 +- .../client/model/NumberOnlyTest.java | 9 +- .../openapitools/client/model/OrderTest.java | 9 +- .../client/model/OuterCompositeTest.java | 9 +- .../client/model/OuterEnumTest.java | 6 +- .../openapitools/client/model/PetTest.java | 9 +- .../client/model/ReadOnlyFirstTest.java | 9 +- .../client/model/SpecialModelNameTest.java | 9 +- .../openapitools/client/model/TagTest.java | 9 +- .../client/model/TypeHolderDefaultTest.java | 9 +- .../client/model/TypeHolderExampleTest.java | 9 +- .../openapitools/client/model/UserTest.java | 9 +- .../client/model/XmlItemTest.java | 9 +- .../client/model/CategoryTest.java | 2 +- .../client/model/ModelApiResponseTest.java | 2 +- .../openapitools/client/model/OrderTest.java | 2 +- .../openapitools/client/model/PetTest.java | 2 +- .../openapitools/client/model/TagTest.java | 2 +- .../openapitools/client/model/UserTest.java | 2 +- .../client/api/AnotherFakeApiTest.java | 62 +- .../client/api/DefaultApiTest.java | 35 + .../openapitools/client/api/FakeApiTest.java | 44 ++ .../api/FakeClassnameTags123ApiTest.java | 27 +- .../openapitools/client/api/StoreApiTest.java | 39 +- .../openapitools/client/api/UserApiTest.java | 62 +- .../model/AdditionalPropertiesClassTest.java | 2 +- .../model/AllOfModelArrayAnyOfTest.java | 9 + .../openapitools/client/model/AnimalTest.java | 4 +- .../client/model/AppleReqTest.java | 2 +- .../openapitools/client/model/AppleTest.java | 2 +- ...neAllOfArrayAllofDogPropertyInnerTest.java | 2 +- .../client/model/ArrayOfInlineAllOfTest.java | 2 +- .../client/model/ArrayOfNumberOnlyTest.java | 2 +- .../client/model/ArrayTestTest.java | 2 +- .../client/model/BananaReqTest.java | 2 +- .../openapitools/client/model/BananaTest.java | 2 +- .../client/model/BasquePigTest.java | 2 +- .../client/model/CapitalizationTest.java | 2 +- .../openapitools/client/model/CatTest.java | 3 +- .../client/model/CategoryTest.java | 2 +- .../client/model/ClassModelTest.java | 2 +- .../openapitools/client/model/ClientTest.java | 2 +- .../model/ComplexQuadrilateralTest.java | 2 +- .../client/model/DanishPigTest.java | 2 +- .../client/model/DeprecatedObjectTest.java | 2 +- .../openapitools/client/model/DogTest.java | 2 +- .../client/model/DrawingTest.java | 2 +- .../client/model/EnumArraysTest.java | 2 +- .../client/model/EnumClassTest.java | 1 - .../model/EnumStringDiscriminatorTest.java | 2 +- .../client/model/EnumTestTest.java | 2 +- .../client/model/EquilateralTriangleTest.java | 2 +- .../client/model/FileSchemaTestClassTest.java | 2 +- .../model/FooGetDefaultResponseTest.java | 2 +- .../openapitools/client/model/FooTest.java | 2 +- .../client/model/FormatTestTest.java | 2 +- .../client/model/FruitReqTest.java | 2 +- .../openapitools/client/model/FruitTest.java | 2 +- .../client/model/GmFruitTest.java | 2 +- .../client/model/GrandparentAnimalTest.java | 3 +- .../client/model/HasOnlyReadOnlyTest.java | 2 +- .../client/model/HealthCheckResultTest.java | 2 +- .../client/model/IsoscelesTriangleTest.java | 2 +- .../openapitools/client/model/MammalTest.java | 2 +- .../client/model/MapTestTest.java | 2 +- ...rtiesAndAdditionalPropertiesClassTest.java | 2 +- .../client/model/Model200ResponseTest.java | 2 +- .../client/model/ModelApiResponseTest.java | 2 +- .../client/model/ModelFileTest.java | 2 +- .../client/model/ModelListTest.java | 2 +- .../client/model/ModelReturnTest.java | 2 +- .../openapitools/client/model/NameTest.java | 2 +- .../openapitools/client/model/NewPetTest.java | 32 + .../client/model/NullableClassTest.java | 2 +- .../client/model/NullableShapeTest.java | 2 +- .../client/model/NumberOnlyTest.java | 2 +- .../model/ObjectWithDeprecatedFieldsTest.java | 2 +- .../openapitools/client/model/OrderTest.java | 2 +- .../client/model/OuterCompositeTest.java | 2 +- .../model/OuterEnumDefaultValueTest.java | 1 - .../OuterEnumIntegerDefaultValueTest.java | 1 - .../client/model/OuterEnumIntegerTest.java | 1 - .../client/model/OuterEnumTest.java | 1 - .../client/model/ParentPetTest.java | 2 +- .../openapitools/client/model/PetRefTest.java | 44 ++ .../client/model/PetWithRequiredTagsTest.java | 2 +- .../openapitools/client/model/PigTest.java | 2 +- .../model/QuadrilateralInterfaceTest.java | 2 +- .../client/model/QuadrilateralTest.java | 2 +- .../client/model/ReadOnlyFirstTest.java | 2 +- .../client/model/ScaleneTriangleTest.java | 2 +- .../client/model/ShapeInterfaceTest.java | 2 +- .../client/model/ShapeOrNullTest.java | 2 +- .../openapitools/client/model/ShapeTest.java | 2 +- .../client/model/SimpleQuadrilateralTest.java | 2 +- .../client/model/SpecialModelNameTest.java | 2 +- .../openapitools/client/model/TagTest.java | 2 +- .../client/model/TriangleInterfaceTest.java | 2 +- .../client/model/TriangleTest.java | 2 +- .../openapitools/client/model/UserTest.java | 2 +- .../openapitools/client/model/ValueTest.java | 1 + .../openapitools/client/model/WhaleTest.java | 2 +- .../openapitools/client/model/ZebraTest.java | 2 +- .../client/api/AnotherFakeApiTest.java | 6 +- .../client/api/DefaultApiTest.java | 6 +- .../openapitools/client/api/FakeApiTest.java | 6 +- .../api/FakeClassnameTags123ApiTest.java | 6 +- .../openapitools/client/api/PetApiTest.java | 6 +- .../openapitools/client/api/StoreApiTest.java | 6 +- .../openapitools/client/api/UserApiTest.java | 6 +- .../client/api/AnotherFakeApiTest.java | 8 +- .../client/api/DefaultApiTest.java | 8 +- .../openapitools/client/api/FakeApiTest.java | 112 +++- .../api/FakeClassnameTags123ApiTest.java | 8 +- .../openapitools/client/api/PetApiTest.java | 51 +- .../openapitools/client/api/StoreApiTest.java | 14 +- .../openapitools/client/api/UserApiTest.java | 22 +- .../model/AdditionalPropertiesClassTest.java | 8 +- .../client/model/AllOfWithSingleRefTest.java | 8 +- .../openapitools/client/model/AnimalTest.java | 8 +- .../model/ArrayOfArrayOfNumberOnlyTest.java | 6 +- .../client/model/ArrayOfNumberOnlyTest.java | 6 +- .../client/model/ArrayTestTest.java | 10 +- .../client/model/CapitalizationTest.java | 16 +- .../openapitools/client/model/CatTest.java | 10 +- .../client/model/CategoryTest.java | 8 +- .../client/model/ChildWithNullableTest.java | 10 +- .../client/model/ClassModelTest.java | 6 +- .../openapitools/client/model/ClientTest.java | 6 +- .../client/model/DeprecatedObjectTest.java | 6 +- .../openapitools/client/model/DogTest.java | 10 +- .../client/model/EnumArraysTest.java | 8 +- .../client/model/EnumClassTest.java | 4 +- .../client/model/EnumTestTest.java | 20 +- .../FakeBigDecimalMap200ResponseTest.java | 8 +- .../client/model/FileSchemaTestClassTest.java | 8 +- .../model/FooGetDefaultResponseTest.java | 6 +- .../openapitools/client/model/FooTest.java | 6 +- .../client/model/FormatTestTest.java | 36 +- .../client/model/HasOnlyReadOnlyTest.java | 8 +- .../client/model/HealthCheckResultTest.java | 6 +- .../client/model/MapTestTest.java | 12 +- ...rtiesAndAdditionalPropertiesClassTest.java | 10 +- .../client/model/Model200ResponseTest.java | 8 +- .../client/model/ModelApiResponseTest.java | 10 +- .../client/model/ModelFileTest.java | 6 +- .../client/model/ModelListTest.java | 6 +- .../client/model/ModelReturnTest.java | 6 +- .../openapitools/client/model/NameTest.java | 12 +- .../client/model/NullableClassTest.java | 28 +- .../client/model/NumberOnlyTest.java | 6 +- .../model/ObjectWithDeprecatedFieldsTest.java | 12 +- .../openapitools/client/model/OrderTest.java | 16 +- .../client/model/OuterCompositeTest.java | 10 +- .../model/OuterEnumDefaultValueTest.java | 4 +- .../OuterEnumIntegerDefaultValueTest.java | 4 +- .../client/model/OuterEnumIntegerTest.java | 4 +- .../client/model/OuterEnumTest.java | 4 +- .../OuterObjectWithEnumPropertyTest.java | 6 +- .../client/model/ParentWithNullableTest.java | 8 +- .../openapitools/client/model/PetTest.java | 16 +- .../client/model/ReadOnlyFirstTest.java | 8 +- .../client/model/SingleRefTypeTest.java | 4 +- .../client/model/SpecialModelNameTest.java | 6 +- .../openapitools/client/model/TagTest.java | 8 +- ...eeformAdditionalPropertiesRequestTest.java | 6 +- .../openapitools/client/model/UserTest.java | 20 +- .../test/api/FakeApi.spec.js | 30 + .../javascript-es6/test/api/FakeApi.spec.js | 30 + .../javascript-es6/test/api/PetApi.spec.js | 76 +-- .../javascript-es6/test/model/Color.spec.js | 2 +- .../test/api/FakeApi.spec.js | 30 + .../java/org/openapitools/api/PetApiTest.java | 46 +- .../org/openapitools/api/StoreApiTest.java | 26 +- .../org/openapitools/api/UserApiTest.java | 43 +- .../java/org/openapitools/api/PetApiTest.java | 60 +- .../org/openapitools/api/StoreApiTest.java | 40 +- .../org/openapitools/api/UserApiTest.java | 57 +- .../client/models/AnyOfUserOrPetTest.kt | 138 ++-- .../client/models/UserOrPetTest.kt | 136 ++-- .../openapitools/client/models/UserTest.kt | 12 +- .../openapitools/client/apis/PetApiTest.kt | 2 +- .../petstore/lua/spec/api_response_spec.lua | 6 +- .../petstore/lua/spec/category_spec.lua | 6 +- .../client/petstore/lua/spec/order_spec.lua | 6 +- .../client/petstore/lua/spec/pet_api_spec.lua | 6 +- samples/client/petstore/lua/spec/pet_spec.lua | 6 +- .../petstore/lua/spec/store_api_spec.lua | 6 +- samples/client/petstore/lua/spec/tag_spec.lua | 6 +- .../petstore/lua/spec/user_api_spec.lua | 6 +- .../client/petstore/lua/spec/user_spec.lua | 10 +- .../tests/Api/AnotherFakeApiTest.php | 2 +- .../tests/Api/DefaultApiTest.php | 2 +- .../tests/Api/FakeApiTest.php | 14 +- .../tests/Api/FakeClassnameTags123ApiTest.php | 2 +- .../tests/Api/PetApiTest.php | 2 +- .../tests/Api/StoreApiTest.php | 2 +- .../tests/Api/UserApiTest.php | 2 +- .../Model/AdditionalPropertiesClassTest.php | 2 +- .../tests/Model/AllOfWithSingleRefTest.php | 2 +- .../tests/Model/AnimalTest.php | 2 +- .../tests/Model/ApiResponseTest.php | 2 +- .../Model/ArrayOfArrayOfNumberOnlyTest.php | 2 +- .../tests/Model/ArrayOfNumberOnlyTest.php | 2 +- .../tests/Model/ArrayTestTest.php | 2 +- .../tests/Model/CapitalizationTest.php | 2 +- .../OpenAPIClient-php/tests/Model/CatTest.php | 2 +- .../tests/Model/CategoryTest.php | 2 +- .../tests/Model/ChildWithNullableTest.php | 2 +- .../tests/Model/ClassModelTest.php | 2 +- .../tests/Model/ClientTest.php | 2 +- .../tests/Model/DeprecatedObjectTest.php | 2 +- .../OpenAPIClient-php/tests/Model/DogTest.php | 2 +- .../tests/Model/EnumArraysTest.php | 2 +- .../tests/Model/EnumClassTest.php | 2 +- .../tests/Model/EnumTestTest.php | 2 +- .../Model/EnumWithNameAndDescriptionTest.php | 2 +- .../FakeBigDecimalMap200ResponseTest.php | 2 +- .../tests/Model/FileSchemaTestClassTest.php | 2 +- .../tests/Model/FileTest.php | 2 +- .../tests/Model/FooGetDefaultResponseTest.php | 2 +- .../OpenAPIClient-php/tests/Model/FooTest.php | 2 +- .../tests/Model/FormatTestTest.php | 2 +- .../tests/Model/HasOnlyReadOnlyTest.php | 2 +- .../tests/Model/HealthCheckResultTest.php | 2 +- .../tests/Model/MapTestTest.php | 2 +- ...ertiesAndAdditionalPropertiesClassTest.php | 2 +- .../tests/Model/Model200ResponseTest.php | 2 +- .../tests/Model/ModelListTest.php | 2 +- .../tests/Model/ModelReturnTest.php | 2 +- .../tests/Model/NameTest.php | 2 +- .../tests/Model/NullableClassTest.php | 2 +- .../tests/Model/NumberOnlyTest.php | 2 +- .../Model/ObjectWithDeprecatedFieldsTest.php | 2 +- .../tests/Model/OrderTest.php | 2 +- .../tests/Model/OuterCompositeTest.php | 2 +- .../tests/Model/OuterEnumDefaultValueTest.php | 2 +- .../OuterEnumIntegerDefaultValueTest.php | 2 +- .../tests/Model/OuterEnumIntegerTest.php | 2 +- .../tests/Model/OuterEnumTest.php | 2 +- .../Model/OuterObjectWithEnumPropertyTest.php | 2 +- .../tests/Model/ParentWithNullableTest.php | 2 +- .../OpenAPIClient-php/tests/Model/PetTest.php | 2 +- .../tests/Model/ReadOnlyFirstTest.php | 2 +- .../tests/Model/SingleRefTypeTest.php | 2 +- .../tests/Model/SpecialModelNameTest.php | 2 +- .../OpenAPIClient-php/tests/Model/TagTest.php | 2 +- ...reeformAdditionalPropertiesRequestTest.php | 2 +- .../tests/Model/UserTest.php | 2 +- .../test/Api/AnotherFakeApiTest.php | 2 +- .../test/Api/DefaultApiTest.php | 2 +- .../test/Api/FakeApiTest.php | 74 ++- .../test/Api/FakeClassnameTags123ApiTest.php | 2 +- .../OpenAPIClient-php/test/Api/PetApiTest.php | 2 +- .../test/Api/StoreApiTest.php | 2 +- .../test/Api/UserApiTest.php | 2 +- .../Model/AdditionalPropertiesClassTest.php | 2 +- .../test/Model/AllOfWithSingleRefTest.php | 2 +- .../test/Model/AnimalTest.php | 2 +- .../test/Model/ApiResponseTest.php | 2 +- .../Model/ArrayOfArrayOfNumberOnlyTest.php | 2 +- .../test/Model/ArrayOfNumberOnlyTest.php | 2 +- .../test/Model/ArrayTestTest.php | 2 +- .../test/Model/CapitalizationTest.php | 2 +- .../OpenAPIClient-php/test/Model/CatTest.php | 2 +- .../test/Model/CategoryTest.php | 2 +- .../test/Model/ClassModelTest.php | 2 +- .../test/Model/ClientTest.php | 2 +- .../test/Model/DeprecatedObjectTest.php | 2 +- .../OpenAPIClient-php/test/Model/DogTest.php | 2 +- .../test/Model/EnumArraysTest.php | 2 +- .../test/Model/EnumClassTest.php | 2 +- .../test/Model/EnumTestTest.php | 2 +- .../Model/EnumWithNameAndDescriptionTest.php | 2 +- .../FakeBigDecimalMap200ResponseTest.php | 2 +- .../test/Model/FileSchemaTestClassTest.php | 2 +- .../OpenAPIClient-php/test/Model/FileTest.php | 2 +- .../test/Model/FooGetDefaultResponseTest.php | 2 +- .../OpenAPIClient-php/test/Model/FooTest.php | 2 +- .../test/Model/FormatTestTest.php | 2 +- .../test/Model/HasOnlyReadOnlyTest.php | 2 +- .../test/Model/HealthCheckResultTest.php | 2 +- .../test/Model/MapTestTest.php | 2 +- ...ertiesAndAdditionalPropertiesClassTest.php | 2 +- .../test/Model/Model200ResponseTest.php | 2 +- .../test/Model/ModelListTest.php | 2 +- .../test/Model/ModelReturnTest.php | 2 +- .../OpenAPIClient-php/test/Model/NameTest.php | 2 +- .../test/Model/NullableClassTest.php | 2 +- .../test/Model/NumberOnlyTest.php | 2 +- .../Model/ObjectWithDeprecatedFieldsTest.php | 2 +- .../test/Model/OrderTest.php | 2 +- .../test/Model/OuterCompositeTest.php | 2 +- .../test/Model/OuterEnumDefaultValueTest.php | 2 +- .../OuterEnumIntegerDefaultValueTest.php | 2 +- .../test/Model/OuterEnumIntegerTest.php | 2 +- .../test/Model/OuterEnumTest.php | 2 +- .../Model/OuterObjectWithEnumPropertyTest.php | 2 +- .../OpenAPIClient-php/test/Model/PetTest.php | 2 +- .../test/Model/PropertyNameMappingTest.php | 2 +- .../test/Model/ReadOnlyFirstTest.php | 2 +- .../test/Model/SingleRefTypeTest.php | 2 +- .../test/Model/SpecialModelNameTest.php | 2 +- .../OpenAPIClient-php/test/Model/TagTest.php | 2 +- ...reeformAdditionalPropertiesRequestTest.php | 2 +- .../OpenAPIClient-php/test/Model/UserTest.php | 2 +- .../psr-18/test/Api/AnotherFakeApiTest.php | 2 +- .../php/psr-18/test/Api/DefaultApiTest.php | 2 +- .../php/psr-18/test/Api/FakeApiTest.php | 50 +- .../test/Api/FakeClassnameTags123ApiTest.php | 2 +- .../php/psr-18/test/Api/PetApiTest.php | 2 +- .../php/psr-18/test/Api/StoreApiTest.php | 2 +- .../php/psr-18/test/Api/UserApiTest.php | 2 +- .../Model/AdditionalPropertiesClassTest.php | 2 +- .../test/Model/AllOfWithSingleRefTest.php | 2 +- .../php/psr-18/test/Model/AnimalTest.php | 2 +- .../php/psr-18/test/Model/ApiResponseTest.php | 2 +- .../Model/ArrayOfArrayOfNumberOnlyTest.php | 2 +- .../test/Model/ArrayOfNumberOnlyTest.php | 2 +- .../php/psr-18/test/Model/ArrayTestTest.php | 2 +- .../psr-18/test/Model/CapitalizationTest.php | 2 +- .../php/psr-18/test/Model/CatTest.php | 2 +- .../php/psr-18/test/Model/CategoryTest.php | 2 +- .../php/psr-18/test/Model/ClassModelTest.php | 2 +- .../php/psr-18/test/Model/ClientTest.php | 2 +- .../test/Model/DeprecatedObjectTest.php | 2 +- .../php/psr-18/test/Model/DogTest.php | 2 +- .../php/psr-18/test/Model/EnumArraysTest.php | 2 +- .../php/psr-18/test/Model/EnumClassTest.php | 2 +- .../php/psr-18/test/Model/EnumTestTest.php | 2 +- .../Model/EnumWithNameAndDescriptionTest.php | 2 +- .../FakeBigDecimalMap200ResponseTest.php | 2 +- .../test/Model/FileSchemaTestClassTest.php | 2 +- .../php/psr-18/test/Model/FileTest.php | 2 +- .../test/Model/FooGetDefaultResponseTest.php | 2 +- .../php/psr-18/test/Model/FooTest.php | 2 +- .../php/psr-18/test/Model/FormatTestTest.php | 2 +- .../psr-18/test/Model/HasOnlyReadOnlyTest.php | 2 +- .../test/Model/HealthCheckResultTest.php | 2 +- .../php/psr-18/test/Model/MapTestTest.php | 2 +- ...ertiesAndAdditionalPropertiesClassTest.php | 2 +- .../test/Model/Model200ResponseTest.php | 2 +- .../php/psr-18/test/Model/ModelListTest.php | 2 +- .../php/psr-18/test/Model/ModelReturnTest.php | 2 +- .../php/psr-18/test/Model/NameTest.php | 2 +- .../psr-18/test/Model/NullableClassTest.php | 2 +- .../php/psr-18/test/Model/NumberOnlyTest.php | 2 +- .../Model/ObjectWithDeprecatedFieldsTest.php | 2 +- .../php/psr-18/test/Model/OrderTest.php | 2 +- .../psr-18/test/Model/OuterCompositeTest.php | 2 +- .../test/Model/OuterEnumDefaultValueTest.php | 2 +- .../OuterEnumIntegerDefaultValueTest.php | 2 +- .../test/Model/OuterEnumIntegerTest.php | 2 +- .../php/psr-18/test/Model/OuterEnumTest.php | 2 +- .../Model/OuterObjectWithEnumPropertyTest.php | 2 +- .../php/psr-18/test/Model/PetTest.php | 2 +- .../test/Model/PropertyNameMappingTest.php | 2 +- .../psr-18/test/Model/ReadOnlyFirstTest.php | 2 +- .../psr-18/test/Model/SingleRefTypeTest.php | 2 +- .../test/Model/SpecialModelNameTest.php | 2 +- .../php/psr-18/test/Model/TagTest.php | 2 +- ...reeformAdditionalPropertiesRequestTest.php | 2 +- .../php/psr-18/test/Model/UserTest.php | 2 +- .../powershell/tests/Api/PSFakeApi.Tests.ps1 | 24 + .../powershell/tests/Api/PSPetApi.Tests.ps1 | 10 +- .../powershell/tests/Api/PSStoreApi.Tests.ps1 | 2 +- .../powershell/tests/Api/PSUserApi.Tests.ps1 | 2 +- .../tests/Model/ApiResponse.Tests.ps1 | 2 +- .../powershell/tests/Model/Category.Tests.ps1 | 2 +- .../powershell/tests/Model/EnumTest.Tests.ps1 | 2 +- .../ObjectWithDeprecatedFields.Tests.ps1 | 2 +- .../powershell/tests/Model/Order.Tests.ps1 | 2 +- .../powershell/tests/Model/Pet.Tests.ps1 | 2 +- .../powershell/tests/Model/Tag.Tests.ps1 | 2 +- .../powershell/tests/Model/User.Tests.ps1 | 4 +- .../spec/api/another_fake_api_spec.rb | 2 +- .../spec/api/default_api_spec.rb | 2 +- .../ruby-autoload/spec/api/fake_api_spec.rb | 90 ++- .../api/fake_classname_tags123_api_spec.rb | 2 +- .../ruby-autoload/spec/api/pet_api_spec.rb | 16 +- .../ruby-autoload/spec/api/store_api_spec.rb | 4 +- .../ruby-autoload/spec/api/user_api_spec.rb | 12 +- .../additional_properties_class_spec.rb | 6 +- .../models/all_of_with_single_ref_spec.rb | 6 +- .../ruby-autoload/spec/models/animal_spec.rb | 6 +- .../spec/models/api_response_spec.rb | 6 +- .../array_of_array_of_number_only_spec.rb | 6 +- .../spec/models/array_of_number_only_spec.rb | 6 +- .../spec/models/array_test_spec.rb | 6 +- .../spec/models/capitalization_spec.rb | 6 +- .../ruby-autoload/spec/models/cat_spec.rb | 6 +- .../spec/models/category_spec.rb | 6 +- .../spec/models/child_with_nullable_spec.rb | 6 +- .../spec/models/class_model_spec.rb | 6 +- .../ruby-autoload/spec/models/client_spec.rb | 6 +- .../spec/models/deprecated_object_spec.rb | 6 +- .../ruby-autoload/spec/models/dog_spec.rb | 6 +- .../spec/models/enum_arrays_spec.rb | 6 +- .../spec/models/enum_class_spec.rb | 6 +- .../spec/models/enum_test_spec.rb | 6 +- .../fake_big_decimal_map200_response_spec.rb | 6 +- .../models/file_schema_test_class_spec.rb | 6 +- .../ruby-autoload/spec/models/file_spec.rb | 6 +- .../models/foo_get_default_response_spec.rb | 6 +- .../ruby-autoload/spec/models/foo_spec.rb | 6 +- .../spec/models/format_test_spec.rb | 13 +- .../spec/models/has_only_read_only_spec.rb | 6 +- .../spec/models/health_check_result_spec.rb | 6 +- .../ruby-autoload/spec/models/list_spec.rb | 6 +- .../spec/models/map_test_spec.rb | 6 +- ...es_and_additional_properties_class_spec.rb | 6 +- .../spec/models/model200_response_spec.rb | 6 +- .../spec/models/model_return_spec.rb | 6 +- .../ruby-autoload/spec/models/name_spec.rb | 6 +- .../spec/models/nullable_class_spec.rb | 6 +- .../spec/models/number_only_spec.rb | 6 +- .../object_with_deprecated_fields_spec.rb | 6 +- .../ruby-autoload/spec/models/order_spec.rb | 6 +- .../spec/models/outer_composite_spec.rb | 6 +- .../models/outer_enum_default_value_spec.rb | 6 +- .../outer_enum_integer_default_value_spec.rb | 6 +- .../spec/models/outer_enum_integer_spec.rb | 6 +- .../spec/models/outer_enum_spec.rb | 6 +- .../outer_object_with_enum_property_spec.rb | 6 +- .../spec/models/parent_with_nullable_spec.rb | 6 +- .../ruby-autoload/spec/models/pet_spec.rb | 8 +- .../spec/models/read_only_first_spec.rb | 6 +- .../spec/models/single_ref_type_spec.rb | 6 +- .../spec/models/special_model_name_spec.rb | 6 +- .../ruby-autoload/spec/models/tag_spec.rb | 6 +- ...form_additional_properties_request_spec.rb | 6 +- .../ruby-autoload/spec/models/user_spec.rb | 6 +- .../spec/api/another_fake_api_spec.rb | 2 +- .../ruby-faraday/spec/api/default_api_spec.rb | 4 +- .../ruby-faraday/spec/api/fake_api_spec.rb | 111 +++- .../api/fake_classname_tags123_api_spec.rb | 2 +- .../ruby-faraday/spec/api/pet_api_spec.rb | 10 +- .../ruby-faraday/spec/api/store_api_spec.rb | 3 +- .../ruby-faraday/spec/api/user_api_spec.rb | 7 +- .../additional_properties_class_spec.rb | 17 +- .../models/all_of_with_single_ref_spec.rb | 6 +- .../ruby-faraday/spec/models/animal_spec.rb | 17 +- .../spec/models/api_response_spec.rb | 17 +- .../array_of_array_of_number_only_spec.rb | 17 +- .../spec/models/array_of_number_only_spec.rb | 17 +- .../spec/models/array_test_spec.rb | 17 +- .../spec/models/capitalization_spec.rb | 17 +- .../ruby-faraday/spec/models/cat_spec.rb | 17 +- .../ruby-faraday/spec/models/category_spec.rb | 17 +- .../spec/models/child_with_nullable_spec.rb | 6 +- .../spec/models/class_model_spec.rb | 17 +- .../ruby-faraday/spec/models/client_spec.rb | 17 +- .../spec/models/deprecated_object_spec.rb | 6 +- .../ruby-faraday/spec/models/dog_spec.rb | 17 +- .../spec/models/enum_arrays_spec.rb | 21 +- .../spec/models/enum_class_spec.rb | 17 +- .../spec/models/enum_test_spec.rb | 25 +- .../fake_big_decimal_map200_response_spec.rb | 6 +- .../models/file_schema_test_class_spec.rb | 17 +- .../ruby-faraday/spec/models/file_spec.rb | 17 +- .../models/foo_get_default_response_spec.rb | 6 +- .../ruby-faraday/spec/models/foo_spec.rb | 17 +- .../spec/models/format_test_spec.rb | 28 +- .../spec/models/has_only_read_only_spec.rb | 17 +- .../spec/models/health_check_result_spec.rb | 17 +- .../ruby-faraday/spec/models/list_spec.rb | 17 +- .../ruby-faraday/spec/models/map_test_spec.rb | 19 +- ...es_and_additional_properties_class_spec.rb | 17 +- .../spec/models/model200_response_spec.rb | 17 +- .../spec/models/model_return_spec.rb | 17 +- .../ruby-faraday/spec/models/name_spec.rb | 17 +- .../spec/models/nullable_class_spec.rb | 17 +- .../spec/models/number_only_spec.rb | 17 +- .../object_with_deprecated_fields_spec.rb | 6 +- .../ruby-faraday/spec/models/order_spec.rb | 19 +- .../spec/models/outer_composite_spec.rb | 17 +- .../models/outer_enum_default_value_spec.rb | 17 +- .../outer_enum_integer_default_value_spec.rb | 17 +- .../spec/models/outer_enum_integer_spec.rb | 17 +- .../spec/models/outer_enum_spec.rb | 17 +- .../outer_object_with_enum_property_spec.rb | 6 +- .../spec/models/parent_with_nullable_spec.rb | 6 +- .../ruby-faraday/spec/models/pet_spec.rb | 19 +- .../spec/models/read_only_first_spec.rb | 17 +- .../spec/models/single_ref_type_spec.rb | 6 +- .../spec/models/special_model_name_spec.rb | 17 +- .../ruby-faraday/spec/models/tag_spec.rb | 17 +- ...form_additional_properties_request_spec.rb | 6 +- .../ruby-faraday/spec/models/user_spec.rb | 17 +- .../spec/api/another_fake_api_spec.rb | 2 +- .../ruby-httpx/spec/api/default_api_spec.rb | 4 +- .../ruby-httpx/spec/api/fake_api_spec.rb | 113 +++- .../api/fake_classname_tags123_api_spec.rb | 2 +- .../ruby-httpx/spec/api/pet_api_spec.rb | 10 +- .../ruby-httpx/spec/api/store_api_spec.rb | 3 +- .../ruby-httpx/spec/api/user_api_spec.rb | 7 +- .../additional_properties_class_spec.rb | 17 +- .../models/all_of_with_single_ref_spec.rb | 6 +- .../ruby-httpx/spec/models/animal_spec.rb | 17 +- .../spec/models/api_response_spec.rb | 17 +- .../array_of_array_of_number_only_spec.rb | 17 +- .../spec/models/array_of_number_only_spec.rb | 17 +- .../ruby-httpx/spec/models/array_test_spec.rb | 17 +- .../spec/models/capitalization_spec.rb | 17 +- .../ruby-httpx/spec/models/cat_spec.rb | 17 +- .../ruby-httpx/spec/models/category_spec.rb | 17 +- .../spec/models/class_model_spec.rb | 17 +- .../ruby-httpx/spec/models/client_spec.rb | 17 +- .../ruby-httpx/spec/models/cow_spec.rb | 2 +- .../spec/models/deprecated_object_spec.rb | 6 +- .../ruby-httpx/spec/models/dog_spec.rb | 17 +- .../spec/models/enum_arrays_spec.rb | 21 +- .../ruby-httpx/spec/models/enum_class_spec.rb | 17 +- .../ruby-httpx/spec/models/enum_test_spec.rb | 25 +- .../fake_big_decimal_map200_response_spec.rb | 6 +- .../models/file_schema_test_class_spec.rb | 17 +- .../ruby-httpx/spec/models/file_spec.rb | 17 +- .../models/foo_get_default_response_spec.rb | 6 +- .../ruby-httpx/spec/models/foo_spec.rb | 17 +- .../spec/models/format_test_spec.rb | 28 +- .../spec/models/has_only_read_only_spec.rb | 17 +- .../spec/models/health_check_result_spec.rb | 17 +- .../ruby-httpx/spec/models/list_spec.rb | 17 +- .../spec/models/mamal_with_enum_spec.rb | 2 +- .../spec/models/mammal_anyof_spec.rb | 2 +- .../ruby-httpx/spec/models/mammal_spec.rb | 3 +- .../mammal_without_discriminator_spec.rb | 3 +- .../ruby-httpx/spec/models/map_test_spec.rb | 19 +- ...es_and_additional_properties_class_spec.rb | 17 +- .../spec/models/model200_response_spec.rb | 17 +- .../spec/models/model_return_spec.rb | 17 +- .../ruby-httpx/spec/models/name_spec.rb | 17 +- .../spec/models/nullable_class_spec.rb | 17 +- .../spec/models/number_only_spec.rb | 17 +- .../object_with_deprecated_fields_spec.rb | 6 +- .../ruby-httpx/spec/models/order_spec.rb | 19 +- .../spec/models/outer_composite_spec.rb | 17 +- .../models/outer_enum_default_value_spec.rb | 17 +- .../outer_enum_integer_default_value_spec.rb | 17 +- .../spec/models/outer_enum_integer_spec.rb | 17 +- .../ruby-httpx/spec/models/outer_enum_spec.rb | 17 +- .../outer_object_with_enum_property_spec.rb | 6 +- .../ruby-httpx/spec/models/pet_spec.rb | 19 +- .../spec/models/property_name_mapping_spec.rb | 10 +- .../spec/models/read_only_first_spec.rb | 17 +- .../spec/models/single_ref_type_spec.rb | 6 +- .../spec/models/special_model_name_spec.rb | 17 +- .../ruby-httpx/spec/models/tag_spec.rb | 17 +- ...form_additional_properties_request_spec.rb | 6 +- .../ruby-httpx/spec/models/user_spec.rb | 17 +- .../ruby-httpx/spec/models/whale_spec.rb | 8 +- .../ruby-httpx/spec/models/zebra_spec.rb | 8 +- .../ruby/spec/api/another_fake_api_spec.rb | 2 +- .../ruby/spec/api/default_api_spec.rb | 4 +- .../petstore/ruby/spec/api/fake_api_spec.rb | 113 +++- .../api/fake_classname_tags123_api_spec.rb | 2 +- .../petstore/ruby/spec/api/pet_api_spec.rb | 10 +- .../petstore/ruby/spec/api/store_api_spec.rb | 3 +- .../petstore/ruby/spec/api/user_api_spec.rb | 7 +- .../additional_properties_class_spec.rb | 17 +- .../models/all_of_with_single_ref_spec.rb | 6 +- .../petstore/ruby/spec/models/animal_spec.rb | 17 +- .../ruby/spec/models/api_response_spec.rb | 17 +- .../array_of_array_of_number_only_spec.rb | 17 +- .../spec/models/array_of_number_only_spec.rb | 17 +- .../ruby/spec/models/array_test_spec.rb | 17 +- .../ruby/spec/models/capitalization_spec.rb | 17 +- .../petstore/ruby/spec/models/cat_spec.rb | 17 +- .../ruby/spec/models/category_spec.rb | 17 +- .../ruby/spec/models/class_model_spec.rb | 17 +- .../petstore/ruby/spec/models/client_spec.rb | 17 +- .../petstore/ruby/spec/models/cow_spec.rb | 2 +- .../spec/models/deprecated_object_spec.rb | 6 +- .../petstore/ruby/spec/models/dog_spec.rb | 17 +- .../ruby/spec/models/enum_arrays_spec.rb | 21 +- .../ruby/spec/models/enum_class_spec.rb | 17 +- .../ruby/spec/models/enum_test_spec.rb | 25 +- .../fake_big_decimal_map200_response_spec.rb | 6 +- .../models/file_schema_test_class_spec.rb | 17 +- .../petstore/ruby/spec/models/file_spec.rb | 17 +- .../models/foo_get_default_response_spec.rb | 6 +- .../petstore/ruby/spec/models/foo_spec.rb | 17 +- .../ruby/spec/models/format_test_spec.rb | 28 +- .../spec/models/has_only_read_only_spec.rb | 17 +- .../spec/models/health_check_result_spec.rb | 17 +- .../petstore/ruby/spec/models/list_spec.rb | 17 +- .../ruby/spec/models/mamal_with_enum_spec.rb | 8 +- .../ruby/spec/models/mammal_anyof_spec.rb | 2 +- .../petstore/ruby/spec/models/mammal_spec.rb | 3 +- .../mammal_without_discriminator_spec.rb | 3 +- .../ruby/spec/models/map_test_spec.rb | 19 +- ...es_and_additional_properties_class_spec.rb | 17 +- .../spec/models/model200_response_spec.rb | 17 +- .../ruby/spec/models/model_return_spec.rb | 17 +- .../petstore/ruby/spec/models/name_spec.rb | 17 +- .../ruby/spec/models/nullable_class_spec.rb | 17 +- .../ruby/spec/models/number_only_spec.rb | 17 +- .../object_with_deprecated_fields_spec.rb | 6 +- .../petstore/ruby/spec/models/order_spec.rb | 19 +- .../ruby/spec/models/outer_composite_spec.rb | 17 +- .../models/outer_enum_default_value_spec.rb | 17 +- .../outer_enum_integer_default_value_spec.rb | 17 +- .../spec/models/outer_enum_integer_spec.rb | 17 +- .../ruby/spec/models/outer_enum_spec.rb | 17 +- .../outer_object_with_enum_property_spec.rb | 6 +- .../petstore/ruby/spec/models/pet_spec.rb | 19 +- .../spec/models/property_name_mapping_spec.rb | 6 +- .../ruby/spec/models/read_only_first_spec.rb | 17 +- .../ruby/spec/models/single_ref_type_spec.rb | 6 +- .../spec/models/special_model_name_spec.rb | 17 +- .../petstore/ruby/spec/models/tag_spec.rb | 17 +- ...form_additional_properties_request_spec.rb | 6 +- .../petstore/ruby/spec/models/user_spec.rb | 17 +- .../petstore/ruby/spec/models/whale_spec.rb | 8 +- .../petstore/ruby/spec/models/zebra_spec.rb | 8 +- .../client/petstore/zapier/samples/PetApi.js | 2 +- .../petstore/zapier/samples/StoreApi.js | 2 +- .../client/petstore/zapier/samples/UserApi.js | 2 +- .../go-experimental/test/api_usage_test.go | 74 +-- .../ruby-client/spec/api/usage_api_spec.rb | 2 +- .../ruby/spec/api/usage_api_spec.rb | 2 +- .../ruby-client/spec/api/usage_api_spec.rb | 6 +- .../spec/models/array_alias_spec.rb | 17 +- .../ruby-client/spec/models/map_alias_spec.rb | 17 +- .../test/bar_ref_or_value_test.dart | 39 +- .../test/bar_ref_test.dart | 12 + .../test/foo_ref_or_value_test.dart | 27 + .../test/foo_ref_test.dart | 12 + .../test/pizza_speziale_test.dart | 5 + .../test/fake_api_test.dart | 43 ++ .../test/fake_api_test.dart | 43 ++ .../test/api_response_test.dart | 3 +- .../test/category_test.dart | 3 +- .../petstore_client_lib/test/order_test.dart | 3 +- .../test/pet_api_test.dart | 13 +- .../petstore_client_lib/test/pet_test.dart | 3 +- .../test/store_api_test.dart | 5 +- .../petstore_client_lib/test/tag_test.dart | 3 +- .../test/user_api_test.dart | 13 +- .../petstore_client_lib/test/user_test.dart | 3 +- .../additional_properties_class_test.dart | 3 +- .../test/all_of_with_single_ref_test.dart | 2 +- .../test/animal_test.dart | 3 +- .../test/another_fake_api_test.dart | 3 +- .../test/api_response_test.dart | 3 +- .../array_of_array_of_number_only_test.dart | 3 +- .../test/array_of_number_only_test.dart | 3 +- .../test/array_test_test.dart | 3 +- .../test/capitalization_test.dart | 3 +- .../test/cat_test.dart | 3 +- .../test/category_test.dart | 3 +- .../test/child_with_nullable_test.dart | 2 +- .../test/class_model_test.dart | 3 +- .../test/default_api_test.dart | 5 +- .../test/deprecated_object_test.dart | 3 +- .../test/dog_test.dart | 3 +- .../test/enum_arrays_test.dart | 3 +- .../test/enum_class_test.dart | 3 +- .../test/enum_test_test.dart | 3 +- .../test/fake_api_test.dart | 52 +- ...fake_big_decimal_map200_response_test.dart | 2 +- .../test/fake_classname_tags123_api_test.dart | 3 +- .../test/file_schema_test_class_test.dart | 3 +- .../test/foo_get_default_response_test.dart | 2 +- .../test/foo_test.dart | 3 +- .../test/format_test_test.dart | 3 +- .../test/has_only_read_only_test.dart | 3 +- .../test/health_check_result_test.dart | 3 +- .../test/map_test_test.dart | 3 +- ..._and_additional_properties_class_test.dart | 3 +- .../test/model200_response_test.dart | 3 +- .../test/model_client_test.dart | 3 +- .../test/model_file_test.dart | 3 +- .../test/model_list_test.dart | 3 +- .../test/model_return_test.dart | 3 +- .../test/name_test.dart | 3 +- .../test/nullable_class_test.dart | 3 +- .../test/number_only_test.dart | 3 +- .../object_with_deprecated_fields_test.dart | 3 +- .../test/order_test.dart | 3 +- .../test/outer_composite_test.dart | 3 +- .../test/outer_enum_default_value_test.dart | 3 +- ...outer_enum_integer_default_value_test.dart | 3 +- .../test/outer_enum_integer_test.dart | 3 +- .../test/outer_enum_test.dart | 3 +- .../outer_object_with_enum_property_test.dart | 3 +- .../test/parent_with_nullable_test.dart | 2 +- .../test/pet_api_test.dart | 15 +- .../test/pet_test.dart | 3 +- .../test/read_only_first_test.dart | 3 +- .../test/single_ref_type_test.dart | 2 +- .../test/special_model_name_test.dart | 3 +- .../test/store_api_test.dart | 5 +- .../test/tag_test.dart | 3 +- ...rm_additional_properties_request_test.dart | 2 +- .../test/user_api_test.dart | 13 +- .../test/user_test.dart | 3 +- .../go/go-petstore/test/api_default_test.go | 12 + .../go/go-petstore/test/api_fake_test.go | 55 ++ .../client/model/ChildSchemaTest.java | 1 + .../model/MySchemaNameCharactersTest.java | 12 +- .../openapitools/client/model/ParentTest.java | 3 +- .../client/model/CategoryTest.java | 1 + .../client/model/ModelApiResponseTest.java | 1 + .../openapitools/client/model/OrderTest.java | 1 + .../openapitools/client/model/PetTest.java | 1 + .../openapitools/client/model/TagTest.java | 1 + .../openapitools/client/model/UserTest.java | 1 + .../client/model/CategoryTest.java | 1 + .../client/model/ModelApiResponseTest.java | 1 + .../openapitools/client/model/OrderTest.java | 1 + .../openapitools/client/model/PetTest.java | 1 + .../openapitools/client/model/TagTest.java | 1 + .../openapitools/client/model/UserTest.java | 1 + .../openapitools/client/api/FakeApiTest.java | 55 ++ .../openapitools/client/api/PetApiTest.java | 65 +- .../model/AdditionalPropertiesClassTest.java | 1 + .../openapitools/client/model/AnimalTest.java | 3 +- .../client/model/AppleReqTest.java | 1 + .../openapitools/client/model/AppleTest.java | 1 + .../model/ArrayOfArrayOfNumberOnlyTest.java | 1 + .../client/model/ArrayOfNumberOnlyTest.java | 1 + .../client/model/ArrayTestTest.java | 1 + .../client/model/BananaReqTest.java | 1 + .../openapitools/client/model/BananaTest.java | 1 + .../client/model/BasquePigTest.java | 1 + .../client/model/CapitalizationTest.java | 1 + .../openapitools/client/model/CatTest.java | 2 + .../client/model/CategoryTest.java | 1 + .../client/model/ChildCatTest.java | 1 + .../client/model/ClassModelTest.java | 1 + .../openapitools/client/model/ClientTest.java | 1 + .../model/ComplexQuadrilateralTest.java | 1 + .../client/model/DanishPigTest.java | 1 + .../client/model/DeprecatedObjectTest.java | 1 + .../openapitools/client/model/DogTest.java | 1 + .../client/model/DrawingTest.java | 1 + .../client/model/EnumArraysTest.java | 1 + .../client/model/EnumTestTest.java | 1 + .../client/model/EquilateralTriangleTest.java | 1 + .../client/model/FileSchemaTestClassTest.java | 1 + .../model/FooGetDefaultResponseTest.java | 1 + .../openapitools/client/model/FooTest.java | 1 + .../client/model/FormatTestTest.java | 1 + .../client/model/FruitReqTest.java | 1 + .../openapitools/client/model/FruitTest.java | 1 + .../client/model/GmFruitTest.java | 1 + .../client/model/GrandparentAnimalTest.java | 3 +- .../client/model/HasOnlyReadOnlyTest.java | 1 + .../client/model/HealthCheckResultTest.java | 1 + .../client/model/IsoscelesTriangleTest.java | 1 + .../openapitools/client/model/MammalTest.java | 58 +- .../client/model/MapTestTest.java | 1 + ...rtiesAndAdditionalPropertiesClassTest.java | 1 + .../client/model/Model200ResponseTest.java | 1 + .../client/model/ModelApiResponseTest.java | 1 + .../client/model/ModelFileTest.java | 1 + .../client/model/ModelListTest.java | 1 + .../client/model/ModelReturnTest.java | 1 + .../openapitools/client/model/NameTest.java | 1 + .../client/model/NullableClassTest.java | 1 + .../client/model/NullableShapeTest.java | 1 + .../client/model/NumberOnlyTest.java | 1 + .../model/ObjectWithDeprecatedFieldsTest.java | 1 + .../openapitools/client/model/OrderTest.java | 1 + .../client/model/OuterCompositeTest.java | 1 + .../client/model/ParentPetTest.java | 2 +- .../openapitools/client/model/PetTest.java | 1 + .../openapitools/client/model/PigTest.java | 1 + .../model/QuadrilateralInterfaceTest.java | 1 + .../client/model/QuadrilateralTest.java | 1 + .../client/model/ReadOnlyFirstTest.java | 1 + .../client/model/ScaleneTriangleTest.java | 1 + .../client/model/ShapeInterfaceTest.java | 1 + .../client/model/ShapeOrNullTest.java | 1 + .../openapitools/client/model/ShapeTest.java | 1 + .../client/model/SimpleQuadrilateralTest.java | 1 + .../client/model/SpecialModelNameTest.java | 1 + .../openapitools/client/model/TagTest.java | 1 + .../client/model/TriangleInterfaceTest.java | 1 + .../client/model/TriangleTest.java | 1 + .../openapitools/client/model/UserTest.java | 1 + .../openapitools/client/model/WhaleTest.java | 1 + .../openapitools/client/model/ZebraTest.java | 50 +- .../python-aiohttp/test/test_enum_test.py | 2 + .../python-aiohttp/test/test_fake_api.py | 7 + .../test/test_enum_test.py | 2 + .../test/test_fake_api.py | 7 + .../test_additional_properties_any_type.py | 14 +- .../test/test_additional_properties_class.py | 16 +- .../test/test_additional_properties_object.py | 14 +- ...tional_properties_with_description_only.py | 14 +- .../test/test_all_of_with_single_ref.py | 29 +- .../python-pydantic-v1/test/test_animal.py | 27 +- .../test/test_another_fake_api.py | 18 +- .../test/test_any_of_color.py | 18 +- .../test/test_any_of_pig.py | 32 +- .../test/test_api_response.py | 29 +- .../test/test_array_of_array_of_model.py | 16 +- .../test_array_of_array_of_number_only.py | 25 +- .../test/test_array_of_number_only.py | 25 +- .../test/test_array_test.py | 32 +- .../test/test_basque_pig.py | 27 +- .../test/test_capitalization.py | 35 +- .../python-pydantic-v1/test/test_cat.py | 27 +- .../python-pydantic-v1/test/test_category.py | 23 +- .../test/test_circular_all_of_ref.py | 12 +- .../test/test_circular_reference_model.py | 18 +- .../test/test_class_model.py | 27 +- .../python-pydantic-v1/test/test_client.py | 25 +- .../python-pydantic-v1/test/test_color.py | 18 +- .../python-pydantic-v1/test/test_creature.py | 16 +- .../test/test_creature_info.py | 14 +- .../test/test_danish_pig.py | 27 +- .../test/test_default_api.py | 18 +- .../test/test_deprecated_object.py | 25 +- .../python-pydantic-v1/test/test_dog.py | 27 +- .../test/test_dummy_model.py | 20 +- .../test/test_enum_arrays.py | 23 +- .../test/test_enum_class.py | 10 +- .../test/test_enum_string1.py | 6 +- .../test/test_enum_string2.py | 6 +- .../python-pydantic-v1/test/test_enum_test.py | 42 +- .../python-pydantic-v1/test/test_fake_api.py | 211 ++++-- .../test/test_fake_classname_tags123_api.py | 2 +- .../python-pydantic-v1/test/test_field.py | 2 +- .../python-pydantic-v1/test/test_file.py | 25 +- .../test/test_file_schema_test_class.py | 27 +- .../python-pydantic-v1/test/test_first_ref.py | 18 +- .../python-pydantic-v1/test/test_foo.py | 25 +- .../test/test_foo_get_default_response.py | 25 +- .../test/test_format_test.py | 63 +- .../test/test_has_only_read_only.py | 27 +- .../test/test_health_check_result.py | 25 +- .../test/test_import_test_datetime_api.py | 2 +- .../test/test_inner_dict_with_property.py | 16 +- .../test/test_int_or_string.py | 14 +- .../test/test_map_of_array_of_model.py | 14 +- .../python-pydantic-v1/test/test_map_test.py | 32 +- ...perties_and_additional_properties_class.py | 29 +- .../test/test_model200_response.py | 29 +- .../test/test_model_return.py | 27 +- .../python-pydantic-v1/test/test_name.py | 33 +- .../test/test_nullable_class.py | 50 +- .../test/test_nullable_property.py | 16 +- .../test/test_number_only.py | 25 +- ...st_object_to_test_additional_properties.py | 14 +- .../test_object_with_deprecated_fields.py | 31 +- .../test/test_one_of_enum_string.py | 14 +- .../python-pydantic-v1/test/test_order.py | 35 +- .../test/test_outer_composite.py | 29 +- .../test/test_outer_enum.py | 12 +- .../test/test_outer_enum_default_value.py | 10 +- .../test/test_outer_enum_integer.py | 10 +- .../test_outer_enum_integer_default_value.py | 26 +- .../test_outer_object_with_enum_property.py | 22 +- .../python-pydantic-v1/test/test_parent.py | 14 +- .../test/test_parent_with_optional_dict.py | 16 +- .../python-pydantic-v1/test/test_pet.py | 35 +- .../python-pydantic-v1/test/test_pet_api.py | 34 +- .../python-pydantic-v1/test/test_pig.py | 32 +- .../test/test_property_name_collision.py | 20 +- .../test/test_read_only_first.py | 27 +- .../test/test_second_circular_all_of_ref.py | 9 +- .../test/test_second_ref.py | 18 +- .../test/test_self_reference_model.py | 20 +- .../test/test_single_ref_type.py | 26 +- .../test/test_special_character_enum.py | 10 +- .../test/test_special_model_name.py | 25 +- .../test/test_special_name.py | 24 +- .../python-pydantic-v1/test/test_store_api.py | 24 +- .../python-pydantic-v1/test/test_tag.py | 27 +- .../python-pydantic-v1/test/test_tiger.py | 14 +- .../python-pydantic-v1/test/test_user.py | 39 +- .../python-pydantic-v1/test/test_user_api.py | 32 +- .../test/test_with_nested_one_of.py | 30 +- .../test_additional_properties_any_type.py | 19 +- .../test/test_additional_properties_class.py | 21 +- .../test/test_additional_properties_object.py | 19 +- ...tional_properties_with_description_only.py | 19 +- .../python/test/test_all_of_super_model.py | 2 +- .../test/test_all_of_with_single_ref.py | 34 +- .../petstore/python/test/test_animal.py | 34 +- .../python/test/test_another_fake_api.py | 22 +- .../petstore/python/test/test_any_of_color.py | 23 +- .../petstore/python/test/test_any_of_pig.py | 35 +- .../test/test_array_of_array_of_model.py | 21 +- .../test_array_of_array_of_number_only.py | 30 +- .../python/test/test_array_of_number_only.py | 30 +- .../petstore/python/test/test_array_test.py | 37 +- .../python/test/test_base_discriminator.py | 2 +- .../petstore/python/test/test_basque_pig.py | 32 +- .../petstore/python/test/test_bathing.py | 3 +- .../python/test/test_capitalization.py | 40 +- .../client/petstore/python/test/test_cat.py | 30 +- .../petstore/python/test/test_category.py | 28 +- .../python/test/test_circular_all_of_ref.py | 14 +- .../test/test_circular_reference_model.py | 23 +- .../petstore/python/test/test_class_model.py | 32 +- .../petstore/python/test/test_client.py | 30 +- .../client/petstore/python/test/test_color.py | 23 +- .../petstore/python/test/test_creature.py | 21 +- .../python/test/test_creature_info.py | 19 +- .../petstore/python/test/test_danish_pig.py | 32 +- .../petstore/python/test/test_default_api.py | 20 +- .../python/test/test_deprecated_object.py | 30 +- .../test/test_discriminator_all_of_sub.py | 2 +- .../test/test_discriminator_all_of_super.py | 2 +- .../client/petstore/python/test/test_dog.py | 30 +- .../petstore/python/test/test_dummy_model.py | 25 +- .../petstore/python/test/test_enum_arrays.py | 28 +- .../petstore/python/test/test_enum_class.py | 13 +- .../petstore/python/test/test_enum_string1.py | 9 +- .../petstore/python/test/test_enum_string2.py | 9 +- .../petstore/python/test/test_enum_test.py | 47 +- .../petstore/python/test/test_fake_api.py | 228 +++++-- .../test/test_fake_classname_tags123_api.py | 25 +- .../petstore/python/test/test_feeding.py | 3 +- .../client/petstore/python/test/test_file.py | 30 +- .../test/test_file_schema_test_class.py | 32 +- .../petstore/python/test/test_first_ref.py | 23 +- .../client/petstore/python/test/test_foo.py | 30 +- .../test/test_foo_get_default_response.py | 30 +- .../petstore/python/test/test_format_test.py | 65 +- .../python/test/test_has_only_read_only.py | 32 +- .../python/test/test_health_check_result.py | 30 +- .../client/petstore/python/test/test_info.py | 2 +- .../test/test_inner_dict_with_property.py | 21 +- .../petstore/python/test/test_input_all_of.py | 2 +- .../python/test/test_int_or_string.py | 19 +- .../petstore/python/test/test_list_class.py | 7 +- .../python/test/test_map_of_array_of_model.py | 19 +- .../petstore/python/test/test_map_test.py | 37 +- ...perties_and_additional_properties_class.py | 36 +- .../python/test/test_model200_response.py | 34 +- .../python/test/test_model_api_response.py | 3 +- .../petstore/python/test/test_model_field.py | 4 +- .../petstore/python/test/test_model_return.py | 32 +- .../client/petstore/python/test/test_name.py | 38 +- .../python/test/test_nullable_class.py | 55 +- .../python/test/test_nullable_property.py | 21 +- .../petstore/python/test/test_number_only.py | 30 +- ...st_object_to_test_additional_properties.py | 19 +- .../test_object_with_deprecated_fields.py | 36 +- .../python/test/test_one_of_enum_string.py | 19 +- .../client/petstore/python/test/test_order.py | 40 +- .../python/test/test_outer_composite.py | 34 +- .../petstore/python/test/test_outer_enum.py | 15 +- .../test/test_outer_enum_default_value.py | 13 +- .../python/test/test_outer_enum_integer.py | 13 +- .../test_outer_enum_integer_default_value.py | 29 +- .../test_outer_object_with_enum_property.py | 27 +- .../petstore/python/test/test_parent.py | 19 +- .../test/test_parent_with_optional_dict.py | 21 +- .../client/petstore/python/test/test_pet.py | 44 +- .../petstore/python/test/test_pet_api.py | 54 +- .../client/petstore/python/test/test_pig.py | 35 +- .../python/test/test_poop_cleaning.py | 3 +- .../python/test/test_primitive_string.py | 2 +- .../petstore/python/test/test_property_map.py | 2 +- .../test/test_property_name_collision.py | 25 +- .../python/test/test_read_only_first.py | 32 +- .../test/test_second_circular_all_of_ref.py | 11 +- .../petstore/python/test/test_second_ref.py | 23 +- .../python/test/test_self_reference_model.py | 25 +- .../python/test/test_single_ref_type.py | 29 +- .../test/test_special_character_enum.py | 13 +- .../python/test/test_special_model_name.py | 30 +- .../petstore/python/test/test_special_name.py | 29 +- .../petstore/python/test/test_store_api.py | 34 +- .../client/petstore/python/test/test_tag.py | 32 +- .../client/petstore/python/test/test_task.py | 3 +- .../python/test/test_task_activity.py | 3 +- ..._error_responses_with_model400_response.py | 3 +- ..._error_responses_with_model404_response.py | 3 +- ..._freeform_additional_properties_request.py | 7 +- .../test/test_test_model_with_enum_default.py | 2 +- ...t_for_multipart_requests_request_marker.py | 2 +- .../client/petstore/python/test/test_tiger.py | 19 +- ...t_with_additional_model_list_properties.py | 7 +- ..._with_additional_string_list_properties.py | 7 +- .../client/petstore/python/test/test_user.py | 44 +- .../petstore/python/test/test_user_api.py | 50 +- .../python/test/test_with_nested_one_of.py | 35 +- .../go-gin-api-server-interface-only/go.mod | 6 +- .../server/petstore/go-gin-api-server/go.mod | 6 +- .../haskell-yesod/test/Handler/PetSpec.hs | 5 + .../java/org/openapitools/api/PetApiTest.java | 4 +- .../org/openapitools/api/StoreApiTest.java | 2 +- .../org/openapitools/api/UserApiTest.java | 2 +- .../controller/PetControllerSpec.groovy | 48 +- .../controller/StoreControllerSpec.groovy | 14 +- .../controller/UserControllerSpec.groovy | 40 +- .../org/openapitools/model/PetSpec.groovy | 1 + .../java/org/openapitools/api/PetApiTest.java | 60 +- .../org/openapitools/api/StoreApiTest.java | 40 +- .../org/openapitools/api/UserApiTest.java | 62 +- .../java/org/openapitools/api/PetApiTest.java | 60 +- .../org/openapitools/api/StoreApiTest.java | 40 +- .../org/openapitools/api/UserApiTest.java | 62 +- .../openapitools/api/AnotherFakeApiTest.java | 4 +- .../org/openapitools/api/FakeApiTest.java | 2 +- .../java/org/openapitools/api/PetApiTest.java | 4 +- .../org/openapitools/api/UserApiTest.java | 5 +- .../kotlin/org/openapitools/api/PetApiTest.kt | 2 +- .../kotlin/org/openapitools/api/PetApiTest.kt | 2 +- .../org/openapitools/api/TestApiTest.kt | 5 +- .../kotlin/org/openapitools/api/PetApiTest.kt | 2 +- .../openapitools/api/MultipartMixedApiTest.kt | 2 +- .../kotlin/org/openapitools/api/PetApiTest.kt | 2 +- .../kotlin/org/openapitools/api/PetApiTest.kt | 2 +- .../kotlin/org/openapitools/api/PetApiTest.kt | 2 +- .../kotlin/org/openapitools/api/PetApiTest.kt | 2 +- .../kotlin/org/openapitools/api/PetApiTest.kt | 2 +- .../php-slim4/tests/Model/ApiResponseTest.php | 1 + .../php-slim4/tests/Model/CategoryTest.php | 1 + .../php-slim4/tests/Model/OrderTest.php | 1 + .../php-slim4/tests/Model/PetTest.php | 1 + .../php-slim4/tests/Model/TagTest.php | 1 + .../php-slim4/tests/Model/UserTest.php | 1 + .../Tests/Api/PetApiInterfaceTest.php | 4 +- .../Tests/Api/StoreApiInterfaceTest.php | 4 +- .../Tests/Api/UserApiInterfaceTest.php | 4 +- .../Tests/Model/ApiResponseTest.php | 5 +- .../Tests/Model/CategoryTest.php | 5 +- .../Tests/Model/OrderTest.php | 5 +- .../SymfonyBundle-php/Tests/Model/PetTest.php | 5 +- .../SymfonyBundle-php/Tests/Model/TagTest.php | 5 +- .../Tests/Model/UserTest.php | 5 +- .../tests/test_pet_controller.py | 57 +- .../tests/test_store_controller.py | 11 +- .../tests/test_user_controller.py | 23 +- .../test/test_pet_controller.py | 38 +- .../test/test_store_controller.py | 2 +- .../python-fastapi/tests/test_fake_api.py | 3 + .../python-fastapi/tests/test_pet_api.py | 3 + .../python-fastapi/tests/test_store_api.py | 3 + .../python-fastapi/tests/test_user_api.py | 3 + .../test/test_pet_controller.py | 10 +- .../test/test_store_controller.py | 5 +- .../test/test_user_controller.py | 26 +- .../sample/cask/model/ApiResponseTest.scala | 44 +- .../sample/cask/model/CategoryTest.scala | 44 +- .../scala/sample/cask/model/OrderTest.scala | 44 +- .../scala/sample/cask/model/PetTest.scala | 44 +- .../scala/sample/cask/model/TagTest.scala | 44 +- .../scala/sample/cask/model/UserTest.scala | 44 +- 2670 files changed, 17909 insertions(+), 15247 deletions(-) diff --git a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools.Test/Api/AuthApiTests.cs b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools.Test/Api/AuthApiTests.cs index 456245d7bab6..7aee0fb1720e 100644 --- a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools.Test/Api/AuthApiTests.cs +++ b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools.Test/Api/AuthApiTests.cs @@ -63,5 +63,16 @@ public void TestAuthHttpBasicTest() //var response = instance.TestAuthHttpBasic(); //Assert.IsType(response); } + + /// + /// Test TestAuthHttpBearer + /// + [Fact] + public void TestAuthHttpBearerTest() + { + // TODO uncomment below to test the method and replace null with proper value + //var response = instance.TestAuthHttpBearer(); + //Assert.IsType(response); + } } } diff --git a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools.Test/Api/BodyApiTests.cs b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools.Test/Api/BodyApiTests.cs index 06da198a3efa..44f3129559b7 100644 --- a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools.Test/Api/BodyApiTests.cs +++ b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools.Test/Api/BodyApiTests.cs @@ -19,7 +19,6 @@ using Org.OpenAPITools.Client; using Org.OpenAPITools.Api; -using Org.OpenAPITools.Model; // uncomment below to import models //using Org.OpenAPITools.Model; @@ -79,6 +78,42 @@ public void TestBodyApplicationOctetstreamBinaryTest() //Assert.IsType(response); } + /// + /// Test TestBodyMultipartFormdataArrayOfBinary + /// + [Fact] + public void TestBodyMultipartFormdataArrayOfBinaryTest() + { + // TODO uncomment below to test the method and replace null with proper value + //List files = null; + //var response = instance.TestBodyMultipartFormdataArrayOfBinary(files); + //Assert.IsType(response); + } + + /// + /// Test TestBodyMultipartFormdataSingleBinary + /// + [Fact] + public void TestBodyMultipartFormdataSingleBinaryTest() + { + // TODO uncomment below to test the method and replace null with proper value + //System.IO.Stream? myFile = null; + //var response = instance.TestBodyMultipartFormdataSingleBinary(myFile); + //Assert.IsType(response); + } + + /// + /// Test TestEchoBodyAllOfPet + /// + [Fact] + public void TestEchoBodyAllOfPetTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Pet? pet = null; + //var response = instance.TestEchoBodyAllOfPet(pet); + //Assert.IsType(response); + } + /// /// Test TestEchoBodyFreeFormObjectResponseString /// @@ -97,9 +132,10 @@ public void TestEchoBodyFreeFormObjectResponseStringTest() [Fact] public void TestEchoBodyPetTest() { - Pet? pet = new Pet(123, "cat", new Category() { Id = 12, Name = "Test" }, new List(){"http://google.com"},null, null); - var response = instance.TestEchoBodyPet(pet); - Assert.IsType(response); + // TODO uncomment below to test the method and replace null with proper value + //Pet? pet = null; + //var response = instance.TestEchoBodyPet(pet); + //Assert.IsType(response); } /// @@ -114,6 +150,18 @@ public void TestEchoBodyPetResponseStringTest() //Assert.IsType(response); } + /// + /// Test TestEchoBodyStringEnum + /// + [Fact] + public void TestEchoBodyStringEnumTest() + { + // TODO uncomment below to test the method and replace null with proper value + //string? body = null; + //var response = instance.TestEchoBodyStringEnum(body); + //Assert.IsType(response); + } + /// /// Test TestEchoBodyTagResponseString /// diff --git a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools.Test/Api/FormApiTests.cs b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools.Test/Api/FormApiTests.cs index d5bc490bddeb..00b610e43f03 100644 --- a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools.Test/Api/FormApiTests.cs +++ b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools.Test/Api/FormApiTests.cs @@ -19,6 +19,8 @@ using Org.OpenAPITools.Client; using Org.OpenAPITools.Api; +// uncomment below to import models +//using Org.OpenAPITools.Model; namespace Org.OpenAPITools.Test.Api { @@ -66,5 +68,34 @@ public void TestFormIntegerBooleanStringTest() //var response = instance.TestFormIntegerBooleanString(integerForm, booleanForm, stringForm); //Assert.IsType(response); } + + /// + /// Test TestFormObjectMultipart + /// + [Fact] + public void TestFormObjectMultipartTest() + { + // TODO uncomment below to test the method and replace null with proper value + //TestFormObjectMultipartRequestMarker marker = null; + //var response = instance.TestFormObjectMultipart(marker); + //Assert.IsType(response); + } + + /// + /// Test TestFormOneof + /// + [Fact] + public void TestFormOneofTest() + { + // TODO uncomment below to test the method and replace null with proper value + //string? form1 = null; + //int? form2 = null; + //string? form3 = null; + //bool? form4 = null; + //long? id = null; + //string? name = null; + //var response = instance.TestFormOneof(form1, form2, form3, form4, id, name); + //Assert.IsType(response); + } } } diff --git a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools.Test/Api/HeaderApiTests.cs b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools.Test/Api/HeaderApiTests.cs index a2e6d2032ede..4f2fbcffaf9f 100644 --- a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools.Test/Api/HeaderApiTests.cs +++ b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools.Test/Api/HeaderApiTests.cs @@ -19,6 +19,8 @@ using Org.OpenAPITools.Client; using Org.OpenAPITools.Api; +// uncomment below to import models +//using Org.OpenAPITools.Model; namespace Org.OpenAPITools.Test.Api { @@ -54,16 +56,18 @@ public void InstanceTest() } /// - /// Test TestHeaderIntegerBooleanString + /// Test TestHeaderIntegerBooleanStringEnums /// [Fact] - public void TestHeaderIntegerBooleanStringTest() + public void TestHeaderIntegerBooleanStringEnumsTest() { // TODO uncomment below to test the method and replace null with proper value //int? integerHeader = null; //bool? booleanHeader = null; //string? stringHeader = null; - //var response = instance.TestHeaderIntegerBooleanString(integerHeader, booleanHeader, stringHeader); + //string? enumNonrefStringHeader = null; + //StringEnumRef? enumRefStringHeader = null; + //var response = instance.TestHeaderIntegerBooleanStringEnums(integerHeader, booleanHeader, stringHeader, enumNonrefStringHeader, enumRefStringHeader); //Assert.IsType(response); } } diff --git a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools.Test/Api/PathApiTests.cs b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools.Test/Api/PathApiTests.cs index f2879c217dfb..bb27fd798dec 100644 --- a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools.Test/Api/PathApiTests.cs +++ b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools.Test/Api/PathApiTests.cs @@ -19,6 +19,8 @@ using Org.OpenAPITools.Client; using Org.OpenAPITools.Api; +// uncomment below to import models +//using Org.OpenAPITools.Model; namespace Org.OpenAPITools.Test.Api { @@ -54,15 +56,17 @@ public void InstanceTest() } /// - /// Test TestsPathStringPathStringIntegerPathInteger + /// Test TestsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath /// [Fact] - public void TestsPathStringPathStringIntegerPathIntegerTest() + public void TestsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathTest() { // TODO uncomment below to test the method and replace null with proper value //string pathString = null; //int pathInteger = null; - //var response = instance.TestsPathStringPathStringIntegerPathInteger(pathString, pathInteger); + //string enumNonrefStringPath = null; + //StringEnumRef enumRefStringPath = null; + //var response = instance.TestsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath(pathString, pathInteger, enumNonrefStringPath, enumRefStringPath); //Assert.IsType(response); } } diff --git a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools.Test/Api/QueryApiTests.cs b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools.Test/Api/QueryApiTests.cs index d551bb07dbc1..7c5e580130de 100644 --- a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools.Test/Api/QueryApiTests.cs +++ b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools.Test/Api/QueryApiTests.cs @@ -62,8 +62,9 @@ public void InstanceTest() public void TestEnumRefStringTest() { // TODO uncomment below to test the method and replace null with proper value + //string? enumNonrefStringQuery = null; //StringEnumRef? enumRefStringQuery = null; - //var response = instance.TestEnumRefString(enumRefStringQuery); + //var response = instance.TestEnumRefString(enumNonrefStringQuery, enumRefStringQuery); //Assert.IsType(response); } @@ -75,7 +76,7 @@ public void TestQueryDatetimeDateStringTest() { // TODO uncomment below to test the method and replace null with proper value //DateTime? datetimeQuery = null; - //DateTime? dateQuery = null; + //DateOnly? dateQuery = null; //string? stringQuery = null; //var response = instance.TestQueryDatetimeDateString(datetimeQuery, dateQuery, stringQuery); //Assert.IsType(response); @@ -119,6 +120,30 @@ public void TestQueryStyleDeepObjectExplodeTrueObjectAllOfTest() //Assert.IsType(response); } + /// + /// Test TestQueryStyleFormExplodeFalseArrayInteger + /// + [Fact] + public void TestQueryStyleFormExplodeFalseArrayIntegerTest() + { + // TODO uncomment below to test the method and replace null with proper value + //List? queryObject = null; + //var response = instance.TestQueryStyleFormExplodeFalseArrayInteger(queryObject); + //Assert.IsType(response); + } + + /// + /// Test TestQueryStyleFormExplodeFalseArrayString + /// + [Fact] + public void TestQueryStyleFormExplodeFalseArrayStringTest() + { + // TODO uncomment below to test the method and replace null with proper value + //List? queryObject = null; + //var response = instance.TestQueryStyleFormExplodeFalseArrayString(queryObject); + //Assert.IsType(response); + } + /// /// Test TestQueryStyleFormExplodeTrueArrayString /// diff --git a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools.Test/Model/NumberPropertiesOnlyTests.cs b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools.Test/Model/NumberPropertiesOnlyTests.cs index e889f6a7a2c1..300daf5c40fa 100644 --- a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools.Test/Model/NumberPropertiesOnlyTests.cs +++ b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools.Test/Model/NumberPropertiesOnlyTests.cs @@ -65,21 +65,21 @@ public void NumberTest() } /// - /// Test the property 'VarFloat' + /// Test the property 'Float' /// [Fact] - public void VarFloatTest() + public void FloatTest() { - // TODO unit test for the property 'VarFloat' + // TODO unit test for the property 'Float' } /// - /// Test the property 'VarDouble' + /// Test the property 'Double' /// [Fact] - public void VarDoubleTest() + public void DoubleTest() { - // TODO unit test for the property 'VarDouble' + // TODO unit test for the property 'Double' } } } diff --git a/samples/client/echo_api/go/test/api_auth_test.go b/samples/client/echo_api/go/test/api_auth_test.go index 7fa48739eb1f..e8fb1b22c051 100644 --- a/samples/client/echo_api/go/test/api_auth_test.go +++ b/samples/client/echo_api/go/test/api_auth_test.go @@ -34,4 +34,16 @@ func Test_openapi_AuthAPIService(t *testing.T) { }) + t.Run("Test AuthAPIService TestAuthHttpBearer", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.AuthAPI.TestAuthHttpBearer(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + } diff --git a/samples/client/echo_api/go/test/api_body_test.go b/samples/client/echo_api/go/test/api_body_test.go index 7bfd79b70ec6..3488cc1cb89f 100644 --- a/samples/client/echo_api/go/test/api_body_test.go +++ b/samples/client/echo_api/go/test/api_body_test.go @@ -11,12 +11,10 @@ package openapi import ( "context" - "os" - "testing" - - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" ) func Test_openapi_BodyAPIService(t *testing.T) { @@ -26,20 +24,19 @@ func Test_openapi_BodyAPIService(t *testing.T) { t.Run("Test BodyAPIService TestBinaryGif", func(t *testing.T) { + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.BodyAPI.TestBinaryGif(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) - f, err := os.Stat(resp.Name()) - require.Nil(t, err) - require.Greater(t, f.Size(), int64(0)) }) t.Run("Test BodyAPIService TestBodyApplicationOctetstreamBinary", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.BodyAPI.TestBodyApplicationOctetstreamBinary(context.Background()).Execute() @@ -51,7 +48,7 @@ func Test_openapi_BodyAPIService(t *testing.T) { t.Run("Test BodyAPIService TestBodyMultipartFormdataArrayOfBinary", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.BodyAPI.TestBodyMultipartFormdataArrayOfBinary(context.Background()).Execute() @@ -61,9 +58,33 @@ func Test_openapi_BodyAPIService(t *testing.T) { }) + t.Run("Test BodyAPIService TestBodyMultipartFormdataSingleBinary", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.BodyAPI.TestBodyMultipartFormdataSingleBinary(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test BodyAPIService TestEchoBodyAllOfPet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.BodyAPI.TestEchoBodyAllOfPet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test BodyAPIService TestEchoBodyFreeFormObjectResponseString", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.BodyAPI.TestEchoBodyFreeFormObjectResponseString(context.Background()).Execute() @@ -75,7 +96,7 @@ func Test_openapi_BodyAPIService(t *testing.T) { t.Run("Test BodyAPIService TestEchoBodyPet", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.BodyAPI.TestEchoBodyPet(context.Background()).Execute() @@ -87,7 +108,7 @@ func Test_openapi_BodyAPIService(t *testing.T) { t.Run("Test BodyAPIService TestEchoBodyPetResponseString", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.BodyAPI.TestEchoBodyPetResponseString(context.Background()).Execute() @@ -97,9 +118,21 @@ func Test_openapi_BodyAPIService(t *testing.T) { }) + t.Run("Test BodyAPIService TestEchoBodyStringEnum", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.BodyAPI.TestEchoBodyStringEnum(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test BodyAPIService TestEchoBodyTagResponseString", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.BodyAPI.TestEchoBodyTagResponseString(context.Background()).Execute() diff --git a/samples/client/echo_api/go/test/api_form_test.go b/samples/client/echo_api/go/test/api_form_test.go index fbb3916d44dc..c570661727fc 100644 --- a/samples/client/echo_api/go/test/api_form_test.go +++ b/samples/client/echo_api/go/test/api_form_test.go @@ -34,6 +34,18 @@ func Test_openapi_FormAPIService(t *testing.T) { }) + t.Run("Test FormAPIService TestFormObjectMultipart", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.FormAPI.TestFormObjectMultipart(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test FormAPIService TestFormOneof", func(t *testing.T) { t.Skip("skip test") // remove to run test diff --git a/samples/client/echo_api/go/test/api_header_test.go b/samples/client/echo_api/go/test/api_header_test.go index 37ad22567fd8..6013c51c8fb1 100644 --- a/samples/client/echo_api/go/test/api_header_test.go +++ b/samples/client/echo_api/go/test/api_header_test.go @@ -11,11 +11,10 @@ package openapi import ( "context" - "testing" - - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" ) func Test_openapi_HeaderAPIService(t *testing.T) { @@ -23,9 +22,9 @@ func Test_openapi_HeaderAPIService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - t.Run("Test HeaderAPIService TestHeaderIntegerBooleanString", func(t *testing.T) { + t.Run("Test HeaderAPIService TestHeaderIntegerBooleanStringEnums", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.HeaderAPI.TestHeaderIntegerBooleanStringEnums(context.Background()).Execute() diff --git a/samples/client/echo_api/go/test/api_path_test.go b/samples/client/echo_api/go/test/api_path_test.go index 5364670a18ca..2217059235b5 100644 --- a/samples/client/echo_api/go/test/api_path_test.go +++ b/samples/client/echo_api/go/test/api_path_test.go @@ -11,11 +11,10 @@ package openapi import ( "context" - "testing" - - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" ) func Test_openapi_PathAPIService(t *testing.T) { @@ -23,14 +22,16 @@ func Test_openapi_PathAPIService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - t.Run("Test PathAPIService TestsPathStringPathStringIntegerPathInteger", func(t *testing.T) { + t.Run("Test PathAPIService TestsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var pathString string var pathInteger int32 + var enumNonrefStringPath string + var enumRefStringPath StringEnumRef - resp, httpRes, err := apiClient.PathAPI.TestsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath(context.Background(), pathString, pathInteger, pathString, openapiclient.SUCCESS).Execute() + resp, httpRes, err := apiClient.PathAPI.TestsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath(context.Background(), pathString, pathInteger, enumNonrefStringPath, enumRefStringPath).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/samples/client/echo_api/go/test/api_query_test.go b/samples/client/echo_api/go/test/api_query_test.go index b22f42057be9..161ca1c791a9 100644 --- a/samples/client/echo_api/go/test/api_query_test.go +++ b/samples/client/echo_api/go/test/api_query_test.go @@ -82,6 +82,30 @@ func Test_openapi_QueryAPIService(t *testing.T) { }) + t.Run("Test QueryAPIService TestQueryStyleFormExplodeFalseArrayInteger", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.QueryAPI.TestQueryStyleFormExplodeFalseArrayInteger(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test QueryAPIService TestQueryStyleFormExplodeFalseArrayString", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.QueryAPI.TestQueryStyleFormExplodeFalseArrayString(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test QueryAPIService TestQueryStyleFormExplodeTrueArrayString", func(t *testing.T) { t.Skip("skip test") // remove to run test diff --git a/samples/client/echo_api/java/apache-httpclient/src/test/java/org/openapitools/client/api/AuthApiTest.java b/samples/client/echo_api/java/apache-httpclient/src/test/java/org/openapitools/client/api/AuthApiTest.java index 81b483fa7069..7dbdc2b85c87 100644 --- a/samples/client/echo_api/java/apache-httpclient/src/test/java/org/openapitools/client/api/AuthApiTest.java +++ b/samples/client/echo_api/java/apache-httpclient/src/test/java/org/openapitools/client/api/AuthApiTest.java @@ -14,9 +14,9 @@ package org.openapitools.client.api; import org.openapitools.client.ApiException; -import org.junit.jupiter.api.Test; -import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; import java.time.LocalDate; import java.time.OffsetDateTime; @@ -28,6 +28,7 @@ /** * API tests for AuthApi */ +@Disabled public class AuthApiTest { private final AuthApi api = new AuthApi(); @@ -56,13 +57,8 @@ public void testAuthHttpBasicTest() throws ApiException { */ @Test public void testAuthHttpBearerTest() throws ApiException { - String response; - api.getApiClient().setBearerToken("fixed token"); - response = api.testAuthHttpBearer(); - Assertions.assertTrue(response.contains("Authorization: Bearer fixed token")); + String response = api.testAuthHttpBearer(); - api.getApiClient().setBearerToken(() -> "dynamic token"); - response = api.testAuthHttpBearer(); - Assertions.assertTrue(response.contains("Authorization: Bearer dynamic token")); + // TODO: test validations } } diff --git a/samples/client/echo_api/java/apache-httpclient/src/test/java/org/openapitools/client/api/BodyApiTest.java b/samples/client/echo_api/java/apache-httpclient/src/test/java/org/openapitools/client/api/BodyApiTest.java index ef13f819e634..24ebc6776e58 100644 --- a/samples/client/echo_api/java/apache-httpclient/src/test/java/org/openapitools/client/api/BodyApiTest.java +++ b/samples/client/echo_api/java/apache-httpclient/src/test/java/org/openapitools/client/api/BodyApiTest.java @@ -14,10 +14,13 @@ package org.openapitools.client.api; import org.openapitools.client.ApiException; +import java.io.File; import org.openapitools.client.model.Pet; -import org.junit.jupiter.api.Test; -import org.junit.jupiter.api.Disabled; +import org.openapitools.client.model.StringEnumRef; +import org.openapitools.client.model.Tag; import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; import java.time.LocalDate; import java.time.OffsetDateTime; @@ -34,6 +37,95 @@ public class BodyApiTest { private final BodyApi api = new BodyApi(); + /** + * Test binary (gif) response body + * + * Test binary (gif) response body + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void testBinaryGifTest() throws ApiException { + File response = api.testBinaryGif(); + + // TODO: test validations + } + /** + * Test body parameter(s) + * + * Test body parameter(s) + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void testBodyApplicationOctetstreamBinaryTest() throws ApiException { + File body = null; + String response = api.testBodyApplicationOctetstreamBinary(body); + + // TODO: test validations + } + /** + * Test array of binary in multipart mime + * + * Test array of binary in multipart mime + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void testBodyMultipartFormdataArrayOfBinaryTest() throws ApiException { + List files = null; + String response = api.testBodyMultipartFormdataArrayOfBinary(files); + + // TODO: test validations + } + /** + * Test single binary in multipart mime + * + * Test single binary in multipart mime + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void testBodyMultipartFormdataSingleBinaryTest() throws ApiException { + File myFile = null; + String response = api.testBodyMultipartFormdataSingleBinary(myFile); + + // TODO: test validations + } + /** + * Test body parameter(s) + * + * Test body parameter(s) + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void testEchoBodyAllOfPetTest() throws ApiException { + Pet pet = null; + Pet response = api.testEchoBodyAllOfPet(pet); + + // TODO: test validations + } + /** + * Test free form object + * + * Test free form object + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void testEchoBodyFreeFormObjectResponseStringTest() throws ApiException { + Object body = null; + String response = api.testEchoBodyFreeFormObjectResponseString(body); + + // TODO: test validations + } /** * Test body parameter(s) * @@ -47,6 +139,51 @@ public void testEchoBodyPetTest() throws ApiException { Pet pet = null; Pet response = api.testEchoBodyPet(pet); + // TODO: test validations + } + /** + * Test empty response body + * + * Test empty response body + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void testEchoBodyPetResponseStringTest() throws ApiException { + Pet pet = null; + String response = api.testEchoBodyPetResponseString(pet); + + // TODO: test validations + } + /** + * Test string enum response body + * + * Test string enum response body + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void testEchoBodyStringEnumTest() throws ApiException { + String body = null; + StringEnumRef response = api.testEchoBodyStringEnum(body); + + // TODO: test validations + } + /** + * Test empty json (request body) + * + * Test empty json (request body) + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void testEchoBodyTagResponseStringTest() throws ApiException { + Tag tag = null; + String response = api.testEchoBodyTagResponseString(tag); + // TODO: test validations } } diff --git a/samples/client/echo_api/java/apache-httpclient/src/test/java/org/openapitools/client/api/FormApiTest.java b/samples/client/echo_api/java/apache-httpclient/src/test/java/org/openapitools/client/api/FormApiTest.java index a308e36d2c3e..46e31ab289d5 100644 --- a/samples/client/echo_api/java/apache-httpclient/src/test/java/org/openapitools/client/api/FormApiTest.java +++ b/samples/client/echo_api/java/apache-httpclient/src/test/java/org/openapitools/client/api/FormApiTest.java @@ -14,9 +14,10 @@ package org.openapitools.client.api; import org.openapitools.client.ApiException; -import org.junit.jupiter.api.Test; -import org.junit.jupiter.api.Disabled; +import org.openapitools.client.model.TestFormObjectMultipartRequestMarker; import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; import java.time.LocalDate; import java.time.OffsetDateTime; @@ -48,6 +49,41 @@ public void testFormIntegerBooleanStringTest() throws ApiException { String stringForm = null; String response = api.testFormIntegerBooleanString(integerForm, booleanForm, stringForm); + // TODO: test validations + } + /** + * Test form parameter(s) for multipart schema + * + * Test form parameter(s) for multipart schema + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void testFormObjectMultipartTest() throws ApiException { + TestFormObjectMultipartRequestMarker marker = null; + String response = api.testFormObjectMultipart(marker); + + // TODO: test validations + } + /** + * Test form parameter(s) for oneOf schema + * + * Test form parameter(s) for oneOf schema + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void testFormOneofTest() throws ApiException { + String form1 = null; + Integer form2 = null; + String form3 = null; + Boolean form4 = null; + Long id = null; + String name = null; + String response = api.testFormOneof(form1, form2, form3, form4, id, name); + // TODO: test validations } } diff --git a/samples/client/echo_api/java/apache-httpclient/src/test/java/org/openapitools/client/api/HeaderApiTest.java b/samples/client/echo_api/java/apache-httpclient/src/test/java/org/openapitools/client/api/HeaderApiTest.java index 3f0ec9214bf3..7163eba08e52 100644 --- a/samples/client/echo_api/java/apache-httpclient/src/test/java/org/openapitools/client/api/HeaderApiTest.java +++ b/samples/client/echo_api/java/apache-httpclient/src/test/java/org/openapitools/client/api/HeaderApiTest.java @@ -15,9 +15,9 @@ import org.openapitools.client.ApiException; import org.openapitools.client.model.StringEnumRef; -import org.junit.jupiter.api.Test; -import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; import java.time.LocalDate; import java.time.OffsetDateTime; diff --git a/samples/client/echo_api/java/apache-httpclient/src/test/java/org/openapitools/client/api/PathApiTest.java b/samples/client/echo_api/java/apache-httpclient/src/test/java/org/openapitools/client/api/PathApiTest.java index 3759bdee97a6..ccf40d623aef 100644 --- a/samples/client/echo_api/java/apache-httpclient/src/test/java/org/openapitools/client/api/PathApiTest.java +++ b/samples/client/echo_api/java/apache-httpclient/src/test/java/org/openapitools/client/api/PathApiTest.java @@ -15,9 +15,9 @@ import org.openapitools.client.ApiException; import org.openapitools.client.model.StringEnumRef; -import org.junit.jupiter.api.Test; -import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; import java.time.LocalDate; import java.time.OffsetDateTime; diff --git a/samples/client/echo_api/java/apache-httpclient/src/test/java/org/openapitools/client/api/QueryApiTest.java b/samples/client/echo_api/java/apache-httpclient/src/test/java/org/openapitools/client/api/QueryApiTest.java index 069bf4bd3267..dbc1022fb02c 100644 --- a/samples/client/echo_api/java/apache-httpclient/src/test/java/org/openapitools/client/api/QueryApiTest.java +++ b/samples/client/echo_api/java/apache-httpclient/src/test/java/org/openapitools/client/api/QueryApiTest.java @@ -14,11 +14,16 @@ package org.openapitools.client.api; import org.openapitools.client.ApiException; +import org.openapitools.client.model.DataQuery; +import java.time.LocalDate; +import java.time.OffsetDateTime; import org.openapitools.client.model.Pet; +import org.openapitools.client.model.StringEnumRef; +import org.openapitools.client.model.TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter; import org.openapitools.client.model.TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter; -import org.junit.jupiter.api.Test; -import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; import java.time.LocalDate; import java.time.OffsetDateTime; @@ -35,6 +40,39 @@ public class QueryApiTest { private final QueryApi api = new QueryApi(); + /** + * Test query parameter(s) + * + * Test query parameter(s) + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void testEnumRefStringTest() throws ApiException { + String enumNonrefStringQuery = null; + StringEnumRef enumRefStringQuery = null; + String response = api.testEnumRefString(enumNonrefStringQuery, enumRefStringQuery); + + // TODO: test validations + } + /** + * Test query parameter(s) + * + * Test query parameter(s) + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void testQueryDatetimeDateStringTest() throws ApiException { + OffsetDateTime datetimeQuery = null; + LocalDate dateQuery = null; + String stringQuery = null; + String response = api.testQueryDatetimeDateString(datetimeQuery, dateQuery, stringQuery); + + // TODO: test validations + } /** * Test query parameter(s) * @@ -61,6 +99,66 @@ public void testQueryIntegerBooleanStringTest() throws ApiException { * if the Api call fails */ @Test + public void testQueryStyleDeepObjectExplodeTrueObjectTest() throws ApiException { + Pet queryObject = null; + String response = api.testQueryStyleDeepObjectExplodeTrueObject(queryObject); + + // TODO: test validations + } + /** + * Test query parameter(s) + * + * Test query parameter(s) + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void testQueryStyleDeepObjectExplodeTrueObjectAllOfTest() throws ApiException { + TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter queryObject = null; + String response = api.testQueryStyleDeepObjectExplodeTrueObjectAllOf(queryObject); + + // TODO: test validations + } + /** + * Test query parameter(s) + * + * Test query parameter(s) + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void testQueryStyleFormExplodeFalseArrayIntegerTest() throws ApiException { + List queryObject = null; + String response = api.testQueryStyleFormExplodeFalseArrayInteger(queryObject); + + // TODO: test validations + } + /** + * Test query parameter(s) + * + * Test query parameter(s) + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void testQueryStyleFormExplodeFalseArrayStringTest() throws ApiException { + List queryObject = null; + String response = api.testQueryStyleFormExplodeFalseArrayString(queryObject); + + // TODO: test validations + } + /** + * Test query parameter(s) + * + * Test query parameter(s) + * + * @throws ApiException + * if the Api call fails + */ + @Test public void testQueryStyleFormExplodeTrueArrayStringTest() throws ApiException { TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter queryObject = null; String response = api.testQueryStyleFormExplodeTrueArrayString(queryObject); @@ -80,6 +178,21 @@ public void testQueryStyleFormExplodeTrueObjectTest() throws ApiException { Pet queryObject = null; String response = api.testQueryStyleFormExplodeTrueObject(queryObject); + // TODO: test validations + } + /** + * Test query parameter(s) + * + * Test query parameter(s) + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void testQueryStyleFormExplodeTrueObjectAllOfTest() throws ApiException { + DataQuery queryObject = null; + String response = api.testQueryStyleFormExplodeTrueObjectAllOf(queryObject); + // TODO: test validations } } diff --git a/samples/client/echo_api/java/apache-httpclient/src/test/java/org/openapitools/client/model/BirdTest.java b/samples/client/echo_api/java/apache-httpclient/src/test/java/org/openapitools/client/model/BirdTest.java index 31323a96d3d3..ec1f99fb9c78 100644 --- a/samples/client/echo_api/java/apache-httpclient/src/test/java/org/openapitools/client/model/BirdTest.java +++ b/samples/client/echo_api/java/apache-httpclient/src/test/java/org/openapitools/client/model/BirdTest.java @@ -22,18 +22,17 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Bird */ -public class BirdTest { +class BirdTest { private final Bird model = new Bird(); /** * Model tests for Bird */ @Test - public void testBird() { + void testBird() { // TODO: test Bird } @@ -41,7 +40,7 @@ public void testBird() { * Test the property 'size' */ @Test - public void sizeTest() { + void sizeTest() { // TODO: test size } @@ -49,7 +48,7 @@ public void sizeTest() { * Test the property 'color' */ @Test - public void colorTest() { + void colorTest() { // TODO: test color } diff --git a/samples/client/echo_api/java/apache-httpclient/src/test/java/org/openapitools/client/model/CategoryTest.java b/samples/client/echo_api/java/apache-httpclient/src/test/java/org/openapitools/client/model/CategoryTest.java index e32182d690f6..f0d26f9ea167 100644 --- a/samples/client/echo_api/java/apache-httpclient/src/test/java/org/openapitools/client/model/CategoryTest.java +++ b/samples/client/echo_api/java/apache-httpclient/src/test/java/org/openapitools/client/model/CategoryTest.java @@ -22,18 +22,17 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Category */ -public class CategoryTest { +class CategoryTest { private final Category model = new Category(); /** * Model tests for Category */ @Test - public void testCategory() { + void testCategory() { // TODO: test Category } @@ -41,7 +40,7 @@ public void testCategory() { * Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } @@ -49,7 +48,7 @@ public void idTest() { * Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } diff --git a/samples/client/echo_api/java/apache-httpclient/src/test/java/org/openapitools/client/model/DataQueryTest.java b/samples/client/echo_api/java/apache-httpclient/src/test/java/org/openapitools/client/model/DataQueryTest.java index 7916c47947c7..6d835f331aed 100644 --- a/samples/client/echo_api/java/apache-httpclient/src/test/java/org/openapitools/client/model/DataQueryTest.java +++ b/samples/client/echo_api/java/apache-httpclient/src/test/java/org/openapitools/client/model/DataQueryTest.java @@ -20,57 +20,65 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.time.OffsetDateTime; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.Query; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for DataQuery */ -public class DataQueryTest { +class DataQueryTest { private final DataQuery model = new DataQuery(); /** * Model tests for DataQuery */ @Test - public void testDataQuery() { + void testDataQuery() { // TODO: test DataQuery } /** - * Test the property 'text' + * Test the property 'id' */ @Test - public void textTest() { - // TODO: test text + void idTest() { + // TODO: test id } /** - * Test the property 'date' + * Test the property 'outcomes' */ @Test - public void dateTest() { - // TODO: test date + void outcomesTest() { + // TODO: test outcomes } /** - * Test the property 'id' + * Test the property 'suffix' */ @Test - public void idTest() { - // TODO: test id + void suffixTest() { + // TODO: test suffix } /** - * Test the property 'outcomes' + * Test the property 'text' */ @Test - public void outcomesTest() { - // TODO: test outcomes + void textTest() { + // TODO: test text + } + + /** + * Test the property 'date' + */ + @Test + void dateTest() { + // TODO: test date } } diff --git a/samples/client/echo_api/java/apache-httpclient/src/test/java/org/openapitools/client/model/DefaultValueTest.java b/samples/client/echo_api/java/apache-httpclient/src/test/java/org/openapitools/client/model/DefaultValueTest.java index 4de417ac0324..c5c50cd558e7 100644 --- a/samples/client/echo_api/java/apache-httpclient/src/test/java/org/openapitools/client/model/DefaultValueTest.java +++ b/samples/client/echo_api/java/apache-httpclient/src/test/java/org/openapitools/client/model/DefaultValueTest.java @@ -19,7 +19,9 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import org.openapitools.client.model.StringEnumRef; import org.openapitools.jackson.nullable.JsonNullable; import com.fasterxml.jackson.annotation.JsonIgnore; import org.openapitools.jackson.nullable.JsonNullable; @@ -28,26 +30,33 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for DefaultValue */ -public class DefaultValueTest { +class DefaultValueTest { private final DefaultValue model = new DefaultValue(); /** * Model tests for DefaultValue */ @Test - public void testDefaultValue() { + void testDefaultValue() { // TODO: test DefaultValue } + /** + * Test the property 'arrayStringEnumRefDefault' + */ + @Test + void arrayStringEnumRefDefaultTest() { + // TODO: test arrayStringEnumRefDefault + } + /** * Test the property 'arrayStringEnumDefault' */ @Test - public void arrayStringEnumDefaultTest() { + void arrayStringEnumDefaultTest() { // TODO: test arrayStringEnumDefault } @@ -55,7 +64,7 @@ public void arrayStringEnumDefaultTest() { * Test the property 'arrayStringDefault' */ @Test - public void arrayStringDefaultTest() { + void arrayStringDefaultTest() { // TODO: test arrayStringDefault } @@ -63,7 +72,7 @@ public void arrayStringDefaultTest() { * Test the property 'arrayIntegerDefault' */ @Test - public void arrayIntegerDefaultTest() { + void arrayIntegerDefaultTest() { // TODO: test arrayIntegerDefault } @@ -71,7 +80,7 @@ public void arrayIntegerDefaultTest() { * Test the property 'arrayString' */ @Test - public void arrayStringTest() { + void arrayStringTest() { // TODO: test arrayString } @@ -79,15 +88,23 @@ public void arrayStringTest() { * Test the property 'arrayStringNullable' */ @Test - public void arrayStringNullableTest() { + void arrayStringNullableTest() { // TODO: test arrayStringNullable } + /** + * Test the property 'arrayStringExtensionNullable' + */ + @Test + void arrayStringExtensionNullableTest() { + // TODO: test arrayStringExtensionNullable + } + /** * Test the property 'stringNullable' */ @Test - public void stringNullableTest() { + void stringNullableTest() { // TODO: test stringNullable } diff --git a/samples/client/echo_api/java/apache-httpclient/src/test/java/org/openapitools/client/model/NumberPropertiesOnlyTest.java b/samples/client/echo_api/java/apache-httpclient/src/test/java/org/openapitools/client/model/NumberPropertiesOnlyTest.java index ccc2e77abc45..66d88b69519f 100644 --- a/samples/client/echo_api/java/apache-httpclient/src/test/java/org/openapitools/client/model/NumberPropertiesOnlyTest.java +++ b/samples/client/echo_api/java/apache-httpclient/src/test/java/org/openapitools/client/model/NumberPropertiesOnlyTest.java @@ -23,18 +23,17 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for NumberPropertiesOnly */ -public class NumberPropertiesOnlyTest { +class NumberPropertiesOnlyTest { private final NumberPropertiesOnly model = new NumberPropertiesOnly(); /** * Model tests for NumberPropertiesOnly */ @Test - public void testNumberPropertiesOnly() { + void testNumberPropertiesOnly() { // TODO: test NumberPropertiesOnly } @@ -42,7 +41,7 @@ public void testNumberPropertiesOnly() { * Test the property 'number' */ @Test - public void numberTest() { + void numberTest() { // TODO: test number } @@ -50,7 +49,7 @@ public void numberTest() { * Test the property '_float' */ @Test - public void _floatTest() { + void _floatTest() { // TODO: test _float } @@ -58,7 +57,7 @@ public void _floatTest() { * Test the property '_double' */ @Test - public void _doubleTest() { + void _doubleTest() { // TODO: test _double } diff --git a/samples/client/echo_api/java/apache-httpclient/src/test/java/org/openapitools/client/model/PetTest.java b/samples/client/echo_api/java/apache-httpclient/src/test/java/org/openapitools/client/model/PetTest.java index 1d5a7048a560..f6536444b01d 100644 --- a/samples/client/echo_api/java/apache-httpclient/src/test/java/org/openapitools/client/model/PetTest.java +++ b/samples/client/echo_api/java/apache-httpclient/src/test/java/org/openapitools/client/model/PetTest.java @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.Category; import org.openapitools.client.model.Tag; @@ -26,18 +27,17 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Pet */ -public class PetTest { +class PetTest { private final Pet model = new Pet(); /** * Model tests for Pet */ @Test - public void testPet() { + void testPet() { // TODO: test Pet } @@ -45,7 +45,7 @@ public void testPet() { * Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } @@ -53,7 +53,7 @@ public void idTest() { * Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } @@ -61,7 +61,7 @@ public void nameTest() { * Test the property 'category' */ @Test - public void categoryTest() { + void categoryTest() { // TODO: test category } @@ -69,7 +69,7 @@ public void categoryTest() { * Test the property 'photoUrls' */ @Test - public void photoUrlsTest() { + void photoUrlsTest() { // TODO: test photoUrls } @@ -77,7 +77,7 @@ public void photoUrlsTest() { * Test the property 'tags' */ @Test - public void tagsTest() { + void tagsTest() { // TODO: test tags } @@ -85,7 +85,7 @@ public void tagsTest() { * Test the property 'status' */ @Test - public void statusTest() { + void statusTest() { // TODO: test status } diff --git a/samples/client/echo_api/java/apache-httpclient/src/test/java/org/openapitools/client/model/QueryTest.java b/samples/client/echo_api/java/apache-httpclient/src/test/java/org/openapitools/client/model/QueryTest.java index 48e1fbe6af98..fa0bd0293bd7 100644 --- a/samples/client/echo_api/java/apache-httpclient/src/test/java/org/openapitools/client/model/QueryTest.java +++ b/samples/client/echo_api/java/apache-httpclient/src/test/java/org/openapitools/client/model/QueryTest.java @@ -19,23 +19,23 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Query */ -public class QueryTest { +class QueryTest { private final Query model = new Query(); /** * Model tests for Query */ @Test - public void testQuery() { + void testQuery() { // TODO: test Query } @@ -43,7 +43,7 @@ public void testQuery() { * Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } @@ -51,7 +51,7 @@ public void idTest() { * Test the property 'outcomes' */ @Test - public void outcomesTest() { + void outcomesTest() { // TODO: test outcomes } diff --git a/samples/client/echo_api/java/apache-httpclient/src/test/java/org/openapitools/client/model/StringEnumRefTest.java b/samples/client/echo_api/java/apache-httpclient/src/test/java/org/openapitools/client/model/StringEnumRefTest.java index 767df43f315f..24bac66784be 100644 --- a/samples/client/echo_api/java/apache-httpclient/src/test/java/org/openapitools/client/model/StringEnumRefTest.java +++ b/samples/client/echo_api/java/apache-httpclient/src/test/java/org/openapitools/client/model/StringEnumRefTest.java @@ -17,16 +17,15 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for StringEnumRef */ -public class StringEnumRefTest { +class StringEnumRefTest { /** * Model tests for StringEnumRef */ @Test - public void testStringEnumRef() { + void testStringEnumRef() { // TODO: test StringEnumRef } diff --git a/samples/client/echo_api/java/apache-httpclient/src/test/java/org/openapitools/client/model/TagTest.java b/samples/client/echo_api/java/apache-httpclient/src/test/java/org/openapitools/client/model/TagTest.java index 5af2a8f54cc1..e444ad14095a 100644 --- a/samples/client/echo_api/java/apache-httpclient/src/test/java/org/openapitools/client/model/TagTest.java +++ b/samples/client/echo_api/java/apache-httpclient/src/test/java/org/openapitools/client/model/TagTest.java @@ -22,18 +22,17 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Tag */ -public class TagTest { +class TagTest { private final Tag model = new Tag(); /** * Model tests for Tag */ @Test - public void testTag() { + void testTag() { // TODO: test Tag } @@ -41,7 +40,7 @@ public void testTag() { * Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } @@ -49,7 +48,7 @@ public void idTest() { * Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } diff --git a/samples/client/echo_api/java/apache-httpclient/src/test/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarkerTest.java b/samples/client/echo_api/java/apache-httpclient/src/test/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarkerTest.java index d5d0fc51cc1d..178d1b8013dd 100644 --- a/samples/client/echo_api/java/apache-httpclient/src/test/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarkerTest.java +++ b/samples/client/echo_api/java/apache-httpclient/src/test/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarkerTest.java @@ -25,14 +25,14 @@ /** * Model tests for TestFormObjectMultipartRequestMarker */ -public class TestFormObjectMultipartRequestMarkerTest { +class TestFormObjectMultipartRequestMarkerTest { private final TestFormObjectMultipartRequestMarker model = new TestFormObjectMultipartRequestMarker(); /** * Model tests for TestFormObjectMultipartRequestMarker */ @Test - public void testTestFormObjectMultipartRequestMarker() { + void testTestFormObjectMultipartRequestMarker() { // TODO: test TestFormObjectMultipartRequestMarker } @@ -40,7 +40,7 @@ public void testTestFormObjectMultipartRequestMarker() { * Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } diff --git a/samples/client/echo_api/java/apache-httpclient/src/test/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameterTest.java b/samples/client/echo_api/java/apache-httpclient/src/test/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameterTest.java index b90b1e4cd200..de68c2a50472 100644 --- a/samples/client/echo_api/java/apache-httpclient/src/test/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameterTest.java +++ b/samples/client/echo_api/java/apache-httpclient/src/test/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameterTest.java @@ -22,18 +22,17 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter */ -public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameterTest { +class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameterTest { private final TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter model = new TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter(); /** * Model tests for TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter */ @Test - public void testTestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter() { + void testTestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter() { // TODO: test TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter } @@ -41,7 +40,7 @@ public void testTestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParamet * Test the property 'size' */ @Test - public void sizeTest() { + void sizeTest() { // TODO: test size } @@ -49,7 +48,7 @@ public void sizeTest() { * Test the property 'color' */ @Test - public void colorTest() { + void colorTest() { // TODO: test color } @@ -57,7 +56,7 @@ public void colorTest() { * Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } @@ -65,7 +64,7 @@ public void idTest() { * Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } diff --git a/samples/client/echo_api/java/apache-httpclient/src/test/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameterTest.java b/samples/client/echo_api/java/apache-httpclient/src/test/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameterTest.java index 910af6a663d2..e85ace643499 100644 --- a/samples/client/echo_api/java/apache-httpclient/src/test/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameterTest.java +++ b/samples/client/echo_api/java/apache-httpclient/src/test/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameterTest.java @@ -19,23 +19,23 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter */ -public class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameterTest { +class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameterTest { private final TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter model = new TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter(); /** * Model tests for TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter */ @Test - public void testTestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter() { + void testTestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter() { // TODO: test TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter } @@ -43,7 +43,7 @@ public void testTestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter() { * Test the property 'values' */ @Test - public void valuesTest() { + void valuesTest() { // TODO: test values } diff --git a/samples/client/echo_api/java/feign-gson/src/test/java/org/openapitools/client/api/AuthApiTest.java b/samples/client/echo_api/java/feign-gson/src/test/java/org/openapitools/client/api/AuthApiTest.java index f53e1f75b5df..581e79f5f0e1 100644 --- a/samples/client/echo_api/java/feign-gson/src/test/java/org/openapitools/client/api/AuthApiTest.java +++ b/samples/client/echo_api/java/feign-gson/src/test/java/org/openapitools/client/api/AuthApiTest.java @@ -1,7 +1,5 @@ package org.openapitools.client.api; -import feign.codec.StringDecoder; -import org.junit.jupiter.api.Assertions; import org.openapitools.client.ApiClient; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.BeforeEach; @@ -46,20 +44,9 @@ void testAuthHttpBasicTest() { */ @Test void testAuthHttpBearerTest() { - ApiClient client = new ApiClient("http_bearer_auth"); - client.getFeignBuilder().decoder(new StringDecoder()); - { - client.setBearerToken("fixed token"); - AuthApi api = client.buildClient(AuthApi.class); - String response = api.testAuthHttpBearer(); - Assertions.assertTrue(response.contains("Authorization: Bearer fixed token")); - } - { - client.setBearerToken(() -> "dynamic token"); - AuthApi api = client.buildClient(AuthApi.class); - String response = api.testAuthHttpBearer(); - Assertions.assertTrue(response.contains("Authorization: Bearer dynamic token")); - } + // String response = api.testAuthHttpBearer(); + + // TODO: test validations } diff --git a/samples/client/echo_api/java/feign-gson/src/test/java/org/openapitools/client/api/BodyApiTest.java b/samples/client/echo_api/java/feign-gson/src/test/java/org/openapitools/client/api/BodyApiTest.java index 24c71b360761..2b2512904c5b 100644 --- a/samples/client/echo_api/java/feign-gson/src/test/java/org/openapitools/client/api/BodyApiTest.java +++ b/samples/client/echo_api/java/feign-gson/src/test/java/org/openapitools/client/api/BodyApiTest.java @@ -1,7 +1,10 @@ package org.openapitools.client.api; import org.openapitools.client.ApiClient; +import java.io.File; import org.openapitools.client.model.Pet; +import org.openapitools.client.model.StringEnumRef; +import org.openapitools.client.model.Tag; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.BeforeEach; @@ -25,6 +28,89 @@ public void setup() { } + /** + * Test binary (gif) response body + * + * Test binary (gif) response body + */ + @Test + void testBinaryGifTest() { + // File response = api.testBinaryGif(); + + // TODO: test validations + } + + + /** + * Test body parameter(s) + * + * Test body parameter(s) + */ + @Test + void testBodyApplicationOctetstreamBinaryTest() { + File body = null; + // String response = api.testBodyApplicationOctetstreamBinary(body); + + // TODO: test validations + } + + + /** + * Test array of binary in multipart mime + * + * Test array of binary in multipart mime + */ + @Test + void testBodyMultipartFormdataArrayOfBinaryTest() { + List files = null; + // String response = api.testBodyMultipartFormdataArrayOfBinary(files); + + // TODO: test validations + } + + + /** + * Test single binary in multipart mime + * + * Test single binary in multipart mime + */ + @Test + void testBodyMultipartFormdataSingleBinaryTest() { + File myFile = null; + // String response = api.testBodyMultipartFormdataSingleBinary(myFile); + + // TODO: test validations + } + + + /** + * Test body parameter(s) + * + * Test body parameter(s) + */ + @Test + void testEchoBodyAllOfPetTest() { + Pet pet = null; + // Pet response = api.testEchoBodyAllOfPet(pet); + + // TODO: test validations + } + + + /** + * Test free form object + * + * Test free form object + */ + @Test + void testEchoBodyFreeFormObjectResponseStringTest() { + Object body = null; + // String response = api.testEchoBodyFreeFormObjectResponseString(body); + + // TODO: test validations + } + + /** * Test body parameter(s) * @@ -39,4 +125,46 @@ void testEchoBodyPetTest() { } + /** + * Test empty response body + * + * Test empty response body + */ + @Test + void testEchoBodyPetResponseStringTest() { + Pet pet = null; + // String response = api.testEchoBodyPetResponseString(pet); + + // TODO: test validations + } + + + /** + * Test string enum response body + * + * Test string enum response body + */ + @Test + void testEchoBodyStringEnumTest() { + String body = null; + // StringEnumRef response = api.testEchoBodyStringEnum(body); + + // TODO: test validations + } + + + /** + * Test empty json (request body) + * + * Test empty json (request body) + */ + @Test + void testEchoBodyTagResponseStringTest() { + Tag tag = null; + // String response = api.testEchoBodyTagResponseString(tag); + + // TODO: test validations + } + + } diff --git a/samples/client/echo_api/java/feign-gson/src/test/java/org/openapitools/client/api/FormApiTest.java b/samples/client/echo_api/java/feign-gson/src/test/java/org/openapitools/client/api/FormApiTest.java index 03644c14dc9e..f860fe149e4b 100644 --- a/samples/client/echo_api/java/feign-gson/src/test/java/org/openapitools/client/api/FormApiTest.java +++ b/samples/client/echo_api/java/feign-gson/src/test/java/org/openapitools/client/api/FormApiTest.java @@ -1,6 +1,7 @@ package org.openapitools.client.api; import org.openapitools.client.ApiClient; +import org.openapitools.client.model.TestFormObjectMultipartRequestMarker; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.BeforeEach; @@ -40,4 +41,37 @@ void testFormIntegerBooleanStringTest() { } + /** + * Test form parameter(s) for multipart schema + * + * Test form parameter(s) for multipart schema + */ + @Test + void testFormObjectMultipartTest() { + TestFormObjectMultipartRequestMarker marker = null; + // String response = api.testFormObjectMultipart(marker); + + // TODO: test validations + } + + + /** + * Test form parameter(s) for oneOf schema + * + * Test form parameter(s) for oneOf schema + */ + @Test + void testFormOneofTest() { + String form1 = null; + Integer form2 = null; + String form3 = null; + Boolean form4 = null; + Long id = null; + String name = null; + // String response = api.testFormOneof(form1, form2, form3, form4, id, name); + + // TODO: test validations + } + + } diff --git a/samples/client/echo_api/java/feign-gson/src/test/java/org/openapitools/client/api/HeaderApiTest.java b/samples/client/echo_api/java/feign-gson/src/test/java/org/openapitools/client/api/HeaderApiTest.java index dbe0a9e5cff9..62cfec0f8aa0 100644 --- a/samples/client/echo_api/java/feign-gson/src/test/java/org/openapitools/client/api/HeaderApiTest.java +++ b/samples/client/echo_api/java/feign-gson/src/test/java/org/openapitools/client/api/HeaderApiTest.java @@ -1,6 +1,7 @@ package org.openapitools.client.api; import org.openapitools.client.ApiClient; +import org.openapitools.client.model.StringEnumRef; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.BeforeEach; @@ -30,11 +31,13 @@ public void setup() { * Test header parameter(s) */ @Test - void testHeaderIntegerBooleanStringTest() { + void testHeaderIntegerBooleanStringEnumsTest() { Integer integerHeader = null; Boolean booleanHeader = null; String stringHeader = null; - // String response = api.testHeaderIntegerBooleanString(integerHeader, booleanHeader, stringHeader); + String enumNonrefStringHeader = null; + StringEnumRef enumRefStringHeader = null; + // String response = api.testHeaderIntegerBooleanStringEnums(integerHeader, booleanHeader, stringHeader, enumNonrefStringHeader, enumRefStringHeader); // TODO: test validations } diff --git a/samples/client/echo_api/java/feign-gson/src/test/java/org/openapitools/client/api/PathApiTest.java b/samples/client/echo_api/java/feign-gson/src/test/java/org/openapitools/client/api/PathApiTest.java index 8f39b053aa4f..a81e0a4a59bb 100644 --- a/samples/client/echo_api/java/feign-gson/src/test/java/org/openapitools/client/api/PathApiTest.java +++ b/samples/client/echo_api/java/feign-gson/src/test/java/org/openapitools/client/api/PathApiTest.java @@ -1,6 +1,7 @@ package org.openapitools.client.api; import org.openapitools.client.ApiClient; +import org.openapitools.client.model.StringEnumRef; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.BeforeEach; @@ -30,10 +31,12 @@ public void setup() { * Test path parameter(s) */ @Test - void testsPathStringPathStringIntegerPathIntegerTest() { + void testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathTest() { String pathString = null; Integer pathInteger = null; - // String response = api.testsPathStringPathStringIntegerPathInteger(pathString, pathInteger); + String enumNonrefStringPath = null; + StringEnumRef enumRefStringPath = null; + // String response = api.testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath(pathString, pathInteger, enumNonrefStringPath, enumRefStringPath); // TODO: test validations } diff --git a/samples/client/echo_api/java/feign-gson/src/test/java/org/openapitools/client/api/QueryApiTest.java b/samples/client/echo_api/java/feign-gson/src/test/java/org/openapitools/client/api/QueryApiTest.java index b55588a0406e..7610b69d6642 100644 --- a/samples/client/echo_api/java/feign-gson/src/test/java/org/openapitools/client/api/QueryApiTest.java +++ b/samples/client/echo_api/java/feign-gson/src/test/java/org/openapitools/client/api/QueryApiTest.java @@ -1,7 +1,12 @@ package org.openapitools.client.api; import org.openapitools.client.ApiClient; +import org.openapitools.client.model.DataQuery; +import java.time.LocalDate; +import java.time.OffsetDateTime; import org.openapitools.client.model.Pet; +import org.openapitools.client.model.StringEnumRef; +import org.openapitools.client.model.TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter; import org.openapitools.client.model.TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.BeforeEach; @@ -26,6 +31,72 @@ public void setup() { } + /** + * Test query parameter(s) + * + * Test query parameter(s) + */ + @Test + void testEnumRefStringTest() { + String enumNonrefStringQuery = null; + StringEnumRef enumRefStringQuery = null; + // String response = api.testEnumRefString(enumNonrefStringQuery, enumRefStringQuery); + + // TODO: test validations + } + + /** + * Test query parameter(s) + * + * Test query parameter(s) + * + * This tests the overload of the method that uses a Map for query parameters instead of + * listing them out individually. + */ + @Test + void testEnumRefStringTestQueryMap() { + QueryApi.TestEnumRefStringQueryParams queryParams = new QueryApi.TestEnumRefStringQueryParams() + .enumNonrefStringQuery(null) + .enumRefStringQuery(null); + // String response = api.testEnumRefString(queryParams); + + // TODO: test validations + } + + /** + * Test query parameter(s) + * + * Test query parameter(s) + */ + @Test + void testQueryDatetimeDateStringTest() { + OffsetDateTime datetimeQuery = null; + LocalDate dateQuery = null; + String stringQuery = null; + // String response = api.testQueryDatetimeDateString(datetimeQuery, dateQuery, stringQuery); + + // TODO: test validations + } + + /** + * Test query parameter(s) + * + * Test query parameter(s) + * + * This tests the overload of the method that uses a Map for query parameters instead of + * listing them out individually. + */ + @Test + void testQueryDatetimeDateStringTestQueryMap() { + QueryApi.TestQueryDatetimeDateStringQueryParams queryParams = new QueryApi.TestQueryDatetimeDateStringQueryParams() + .datetimeQuery(null) + .dateQuery(null) + .stringQuery(null); + // String response = api.testQueryDatetimeDateString(queryParams); + + // TODO: test validations + } + /** * Test query parameter(s) * @@ -60,6 +131,126 @@ void testQueryIntegerBooleanStringTestQueryMap() { // TODO: test validations } + /** + * Test query parameter(s) + * + * Test query parameter(s) + */ + @Test + void testQueryStyleDeepObjectExplodeTrueObjectTest() { + Pet queryObject = null; + // String response = api.testQueryStyleDeepObjectExplodeTrueObject(queryObject); + + // TODO: test validations + } + + /** + * Test query parameter(s) + * + * Test query parameter(s) + * + * This tests the overload of the method that uses a Map for query parameters instead of + * listing them out individually. + */ + @Test + void testQueryStyleDeepObjectExplodeTrueObjectTestQueryMap() { + QueryApi.TestQueryStyleDeepObjectExplodeTrueObjectQueryParams queryParams = new QueryApi.TestQueryStyleDeepObjectExplodeTrueObjectQueryParams() + .queryObject(null); + // String response = api.testQueryStyleDeepObjectExplodeTrueObject(queryParams); + + // TODO: test validations + } + + /** + * Test query parameter(s) + * + * Test query parameter(s) + */ + @Test + void testQueryStyleDeepObjectExplodeTrueObjectAllOfTest() { + TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter queryObject = null; + // String response = api.testQueryStyleDeepObjectExplodeTrueObjectAllOf(queryObject); + + // TODO: test validations + } + + /** + * Test query parameter(s) + * + * Test query parameter(s) + * + * This tests the overload of the method that uses a Map for query parameters instead of + * listing them out individually. + */ + @Test + void testQueryStyleDeepObjectExplodeTrueObjectAllOfTestQueryMap() { + QueryApi.TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryParams queryParams = new QueryApi.TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryParams() + .queryObject(null); + // String response = api.testQueryStyleDeepObjectExplodeTrueObjectAllOf(queryParams); + + // TODO: test validations + } + + /** + * Test query parameter(s) + * + * Test query parameter(s) + */ + @Test + void testQueryStyleFormExplodeFalseArrayIntegerTest() { + List queryObject = null; + // String response = api.testQueryStyleFormExplodeFalseArrayInteger(queryObject); + + // TODO: test validations + } + + /** + * Test query parameter(s) + * + * Test query parameter(s) + * + * This tests the overload of the method that uses a Map for query parameters instead of + * listing them out individually. + */ + @Test + void testQueryStyleFormExplodeFalseArrayIntegerTestQueryMap() { + QueryApi.TestQueryStyleFormExplodeFalseArrayIntegerQueryParams queryParams = new QueryApi.TestQueryStyleFormExplodeFalseArrayIntegerQueryParams() + .queryObject(null); + // String response = api.testQueryStyleFormExplodeFalseArrayInteger(queryParams); + + // TODO: test validations + } + + /** + * Test query parameter(s) + * + * Test query parameter(s) + */ + @Test + void testQueryStyleFormExplodeFalseArrayStringTest() { + List queryObject = null; + // String response = api.testQueryStyleFormExplodeFalseArrayString(queryObject); + + // TODO: test validations + } + + /** + * Test query parameter(s) + * + * Test query parameter(s) + * + * This tests the overload of the method that uses a Map for query parameters instead of + * listing them out individually. + */ + @Test + void testQueryStyleFormExplodeFalseArrayStringTestQueryMap() { + QueryApi.TestQueryStyleFormExplodeFalseArrayStringQueryParams queryParams = new QueryApi.TestQueryStyleFormExplodeFalseArrayStringQueryParams() + .queryObject(null); + // String response = api.testQueryStyleFormExplodeFalseArrayString(queryParams); + + // TODO: test validations + } + /** * Test query parameter(s) * @@ -120,4 +311,34 @@ void testQueryStyleFormExplodeTrueObjectTestQueryMap() { // TODO: test validations } + /** + * Test query parameter(s) + * + * Test query parameter(s) + */ + @Test + void testQueryStyleFormExplodeTrueObjectAllOfTest() { + DataQuery queryObject = null; + // String response = api.testQueryStyleFormExplodeTrueObjectAllOf(queryObject); + + // TODO: test validations + } + + /** + * Test query parameter(s) + * + * Test query parameter(s) + * + * This tests the overload of the method that uses a Map for query parameters instead of + * listing them out individually. + */ + @Test + void testQueryStyleFormExplodeTrueObjectAllOfTestQueryMap() { + QueryApi.TestQueryStyleFormExplodeTrueObjectAllOfQueryParams queryParams = new QueryApi.TestQueryStyleFormExplodeTrueObjectAllOfQueryParams() + .queryObject(null); + // String response = api.testQueryStyleFormExplodeTrueObjectAllOf(queryParams); + + // TODO: test validations + } + } diff --git a/samples/client/echo_api/java/feign-gson/src/test/java/org/openapitools/client/model/BirdTest.java b/samples/client/echo_api/java/feign-gson/src/test/java/org/openapitools/client/model/BirdTest.java index c487cab67998..fc4b18e54501 100644 --- a/samples/client/echo_api/java/feign-gson/src/test/java/org/openapitools/client/model/BirdTest.java +++ b/samples/client/echo_api/java/feign-gson/src/test/java/org/openapitools/client/model/BirdTest.java @@ -21,7 +21,6 @@ import java.io.IOException; import org.junit.jupiter.api.Test; - /** * Model tests for Bird */ diff --git a/samples/client/echo_api/java/feign-gson/src/test/java/org/openapitools/client/model/CategoryTest.java b/samples/client/echo_api/java/feign-gson/src/test/java/org/openapitools/client/model/CategoryTest.java index ab5409ab270e..af973b44de27 100644 --- a/samples/client/echo_api/java/feign-gson/src/test/java/org/openapitools/client/model/CategoryTest.java +++ b/samples/client/echo_api/java/feign-gson/src/test/java/org/openapitools/client/model/CategoryTest.java @@ -21,7 +21,6 @@ import java.io.IOException; import org.junit.jupiter.api.Test; - /** * Model tests for Category */ diff --git a/samples/client/echo_api/java/feign-gson/src/test/java/org/openapitools/client/model/DataQueryTest.java b/samples/client/echo_api/java/feign-gson/src/test/java/org/openapitools/client/model/DataQueryTest.java index e51788417913..908ebd92eff8 100644 --- a/samples/client/echo_api/java/feign-gson/src/test/java/org/openapitools/client/model/DataQueryTest.java +++ b/samples/client/echo_api/java/feign-gson/src/test/java/org/openapitools/client/model/DataQueryTest.java @@ -21,11 +21,11 @@ import java.io.IOException; import java.time.OffsetDateTime; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.Query; import org.junit.jupiter.api.Test; - /** * Model tests for DataQuery */ @@ -41,35 +41,43 @@ void testDataQuery() { } /** - * Test the property 'text' + * Test the property 'id' */ @Test - void textTest() { - // TODO: test text + void idTest() { + // TODO: test id } /** - * Test the property 'date' + * Test the property 'outcomes' */ @Test - void dateTest() { - // TODO: test date + void outcomesTest() { + // TODO: test outcomes } /** - * Test the property 'id' + * Test the property 'suffix' */ @Test - void idTest() { - // TODO: test id + void suffixTest() { + // TODO: test suffix } /** - * Test the property 'outcomes' + * Test the property 'text' */ @Test - void outcomesTest() { - // TODO: test outcomes + void textTest() { + // TODO: test text + } + + /** + * Test the property 'date' + */ + @Test + void dateTest() { + // TODO: test date } } diff --git a/samples/client/echo_api/java/feign-gson/src/test/java/org/openapitools/client/model/DefaultValueTest.java b/samples/client/echo_api/java/feign-gson/src/test/java/org/openapitools/client/model/DefaultValueTest.java index b5f523bde621..4e246508b993 100644 --- a/samples/client/echo_api/java/feign-gson/src/test/java/org/openapitools/client/model/DefaultValueTest.java +++ b/samples/client/echo_api/java/feign-gson/src/test/java/org/openapitools/client/model/DefaultValueTest.java @@ -20,11 +20,12 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import org.openapitools.client.model.StringEnumRef; import org.openapitools.jackson.nullable.JsonNullable; import org.junit.jupiter.api.Test; - /** * Model tests for DefaultValue */ @@ -39,6 +40,14 @@ void testDefaultValue() { // TODO: test DefaultValue } + /** + * Test the property 'arrayStringEnumRefDefault' + */ + @Test + void arrayStringEnumRefDefaultTest() { + // TODO: test arrayStringEnumRefDefault + } + /** * Test the property 'arrayStringEnumDefault' */ @@ -79,6 +88,14 @@ void arrayStringNullableTest() { // TODO: test arrayStringNullable } + /** + * Test the property 'arrayStringExtensionNullable' + */ + @Test + void arrayStringExtensionNullableTest() { + // TODO: test arrayStringExtensionNullable + } + /** * Test the property 'stringNullable' */ diff --git a/samples/client/echo_api/java/feign-gson/src/test/java/org/openapitools/client/model/NumberPropertiesOnlyTest.java b/samples/client/echo_api/java/feign-gson/src/test/java/org/openapitools/client/model/NumberPropertiesOnlyTest.java index 715209c0e76a..13bca0b6676a 100644 --- a/samples/client/echo_api/java/feign-gson/src/test/java/org/openapitools/client/model/NumberPropertiesOnlyTest.java +++ b/samples/client/echo_api/java/feign-gson/src/test/java/org/openapitools/client/model/NumberPropertiesOnlyTest.java @@ -22,7 +22,6 @@ import java.math.BigDecimal; import org.junit.jupiter.api.Test; - /** * Model tests for NumberPropertiesOnly */ diff --git a/samples/client/echo_api/java/feign-gson/src/test/java/org/openapitools/client/model/PetTest.java b/samples/client/echo_api/java/feign-gson/src/test/java/org/openapitools/client/model/PetTest.java index 886e8dee6c08..2f3de100e7cb 100644 --- a/samples/client/echo_api/java/feign-gson/src/test/java/org/openapitools/client/model/PetTest.java +++ b/samples/client/echo_api/java/feign-gson/src/test/java/org/openapitools/client/model/PetTest.java @@ -20,12 +20,12 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.Category; import org.openapitools.client.model.Tag; import org.junit.jupiter.api.Test; - /** * Model tests for Pet */ diff --git a/samples/client/echo_api/java/feign-gson/src/test/java/org/openapitools/client/model/QueryTest.java b/samples/client/echo_api/java/feign-gson/src/test/java/org/openapitools/client/model/QueryTest.java index 5b896d41d1cf..693e5cd8bdc9 100644 --- a/samples/client/echo_api/java/feign-gson/src/test/java/org/openapitools/client/model/QueryTest.java +++ b/samples/client/echo_api/java/feign-gson/src/test/java/org/openapitools/client/model/QueryTest.java @@ -20,10 +20,10 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.junit.jupiter.api.Test; - /** * Model tests for Query */ diff --git a/samples/client/echo_api/java/feign-gson/src/test/java/org/openapitools/client/model/StringEnumRefTest.java b/samples/client/echo_api/java/feign-gson/src/test/java/org/openapitools/client/model/StringEnumRefTest.java index b55324cae42f..1e6f59c52149 100644 --- a/samples/client/echo_api/java/feign-gson/src/test/java/org/openapitools/client/model/StringEnumRefTest.java +++ b/samples/client/echo_api/java/feign-gson/src/test/java/org/openapitools/client/model/StringEnumRefTest.java @@ -16,7 +16,6 @@ import com.google.gson.annotations.SerializedName; import org.junit.jupiter.api.Test; - /** * Model tests for StringEnumRef */ diff --git a/samples/client/echo_api/java/feign-gson/src/test/java/org/openapitools/client/model/TagTest.java b/samples/client/echo_api/java/feign-gson/src/test/java/org/openapitools/client/model/TagTest.java index 033deaceb706..ecada93fd6ce 100644 --- a/samples/client/echo_api/java/feign-gson/src/test/java/org/openapitools/client/model/TagTest.java +++ b/samples/client/echo_api/java/feign-gson/src/test/java/org/openapitools/client/model/TagTest.java @@ -21,7 +21,6 @@ import java.io.IOException; import org.junit.jupiter.api.Test; - /** * Model tests for Tag */ diff --git a/samples/client/echo_api/java/feign-gson/src/test/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameterTest.java b/samples/client/echo_api/java/feign-gson/src/test/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameterTest.java index 87a94769eb3d..bb30825fd828 100644 --- a/samples/client/echo_api/java/feign-gson/src/test/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameterTest.java +++ b/samples/client/echo_api/java/feign-gson/src/test/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameterTest.java @@ -21,7 +21,6 @@ import java.io.IOException; import org.junit.jupiter.api.Test; - /** * Model tests for TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter */ diff --git a/samples/client/echo_api/java/feign-gson/src/test/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameterTest.java b/samples/client/echo_api/java/feign-gson/src/test/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameterTest.java index 3633d8e2cef4..0144ea19396a 100644 --- a/samples/client/echo_api/java/feign-gson/src/test/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameterTest.java +++ b/samples/client/echo_api/java/feign-gson/src/test/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameterTest.java @@ -20,10 +20,10 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.junit.jupiter.api.Test; - /** * Model tests for TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter */ diff --git a/samples/client/echo_api/java/native/src/test/java/org/openapitools/client/api/AuthApiTest.java b/samples/client/echo_api/java/native/src/test/java/org/openapitools/client/api/AuthApiTest.java index 0efd63dfdd64..f8672ad4967c 100644 --- a/samples/client/echo_api/java/native/src/test/java/org/openapitools/client/api/AuthApiTest.java +++ b/samples/client/echo_api/java/native/src/test/java/org/openapitools/client/api/AuthApiTest.java @@ -13,9 +13,15 @@ package org.openapitools.client.api; +import org.openapitools.client.ApiException; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; -import org.openapitools.client.ApiException; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Set; /** diff --git a/samples/client/echo_api/java/native/src/test/java/org/openapitools/client/api/BodyApiTest.java b/samples/client/echo_api/java/native/src/test/java/org/openapitools/client/api/BodyApiTest.java index 04bcdb16a4a0..28bd1ad1c1cf 100644 --- a/samples/client/echo_api/java/native/src/test/java/org/openapitools/client/api/BodyApiTest.java +++ b/samples/client/echo_api/java/native/src/test/java/org/openapitools/client/api/BodyApiTest.java @@ -13,10 +13,19 @@ package org.openapitools.client.api; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; import org.openapitools.client.ApiException; +import java.io.File; import org.openapitools.client.model.Pet; +import org.openapitools.client.model.StringEnumRef; +import org.openapitools.client.model.Tag; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Set; /** @@ -28,6 +37,107 @@ public class BodyApiTest { private final BodyApi api = new BodyApi(); + /** + * Test binary (gif) response body + * + * Test binary (gif) response body + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void testBinaryGifTest() throws ApiException { + File response = + api.testBinaryGif(); + + // TODO: test validations + } + + /** + * Test body parameter(s) + * + * Test body parameter(s) + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void testBodyApplicationOctetstreamBinaryTest() throws ApiException { + File body = null; + String response = + api.testBodyApplicationOctetstreamBinary(body); + + // TODO: test validations + } + + /** + * Test array of binary in multipart mime + * + * Test array of binary in multipart mime + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void testBodyMultipartFormdataArrayOfBinaryTest() throws ApiException { + List files = null; + String response = + api.testBodyMultipartFormdataArrayOfBinary(files); + + // TODO: test validations + } + + /** + * Test single binary in multipart mime + * + * Test single binary in multipart mime + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void testBodyMultipartFormdataSingleBinaryTest() throws ApiException { + File myFile = null; + String response = + api.testBodyMultipartFormdataSingleBinary(myFile); + + // TODO: test validations + } + + /** + * Test body parameter(s) + * + * Test body parameter(s) + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void testEchoBodyAllOfPetTest() throws ApiException { + Pet pet = null; + Pet response = + api.testEchoBodyAllOfPet(pet); + + // TODO: test validations + } + + /** + * Test free form object + * + * Test free form object + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void testEchoBodyFreeFormObjectResponseStringTest() throws ApiException { + Object body = null; + String response = + api.testEchoBodyFreeFormObjectResponseString(body); + + // TODO: test validations + } + /** * Test body parameter(s) * @@ -45,4 +155,55 @@ public void testEchoBodyPetTest() throws ApiException { // TODO: test validations } + /** + * Test empty response body + * + * Test empty response body + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void testEchoBodyPetResponseStringTest() throws ApiException { + Pet pet = null; + String response = + api.testEchoBodyPetResponseString(pet); + + // TODO: test validations + } + + /** + * Test string enum response body + * + * Test string enum response body + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void testEchoBodyStringEnumTest() throws ApiException { + String body = null; + StringEnumRef response = + api.testEchoBodyStringEnum(body); + + // TODO: test validations + } + + /** + * Test empty json (request body) + * + * Test empty json (request body) + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void testEchoBodyTagResponseStringTest() throws ApiException { + Tag tag = null; + String response = + api.testEchoBodyTagResponseString(tag); + + // TODO: test validations + } + } diff --git a/samples/client/echo_api/java/native/src/test/java/org/openapitools/client/api/FormApiTest.java b/samples/client/echo_api/java/native/src/test/java/org/openapitools/client/api/FormApiTest.java index c9fd883d79a9..663bededed85 100644 --- a/samples/client/echo_api/java/native/src/test/java/org/openapitools/client/api/FormApiTest.java +++ b/samples/client/echo_api/java/native/src/test/java/org/openapitools/client/api/FormApiTest.java @@ -13,9 +13,16 @@ package org.openapitools.client.api; +import org.openapitools.client.ApiException; +import org.openapitools.client.model.TestFormObjectMultipartRequestMarker; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; -import org.openapitools.client.ApiException; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Set; /** @@ -46,4 +53,43 @@ public void testFormIntegerBooleanStringTest() throws ApiException { // TODO: test validations } + /** + * Test form parameter(s) for multipart schema + * + * Test form parameter(s) for multipart schema + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void testFormObjectMultipartTest() throws ApiException { + TestFormObjectMultipartRequestMarker marker = null; + String response = + api.testFormObjectMultipart(marker); + + // TODO: test validations + } + + /** + * Test form parameter(s) for oneOf schema + * + * Test form parameter(s) for oneOf schema + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void testFormOneofTest() throws ApiException { + String form1 = null; + Integer form2 = null; + String form3 = null; + Boolean form4 = null; + Long id = null; + String name = null; + String response = + api.testFormOneof(form1, form2, form3, form4, id, name); + + // TODO: test validations + } + } diff --git a/samples/client/echo_api/java/native/src/test/java/org/openapitools/client/api/HeaderApiTest.java b/samples/client/echo_api/java/native/src/test/java/org/openapitools/client/api/HeaderApiTest.java index 844eb5b33206..b2d34c773505 100644 --- a/samples/client/echo_api/java/native/src/test/java/org/openapitools/client/api/HeaderApiTest.java +++ b/samples/client/echo_api/java/native/src/test/java/org/openapitools/client/api/HeaderApiTest.java @@ -13,10 +13,16 @@ package org.openapitools.client.api; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; import org.openapitools.client.ApiException; import org.openapitools.client.model.StringEnumRef; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Set; /** diff --git a/samples/client/echo_api/java/native/src/test/java/org/openapitools/client/api/PathApiTest.java b/samples/client/echo_api/java/native/src/test/java/org/openapitools/client/api/PathApiTest.java index b0b834a71d29..e71cf1b61fa8 100644 --- a/samples/client/echo_api/java/native/src/test/java/org/openapitools/client/api/PathApiTest.java +++ b/samples/client/echo_api/java/native/src/test/java/org/openapitools/client/api/PathApiTest.java @@ -13,10 +13,16 @@ package org.openapitools.client.api; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; import org.openapitools.client.ApiException; import org.openapitools.client.model.StringEnumRef; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Set; /** diff --git a/samples/client/echo_api/java/native/src/test/java/org/openapitools/client/api/QueryApiTest.java b/samples/client/echo_api/java/native/src/test/java/org/openapitools/client/api/QueryApiTest.java index 13332bb48e83..05abf1dd19fa 100644 --- a/samples/client/echo_api/java/native/src/test/java/org/openapitools/client/api/QueryApiTest.java +++ b/samples/client/echo_api/java/native/src/test/java/org/openapitools/client/api/QueryApiTest.java @@ -3,7 +3,7 @@ * Echo Server API * * The version of the OpenAPI document: 0.1.0 - * Contact: team@openapitools.oprg + * Contact: team@openapitools.org * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -13,10 +13,22 @@ package org.openapitools.client.api; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; import org.openapitools.client.ApiException; +import org.openapitools.client.model.DataQuery; +import java.time.LocalDate; +import java.time.Instant; import org.openapitools.client.model.Pet; +import org.openapitools.client.model.StringEnumRef; +import org.openapitools.client.model.TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter; +import org.openapitools.client.model.TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Set; /** @@ -28,6 +40,147 @@ public class QueryApiTest { private final QueryApi api = new QueryApi(); + /** + * Test query parameter(s) + * + * Test query parameter(s) + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void testEnumRefStringTest() throws ApiException { + String enumNonrefStringQuery = null; + StringEnumRef enumRefStringQuery = null; + String response = + api.testEnumRefString(enumNonrefStringQuery, enumRefStringQuery); + + // TODO: test validations + } + + /** + * Test query parameter(s) + * + * Test query parameter(s) + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void testQueryDatetimeDateStringTest() throws ApiException { + Instant datetimeQuery = null; + LocalDate dateQuery = null; + String stringQuery = null; + String response = + api.testQueryDatetimeDateString(datetimeQuery, dateQuery, stringQuery); + + // TODO: test validations + } + + /** + * Test query parameter(s) + * + * Test query parameter(s) + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void testQueryIntegerBooleanStringTest() throws ApiException { + Integer integerQuery = null; + Boolean booleanQuery = null; + String stringQuery = null; + String response = + api.testQueryIntegerBooleanString(integerQuery, booleanQuery, stringQuery); + + // TODO: test validations + } + + /** + * Test query parameter(s) + * + * Test query parameter(s) + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void testQueryStyleDeepObjectExplodeTrueObjectTest() throws ApiException { + Pet queryObject = null; + String response = + api.testQueryStyleDeepObjectExplodeTrueObject(queryObject); + + // TODO: test validations + } + + /** + * Test query parameter(s) + * + * Test query parameter(s) + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void testQueryStyleDeepObjectExplodeTrueObjectAllOfTest() throws ApiException { + TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter queryObject = null; + String response = + api.testQueryStyleDeepObjectExplodeTrueObjectAllOf(queryObject); + + // TODO: test validations + } + + /** + * Test query parameter(s) + * + * Test query parameter(s) + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void testQueryStyleFormExplodeFalseArrayIntegerTest() throws ApiException { + List queryObject = null; + String response = + api.testQueryStyleFormExplodeFalseArrayInteger(queryObject); + + // TODO: test validations + } + + /** + * Test query parameter(s) + * + * Test query parameter(s) + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void testQueryStyleFormExplodeFalseArrayStringTest() throws ApiException { + List queryObject = null; + String response = + api.testQueryStyleFormExplodeFalseArrayString(queryObject); + + // TODO: test validations + } + + /** + * Test query parameter(s) + * + * Test query parameter(s) + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void testQueryStyleFormExplodeTrueArrayStringTest() throws ApiException { + TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter queryObject = null; + String response = + api.testQueryStyleFormExplodeTrueArrayString(queryObject); + + // TODO: test validations + } + /** * Test query parameter(s) * @@ -45,4 +198,21 @@ public void testQueryStyleFormExplodeTrueObjectTest() throws ApiException { // TODO: test validations } + /** + * Test query parameter(s) + * + * Test query parameter(s) + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void testQueryStyleFormExplodeTrueObjectAllOfTest() throws ApiException { + DataQuery queryObject = null; + String response = + api.testQueryStyleFormExplodeTrueObjectAllOf(queryObject); + + // TODO: test validations + } + } diff --git a/samples/client/echo_api/java/native/src/test/java/org/openapitools/client/model/BirdTest.java b/samples/client/echo_api/java/native/src/test/java/org/openapitools/client/model/BirdTest.java index 87bd92ba5635..a53d60129787 100644 --- a/samples/client/echo_api/java/native/src/test/java/org/openapitools/client/model/BirdTest.java +++ b/samples/client/echo_api/java/native/src/test/java/org/openapitools/client/model/BirdTest.java @@ -13,20 +13,27 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Bird */ -public class BirdTest { +class BirdTest { private final Bird model = new Bird(); /** * Model tests for Bird */ @Test - public void testBird() { + void testBird() { // TODO: test Bird } @@ -34,7 +41,7 @@ public void testBird() { * Test the property 'size' */ @Test - public void sizeTest() { + void sizeTest() { // TODO: test size } @@ -42,7 +49,7 @@ public void sizeTest() { * Test the property 'color' */ @Test - public void colorTest() { + void colorTest() { // TODO: test color } diff --git a/samples/client/echo_api/java/native/src/test/java/org/openapitools/client/model/CategoryTest.java b/samples/client/echo_api/java/native/src/test/java/org/openapitools/client/model/CategoryTest.java index f97a4c0d43f0..8a3e7308f87a 100644 --- a/samples/client/echo_api/java/native/src/test/java/org/openapitools/client/model/CategoryTest.java +++ b/samples/client/echo_api/java/native/src/test/java/org/openapitools/client/model/CategoryTest.java @@ -3,7 +3,7 @@ * Echo Server API * * The version of the OpenAPI document: 0.1.0 - * Contact: team@openapitools.oprg + * Contact: team@openapitools.org * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -13,20 +13,27 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Category */ -public class CategoryTest { +class CategoryTest { private final Category model = new Category(); /** * Model tests for Category */ @Test - public void testCategory() { + void testCategory() { // TODO: test Category } @@ -34,7 +41,7 @@ public void testCategory() { * Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } @@ -42,7 +49,7 @@ public void idTest() { * Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } diff --git a/samples/client/echo_api/java/native/src/test/java/org/openapitools/client/model/DataQueryTest.java b/samples/client/echo_api/java/native/src/test/java/org/openapitools/client/model/DataQueryTest.java index 29ffada7a6e9..7ef9ac1c94cc 100644 --- a/samples/client/echo_api/java/native/src/test/java/org/openapitools/client/model/DataQueryTest.java +++ b/samples/client/echo_api/java/native/src/test/java/org/openapitools/client/model/DataQueryTest.java @@ -13,53 +13,72 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.time.Instant; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.client.model.Query; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for DataQuery */ -public class DataQueryTest { +class DataQueryTest { private final DataQuery model = new DataQuery(); /** * Model tests for DataQuery */ @Test - public void testDataQuery() { + void testDataQuery() { // TODO: test DataQuery } /** - * Test the property 'text' + * Test the property 'id' */ @Test - public void textTest() { - // TODO: test text + void idTest() { + // TODO: test id } /** - * Test the property 'date' + * Test the property 'outcomes' */ @Test - public void dateTest() { - // TODO: test date + void outcomesTest() { + // TODO: test outcomes } /** - * Test the property 'id' + * Test the property 'suffix' */ @Test - public void idTest() { - // TODO: test id + void suffixTest() { + // TODO: test suffix } /** - * Test the property 'outcomes' + * Test the property 'text' */ @Test - public void outcomesTest() { - // TODO: test outcomes + void textTest() { + // TODO: test text + } + + /** + * Test the property 'date' + */ + @Test + void dateTest() { + // TODO: test date } } diff --git a/samples/client/echo_api/java/native/src/test/java/org/openapitools/client/model/DefaultValueTest.java b/samples/client/echo_api/java/native/src/test/java/org/openapitools/client/model/DefaultValueTest.java index 79dd6be90b7c..c5c50cd558e7 100644 --- a/samples/client/echo_api/java/native/src/test/java/org/openapitools/client/model/DefaultValueTest.java +++ b/samples/client/echo_api/java/native/src/test/java/org/openapitools/client/model/DefaultValueTest.java @@ -13,28 +13,50 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.client.model.StringEnumRef; +import org.openapitools.jackson.nullable.JsonNullable; +import com.fasterxml.jackson.annotation.JsonIgnore; +import org.openapitools.jackson.nullable.JsonNullable; +import java.util.NoSuchElementException; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for DefaultValue */ -public class DefaultValueTest { +class DefaultValueTest { private final DefaultValue model = new DefaultValue(); /** * Model tests for DefaultValue */ @Test - public void testDefaultValue() { + void testDefaultValue() { // TODO: test DefaultValue } + /** + * Test the property 'arrayStringEnumRefDefault' + */ + @Test + void arrayStringEnumRefDefaultTest() { + // TODO: test arrayStringEnumRefDefault + } + /** * Test the property 'arrayStringEnumDefault' */ @Test - public void arrayStringEnumDefaultTest() { + void arrayStringEnumDefaultTest() { // TODO: test arrayStringEnumDefault } @@ -42,15 +64,23 @@ public void arrayStringEnumDefaultTest() { * Test the property 'arrayStringDefault' */ @Test - public void arrayStringDefaultTest() { + void arrayStringDefaultTest() { // TODO: test arrayStringDefault } + /** + * Test the property 'arrayIntegerDefault' + */ + @Test + void arrayIntegerDefaultTest() { + // TODO: test arrayIntegerDefault + } + /** * Test the property 'arrayString' */ @Test - public void arrayStringTest() { + void arrayStringTest() { // TODO: test arrayString } @@ -58,15 +88,23 @@ public void arrayStringTest() { * Test the property 'arrayStringNullable' */ @Test - public void arrayStringNullableTest() { + void arrayStringNullableTest() { // TODO: test arrayStringNullable } + /** + * Test the property 'arrayStringExtensionNullable' + */ + @Test + void arrayStringExtensionNullableTest() { + // TODO: test arrayStringExtensionNullable + } + /** * Test the property 'stringNullable' */ @Test - public void stringNullableTest() { + void stringNullableTest() { // TODO: test stringNullable } diff --git a/samples/client/echo_api/java/native/src/test/java/org/openapitools/client/model/NumberPropertiesOnlyTest.java b/samples/client/echo_api/java/native/src/test/java/org/openapitools/client/model/NumberPropertiesOnlyTest.java index 69479f24a76a..d18ffe99803a 100644 --- a/samples/client/echo_api/java/native/src/test/java/org/openapitools/client/model/NumberPropertiesOnlyTest.java +++ b/samples/client/echo_api/java/native/src/test/java/org/openapitools/client/model/NumberPropertiesOnlyTest.java @@ -13,20 +13,28 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.math.BigDecimal; +import java.util.Arrays; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for NumberPropertiesOnly */ -public class NumberPropertiesOnlyTest { +class NumberPropertiesOnlyTest { private final NumberPropertiesOnly model = new NumberPropertiesOnly(); /** * Model tests for NumberPropertiesOnly */ @Test - public void testNumberPropertiesOnly() { + void testNumberPropertiesOnly() { // TODO: test NumberPropertiesOnly } @@ -34,7 +42,7 @@ public void testNumberPropertiesOnly() { * Test the property 'number' */ @Test - public void numberTest() { + void numberTest() { // TODO: test number } @@ -42,7 +50,7 @@ public void numberTest() { * Test the property '_float' */ @Test - public void _floatTest() { + void _floatTest() { // TODO: test _float } @@ -50,7 +58,7 @@ public void _floatTest() { * Test the property '_double' */ @Test - public void _doubleTest() { + void _doubleTest() { // TODO: test _double } diff --git a/samples/client/echo_api/java/native/src/test/java/org/openapitools/client/model/PetTest.java b/samples/client/echo_api/java/native/src/test/java/org/openapitools/client/model/PetTest.java index d537ddc510ab..f6536444b01d 100644 --- a/samples/client/echo_api/java/native/src/test/java/org/openapitools/client/model/PetTest.java +++ b/samples/client/echo_api/java/native/src/test/java/org/openapitools/client/model/PetTest.java @@ -3,7 +3,7 @@ * Echo Server API * * The version of the OpenAPI document: 0.1.0 - * Contact: team@openapitools.oprg + * Contact: team@openapitools.org * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -13,20 +13,31 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.client.model.Category; +import org.openapitools.client.model.Tag; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Pet */ -public class PetTest { +class PetTest { private final Pet model = new Pet(); /** * Model tests for Pet */ @Test - public void testPet() { + void testPet() { // TODO: test Pet } @@ -34,7 +45,7 @@ public void testPet() { * Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } @@ -42,7 +53,7 @@ public void idTest() { * Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } @@ -50,7 +61,7 @@ public void nameTest() { * Test the property 'category' */ @Test - public void categoryTest() { + void categoryTest() { // TODO: test category } @@ -58,7 +69,7 @@ public void categoryTest() { * Test the property 'photoUrls' */ @Test - public void photoUrlsTest() { + void photoUrlsTest() { // TODO: test photoUrls } @@ -66,7 +77,7 @@ public void photoUrlsTest() { * Test the property 'tags' */ @Test - public void tagsTest() { + void tagsTest() { // TODO: test tags } @@ -74,7 +85,7 @@ public void tagsTest() { * Test the property 'status' */ @Test - public void statusTest() { + void statusTest() { // TODO: test status } diff --git a/samples/client/echo_api/java/native/src/test/java/org/openapitools/client/model/QueryTest.java b/samples/client/echo_api/java/native/src/test/java/org/openapitools/client/model/QueryTest.java index ff1ddefbf5d2..fa0bd0293bd7 100644 --- a/samples/client/echo_api/java/native/src/test/java/org/openapitools/client/model/QueryTest.java +++ b/samples/client/echo_api/java/native/src/test/java/org/openapitools/client/model/QueryTest.java @@ -13,20 +13,29 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Query */ -public class QueryTest { +class QueryTest { private final Query model = new Query(); /** * Model tests for Query */ @Test - public void testQuery() { + void testQuery() { // TODO: test Query } @@ -34,7 +43,7 @@ public void testQuery() { * Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } @@ -42,7 +51,7 @@ public void idTest() { * Test the property 'outcomes' */ @Test - public void outcomesTest() { + void outcomesTest() { // TODO: test outcomes } diff --git a/samples/client/echo_api/java/native/src/test/java/org/openapitools/client/model/StringEnumRefTest.java b/samples/client/echo_api/java/native/src/test/java/org/openapitools/client/model/StringEnumRefTest.java index 933cc1438507..24bac66784be 100644 --- a/samples/client/echo_api/java/native/src/test/java/org/openapitools/client/model/StringEnumRefTest.java +++ b/samples/client/echo_api/java/native/src/test/java/org/openapitools/client/model/StringEnumRefTest.java @@ -13,18 +13,19 @@ package org.openapitools.client.model; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for StringEnumRef */ -public class StringEnumRefTest { +class StringEnumRefTest { /** * Model tests for StringEnumRef */ @Test - public void testStringEnumRef() { + void testStringEnumRef() { // TODO: test StringEnumRef } diff --git a/samples/client/echo_api/java/native/src/test/java/org/openapitools/client/model/TagTest.java b/samples/client/echo_api/java/native/src/test/java/org/openapitools/client/model/TagTest.java index 050e9a3a1673..722084177432 100644 --- a/samples/client/echo_api/java/native/src/test/java/org/openapitools/client/model/TagTest.java +++ b/samples/client/echo_api/java/native/src/test/java/org/openapitools/client/model/TagTest.java @@ -3,7 +3,7 @@ * Echo Server API * * The version of the OpenAPI document: 0.1.0 - * Contact: team@openapitools.oprg + * Contact: team@openapitools.org * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -13,20 +13,27 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Tag */ -public class TagTest { +class TagTest { private final Tag model = new Tag(); /** * Model tests for Tag */ @Test - public void testTag() { + void testTag() { // TODO: test Tag } @@ -34,7 +41,7 @@ public void testTag() { * Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } @@ -42,7 +49,7 @@ public void idTest() { * Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } diff --git a/samples/client/echo_api/java/native/src/test/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarkerTest.java b/samples/client/echo_api/java/native/src/test/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarkerTest.java index e1bb4f420c47..ae45724e552a 100644 --- a/samples/client/echo_api/java/native/src/test/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarkerTest.java +++ b/samples/client/echo_api/java/native/src/test/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarkerTest.java @@ -13,19 +13,27 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; /** * Model tests for TestFormObjectMultipartRequestMarker */ -public class TestFormObjectMultipartRequestMarkerTest { +class TestFormObjectMultipartRequestMarkerTest { private final TestFormObjectMultipartRequestMarker model = new TestFormObjectMultipartRequestMarker(); /** * Model tests for TestFormObjectMultipartRequestMarker */ @Test - public void testTestFormObjectMultipartRequestMarker() { + void testTestFormObjectMultipartRequestMarker() { // TODO: test TestFormObjectMultipartRequestMarker } @@ -33,7 +41,7 @@ public void testTestFormObjectMultipartRequestMarker() { * Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } diff --git a/samples/client/echo_api/java/native/src/test/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameterTest.java b/samples/client/echo_api/java/native/src/test/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameterTest.java index 8214380df37a..c5acf6a06686 100644 --- a/samples/client/echo_api/java/native/src/test/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameterTest.java +++ b/samples/client/echo_api/java/native/src/test/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameterTest.java @@ -13,53 +13,60 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter */ -public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameterTest { +class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameterTest { private final TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter model = new TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter(); /** * Model tests for TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter */ @Test - public void testTestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter() { + void testTestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter() { // TODO: test TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter } /** - * Test the property 'id' + * Test the property 'size' */ @Test - public void idTest() { - // TODO: test id + void sizeTest() { + // TODO: test size } /** - * Test the property 'name' + * Test the property 'color' */ @Test - public void nameTest() { - // TODO: test name + void colorTest() { + // TODO: test color } /** - * Test the property 'size' + * Test the property 'id' */ @Test - public void sizeTest() { - // TODO: test size + void idTest() { + // TODO: test id } /** - * Test the property 'color' + * Test the property 'name' */ @Test - public void colorTest() { - // TODO: test color + void nameTest() { + // TODO: test name } } diff --git a/samples/client/echo_api/java/native/src/test/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameterTest.java b/samples/client/echo_api/java/native/src/test/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameterTest.java index 555aaba7e527..e85ace643499 100644 --- a/samples/client/echo_api/java/native/src/test/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameterTest.java +++ b/samples/client/echo_api/java/native/src/test/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameterTest.java @@ -3,7 +3,7 @@ * Echo Server API * * The version of the OpenAPI document: 0.1.0 - * Contact: team@openapitools.oprg + * Contact: team@openapitools.org * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -13,20 +13,29 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter */ -public class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameterTest { +class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameterTest { private final TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter model = new TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter(); /** * Model tests for TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter */ @Test - public void testTestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter() { + void testTestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter() { // TODO: test TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter } @@ -34,7 +43,7 @@ public void testTestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter() { * Test the property 'values' */ @Test - public void valuesTest() { + void valuesTest() { // TODO: test values } diff --git a/samples/client/echo_api/java/okhttp-gson/src/test/java/org/openapitools/client/api/AuthApiTest.java b/samples/client/echo_api/java/okhttp-gson/src/test/java/org/openapitools/client/api/AuthApiTest.java index dcf4ae34da4e..30f2ae34d88c 100644 --- a/samples/client/echo_api/java/okhttp-gson/src/test/java/org/openapitools/client/api/AuthApiTest.java +++ b/samples/client/echo_api/java/okhttp-gson/src/test/java/org/openapitools/client/api/AuthApiTest.java @@ -13,8 +13,6 @@ package org.openapitools.client.api; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Assertions; import org.openapitools.client.ApiException; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; @@ -23,11 +21,11 @@ import java.util.HashMap; import java.util.List; import java.util.Map; -import org.openapitools.client.ApiResponse; /** * API tests for AuthApi */ +@Disabled public class AuthApiTest { private final AuthApi api = new AuthApi(); @@ -54,14 +52,8 @@ public void testAuthHttpBasicTest() throws ApiException { */ @Test public void testAuthHttpBearerTest() throws ApiException { - String response; - api.getApiClient().setBearerToken("fixed token"); - response = api.testAuthHttpBearer(); - Assertions.assertTrue(response.contains("Authorization: Bearer fixed token")); - - api.getApiClient().setBearerToken(() -> "dynamic token"); - response = api.testAuthHttpBearer(); - Assertions.assertTrue(response.contains("Authorization: Bearer dynamic token")); + String response = api.testAuthHttpBearer(); + // TODO: test validations } } diff --git a/samples/client/echo_api/java/okhttp-gson/src/test/java/org/openapitools/client/api/BodyApiTest.java b/samples/client/echo_api/java/okhttp-gson/src/test/java/org/openapitools/client/api/BodyApiTest.java index b7b78dcdf9ff..bb6329045fe7 100644 --- a/samples/client/echo_api/java/okhttp-gson/src/test/java/org/openapitools/client/api/BodyApiTest.java +++ b/samples/client/echo_api/java/okhttp-gson/src/test/java/org/openapitools/client/api/BodyApiTest.java @@ -14,7 +14,10 @@ package org.openapitools.client.api; import org.openapitools.client.ApiException; +import java.io.File; import org.openapitools.client.model.Pet; +import org.openapitools.client.model.StringEnumRef; +import org.openapitools.client.model.Tag; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; @@ -31,6 +34,89 @@ public class BodyApiTest { private final BodyApi api = new BodyApi(); + /** + * Test binary (gif) response body + * + * Test binary (gif) response body + * + * @throws ApiException if the Api call fails + */ + @Test + public void testBinaryGifTest() throws ApiException { + File response = api.testBinaryGif(); + // TODO: test validations + } + + /** + * Test body parameter(s) + * + * Test body parameter(s) + * + * @throws ApiException if the Api call fails + */ + @Test + public void testBodyApplicationOctetstreamBinaryTest() throws ApiException { + File body = null; + String response = api.testBodyApplicationOctetstreamBinary(body); + // TODO: test validations + } + + /** + * Test array of binary in multipart mime + * + * Test array of binary in multipart mime + * + * @throws ApiException if the Api call fails + */ + @Test + public void testBodyMultipartFormdataArrayOfBinaryTest() throws ApiException { + List files = null; + String response = api.testBodyMultipartFormdataArrayOfBinary(files); + // TODO: test validations + } + + /** + * Test single binary in multipart mime + * + * Test single binary in multipart mime + * + * @throws ApiException if the Api call fails + */ + @Test + public void testBodyMultipartFormdataSingleBinaryTest() throws ApiException { + File myFile = null; + String response = api.testBodyMultipartFormdataSingleBinary(myFile); + // TODO: test validations + } + + /** + * Test body parameter(s) + * + * Test body parameter(s) + * + * @throws ApiException if the Api call fails + */ + @Test + public void testEchoBodyAllOfPetTest() throws ApiException { + Pet pet = null; + Pet response = api.testEchoBodyAllOfPet(pet); + // TODO: test validations + } + + /** + * Test free form object + * + * Test free form object + * + * @throws ApiException if the Api call fails + */ + @Test + public void testEchoBodyFreeFormObjectResponseStringTest() throws ApiException { + Object body = null; + String response = api.testEchoBodyFreeFormObjectResponseString(body); + // TODO: test validations + } + /** * Test body parameter(s) * @@ -45,4 +131,46 @@ public void testEchoBodyPetTest() throws ApiException { // TODO: test validations } + /** + * Test empty response body + * + * Test empty response body + * + * @throws ApiException if the Api call fails + */ + @Test + public void testEchoBodyPetResponseStringTest() throws ApiException { + Pet pet = null; + String response = api.testEchoBodyPetResponseString(pet); + // TODO: test validations + } + + /** + * Test string enum response body + * + * Test string enum response body + * + * @throws ApiException if the Api call fails + */ + @Test + public void testEchoBodyStringEnumTest() throws ApiException { + String body = null; + StringEnumRef response = api.testEchoBodyStringEnum(body); + // TODO: test validations + } + + /** + * Test empty json (request body) + * + * Test empty json (request body) + * + * @throws ApiException if the Api call fails + */ + @Test + public void testEchoBodyTagResponseStringTest() throws ApiException { + Tag tag = null; + String response = api.testEchoBodyTagResponseString(tag); + // TODO: test validations + } + } diff --git a/samples/client/echo_api/java/okhttp-gson/src/test/java/org/openapitools/client/api/FormApiTest.java b/samples/client/echo_api/java/okhttp-gson/src/test/java/org/openapitools/client/api/FormApiTest.java index d14158de93fd..d8c00e452186 100644 --- a/samples/client/echo_api/java/okhttp-gson/src/test/java/org/openapitools/client/api/FormApiTest.java +++ b/samples/client/echo_api/java/okhttp-gson/src/test/java/org/openapitools/client/api/FormApiTest.java @@ -14,6 +14,7 @@ package org.openapitools.client.api; import org.openapitools.client.ApiException; +import org.openapitools.client.model.TestFormObjectMultipartRequestMarker; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; @@ -46,4 +47,37 @@ public void testFormIntegerBooleanStringTest() throws ApiException { // TODO: test validations } + /** + * Test form parameter(s) for multipart schema + * + * Test form parameter(s) for multipart schema + * + * @throws ApiException if the Api call fails + */ + @Test + public void testFormObjectMultipartTest() throws ApiException { + TestFormObjectMultipartRequestMarker marker = null; + String response = api.testFormObjectMultipart(marker); + // TODO: test validations + } + + /** + * Test form parameter(s) for oneOf schema + * + * Test form parameter(s) for oneOf schema + * + * @throws ApiException if the Api call fails + */ + @Test + public void testFormOneofTest() throws ApiException { + String form1 = null; + Integer form2 = null; + String form3 = null; + Boolean form4 = null; + Long id = null; + String name = null; + String response = api.testFormOneof(form1, form2, form3, form4, id, name); + // TODO: test validations + } + } diff --git a/samples/client/echo_api/java/okhttp-gson/src/test/java/org/openapitools/client/api/QueryApiTest.java b/samples/client/echo_api/java/okhttp-gson/src/test/java/org/openapitools/client/api/QueryApiTest.java index 358a449596e1..482244627e97 100644 --- a/samples/client/echo_api/java/okhttp-gson/src/test/java/org/openapitools/client/api/QueryApiTest.java +++ b/samples/client/echo_api/java/okhttp-gson/src/test/java/org/openapitools/client/api/QueryApiTest.java @@ -14,7 +14,11 @@ package org.openapitools.client.api; import org.openapitools.client.ApiException; +import org.openapitools.client.model.DataQuery; +import java.time.LocalDate; +import java.time.OffsetDateTime; import org.openapitools.client.model.Pet; +import org.openapitools.client.model.StringEnumRef; import org.openapitools.client.model.TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter; import org.openapitools.client.model.TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter; import org.junit.jupiter.api.Disabled; @@ -33,6 +37,37 @@ public class QueryApiTest { private final QueryApi api = new QueryApi(); + /** + * Test query parameter(s) + * + * Test query parameter(s) + * + * @throws ApiException if the Api call fails + */ + @Test + public void testEnumRefStringTest() throws ApiException { + String enumNonrefStringQuery = null; + StringEnumRef enumRefStringQuery = null; + String response = api.testEnumRefString(enumNonrefStringQuery, enumRefStringQuery); + // TODO: test validations + } + + /** + * Test query parameter(s) + * + * Test query parameter(s) + * + * @throws ApiException if the Api call fails + */ + @Test + public void testQueryDatetimeDateStringTest() throws ApiException { + OffsetDateTime datetimeQuery = null; + LocalDate dateQuery = null; + String stringQuery = null; + String response = api.testQueryDatetimeDateString(datetimeQuery, dateQuery, stringQuery); + // TODO: test validations + } + /** * Test query parameter(s) * @@ -77,6 +112,34 @@ public void testQueryStyleDeepObjectExplodeTrueObjectAllOfTest() throws ApiExcep // TODO: test validations } + /** + * Test query parameter(s) + * + * Test query parameter(s) + * + * @throws ApiException if the Api call fails + */ + @Test + public void testQueryStyleFormExplodeFalseArrayIntegerTest() throws ApiException { + List queryObject = null; + String response = api.testQueryStyleFormExplodeFalseArrayInteger(queryObject); + // TODO: test validations + } + + /** + * Test query parameter(s) + * + * Test query parameter(s) + * + * @throws ApiException if the Api call fails + */ + @Test + public void testQueryStyleFormExplodeFalseArrayStringTest() throws ApiException { + List queryObject = null; + String response = api.testQueryStyleFormExplodeFalseArrayString(queryObject); + // TODO: test validations + } + /** * Test query parameter(s) * @@ -105,4 +168,18 @@ public void testQueryStyleFormExplodeTrueObjectTest() throws ApiException { // TODO: test validations } + /** + * Test query parameter(s) + * + * Test query parameter(s) + * + * @throws ApiException if the Api call fails + */ + @Test + public void testQueryStyleFormExplodeTrueObjectAllOfTest() throws ApiException { + DataQuery queryObject = null; + String response = api.testQueryStyleFormExplodeTrueObjectAllOf(queryObject); + // TODO: test validations + } + } diff --git a/samples/client/echo_api/java/okhttp-gson/src/test/java/org/openapitools/client/model/BirdTest.java b/samples/client/echo_api/java/okhttp-gson/src/test/java/org/openapitools/client/model/BirdTest.java index 75f1b4085332..f5f536325d30 100644 --- a/samples/client/echo_api/java/okhttp-gson/src/test/java/org/openapitools/client/model/BirdTest.java +++ b/samples/client/echo_api/java/okhttp-gson/src/test/java/org/openapitools/client/model/BirdTest.java @@ -19,10 +19,10 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Bird */ diff --git a/samples/client/echo_api/java/okhttp-gson/src/test/java/org/openapitools/client/model/CategoryTest.java b/samples/client/echo_api/java/okhttp-gson/src/test/java/org/openapitools/client/model/CategoryTest.java index ea33600fbca7..741c90804f61 100644 --- a/samples/client/echo_api/java/okhttp-gson/src/test/java/org/openapitools/client/model/CategoryTest.java +++ b/samples/client/echo_api/java/okhttp-gson/src/test/java/org/openapitools/client/model/CategoryTest.java @@ -19,10 +19,10 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Category */ diff --git a/samples/client/echo_api/java/okhttp-gson/src/test/java/org/openapitools/client/model/DataQueryTest.java b/samples/client/echo_api/java/okhttp-gson/src/test/java/org/openapitools/client/model/DataQueryTest.java index 6b8ac2656327..40ab0c3498c2 100644 --- a/samples/client/echo_api/java/okhttp-gson/src/test/java/org/openapitools/client/model/DataQueryTest.java +++ b/samples/client/echo_api/java/okhttp-gson/src/test/java/org/openapitools/client/model/DataQueryTest.java @@ -21,12 +21,12 @@ import java.io.IOException; import java.time.OffsetDateTime; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.Query; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for DataQuery */ @@ -42,35 +42,43 @@ public void testDataQuery() { } /** - * Test the property 'text' + * Test the property 'id' */ @Test - public void textTest() { - // TODO: test text + public void idTest() { + // TODO: test id } /** - * Test the property 'date' + * Test the property 'outcomes' */ @Test - public void dateTest() { - // TODO: test date + public void outcomesTest() { + // TODO: test outcomes } /** - * Test the property 'id' + * Test the property 'suffix' */ @Test - public void idTest() { - // TODO: test id + public void suffixTest() { + // TODO: test suffix } /** - * Test the property 'outcomes' + * Test the property 'text' */ @Test - public void outcomesTest() { - // TODO: test outcomes + public void textTest() { + // TODO: test text + } + + /** + * Test the property 'date' + */ + @Test + public void dateTest() { + // TODO: test date } } diff --git a/samples/client/echo_api/java/okhttp-gson/src/test/java/org/openapitools/client/model/DefaultValueTest.java b/samples/client/echo_api/java/okhttp-gson/src/test/java/org/openapitools/client/model/DefaultValueTest.java index 9ef0b55db296..7c6ee09e00c1 100644 --- a/samples/client/echo_api/java/okhttp-gson/src/test/java/org/openapitools/client/model/DefaultValueTest.java +++ b/samples/client/echo_api/java/okhttp-gson/src/test/java/org/openapitools/client/model/DefaultValueTest.java @@ -20,12 +20,13 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import org.openapitools.client.model.StringEnumRef; import org.openapitools.jackson.nullable.JsonNullable; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for DefaultValue */ @@ -40,6 +41,14 @@ public void testDefaultValue() { // TODO: test DefaultValue } + /** + * Test the property 'arrayStringEnumRefDefault' + */ + @Test + public void arrayStringEnumRefDefaultTest() { + // TODO: test arrayStringEnumRefDefault + } + /** * Test the property 'arrayStringEnumDefault' */ @@ -80,6 +89,14 @@ public void arrayStringNullableTest() { // TODO: test arrayStringNullable } + /** + * Test the property 'arrayStringExtensionNullable' + */ + @Test + public void arrayStringExtensionNullableTest() { + // TODO: test arrayStringExtensionNullable + } + /** * Test the property 'stringNullable' */ diff --git a/samples/client/echo_api/java/okhttp-gson/src/test/java/org/openapitools/client/model/NumberPropertiesOnlyTest.java b/samples/client/echo_api/java/okhttp-gson/src/test/java/org/openapitools/client/model/NumberPropertiesOnlyTest.java index a796ce5ce94c..1f23ab2012fb 100644 --- a/samples/client/echo_api/java/okhttp-gson/src/test/java/org/openapitools/client/model/NumberPropertiesOnlyTest.java +++ b/samples/client/echo_api/java/okhttp-gson/src/test/java/org/openapitools/client/model/NumberPropertiesOnlyTest.java @@ -20,10 +20,10 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; import java.math.BigDecimal; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for NumberPropertiesOnly */ diff --git a/samples/client/echo_api/java/okhttp-gson/src/test/java/org/openapitools/client/model/PetTest.java b/samples/client/echo_api/java/okhttp-gson/src/test/java/org/openapitools/client/model/PetTest.java index a7f27fad14b5..56d51705502e 100644 --- a/samples/client/echo_api/java/okhttp-gson/src/test/java/org/openapitools/client/model/PetTest.java +++ b/samples/client/echo_api/java/okhttp-gson/src/test/java/org/openapitools/client/model/PetTest.java @@ -20,13 +20,13 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.Category; import org.openapitools.client.model.Tag; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Pet */ diff --git a/samples/client/echo_api/java/okhttp-gson/src/test/java/org/openapitools/client/model/QueryTest.java b/samples/client/echo_api/java/okhttp-gson/src/test/java/org/openapitools/client/model/QueryTest.java index e7ca10f2484b..bb5f94192c34 100644 --- a/samples/client/echo_api/java/okhttp-gson/src/test/java/org/openapitools/client/model/QueryTest.java +++ b/samples/client/echo_api/java/okhttp-gson/src/test/java/org/openapitools/client/model/QueryTest.java @@ -20,11 +20,11 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Query */ diff --git a/samples/client/echo_api/java/okhttp-gson/src/test/java/org/openapitools/client/model/StringEnumRefTest.java b/samples/client/echo_api/java/okhttp-gson/src/test/java/org/openapitools/client/model/StringEnumRefTest.java index 800e47ace28c..179fe3981c20 100644 --- a/samples/client/echo_api/java/okhttp-gson/src/test/java/org/openapitools/client/model/StringEnumRefTest.java +++ b/samples/client/echo_api/java/okhttp-gson/src/test/java/org/openapitools/client/model/StringEnumRefTest.java @@ -17,7 +17,6 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for StringEnumRef */ diff --git a/samples/client/echo_api/java/okhttp-gson/src/test/java/org/openapitools/client/model/TagTest.java b/samples/client/echo_api/java/okhttp-gson/src/test/java/org/openapitools/client/model/TagTest.java index 1374bba3fb60..1539b3756fc8 100644 --- a/samples/client/echo_api/java/okhttp-gson/src/test/java/org/openapitools/client/model/TagTest.java +++ b/samples/client/echo_api/java/okhttp-gson/src/test/java/org/openapitools/client/model/TagTest.java @@ -19,10 +19,10 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Tag */ diff --git a/samples/client/echo_api/java/okhttp-gson/src/test/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameterTest.java b/samples/client/echo_api/java/okhttp-gson/src/test/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameterTest.java index 378b082dc969..c30d6bf4f634 100644 --- a/samples/client/echo_api/java/okhttp-gson/src/test/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameterTest.java +++ b/samples/client/echo_api/java/okhttp-gson/src/test/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameterTest.java @@ -19,10 +19,10 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter */ diff --git a/samples/client/echo_api/java/okhttp-gson/src/test/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameterTest.java b/samples/client/echo_api/java/okhttp-gson/src/test/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameterTest.java index f01a91aec64e..d99f4d76fa28 100644 --- a/samples/client/echo_api/java/okhttp-gson/src/test/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameterTest.java +++ b/samples/client/echo_api/java/okhttp-gson/src/test/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameterTest.java @@ -20,11 +20,11 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter */ diff --git a/samples/client/echo_api/java/resteasy/src/test/java/org/openapitools/client/api/AuthApiTest.java b/samples/client/echo_api/java/resteasy/src/test/java/org/openapitools/client/api/AuthApiTest.java index 6a7b7a4736ce..129cfc219bc8 100644 --- a/samples/client/echo_api/java/resteasy/src/test/java/org/openapitools/client/api/AuthApiTest.java +++ b/samples/client/echo_api/java/resteasy/src/test/java/org/openapitools/client/api/AuthApiTest.java @@ -14,9 +14,9 @@ package org.openapitools.client.api; import org.openapitools.client.ApiException; -import org.junit.jupiter.api.Test; -import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; import java.time.LocalDate; import java.time.OffsetDateTime; @@ -28,7 +28,7 @@ /** * API tests for AuthApi */ -public class AuthApiTest { +class AuthApiTest { private final AuthApi api = new AuthApi(); @@ -41,7 +41,7 @@ public class AuthApiTest { * if the Api call fails */ @Test - public void testAuthHttpBasicTest() throws ApiException { + void testAuthHttpBasicTest() throws ApiException { // //String response = api.testAuthHttpBasic(); @@ -56,7 +56,7 @@ public void testAuthHttpBasicTest() throws ApiException { * if the Api call fails */ @Test - public void testAuthHttpBearerTest() throws ApiException { + void testAuthHttpBearerTest() throws ApiException { // //String response = api.testAuthHttpBearer(); diff --git a/samples/client/echo_api/java/resteasy/src/test/java/org/openapitools/client/api/BodyApiTest.java b/samples/client/echo_api/java/resteasy/src/test/java/org/openapitools/client/api/BodyApiTest.java index a8d0edaa3f26..182989d0c6d0 100644 --- a/samples/client/echo_api/java/resteasy/src/test/java/org/openapitools/client/api/BodyApiTest.java +++ b/samples/client/echo_api/java/resteasy/src/test/java/org/openapitools/client/api/BodyApiTest.java @@ -13,21 +13,26 @@ package org.openapitools.client.api; -import org.junit.jupiter.api.Test; import org.openapitools.client.ApiException; -import org.openapitools.client.api.EchoServerResponseParser; - import java.io.File; -import java.io.FileWriter; -import java.io.IOException; +import org.openapitools.client.model.Pet; +import org.openapitools.client.model.StringEnumRef; +import org.openapitools.client.model.Tag; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; -import static org.assertj.core.api.Assertions.assertThat; -import static org.junit.jupiter.api.Assertions.assertTrue; +import java.time.LocalDate; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; /** * API tests for BodyApi */ -public class BodyApiTest { +class BodyApiTest { private final BodyApi api = new BodyApi(); @@ -40,7 +45,7 @@ public class BodyApiTest { * if the Api call fails */ @Test - public void testBinaryGifTest() throws ApiException { + void testBinaryGifTest() throws ApiException { // //File response = api.testBinaryGif(); @@ -55,7 +60,7 @@ public void testBinaryGifTest() throws ApiException { * if the Api call fails */ @Test - public void testBodyApplicationOctetstreamBinaryTest() throws ApiException { + void testBodyApplicationOctetstreamBinaryTest() throws ApiException { // //File body = null; // @@ -72,7 +77,7 @@ public void testBodyApplicationOctetstreamBinaryTest() throws ApiException { * if the Api call fails */ @Test - public void testBodyMultipartFormdataArrayOfBinaryTest() throws ApiException { + void testBodyMultipartFormdataArrayOfBinaryTest() throws ApiException { // //List files = null; // @@ -80,38 +85,23 @@ public void testBodyMultipartFormdataArrayOfBinaryTest() throws ApiException { // TODO: test validations } - /** * Test single binary in multipart mime * - * @see - * #17367 + * Test single binary in multipart mime + * + * @throws ApiException + * if the Api call fails */ @Test - public void testBodyMultipartFormdataSingleBinaryTest() - throws ApiException, IOException { - File myFile = new File("test.txt"); - if (!myFile.exists()){ - assertTrue(myFile.createNewFile()); - } - FileWriter fw = new FileWriter(myFile); - fw.write("testing only"); - fw.close(); - myFile.deleteOnExit(); - - String response = - api.testBodyMultipartFormdataSingleBinary(myFile); - - EchoServerResponseParser parser = - new EchoServerResponseParser(response); - - String contentDisposition = parser.headers.get("Content-Disposition"); - - assertThat(contentDisposition).contains( - "form-data; name=\"my-file\"; filename=\"test.txt\"" - ); - } + void testBodyMultipartFormdataSingleBinaryTest() throws ApiException { + // + //File myFile = null; + // + //String response = api.testBodyMultipartFormdataSingleBinary(myFile); + // TODO: test validations + } /** * Test body parameter(s) * @@ -121,7 +111,7 @@ public void testBodyMultipartFormdataSingleBinaryTest() * if the Api call fails */ @Test - public void testEchoBodyAllOfPetTest() throws ApiException { + void testEchoBodyAllOfPetTest() throws ApiException { // //Pet pet = null; // @@ -138,7 +128,7 @@ public void testEchoBodyAllOfPetTest() throws ApiException { * if the Api call fails */ @Test - public void testEchoBodyFreeFormObjectResponseStringTest() throws ApiException { + void testEchoBodyFreeFormObjectResponseStringTest() throws ApiException { // //Object body = null; // @@ -155,7 +145,7 @@ public void testEchoBodyFreeFormObjectResponseStringTest() throws ApiException { * if the Api call fails */ @Test - public void testEchoBodyPetTest() throws ApiException { + void testEchoBodyPetTest() throws ApiException { // //Pet pet = null; // @@ -172,7 +162,7 @@ public void testEchoBodyPetTest() throws ApiException { * if the Api call fails */ @Test - public void testEchoBodyPetResponseStringTest() throws ApiException { + void testEchoBodyPetResponseStringTest() throws ApiException { // //Pet pet = null; // @@ -180,6 +170,23 @@ public void testEchoBodyPetResponseStringTest() throws ApiException { // TODO: test validations } + /** + * Test string enum response body + * + * Test string enum response body + * + * @throws ApiException + * if the Api call fails + */ + @Test + void testEchoBodyStringEnumTest() throws ApiException { + // + //String body = null; + // + //StringEnumRef response = api.testEchoBodyStringEnum(body); + + // TODO: test validations + } /** * Test empty json (request body) * @@ -189,7 +196,7 @@ public void testEchoBodyPetResponseStringTest() throws ApiException { * if the Api call fails */ @Test - public void testEchoBodyTagResponseStringTest() throws ApiException { + void testEchoBodyTagResponseStringTest() throws ApiException { // //Tag tag = null; // diff --git a/samples/client/echo_api/java/resteasy/src/test/java/org/openapitools/client/api/FormApiTest.java b/samples/client/echo_api/java/resteasy/src/test/java/org/openapitools/client/api/FormApiTest.java index 564f7c35a4e5..19c75e019a67 100644 --- a/samples/client/echo_api/java/resteasy/src/test/java/org/openapitools/client/api/FormApiTest.java +++ b/samples/client/echo_api/java/resteasy/src/test/java/org/openapitools/client/api/FormApiTest.java @@ -14,9 +14,10 @@ package org.openapitools.client.api; import org.openapitools.client.ApiException; -import org.junit.jupiter.api.Test; -import org.junit.jupiter.api.Disabled; +import org.openapitools.client.model.TestFormObjectMultipartRequestMarker; import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; import java.time.LocalDate; import java.time.OffsetDateTime; @@ -28,7 +29,7 @@ /** * API tests for FormApi */ -public class FormApiTest { +class FormApiTest { private final FormApi api = new FormApi(); @@ -41,7 +42,7 @@ public class FormApiTest { * if the Api call fails */ @Test - public void testFormIntegerBooleanStringTest() throws ApiException { + void testFormIntegerBooleanStringTest() throws ApiException { // //Integer integerForm = null; // @@ -53,6 +54,23 @@ public void testFormIntegerBooleanStringTest() throws ApiException { // TODO: test validations } + /** + * Test form parameter(s) for multipart schema + * + * Test form parameter(s) for multipart schema + * + * @throws ApiException + * if the Api call fails + */ + @Test + void testFormObjectMultipartTest() throws ApiException { + // + //TestFormObjectMultipartRequestMarker marker = null; + // + //String response = api.testFormObjectMultipart(marker); + + // TODO: test validations + } /** * Test form parameter(s) for oneOf schema * @@ -62,7 +80,7 @@ public void testFormIntegerBooleanStringTest() throws ApiException { * if the Api call fails */ @Test - public void testFormOneofTest() throws ApiException { + void testFormOneofTest() throws ApiException { // //String form1 = null; // diff --git a/samples/client/echo_api/java/resteasy/src/test/java/org/openapitools/client/api/HeaderApiTest.java b/samples/client/echo_api/java/resteasy/src/test/java/org/openapitools/client/api/HeaderApiTest.java index 1f2b0cbf479f..b2f0fe7aecb3 100644 --- a/samples/client/echo_api/java/resteasy/src/test/java/org/openapitools/client/api/HeaderApiTest.java +++ b/samples/client/echo_api/java/resteasy/src/test/java/org/openapitools/client/api/HeaderApiTest.java @@ -15,9 +15,9 @@ import org.openapitools.client.ApiException; import org.openapitools.client.model.StringEnumRef; -import org.junit.jupiter.api.Test; -import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; import java.time.LocalDate; import java.time.OffsetDateTime; @@ -29,7 +29,7 @@ /** * API tests for HeaderApi */ -public class HeaderApiTest { +class HeaderApiTest { private final HeaderApi api = new HeaderApi(); @@ -42,7 +42,7 @@ public class HeaderApiTest { * if the Api call fails */ @Test - public void testHeaderIntegerBooleanStringEnumsTest() throws ApiException { + void testHeaderIntegerBooleanStringEnumsTest() throws ApiException { // //Integer integerHeader = null; // diff --git a/samples/client/echo_api/java/resteasy/src/test/java/org/openapitools/client/api/PathApiTest.java b/samples/client/echo_api/java/resteasy/src/test/java/org/openapitools/client/api/PathApiTest.java index f2f6763b1215..3b87c976787e 100644 --- a/samples/client/echo_api/java/resteasy/src/test/java/org/openapitools/client/api/PathApiTest.java +++ b/samples/client/echo_api/java/resteasy/src/test/java/org/openapitools/client/api/PathApiTest.java @@ -15,9 +15,9 @@ import org.openapitools.client.ApiException; import org.openapitools.client.model.StringEnumRef; -import org.junit.jupiter.api.Test; -import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; import java.time.LocalDate; import java.time.OffsetDateTime; @@ -29,7 +29,7 @@ /** * API tests for PathApi */ -public class PathApiTest { +class PathApiTest { private final PathApi api = new PathApi(); @@ -42,7 +42,7 @@ public class PathApiTest { * if the Api call fails */ @Test - public void testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathTest() throws ApiException { + void testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathTest() throws ApiException { // //String pathString = null; // diff --git a/samples/client/echo_api/java/resteasy/src/test/java/org/openapitools/client/api/QueryApiTest.java b/samples/client/echo_api/java/resteasy/src/test/java/org/openapitools/client/api/QueryApiTest.java index c6df34a18c8b..ea3cee0f0273 100644 --- a/samples/client/echo_api/java/resteasy/src/test/java/org/openapitools/client/api/QueryApiTest.java +++ b/samples/client/echo_api/java/resteasy/src/test/java/org/openapitools/client/api/QueryApiTest.java @@ -21,9 +21,9 @@ import org.openapitools.client.model.StringEnumRef; import org.openapitools.client.model.TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter; import org.openapitools.client.model.TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter; -import org.junit.jupiter.api.Test; -import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; import java.time.LocalDate; import java.time.OffsetDateTime; @@ -35,7 +35,7 @@ /** * API tests for QueryApi */ -public class QueryApiTest { +class QueryApiTest { private final QueryApi api = new QueryApi(); @@ -48,7 +48,7 @@ public class QueryApiTest { * if the Api call fails */ @Test - public void testEnumRefStringTest() throws ApiException { + void testEnumRefStringTest() throws ApiException { // //String enumNonrefStringQuery = null; // @@ -67,7 +67,7 @@ public void testEnumRefStringTest() throws ApiException { * if the Api call fails */ @Test - public void testQueryDatetimeDateStringTest() throws ApiException { + void testQueryDatetimeDateStringTest() throws ApiException { // //OffsetDateTime datetimeQuery = null; // @@ -88,7 +88,7 @@ public void testQueryDatetimeDateStringTest() throws ApiException { * if the Api call fails */ @Test - public void testQueryIntegerBooleanStringTest() throws ApiException { + void testQueryIntegerBooleanStringTest() throws ApiException { // //Integer integerQuery = null; // @@ -109,7 +109,7 @@ public void testQueryIntegerBooleanStringTest() throws ApiException { * if the Api call fails */ @Test - public void testQueryStyleDeepObjectExplodeTrueObjectTest() throws ApiException { + void testQueryStyleDeepObjectExplodeTrueObjectTest() throws ApiException { // //Pet queryObject = null; // @@ -126,7 +126,7 @@ public void testQueryStyleDeepObjectExplodeTrueObjectTest() throws ApiException * if the Api call fails */ @Test - public void testQueryStyleDeepObjectExplodeTrueObjectAllOfTest() throws ApiException { + void testQueryStyleDeepObjectExplodeTrueObjectAllOfTest() throws ApiException { // //TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter queryObject = null; // @@ -143,7 +143,41 @@ public void testQueryStyleDeepObjectExplodeTrueObjectAllOfTest() throws ApiExcep * if the Api call fails */ @Test - public void testQueryStyleFormExplodeTrueArrayStringTest() throws ApiException { + void testQueryStyleFormExplodeFalseArrayIntegerTest() throws ApiException { + // + //List queryObject = null; + // + //String response = api.testQueryStyleFormExplodeFalseArrayInteger(queryObject); + + // TODO: test validations + } + /** + * Test query parameter(s) + * + * Test query parameter(s) + * + * @throws ApiException + * if the Api call fails + */ + @Test + void testQueryStyleFormExplodeFalseArrayStringTest() throws ApiException { + // + //List queryObject = null; + // + //String response = api.testQueryStyleFormExplodeFalseArrayString(queryObject); + + // TODO: test validations + } + /** + * Test query parameter(s) + * + * Test query parameter(s) + * + * @throws ApiException + * if the Api call fails + */ + @Test + void testQueryStyleFormExplodeTrueArrayStringTest() throws ApiException { // //TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter queryObject = null; // @@ -160,7 +194,7 @@ public void testQueryStyleFormExplodeTrueArrayStringTest() throws ApiException { * if the Api call fails */ @Test - public void testQueryStyleFormExplodeTrueObjectTest() throws ApiException { + void testQueryStyleFormExplodeTrueObjectTest() throws ApiException { // //Pet queryObject = null; // @@ -177,7 +211,7 @@ public void testQueryStyleFormExplodeTrueObjectTest() throws ApiException { * if the Api call fails */ @Test - public void testQueryStyleFormExplodeTrueObjectAllOfTest() throws ApiException { + void testQueryStyleFormExplodeTrueObjectAllOfTest() throws ApiException { // //DataQuery queryObject = null; // diff --git a/samples/client/echo_api/java/resteasy/src/test/java/org/openapitools/client/model/BirdTest.java b/samples/client/echo_api/java/resteasy/src/test/java/org/openapitools/client/model/BirdTest.java index 487f1889a98a..ec1f99fb9c78 100644 --- a/samples/client/echo_api/java/resteasy/src/test/java/org/openapitools/client/model/BirdTest.java +++ b/samples/client/echo_api/java/resteasy/src/test/java/org/openapitools/client/model/BirdTest.java @@ -25,14 +25,14 @@ /** * Model tests for Bird */ -public class BirdTest { +class BirdTest { private final Bird model = new Bird(); /** * Model tests for Bird */ @Test - public void testBird() { + void testBird() { // TODO: test Bird } @@ -40,7 +40,7 @@ public void testBird() { * Test the property 'size' */ @Test - public void sizeTest() { + void sizeTest() { // TODO: test size } @@ -48,7 +48,7 @@ public void sizeTest() { * Test the property 'color' */ @Test - public void colorTest() { + void colorTest() { // TODO: test color } diff --git a/samples/client/echo_api/java/resteasy/src/test/java/org/openapitools/client/model/CategoryTest.java b/samples/client/echo_api/java/resteasy/src/test/java/org/openapitools/client/model/CategoryTest.java index 1a53a0d90983..f0d26f9ea167 100644 --- a/samples/client/echo_api/java/resteasy/src/test/java/org/openapitools/client/model/CategoryTest.java +++ b/samples/client/echo_api/java/resteasy/src/test/java/org/openapitools/client/model/CategoryTest.java @@ -25,14 +25,14 @@ /** * Model tests for Category */ -public class CategoryTest { +class CategoryTest { private final Category model = new Category(); /** * Model tests for Category */ @Test - public void testCategory() { + void testCategory() { // TODO: test Category } @@ -40,7 +40,7 @@ public void testCategory() { * Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } @@ -48,7 +48,7 @@ public void idTest() { * Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } diff --git a/samples/client/echo_api/java/resteasy/src/test/java/org/openapitools/client/model/DataQueryTest.java b/samples/client/echo_api/java/resteasy/src/test/java/org/openapitools/client/model/DataQueryTest.java index 78b52f08ac76..6d835f331aed 100644 --- a/samples/client/echo_api/java/resteasy/src/test/java/org/openapitools/client/model/DataQueryTest.java +++ b/samples/client/echo_api/java/resteasy/src/test/java/org/openapitools/client/model/DataQueryTest.java @@ -30,14 +30,14 @@ /** * Model tests for DataQuery */ -public class DataQueryTest { +class DataQueryTest { private final DataQuery model = new DataQuery(); /** * Model tests for DataQuery */ @Test - public void testDataQuery() { + void testDataQuery() { // TODO: test DataQuery } @@ -45,7 +45,7 @@ public void testDataQuery() { * Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } @@ -53,7 +53,7 @@ public void idTest() { * Test the property 'outcomes' */ @Test - public void outcomesTest() { + void outcomesTest() { // TODO: test outcomes } @@ -61,7 +61,7 @@ public void outcomesTest() { * Test the property 'suffix' */ @Test - public void suffixTest() { + void suffixTest() { // TODO: test suffix } @@ -69,7 +69,7 @@ public void suffixTest() { * Test the property 'text' */ @Test - public void textTest() { + void textTest() { // TODO: test text } @@ -77,7 +77,7 @@ public void textTest() { * Test the property 'date' */ @Test - public void dateTest() { + void dateTest() { // TODO: test date } diff --git a/samples/client/echo_api/java/resteasy/src/test/java/org/openapitools/client/model/DefaultValueTest.java b/samples/client/echo_api/java/resteasy/src/test/java/org/openapitools/client/model/DefaultValueTest.java index bfbfeaf1dadf..c5c50cd558e7 100644 --- a/samples/client/echo_api/java/resteasy/src/test/java/org/openapitools/client/model/DefaultValueTest.java +++ b/samples/client/echo_api/java/resteasy/src/test/java/org/openapitools/client/model/DefaultValueTest.java @@ -33,14 +33,14 @@ /** * Model tests for DefaultValue */ -public class DefaultValueTest { +class DefaultValueTest { private final DefaultValue model = new DefaultValue(); /** * Model tests for DefaultValue */ @Test - public void testDefaultValue() { + void testDefaultValue() { // TODO: test DefaultValue } @@ -48,7 +48,7 @@ public void testDefaultValue() { * Test the property 'arrayStringEnumRefDefault' */ @Test - public void arrayStringEnumRefDefaultTest() { + void arrayStringEnumRefDefaultTest() { // TODO: test arrayStringEnumRefDefault } @@ -56,7 +56,7 @@ public void arrayStringEnumRefDefaultTest() { * Test the property 'arrayStringEnumDefault' */ @Test - public void arrayStringEnumDefaultTest() { + void arrayStringEnumDefaultTest() { // TODO: test arrayStringEnumDefault } @@ -64,7 +64,7 @@ public void arrayStringEnumDefaultTest() { * Test the property 'arrayStringDefault' */ @Test - public void arrayStringDefaultTest() { + void arrayStringDefaultTest() { // TODO: test arrayStringDefault } @@ -72,7 +72,7 @@ public void arrayStringDefaultTest() { * Test the property 'arrayIntegerDefault' */ @Test - public void arrayIntegerDefaultTest() { + void arrayIntegerDefaultTest() { // TODO: test arrayIntegerDefault } @@ -80,7 +80,7 @@ public void arrayIntegerDefaultTest() { * Test the property 'arrayString' */ @Test - public void arrayStringTest() { + void arrayStringTest() { // TODO: test arrayString } @@ -88,7 +88,7 @@ public void arrayStringTest() { * Test the property 'arrayStringNullable' */ @Test - public void arrayStringNullableTest() { + void arrayStringNullableTest() { // TODO: test arrayStringNullable } @@ -96,7 +96,7 @@ public void arrayStringNullableTest() { * Test the property 'arrayStringExtensionNullable' */ @Test - public void arrayStringExtensionNullableTest() { + void arrayStringExtensionNullableTest() { // TODO: test arrayStringExtensionNullable } @@ -104,7 +104,7 @@ public void arrayStringExtensionNullableTest() { * Test the property 'stringNullable' */ @Test - public void stringNullableTest() { + void stringNullableTest() { // TODO: test stringNullable } diff --git a/samples/client/echo_api/java/resteasy/src/test/java/org/openapitools/client/model/NumberPropertiesOnlyTest.java b/samples/client/echo_api/java/resteasy/src/test/java/org/openapitools/client/model/NumberPropertiesOnlyTest.java index 6cad1033030f..66d88b69519f 100644 --- a/samples/client/echo_api/java/resteasy/src/test/java/org/openapitools/client/model/NumberPropertiesOnlyTest.java +++ b/samples/client/echo_api/java/resteasy/src/test/java/org/openapitools/client/model/NumberPropertiesOnlyTest.java @@ -26,14 +26,14 @@ /** * Model tests for NumberPropertiesOnly */ -public class NumberPropertiesOnlyTest { +class NumberPropertiesOnlyTest { private final NumberPropertiesOnly model = new NumberPropertiesOnly(); /** * Model tests for NumberPropertiesOnly */ @Test - public void testNumberPropertiesOnly() { + void testNumberPropertiesOnly() { // TODO: test NumberPropertiesOnly } @@ -41,7 +41,7 @@ public void testNumberPropertiesOnly() { * Test the property 'number' */ @Test - public void numberTest() { + void numberTest() { // TODO: test number } @@ -49,7 +49,7 @@ public void numberTest() { * Test the property '_float' */ @Test - public void _floatTest() { + void _floatTest() { // TODO: test _float } @@ -57,7 +57,7 @@ public void _floatTest() { * Test the property '_double' */ @Test - public void _doubleTest() { + void _doubleTest() { // TODO: test _double } diff --git a/samples/client/echo_api/java/resteasy/src/test/java/org/openapitools/client/model/PetTest.java b/samples/client/echo_api/java/resteasy/src/test/java/org/openapitools/client/model/PetTest.java index e56a9b18d6e9..f6536444b01d 100644 --- a/samples/client/echo_api/java/resteasy/src/test/java/org/openapitools/client/model/PetTest.java +++ b/samples/client/echo_api/java/resteasy/src/test/java/org/openapitools/client/model/PetTest.java @@ -30,14 +30,14 @@ /** * Model tests for Pet */ -public class PetTest { +class PetTest { private final Pet model = new Pet(); /** * Model tests for Pet */ @Test - public void testPet() { + void testPet() { // TODO: test Pet } @@ -45,7 +45,7 @@ public void testPet() { * Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } @@ -53,7 +53,7 @@ public void idTest() { * Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } @@ -61,7 +61,7 @@ public void nameTest() { * Test the property 'category' */ @Test - public void categoryTest() { + void categoryTest() { // TODO: test category } @@ -69,7 +69,7 @@ public void categoryTest() { * Test the property 'photoUrls' */ @Test - public void photoUrlsTest() { + void photoUrlsTest() { // TODO: test photoUrls } @@ -77,7 +77,7 @@ public void photoUrlsTest() { * Test the property 'tags' */ @Test - public void tagsTest() { + void tagsTest() { // TODO: test tags } @@ -85,7 +85,7 @@ public void tagsTest() { * Test the property 'status' */ @Test - public void statusTest() { + void statusTest() { // TODO: test status } diff --git a/samples/client/echo_api/java/resteasy/src/test/java/org/openapitools/client/model/QueryTest.java b/samples/client/echo_api/java/resteasy/src/test/java/org/openapitools/client/model/QueryTest.java index f9affa7e6754..fa0bd0293bd7 100644 --- a/samples/client/echo_api/java/resteasy/src/test/java/org/openapitools/client/model/QueryTest.java +++ b/samples/client/echo_api/java/resteasy/src/test/java/org/openapitools/client/model/QueryTest.java @@ -28,14 +28,14 @@ /** * Model tests for Query */ -public class QueryTest { +class QueryTest { private final Query model = new Query(); /** * Model tests for Query */ @Test - public void testQuery() { + void testQuery() { // TODO: test Query } @@ -43,7 +43,7 @@ public void testQuery() { * Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } @@ -51,7 +51,7 @@ public void idTest() { * Test the property 'outcomes' */ @Test - public void outcomesTest() { + void outcomesTest() { // TODO: test outcomes } diff --git a/samples/client/echo_api/java/resteasy/src/test/java/org/openapitools/client/model/StringEnumRefTest.java b/samples/client/echo_api/java/resteasy/src/test/java/org/openapitools/client/model/StringEnumRefTest.java index 9c9ddedd8adf..24bac66784be 100644 --- a/samples/client/echo_api/java/resteasy/src/test/java/org/openapitools/client/model/StringEnumRefTest.java +++ b/samples/client/echo_api/java/resteasy/src/test/java/org/openapitools/client/model/StringEnumRefTest.java @@ -20,12 +20,12 @@ /** * Model tests for StringEnumRef */ -public class StringEnumRefTest { +class StringEnumRefTest { /** * Model tests for StringEnumRef */ @Test - public void testStringEnumRef() { + void testStringEnumRef() { // TODO: test StringEnumRef } diff --git a/samples/client/echo_api/java/resteasy/src/test/java/org/openapitools/client/model/TagTest.java b/samples/client/echo_api/java/resteasy/src/test/java/org/openapitools/client/model/TagTest.java index d74de216cfab..e444ad14095a 100644 --- a/samples/client/echo_api/java/resteasy/src/test/java/org/openapitools/client/model/TagTest.java +++ b/samples/client/echo_api/java/resteasy/src/test/java/org/openapitools/client/model/TagTest.java @@ -25,14 +25,14 @@ /** * Model tests for Tag */ -public class TagTest { +class TagTest { private final Tag model = new Tag(); /** * Model tests for Tag */ @Test - public void testTag() { + void testTag() { // TODO: test Tag } @@ -40,7 +40,7 @@ public void testTag() { * Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } @@ -48,7 +48,7 @@ public void idTest() { * Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } diff --git a/samples/client/echo_api/java/resteasy/src/test/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarkerTest.java b/samples/client/echo_api/java/resteasy/src/test/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarkerTest.java index d5d0fc51cc1d..178d1b8013dd 100644 --- a/samples/client/echo_api/java/resteasy/src/test/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarkerTest.java +++ b/samples/client/echo_api/java/resteasy/src/test/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarkerTest.java @@ -25,14 +25,14 @@ /** * Model tests for TestFormObjectMultipartRequestMarker */ -public class TestFormObjectMultipartRequestMarkerTest { +class TestFormObjectMultipartRequestMarkerTest { private final TestFormObjectMultipartRequestMarker model = new TestFormObjectMultipartRequestMarker(); /** * Model tests for TestFormObjectMultipartRequestMarker */ @Test - public void testTestFormObjectMultipartRequestMarker() { + void testTestFormObjectMultipartRequestMarker() { // TODO: test TestFormObjectMultipartRequestMarker } @@ -40,7 +40,7 @@ public void testTestFormObjectMultipartRequestMarker() { * Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } diff --git a/samples/client/echo_api/java/resteasy/src/test/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameterTest.java b/samples/client/echo_api/java/resteasy/src/test/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameterTest.java index d316ca8550ef..de68c2a50472 100644 --- a/samples/client/echo_api/java/resteasy/src/test/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameterTest.java +++ b/samples/client/echo_api/java/resteasy/src/test/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameterTest.java @@ -25,14 +25,14 @@ /** * Model tests for TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter */ -public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameterTest { +class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameterTest { private final TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter model = new TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter(); /** * Model tests for TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter */ @Test - public void testTestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter() { + void testTestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter() { // TODO: test TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter } @@ -40,7 +40,7 @@ public void testTestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParamet * Test the property 'size' */ @Test - public void sizeTest() { + void sizeTest() { // TODO: test size } @@ -48,7 +48,7 @@ public void sizeTest() { * Test the property 'color' */ @Test - public void colorTest() { + void colorTest() { // TODO: test color } @@ -56,7 +56,7 @@ public void colorTest() { * Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } @@ -64,7 +64,7 @@ public void idTest() { * Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } diff --git a/samples/client/echo_api/java/resteasy/src/test/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameterTest.java b/samples/client/echo_api/java/resteasy/src/test/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameterTest.java index 21cff973e258..e85ace643499 100644 --- a/samples/client/echo_api/java/resteasy/src/test/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameterTest.java +++ b/samples/client/echo_api/java/resteasy/src/test/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameterTest.java @@ -28,14 +28,14 @@ /** * Model tests for TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter */ -public class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameterTest { +class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameterTest { private final TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter model = new TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter(); /** * Model tests for TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter */ @Test - public void testTestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter() { + void testTestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter() { // TODO: test TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter } @@ -43,7 +43,7 @@ public void testTestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter() { * Test the property 'values' */ @Test - public void valuesTest() { + void valuesTest() { // TODO: test values } diff --git a/samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/api/AuthApiTest.java b/samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/api/AuthApiTest.java index 385354f4b634..66cb9a7700b5 100644 --- a/samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/api/AuthApiTest.java +++ b/samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/api/AuthApiTest.java @@ -13,9 +13,9 @@ package org.openapitools.client.api; -import org.junit.Assert; -import org.junit.Test; -import org.junit.Ignore; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; +import org.springframework.web.client.RestClientException; import java.time.LocalDate; import java.time.OffsetDateTime; @@ -27,7 +27,8 @@ /** * API tests for AuthApi */ -public class AuthApiTest { +@Disabled +class AuthApiTest { private final AuthApi api = new AuthApi(); @@ -37,11 +38,11 @@ public class AuthApiTest { * * To test HTTP basic authentication * - * @throws ApiException + * @throws RestClientException * if the Api call fails */ @Test - public void testAuthHttpBasicTest() { + void testAuthHttpBasicTest() { String response = api.testAuthHttpBasic(); @@ -53,19 +54,15 @@ public void testAuthHttpBasicTest() { * * To test HTTP bearer authentication * - * @throws ApiException + * @throws RestClientException * if the Api call fails */ @Test - public void testAuthHttpBearerTest() { - String response; - api.getApiClient().setBearerToken("fixed token"); - response = api.testAuthHttpBearer(); - Assert.assertTrue(response.contains("Authorization: Bearer fixed token")); + void testAuthHttpBearerTest() { - api.getApiClient().setBearerToken(() -> "dynamic token"); - response = api.testAuthHttpBearer(); - Assert.assertTrue(response.contains("Authorization: Bearer dynamic token")); + String response = api.testAuthHttpBearer(); + + // TODO: test validations } } diff --git a/samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/api/BodyApiTest.java b/samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/api/BodyApiTest.java index 1a1842f6c553..3aa657fb15d9 100644 --- a/samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/api/BodyApiTest.java +++ b/samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/api/BodyApiTest.java @@ -15,9 +15,11 @@ import java.io.File; import org.openapitools.client.model.Pet; +import org.openapitools.client.model.StringEnumRef; import org.openapitools.client.model.Tag; -import org.junit.Test; -import org.junit.Ignore; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; +import org.springframework.web.client.RestClientException; import java.time.LocalDate; import java.time.OffsetDateTime; @@ -29,8 +31,8 @@ /** * API tests for BodyApi */ -@Ignore -public class BodyApiTest { +@Disabled +class BodyApiTest { private final BodyApi api = new BodyApi(); @@ -40,11 +42,11 @@ public class BodyApiTest { * * Test binary (gif) response body * - * @throws ApiException + * @throws RestClientException * if the Api call fails */ @Test - public void testBinaryGifTest() { + void testBinaryGifTest() { File response = api.testBinaryGif(); @@ -56,11 +58,11 @@ public void testBinaryGifTest() { * * Test body parameter(s) * - * @throws ApiException + * @throws RestClientException * if the Api call fails */ @Test - public void testBodyApplicationOctetstreamBinaryTest() { + void testBodyApplicationOctetstreamBinaryTest() { File body = null; String response = api.testBodyApplicationOctetstreamBinary(body); @@ -73,11 +75,11 @@ public void testBodyApplicationOctetstreamBinaryTest() { * * Test array of binary in multipart mime * - * @throws ApiException + * @throws RestClientException * if the Api call fails */ @Test - public void testBodyMultipartFormdataArrayOfBinaryTest() { + void testBodyMultipartFormdataArrayOfBinaryTest() { List files = null; String response = api.testBodyMultipartFormdataArrayOfBinary(files); @@ -85,16 +87,33 @@ public void testBodyMultipartFormdataArrayOfBinaryTest() { // TODO: test validations } + /** + * Test single binary in multipart mime + * + * Test single binary in multipart mime + * + * @throws RestClientException + * if the Api call fails + */ + @Test + void testBodyMultipartFormdataSingleBinaryTest() { + File myFile = null; + + String response = api.testBodyMultipartFormdataSingleBinary(myFile); + + // TODO: test validations + } + /** * Test body parameter(s) * * Test body parameter(s) * - * @throws ApiException + * @throws RestClientException * if the Api call fails */ @Test - public void testEchoBodyAllOfPetTest() { + void testEchoBodyAllOfPetTest() { Pet pet = null; Pet response = api.testEchoBodyAllOfPet(pet); @@ -107,11 +126,11 @@ public void testEchoBodyAllOfPetTest() { * * Test free form object * - * @throws ApiException + * @throws RestClientException * if the Api call fails */ @Test - public void testEchoBodyFreeFormObjectResponseStringTest() { + void testEchoBodyFreeFormObjectResponseStringTest() { Object body = null; String response = api.testEchoBodyFreeFormObjectResponseString(body); @@ -124,11 +143,11 @@ public void testEchoBodyFreeFormObjectResponseStringTest() { * * Test body parameter(s) * - * @throws ApiException + * @throws RestClientException * if the Api call fails */ @Test - public void testEchoBodyPetTest() { + void testEchoBodyPetTest() { Pet pet = null; Pet response = api.testEchoBodyPet(pet); @@ -141,11 +160,11 @@ public void testEchoBodyPetTest() { * * Test empty response body * - * @throws ApiException + * @throws RestClientException * if the Api call fails */ @Test - public void testEchoBodyPetResponseStringTest() { + void testEchoBodyPetResponseStringTest() { Pet pet = null; String response = api.testEchoBodyPetResponseString(pet); @@ -153,16 +172,33 @@ public void testEchoBodyPetResponseStringTest() { // TODO: test validations } + /** + * Test string enum response body + * + * Test string enum response body + * + * @throws RestClientException + * if the Api call fails + */ + @Test + void testEchoBodyStringEnumTest() { + String body = null; + + StringEnumRef response = api.testEchoBodyStringEnum(body); + + // TODO: test validations + } + /** * Test empty json (request body) * * Test empty json (request body) * - * @throws ApiException + * @throws RestClientException * if the Api call fails */ @Test - public void testEchoBodyTagResponseStringTest() { + void testEchoBodyTagResponseStringTest() { Tag tag = null; String response = api.testEchoBodyTagResponseString(tag); diff --git a/samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/api/FormApiTest.java b/samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/api/FormApiTest.java index 123f60544dcd..11d9bd6662ea 100644 --- a/samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/api/FormApiTest.java +++ b/samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/api/FormApiTest.java @@ -13,8 +13,10 @@ package org.openapitools.client.api; -import org.junit.Test; -import org.junit.Ignore; +import org.openapitools.client.model.TestFormObjectMultipartRequestMarker; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; +import org.springframework.web.client.RestClientException; import java.time.LocalDate; import java.time.OffsetDateTime; @@ -26,8 +28,8 @@ /** * API tests for FormApi */ -@Ignore -public class FormApiTest { +@Disabled +class FormApiTest { private final FormApi api = new FormApi(); @@ -37,11 +39,11 @@ public class FormApiTest { * * Test form parameter(s) * - * @throws ApiException + * @throws RestClientException * if the Api call fails */ @Test - public void testFormIntegerBooleanStringTest() { + void testFormIntegerBooleanStringTest() { Integer integerForm = null; Boolean booleanForm = null; String stringForm = null; @@ -51,16 +53,33 @@ public void testFormIntegerBooleanStringTest() { // TODO: test validations } + /** + * Test form parameter(s) for multipart schema + * + * Test form parameter(s) for multipart schema + * + * @throws RestClientException + * if the Api call fails + */ + @Test + void testFormObjectMultipartTest() { + TestFormObjectMultipartRequestMarker marker = null; + + String response = api.testFormObjectMultipart(marker); + + // TODO: test validations + } + /** * Test form parameter(s) for oneOf schema * * Test form parameter(s) for oneOf schema * - * @throws ApiException + * @throws RestClientException * if the Api call fails */ @Test - public void testFormOneofTest() { + void testFormOneofTest() { String form1 = null; Integer form2 = null; String form3 = null; diff --git a/samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/api/HeaderApiTest.java b/samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/api/HeaderApiTest.java index 14f3c32bc5bd..8567d97c75d5 100644 --- a/samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/api/HeaderApiTest.java +++ b/samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/api/HeaderApiTest.java @@ -14,8 +14,9 @@ package org.openapitools.client.api; import org.openapitools.client.model.StringEnumRef; -import org.junit.Test; -import org.junit.Ignore; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; +import org.springframework.web.client.RestClientException; import java.time.LocalDate; import java.time.OffsetDateTime; @@ -27,8 +28,8 @@ /** * API tests for HeaderApi */ -@Ignore -public class HeaderApiTest { +@Disabled +class HeaderApiTest { private final HeaderApi api = new HeaderApi(); @@ -38,11 +39,11 @@ public class HeaderApiTest { * * Test header parameter(s) * - * @throws ApiException + * @throws RestClientException * if the Api call fails */ @Test - public void testHeaderIntegerBooleanStringEnumsTest() { + void testHeaderIntegerBooleanStringEnumsTest() { Integer integerHeader = null; Boolean booleanHeader = null; String stringHeader = null; diff --git a/samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/api/PathApiTest.java b/samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/api/PathApiTest.java index 0b7e986b9815..88bcdc826e1f 100644 --- a/samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/api/PathApiTest.java +++ b/samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/api/PathApiTest.java @@ -14,8 +14,9 @@ package org.openapitools.client.api; import org.openapitools.client.model.StringEnumRef; -import org.junit.Test; -import org.junit.Ignore; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; +import org.springframework.web.client.RestClientException; import java.time.LocalDate; import java.time.OffsetDateTime; @@ -27,8 +28,8 @@ /** * API tests for PathApi */ -@Ignore -public class PathApiTest { +@Disabled +class PathApiTest { private final PathApi api = new PathApi(); @@ -38,11 +39,11 @@ public class PathApiTest { * * Test path parameter(s) * - * @throws ApiException + * @throws RestClientException * if the Api call fails */ @Test - public void testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathTest() { + void testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathTest() { String pathString = null; Integer pathInteger = null; String enumNonrefStringPath = null; diff --git a/samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/api/QueryApiTest.java b/samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/api/QueryApiTest.java index 8f007ca9d156..719dba57879d 100644 --- a/samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/api/QueryApiTest.java +++ b/samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/api/QueryApiTest.java @@ -20,8 +20,9 @@ import org.openapitools.client.model.StringEnumRef; import org.openapitools.client.model.TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter; import org.openapitools.client.model.TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter; -import org.junit.Test; -import org.junit.Ignore; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; +import org.springframework.web.client.RestClientException; import java.time.LocalDate; import java.time.OffsetDateTime; @@ -33,8 +34,8 @@ /** * API tests for QueryApi */ -@Ignore -public class QueryApiTest { +@Disabled +class QueryApiTest { private final QueryApi api = new QueryApi(); @@ -44,11 +45,11 @@ public class QueryApiTest { * * Test query parameter(s) * - * @throws ApiException + * @throws RestClientException * if the Api call fails */ @Test - public void testEnumRefStringTest() { + void testEnumRefStringTest() { String enumNonrefStringQuery = null; StringEnumRef enumRefStringQuery = null; @@ -62,11 +63,11 @@ public void testEnumRefStringTest() { * * Test query parameter(s) * - * @throws ApiException + * @throws RestClientException * if the Api call fails */ @Test - public void testQueryDatetimeDateStringTest() { + void testQueryDatetimeDateStringTest() { OffsetDateTime datetimeQuery = null; LocalDate dateQuery = null; String stringQuery = null; @@ -81,11 +82,11 @@ public void testQueryDatetimeDateStringTest() { * * Test query parameter(s) * - * @throws ApiException + * @throws RestClientException * if the Api call fails */ @Test - public void testQueryIntegerBooleanStringTest() { + void testQueryIntegerBooleanStringTest() { Integer integerQuery = null; Boolean booleanQuery = null; String stringQuery = null; @@ -100,11 +101,11 @@ public void testQueryIntegerBooleanStringTest() { * * Test query parameter(s) * - * @throws ApiException + * @throws RestClientException * if the Api call fails */ @Test - public void testQueryStyleDeepObjectExplodeTrueObjectTest() { + void testQueryStyleDeepObjectExplodeTrueObjectTest() { Pet queryObject = null; String response = api.testQueryStyleDeepObjectExplodeTrueObject(queryObject); @@ -117,11 +118,11 @@ public void testQueryStyleDeepObjectExplodeTrueObjectTest() { * * Test query parameter(s) * - * @throws ApiException + * @throws RestClientException * if the Api call fails */ @Test - public void testQueryStyleDeepObjectExplodeTrueObjectAllOfTest() { + void testQueryStyleDeepObjectExplodeTrueObjectAllOfTest() { TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter queryObject = null; String response = api.testQueryStyleDeepObjectExplodeTrueObjectAllOf(queryObject); @@ -134,11 +135,45 @@ public void testQueryStyleDeepObjectExplodeTrueObjectAllOfTest() { * * Test query parameter(s) * - * @throws ApiException + * @throws RestClientException * if the Api call fails */ @Test - public void testQueryStyleFormExplodeTrueArrayStringTest() { + void testQueryStyleFormExplodeFalseArrayIntegerTest() { + List queryObject = null; + + String response = api.testQueryStyleFormExplodeFalseArrayInteger(queryObject); + + // TODO: test validations + } + + /** + * Test query parameter(s) + * + * Test query parameter(s) + * + * @throws RestClientException + * if the Api call fails + */ + @Test + void testQueryStyleFormExplodeFalseArrayStringTest() { + List queryObject = null; + + String response = api.testQueryStyleFormExplodeFalseArrayString(queryObject); + + // TODO: test validations + } + + /** + * Test query parameter(s) + * + * Test query parameter(s) + * + * @throws RestClientException + * if the Api call fails + */ + @Test + void testQueryStyleFormExplodeTrueArrayStringTest() { TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter queryObject = null; String response = api.testQueryStyleFormExplodeTrueArrayString(queryObject); @@ -151,11 +186,11 @@ public void testQueryStyleFormExplodeTrueArrayStringTest() { * * Test query parameter(s) * - * @throws ApiException + * @throws RestClientException * if the Api call fails */ @Test - public void testQueryStyleFormExplodeTrueObjectTest() { + void testQueryStyleFormExplodeTrueObjectTest() { Pet queryObject = null; String response = api.testQueryStyleFormExplodeTrueObject(queryObject); @@ -168,11 +203,11 @@ public void testQueryStyleFormExplodeTrueObjectTest() { * * Test query parameter(s) * - * @throws ApiException + * @throws RestClientException * if the Api call fails */ @Test - public void testQueryStyleFormExplodeTrueObjectAllOfTest() { + void testQueryStyleFormExplodeTrueObjectAllOfTest() { DataQuery queryObject = null; String response = api.testQueryStyleFormExplodeTrueObjectAllOf(queryObject); diff --git a/samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/model/BirdTest.java b/samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/model/BirdTest.java index 3e82e9d75535..ec1f99fb9c78 100644 --- a/samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/model/BirdTest.java +++ b/samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/model/BirdTest.java @@ -18,21 +18,21 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.Test; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; /** * Model tests for Bird */ -public class BirdTest { +class BirdTest { private final Bird model = new Bird(); /** * Model tests for Bird */ @Test - public void testBird() { + void testBird() { // TODO: test Bird } @@ -40,7 +40,7 @@ public void testBird() { * Test the property 'size' */ @Test - public void sizeTest() { + void sizeTest() { // TODO: test size } @@ -48,7 +48,7 @@ public void sizeTest() { * Test the property 'color' */ @Test - public void colorTest() { + void colorTest() { // TODO: test color } diff --git a/samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/model/CategoryTest.java b/samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/model/CategoryTest.java index 5b6a08fd6773..f0d26f9ea167 100644 --- a/samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/model/CategoryTest.java +++ b/samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/model/CategoryTest.java @@ -18,21 +18,21 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.Test; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; /** * Model tests for Category */ -public class CategoryTest { +class CategoryTest { private final Category model = new Category(); /** * Model tests for Category */ @Test - public void testCategory() { + void testCategory() { // TODO: test Category } @@ -40,7 +40,7 @@ public void testCategory() { * Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } @@ -48,7 +48,7 @@ public void idTest() { * Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } diff --git a/samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/model/DataQueryTest.java b/samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/model/DataQueryTest.java index d08082e114ed..6d835f331aed 100644 --- a/samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/model/DataQueryTest.java +++ b/samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/model/DataQueryTest.java @@ -23,21 +23,21 @@ import java.util.Arrays; import java.util.List; import org.openapitools.client.model.Query; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.Test; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; /** * Model tests for DataQuery */ -public class DataQueryTest { +class DataQueryTest { private final DataQuery model = new DataQuery(); /** * Model tests for DataQuery */ @Test - public void testDataQuery() { + void testDataQuery() { // TODO: test DataQuery } @@ -45,7 +45,7 @@ public void testDataQuery() { * Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } @@ -53,7 +53,7 @@ public void idTest() { * Test the property 'outcomes' */ @Test - public void outcomesTest() { + void outcomesTest() { // TODO: test outcomes } @@ -61,7 +61,7 @@ public void outcomesTest() { * Test the property 'suffix' */ @Test - public void suffixTest() { + void suffixTest() { // TODO: test suffix } @@ -69,7 +69,7 @@ public void suffixTest() { * Test the property 'text' */ @Test - public void textTest() { + void textTest() { // TODO: test text } @@ -77,7 +77,7 @@ public void textTest() { * Test the property 'date' */ @Test - public void dateTest() { + void dateTest() { // TODO: test date } diff --git a/samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/model/DefaultValueTest.java b/samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/model/DefaultValueTest.java index 843a43b28d72..c5c50cd558e7 100644 --- a/samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/model/DefaultValueTest.java +++ b/samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/model/DefaultValueTest.java @@ -26,21 +26,21 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import org.openapitools.jackson.nullable.JsonNullable; import java.util.NoSuchElementException; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.Test; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; /** * Model tests for DefaultValue */ -public class DefaultValueTest { +class DefaultValueTest { private final DefaultValue model = new DefaultValue(); /** * Model tests for DefaultValue */ @Test - public void testDefaultValue() { + void testDefaultValue() { // TODO: test DefaultValue } @@ -48,7 +48,7 @@ public void testDefaultValue() { * Test the property 'arrayStringEnumRefDefault' */ @Test - public void arrayStringEnumRefDefaultTest() { + void arrayStringEnumRefDefaultTest() { // TODO: test arrayStringEnumRefDefault } @@ -56,7 +56,7 @@ public void arrayStringEnumRefDefaultTest() { * Test the property 'arrayStringEnumDefault' */ @Test - public void arrayStringEnumDefaultTest() { + void arrayStringEnumDefaultTest() { // TODO: test arrayStringEnumDefault } @@ -64,7 +64,7 @@ public void arrayStringEnumDefaultTest() { * Test the property 'arrayStringDefault' */ @Test - public void arrayStringDefaultTest() { + void arrayStringDefaultTest() { // TODO: test arrayStringDefault } @@ -72,7 +72,7 @@ public void arrayStringDefaultTest() { * Test the property 'arrayIntegerDefault' */ @Test - public void arrayIntegerDefaultTest() { + void arrayIntegerDefaultTest() { // TODO: test arrayIntegerDefault } @@ -80,7 +80,7 @@ public void arrayIntegerDefaultTest() { * Test the property 'arrayString' */ @Test - public void arrayStringTest() { + void arrayStringTest() { // TODO: test arrayString } @@ -88,7 +88,7 @@ public void arrayStringTest() { * Test the property 'arrayStringNullable' */ @Test - public void arrayStringNullableTest() { + void arrayStringNullableTest() { // TODO: test arrayStringNullable } @@ -96,7 +96,7 @@ public void arrayStringNullableTest() { * Test the property 'arrayStringExtensionNullable' */ @Test - public void arrayStringExtensionNullableTest() { + void arrayStringExtensionNullableTest() { // TODO: test arrayStringExtensionNullable } @@ -104,7 +104,7 @@ public void arrayStringExtensionNullableTest() { * Test the property 'stringNullable' */ @Test - public void stringNullableTest() { + void stringNullableTest() { // TODO: test stringNullable } diff --git a/samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/model/NumberPropertiesOnlyTest.java b/samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/model/NumberPropertiesOnlyTest.java index 80e515fd707e..66d88b69519f 100644 --- a/samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/model/NumberPropertiesOnlyTest.java +++ b/samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/model/NumberPropertiesOnlyTest.java @@ -19,21 +19,21 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.math.BigDecimal; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.Test; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; /** * Model tests for NumberPropertiesOnly */ -public class NumberPropertiesOnlyTest { +class NumberPropertiesOnlyTest { private final NumberPropertiesOnly model = new NumberPropertiesOnly(); /** * Model tests for NumberPropertiesOnly */ @Test - public void testNumberPropertiesOnly() { + void testNumberPropertiesOnly() { // TODO: test NumberPropertiesOnly } @@ -41,7 +41,7 @@ public void testNumberPropertiesOnly() { * Test the property 'number' */ @Test - public void numberTest() { + void numberTest() { // TODO: test number } @@ -49,7 +49,7 @@ public void numberTest() { * Test the property '_float' */ @Test - public void _floatTest() { + void _floatTest() { // TODO: test _float } @@ -57,7 +57,7 @@ public void _floatTest() { * Test the property '_double' */ @Test - public void _doubleTest() { + void _doubleTest() { // TODO: test _double } diff --git a/samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/model/PetTest.java b/samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/model/PetTest.java index 30e1991c7e32..f6536444b01d 100644 --- a/samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/model/PetTest.java +++ b/samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/model/PetTest.java @@ -23,21 +23,21 @@ import java.util.List; import org.openapitools.client.model.Category; import org.openapitools.client.model.Tag; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.Test; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; /** * Model tests for Pet */ -public class PetTest { +class PetTest { private final Pet model = new Pet(); /** * Model tests for Pet */ @Test - public void testPet() { + void testPet() { // TODO: test Pet } @@ -45,7 +45,7 @@ public void testPet() { * Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } @@ -53,7 +53,7 @@ public void idTest() { * Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } @@ -61,7 +61,7 @@ public void nameTest() { * Test the property 'category' */ @Test - public void categoryTest() { + void categoryTest() { // TODO: test category } @@ -69,7 +69,7 @@ public void categoryTest() { * Test the property 'photoUrls' */ @Test - public void photoUrlsTest() { + void photoUrlsTest() { // TODO: test photoUrls } @@ -77,7 +77,7 @@ public void photoUrlsTest() { * Test the property 'tags' */ @Test - public void tagsTest() { + void tagsTest() { // TODO: test tags } @@ -85,7 +85,7 @@ public void tagsTest() { * Test the property 'status' */ @Test - public void statusTest() { + void statusTest() { // TODO: test status } diff --git a/samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/model/QueryTest.java b/samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/model/QueryTest.java index 3ae0ecb7b70d..fa0bd0293bd7 100644 --- a/samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/model/QueryTest.java +++ b/samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/model/QueryTest.java @@ -21,21 +21,21 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.Test; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; /** * Model tests for Query */ -public class QueryTest { +class QueryTest { private final Query model = new Query(); /** * Model tests for Query */ @Test - public void testQuery() { + void testQuery() { // TODO: test Query } @@ -43,7 +43,7 @@ public void testQuery() { * Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } @@ -51,7 +51,7 @@ public void idTest() { * Test the property 'outcomes' */ @Test - public void outcomesTest() { + void outcomesTest() { // TODO: test outcomes } diff --git a/samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/model/StringEnumRefTest.java b/samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/model/StringEnumRefTest.java index 81bf17732bda..24bac66784be 100644 --- a/samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/model/StringEnumRefTest.java +++ b/samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/model/StringEnumRefTest.java @@ -13,19 +13,19 @@ package org.openapitools.client.model; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.Test; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; /** * Model tests for StringEnumRef */ -public class StringEnumRefTest { +class StringEnumRefTest { /** * Model tests for StringEnumRef */ @Test - public void testStringEnumRef() { + void testStringEnumRef() { // TODO: test StringEnumRef } diff --git a/samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/model/TagTest.java b/samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/model/TagTest.java index 073b7aca33c1..e444ad14095a 100644 --- a/samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/model/TagTest.java +++ b/samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/model/TagTest.java @@ -18,21 +18,21 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.Test; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; /** * Model tests for Tag */ -public class TagTest { +class TagTest { private final Tag model = new Tag(); /** * Model tests for Tag */ @Test - public void testTag() { + void testTag() { // TODO: test Tag } @@ -40,7 +40,7 @@ public void testTag() { * Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } @@ -48,7 +48,7 @@ public void idTest() { * Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } diff --git a/samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarkerTest.java b/samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarkerTest.java index cdb7c02c0fd8..178d1b8013dd 100644 --- a/samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarkerTest.java +++ b/samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarkerTest.java @@ -18,21 +18,21 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.Test; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; /** * Model tests for TestFormObjectMultipartRequestMarker */ -public class TestFormObjectMultipartRequestMarkerTest { +class TestFormObjectMultipartRequestMarkerTest { private final TestFormObjectMultipartRequestMarker model = new TestFormObjectMultipartRequestMarker(); /** * Model tests for TestFormObjectMultipartRequestMarker */ @Test - public void testTestFormObjectMultipartRequestMarker() { + void testTestFormObjectMultipartRequestMarker() { // TODO: test TestFormObjectMultipartRequestMarker } @@ -40,7 +40,7 @@ public void testTestFormObjectMultipartRequestMarker() { * Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } diff --git a/samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameterTest.java b/samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameterTest.java index 8ab39f47d766..de68c2a50472 100644 --- a/samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameterTest.java +++ b/samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameterTest.java @@ -18,21 +18,21 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.Test; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; /** * Model tests for TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter */ -public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameterTest { +class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameterTest { private final TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter model = new TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter(); /** * Model tests for TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter */ @Test - public void testTestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter() { + void testTestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter() { // TODO: test TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter } @@ -40,7 +40,7 @@ public void testTestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParamet * Test the property 'size' */ @Test - public void sizeTest() { + void sizeTest() { // TODO: test size } @@ -48,7 +48,7 @@ public void sizeTest() { * Test the property 'color' */ @Test - public void colorTest() { + void colorTest() { // TODO: test color } @@ -56,7 +56,7 @@ public void colorTest() { * Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } @@ -64,7 +64,7 @@ public void idTest() { * Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } diff --git a/samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameterTest.java b/samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameterTest.java index f3e020346fa0..e85ace643499 100644 --- a/samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameterTest.java +++ b/samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameterTest.java @@ -21,21 +21,21 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.Test; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; /** * Model tests for TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter */ -public class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameterTest { +class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameterTest { private final TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter model = new TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter(); /** * Model tests for TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter */ @Test - public void testTestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter() { + void testTestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter() { // TODO: test TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter } @@ -43,7 +43,7 @@ public void testTestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter() { * Test the property 'values' */ @Test - public void valuesTest() { + void valuesTest() { // TODO: test values } diff --git a/samples/client/echo_api/php-nextgen-streaming/tests/Api/AuthApiTest.php b/samples/client/echo_api/php-nextgen-streaming/tests/Api/AuthApiTest.php index ae29180cc953..247cf96ef2ec 100644 --- a/samples/client/echo_api/php-nextgen-streaming/tests/Api/AuthApiTest.php +++ b/samples/client/echo_api/php-nextgen-streaming/tests/Api/AuthApiTest.php @@ -16,7 +16,7 @@ * The version of the OpenAPI document: 0.1.0 * Contact: team@openapitools.org * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.8.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/echo_api/php-nextgen-streaming/tests/Api/BodyApiTest.php b/samples/client/echo_api/php-nextgen-streaming/tests/Api/BodyApiTest.php index fc745ade8311..cea56c6a6814 100644 --- a/samples/client/echo_api/php-nextgen-streaming/tests/Api/BodyApiTest.php +++ b/samples/client/echo_api/php-nextgen-streaming/tests/Api/BodyApiTest.php @@ -16,7 +16,7 @@ * The version of the OpenAPI document: 0.1.0 * Contact: team@openapitools.org * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.8.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/echo_api/php-nextgen-streaming/tests/Api/FormApiTest.php b/samples/client/echo_api/php-nextgen-streaming/tests/Api/FormApiTest.php index 2834c594d23a..08fcc054958b 100644 --- a/samples/client/echo_api/php-nextgen-streaming/tests/Api/FormApiTest.php +++ b/samples/client/echo_api/php-nextgen-streaming/tests/Api/FormApiTest.php @@ -16,7 +16,7 @@ * The version of the OpenAPI document: 0.1.0 * Contact: team@openapitools.org * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.8.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/echo_api/php-nextgen-streaming/tests/Api/HeaderApiTest.php b/samples/client/echo_api/php-nextgen-streaming/tests/Api/HeaderApiTest.php index e2cc1b1b7bf4..e806c0ad20a4 100644 --- a/samples/client/echo_api/php-nextgen-streaming/tests/Api/HeaderApiTest.php +++ b/samples/client/echo_api/php-nextgen-streaming/tests/Api/HeaderApiTest.php @@ -16,7 +16,7 @@ * The version of the OpenAPI document: 0.1.0 * Contact: team@openapitools.org * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.8.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/echo_api/php-nextgen-streaming/tests/Api/PathApiTest.php b/samples/client/echo_api/php-nextgen-streaming/tests/Api/PathApiTest.php index 852e2ff9430e..f9c7dcc8e123 100644 --- a/samples/client/echo_api/php-nextgen-streaming/tests/Api/PathApiTest.php +++ b/samples/client/echo_api/php-nextgen-streaming/tests/Api/PathApiTest.php @@ -16,7 +16,7 @@ * The version of the OpenAPI document: 0.1.0 * Contact: team@openapitools.org * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.8.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/echo_api/php-nextgen-streaming/tests/Api/QueryApiTest.php b/samples/client/echo_api/php-nextgen-streaming/tests/Api/QueryApiTest.php index 375cdee50b18..a5517b21072a 100644 --- a/samples/client/echo_api/php-nextgen-streaming/tests/Api/QueryApiTest.php +++ b/samples/client/echo_api/php-nextgen-streaming/tests/Api/QueryApiTest.php @@ -16,7 +16,7 @@ * The version of the OpenAPI document: 0.1.0 * Contact: team@openapitools.org * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.8.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/echo_api/php-nextgen-streaming/tests/Model/BirdTest.php b/samples/client/echo_api/php-nextgen-streaming/tests/Model/BirdTest.php index 0fcf3e468a53..087f947c09f9 100644 --- a/samples/client/echo_api/php-nextgen-streaming/tests/Model/BirdTest.php +++ b/samples/client/echo_api/php-nextgen-streaming/tests/Model/BirdTest.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 0.1.0 * Contact: team@openapitools.org * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.8.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/echo_api/php-nextgen-streaming/tests/Model/CategoryTest.php b/samples/client/echo_api/php-nextgen-streaming/tests/Model/CategoryTest.php index f13294a7646e..e532c316fa29 100644 --- a/samples/client/echo_api/php-nextgen-streaming/tests/Model/CategoryTest.php +++ b/samples/client/echo_api/php-nextgen-streaming/tests/Model/CategoryTest.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 0.1.0 * Contact: team@openapitools.org * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.8.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/echo_api/php-nextgen-streaming/tests/Model/DataQueryTest.php b/samples/client/echo_api/php-nextgen-streaming/tests/Model/DataQueryTest.php index a364ee144e2a..e50fd5b9255b 100644 --- a/samples/client/echo_api/php-nextgen-streaming/tests/Model/DataQueryTest.php +++ b/samples/client/echo_api/php-nextgen-streaming/tests/Model/DataQueryTest.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 0.1.0 * Contact: team@openapitools.org * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.8.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/echo_api/php-nextgen-streaming/tests/Model/DefaultValueTest.php b/samples/client/echo_api/php-nextgen-streaming/tests/Model/DefaultValueTest.php index 52488c4b1c16..f380671404d6 100644 --- a/samples/client/echo_api/php-nextgen-streaming/tests/Model/DefaultValueTest.php +++ b/samples/client/echo_api/php-nextgen-streaming/tests/Model/DefaultValueTest.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 0.1.0 * Contact: team@openapitools.org * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.8.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/echo_api/php-nextgen-streaming/tests/Model/NumberPropertiesOnlyTest.php b/samples/client/echo_api/php-nextgen-streaming/tests/Model/NumberPropertiesOnlyTest.php index c383b0fa0a1e..a1d3e9e8ecce 100644 --- a/samples/client/echo_api/php-nextgen-streaming/tests/Model/NumberPropertiesOnlyTest.php +++ b/samples/client/echo_api/php-nextgen-streaming/tests/Model/NumberPropertiesOnlyTest.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 0.1.0 * Contact: team@openapitools.org * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.8.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/echo_api/php-nextgen-streaming/tests/Model/PetTest.php b/samples/client/echo_api/php-nextgen-streaming/tests/Model/PetTest.php index ca1792c029f2..754487de7926 100644 --- a/samples/client/echo_api/php-nextgen-streaming/tests/Model/PetTest.php +++ b/samples/client/echo_api/php-nextgen-streaming/tests/Model/PetTest.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 0.1.0 * Contact: team@openapitools.org * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.8.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/echo_api/php-nextgen-streaming/tests/Model/QueryTest.php b/samples/client/echo_api/php-nextgen-streaming/tests/Model/QueryTest.php index eca96fc35630..58c210fb6032 100644 --- a/samples/client/echo_api/php-nextgen-streaming/tests/Model/QueryTest.php +++ b/samples/client/echo_api/php-nextgen-streaming/tests/Model/QueryTest.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 0.1.0 * Contact: team@openapitools.org * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.8.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/echo_api/php-nextgen-streaming/tests/Model/StringEnumRefTest.php b/samples/client/echo_api/php-nextgen-streaming/tests/Model/StringEnumRefTest.php index 1effa1584181..11342c34bd5c 100644 --- a/samples/client/echo_api/php-nextgen-streaming/tests/Model/StringEnumRefTest.php +++ b/samples/client/echo_api/php-nextgen-streaming/tests/Model/StringEnumRefTest.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 0.1.0 * Contact: team@openapitools.org * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.8.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/echo_api/php-nextgen-streaming/tests/Model/TagTest.php b/samples/client/echo_api/php-nextgen-streaming/tests/Model/TagTest.php index 87dfc5185caa..86678dfe9b5e 100644 --- a/samples/client/echo_api/php-nextgen-streaming/tests/Model/TagTest.php +++ b/samples/client/echo_api/php-nextgen-streaming/tests/Model/TagTest.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 0.1.0 * Contact: team@openapitools.org * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.8.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/echo_api/php-nextgen-streaming/tests/Model/TestFormObjectMultipartRequestMarkerTest.php b/samples/client/echo_api/php-nextgen-streaming/tests/Model/TestFormObjectMultipartRequestMarkerTest.php index 5a785f539031..1bb03b3d112a 100644 --- a/samples/client/echo_api/php-nextgen-streaming/tests/Model/TestFormObjectMultipartRequestMarkerTest.php +++ b/samples/client/echo_api/php-nextgen-streaming/tests/Model/TestFormObjectMultipartRequestMarkerTest.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 0.1.0 * Contact: team@openapitools.org * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.8.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/echo_api/php-nextgen-streaming/tests/Model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameterTest.php b/samples/client/echo_api/php-nextgen-streaming/tests/Model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameterTest.php index 45fd06acab2b..b66353373551 100644 --- a/samples/client/echo_api/php-nextgen-streaming/tests/Model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameterTest.php +++ b/samples/client/echo_api/php-nextgen-streaming/tests/Model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameterTest.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 0.1.0 * Contact: team@openapitools.org * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.8.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/echo_api/php-nextgen-streaming/tests/Model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameterTest.php b/samples/client/echo_api/php-nextgen-streaming/tests/Model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameterTest.php index 41f69e3c1b1d..267b09d889f5 100644 --- a/samples/client/echo_api/php-nextgen-streaming/tests/Model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameterTest.php +++ b/samples/client/echo_api/php-nextgen-streaming/tests/Model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameterTest.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 0.1.0 * Contact: team@openapitools.org * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.8.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/echo_api/php-nextgen/tests/Api/AuthApiTest.php b/samples/client/echo_api/php-nextgen/tests/Api/AuthApiTest.php index e699f0c08ceb..247cf96ef2ec 100644 --- a/samples/client/echo_api/php-nextgen/tests/Api/AuthApiTest.php +++ b/samples/client/echo_api/php-nextgen/tests/Api/AuthApiTest.php @@ -3,7 +3,6 @@ * AuthApiTest * PHP version 8.1 * - * @category Class * @package OpenAPI\Client * @author OpenAPI Generator team * @link https://openapi-generator.tech @@ -17,7 +16,7 @@ * The version of the OpenAPI document: 0.1.0 * Contact: team@openapitools.org * @generated Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.0.1-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** @@ -28,15 +27,14 @@ namespace OpenAPI\Client\Test\Api; -use \OpenAPI\Client\Configuration; -use \OpenAPI\Client\ApiException; -use \OpenAPI\Client\ObjectSerializer; +use OpenAPI\Client\Configuration; +use OpenAPI\Client\ApiException; +use OpenAPI\Client\ObjectSerializer; use PHPUnit\Framework\TestCase; /** * AuthApiTest Class Doc Comment * - * @category Class * @package OpenAPI\Client * @author OpenAPI Generator team * @link https://openapi-generator.tech @@ -83,4 +81,16 @@ public function testTestAuthHttpBasic() // TODO: implement self::markTestIncomplete('Not implemented'); } + + /** + * Test case for testAuthHttpBearer + * + * To test HTTP bearer authentication. + * + */ + public function testTestAuthHttpBearer() + { + // TODO: implement + self::markTestIncomplete('Not implemented'); + } } diff --git a/samples/client/echo_api/php-nextgen/tests/Api/BodyApiTest.php b/samples/client/echo_api/php-nextgen/tests/Api/BodyApiTest.php index 8c91c94c380c..cea56c6a6814 100644 --- a/samples/client/echo_api/php-nextgen/tests/Api/BodyApiTest.php +++ b/samples/client/echo_api/php-nextgen/tests/Api/BodyApiTest.php @@ -3,7 +3,6 @@ * BodyApiTest * PHP version 8.1 * - * @category Class * @package OpenAPI\Client * @author OpenAPI Generator team * @link https://openapi-generator.tech @@ -17,7 +16,7 @@ * The version of the OpenAPI document: 0.1.0 * Contact: team@openapitools.org * @generated Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.0.1-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** @@ -28,15 +27,14 @@ namespace OpenAPI\Client\Test\Api; -use \OpenAPI\Client\Configuration; -use \OpenAPI\Client\ApiException; -use \OpenAPI\Client\ObjectSerializer; +use OpenAPI\Client\Configuration; +use OpenAPI\Client\ApiException; +use OpenAPI\Client\ObjectSerializer; use PHPUnit\Framework\TestCase; /** * BodyApiTest Class Doc Comment * - * @category Class * @package OpenAPI\Client * @author OpenAPI Generator team * @link https://openapi-generator.tech @@ -108,6 +106,30 @@ public function testTestBodyMultipartFormdataArrayOfBinary() self::markTestIncomplete('Not implemented'); } + /** + * Test case for testBodyMultipartFormdataSingleBinary + * + * Test single binary in multipart mime. + * + */ + public function testTestBodyMultipartFormdataSingleBinary() + { + // TODO: implement + self::markTestIncomplete('Not implemented'); + } + + /** + * Test case for testEchoBodyAllOfPet + * + * Test body parameter(s). + * + */ + public function testTestEchoBodyAllOfPet() + { + // TODO: implement + self::markTestIncomplete('Not implemented'); + } + /** * Test case for testEchoBodyFreeFormObjectResponseString * @@ -144,6 +166,18 @@ public function testTestEchoBodyPetResponseString() self::markTestIncomplete('Not implemented'); } + /** + * Test case for testEchoBodyStringEnum + * + * Test string enum response body. + * + */ + public function testTestEchoBodyStringEnum() + { + // TODO: implement + self::markTestIncomplete('Not implemented'); + } + /** * Test case for testEchoBodyTagResponseString * diff --git a/samples/client/echo_api/php-nextgen/tests/Api/FormApiTest.php b/samples/client/echo_api/php-nextgen/tests/Api/FormApiTest.php index a5443fde5fc5..08fcc054958b 100644 --- a/samples/client/echo_api/php-nextgen/tests/Api/FormApiTest.php +++ b/samples/client/echo_api/php-nextgen/tests/Api/FormApiTest.php @@ -3,7 +3,6 @@ * FormApiTest * PHP version 8.1 * - * @category Class * @package OpenAPI\Client * @author OpenAPI Generator team * @link https://openapi-generator.tech @@ -17,7 +16,7 @@ * The version of the OpenAPI document: 0.1.0 * Contact: team@openapitools.org * @generated Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.0.1-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** @@ -28,15 +27,14 @@ namespace OpenAPI\Client\Test\Api; -use \OpenAPI\Client\Configuration; -use \OpenAPI\Client\ApiException; -use \OpenAPI\Client\ObjectSerializer; +use OpenAPI\Client\Configuration; +use OpenAPI\Client\ApiException; +use OpenAPI\Client\ObjectSerializer; use PHPUnit\Framework\TestCase; /** * FormApiTest Class Doc Comment * - * @category Class * @package OpenAPI\Client * @author OpenAPI Generator team * @link https://openapi-generator.tech @@ -84,6 +82,18 @@ public function testTestFormIntegerBooleanString() self::markTestIncomplete('Not implemented'); } + /** + * Test case for testFormObjectMultipart + * + * Test form parameter(s) for multipart schema. + * + */ + public function testTestFormObjectMultipart() + { + // TODO: implement + self::markTestIncomplete('Not implemented'); + } + /** * Test case for testFormOneof * diff --git a/samples/client/echo_api/php-nextgen/tests/Api/HeaderApiTest.php b/samples/client/echo_api/php-nextgen/tests/Api/HeaderApiTest.php index 99851ce00b82..e806c0ad20a4 100644 --- a/samples/client/echo_api/php-nextgen/tests/Api/HeaderApiTest.php +++ b/samples/client/echo_api/php-nextgen/tests/Api/HeaderApiTest.php @@ -3,7 +3,6 @@ * HeaderApiTest * PHP version 8.1 * - * @category Class * @package OpenAPI\Client * @author OpenAPI Generator team * @link https://openapi-generator.tech @@ -17,7 +16,7 @@ * The version of the OpenAPI document: 0.1.0 * Contact: team@openapitools.org * @generated Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.0.1-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** @@ -28,15 +27,14 @@ namespace OpenAPI\Client\Test\Api; -use \OpenAPI\Client\Configuration; -use \OpenAPI\Client\ApiException; -use \OpenAPI\Client\ObjectSerializer; +use OpenAPI\Client\Configuration; +use OpenAPI\Client\ApiException; +use OpenAPI\Client\ObjectSerializer; use PHPUnit\Framework\TestCase; /** * HeaderApiTest Class Doc Comment * - * @category Class * @package OpenAPI\Client * @author OpenAPI Generator team * @link https://openapi-generator.tech @@ -73,12 +71,12 @@ public static function tearDownAfterClass(): void } /** - * Test case for testHeaderIntegerBooleanString + * Test case for testHeaderIntegerBooleanStringEnums * * Test header parameter(s). * */ - public function testTestHeaderIntegerBooleanString() + public function testTestHeaderIntegerBooleanStringEnums() { // TODO: implement self::markTestIncomplete('Not implemented'); diff --git a/samples/client/echo_api/php-nextgen/tests/Api/PathApiTest.php b/samples/client/echo_api/php-nextgen/tests/Api/PathApiTest.php index d4043ae9f5bf..f9c7dcc8e123 100644 --- a/samples/client/echo_api/php-nextgen/tests/Api/PathApiTest.php +++ b/samples/client/echo_api/php-nextgen/tests/Api/PathApiTest.php @@ -3,7 +3,6 @@ * PathApiTest * PHP version 8.1 * - * @category Class * @package OpenAPI\Client * @author OpenAPI Generator team * @link https://openapi-generator.tech @@ -17,7 +16,7 @@ * The version of the OpenAPI document: 0.1.0 * Contact: team@openapitools.org * @generated Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.0.1-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** @@ -28,15 +27,14 @@ namespace OpenAPI\Client\Test\Api; -use \OpenAPI\Client\Configuration; -use \OpenAPI\Client\ApiException; -use \OpenAPI\Client\ObjectSerializer; +use OpenAPI\Client\Configuration; +use OpenAPI\Client\ApiException; +use OpenAPI\Client\ObjectSerializer; use PHPUnit\Framework\TestCase; /** * PathApiTest Class Doc Comment * - * @category Class * @package OpenAPI\Client * @author OpenAPI Generator team * @link https://openapi-generator.tech @@ -73,12 +71,12 @@ public static function tearDownAfterClass(): void } /** - * Test case for testsPathStringPathStringIntegerPathInteger + * Test case for testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath * * Test path parameter(s). * */ - public function testTestsPathStringPathStringIntegerPathInteger() + public function testTestsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath() { // TODO: implement self::markTestIncomplete('Not implemented'); diff --git a/samples/client/echo_api/php-nextgen/tests/Api/QueryApiTest.php b/samples/client/echo_api/php-nextgen/tests/Api/QueryApiTest.php index caee658915d6..a5517b21072a 100644 --- a/samples/client/echo_api/php-nextgen/tests/Api/QueryApiTest.php +++ b/samples/client/echo_api/php-nextgen/tests/Api/QueryApiTest.php @@ -3,7 +3,6 @@ * QueryApiTest * PHP version 8.1 * - * @category Class * @package OpenAPI\Client * @author OpenAPI Generator team * @link https://openapi-generator.tech @@ -17,7 +16,7 @@ * The version of the OpenAPI document: 0.1.0 * Contact: team@openapitools.org * @generated Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.0.1-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** @@ -28,15 +27,14 @@ namespace OpenAPI\Client\Test\Api; -use \OpenAPI\Client\Configuration; -use \OpenAPI\Client\ApiException; -use \OpenAPI\Client\ObjectSerializer; +use OpenAPI\Client\Configuration; +use OpenAPI\Client\ApiException; +use OpenAPI\Client\ObjectSerializer; use PHPUnit\Framework\TestCase; /** * QueryApiTest Class Doc Comment * - * @category Class * @package OpenAPI\Client * @author OpenAPI Generator team * @link https://openapi-generator.tech @@ -132,6 +130,30 @@ public function testTestQueryStyleDeepObjectExplodeTrueObjectAllOf() self::markTestIncomplete('Not implemented'); } + /** + * Test case for testQueryStyleFormExplodeFalseArrayInteger + * + * Test query parameter(s). + * + */ + public function testTestQueryStyleFormExplodeFalseArrayInteger() + { + // TODO: implement + self::markTestIncomplete('Not implemented'); + } + + /** + * Test case for testQueryStyleFormExplodeFalseArrayString + * + * Test query parameter(s). + * + */ + public function testTestQueryStyleFormExplodeFalseArrayString() + { + // TODO: implement + self::markTestIncomplete('Not implemented'); + } + /** * Test case for testQueryStyleFormExplodeTrueArrayString * diff --git a/samples/client/echo_api/php-nextgen/tests/Model/BirdTest.php b/samples/client/echo_api/php-nextgen/tests/Model/BirdTest.php index b2a684f90d73..087f947c09f9 100644 --- a/samples/client/echo_api/php-nextgen/tests/Model/BirdTest.php +++ b/samples/client/echo_api/php-nextgen/tests/Model/BirdTest.php @@ -4,7 +4,6 @@ * * PHP version 8.1 * - * @category Class * @package OpenAPI\Client * @author OpenAPI Generator team * @link https://openapi-generator.tech @@ -18,7 +17,7 @@ * The version of the OpenAPI document: 0.1.0 * Contact: team@openapitools.org * @generated Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.0.1-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** @@ -34,7 +33,6 @@ /** * BirdTest Class Doc Comment * - * @category Class * @description Bird * @package OpenAPI\Client * @author OpenAPI Generator team diff --git a/samples/client/echo_api/php-nextgen/tests/Model/CategoryTest.php b/samples/client/echo_api/php-nextgen/tests/Model/CategoryTest.php index edfa0b8b1580..e532c316fa29 100644 --- a/samples/client/echo_api/php-nextgen/tests/Model/CategoryTest.php +++ b/samples/client/echo_api/php-nextgen/tests/Model/CategoryTest.php @@ -4,7 +4,6 @@ * * PHP version 8.1 * - * @category Class * @package OpenAPI\Client * @author OpenAPI Generator team * @link https://openapi-generator.tech @@ -18,7 +17,7 @@ * The version of the OpenAPI document: 0.1.0 * Contact: team@openapitools.org * @generated Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.0.1-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** @@ -34,7 +33,6 @@ /** * CategoryTest Class Doc Comment * - * @category Class * @description Category * @package OpenAPI\Client * @author OpenAPI Generator team diff --git a/samples/client/echo_api/php-nextgen/tests/Model/DataQueryTest.php b/samples/client/echo_api/php-nextgen/tests/Model/DataQueryTest.php index 68cf3d2b0a19..e50fd5b9255b 100644 --- a/samples/client/echo_api/php-nextgen/tests/Model/DataQueryTest.php +++ b/samples/client/echo_api/php-nextgen/tests/Model/DataQueryTest.php @@ -4,7 +4,6 @@ * * PHP version 8.1 * - * @category Class * @package OpenAPI\Client * @author OpenAPI Generator team * @link https://openapi-generator.tech @@ -18,7 +17,7 @@ * The version of the OpenAPI document: 0.1.0 * Contact: team@openapitools.org * @generated Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.0.1-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** @@ -34,7 +33,6 @@ /** * DataQueryTest Class Doc Comment * - * @category Class * @description DataQuery * @package OpenAPI\Client * @author OpenAPI Generator team diff --git a/samples/client/echo_api/php-nextgen/tests/Model/DefaultValueTest.php b/samples/client/echo_api/php-nextgen/tests/Model/DefaultValueTest.php index 9c37428edded..f380671404d6 100644 --- a/samples/client/echo_api/php-nextgen/tests/Model/DefaultValueTest.php +++ b/samples/client/echo_api/php-nextgen/tests/Model/DefaultValueTest.php @@ -4,7 +4,6 @@ * * PHP version 8.1 * - * @category Class * @package OpenAPI\Client * @author OpenAPI Generator team * @link https://openapi-generator.tech @@ -18,7 +17,7 @@ * The version of the OpenAPI document: 0.1.0 * Contact: team@openapitools.org * @generated Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.0.1-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** @@ -34,7 +33,6 @@ /** * DefaultValueTest Class Doc Comment * - * @category Class * @description to test the default value of properties * @package OpenAPI\Client * @author OpenAPI Generator team diff --git a/samples/client/echo_api/php-nextgen/tests/Model/NumberPropertiesOnlyTest.php b/samples/client/echo_api/php-nextgen/tests/Model/NumberPropertiesOnlyTest.php index 13b2f2b0d6f0..a1d3e9e8ecce 100644 --- a/samples/client/echo_api/php-nextgen/tests/Model/NumberPropertiesOnlyTest.php +++ b/samples/client/echo_api/php-nextgen/tests/Model/NumberPropertiesOnlyTest.php @@ -4,7 +4,6 @@ * * PHP version 8.1 * - * @category Class * @package OpenAPI\Client * @author OpenAPI Generator team * @link https://openapi-generator.tech @@ -18,7 +17,7 @@ * The version of the OpenAPI document: 0.1.0 * Contact: team@openapitools.org * @generated Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.0.1-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** @@ -34,7 +33,6 @@ /** * NumberPropertiesOnlyTest Class Doc Comment * - * @category Class * @description NumberPropertiesOnly * @package OpenAPI\Client * @author OpenAPI Generator team diff --git a/samples/client/echo_api/php-nextgen/tests/Model/PetTest.php b/samples/client/echo_api/php-nextgen/tests/Model/PetTest.php index f7ff28534f5f..754487de7926 100644 --- a/samples/client/echo_api/php-nextgen/tests/Model/PetTest.php +++ b/samples/client/echo_api/php-nextgen/tests/Model/PetTest.php @@ -4,7 +4,6 @@ * * PHP version 8.1 * - * @category Class * @package OpenAPI\Client * @author OpenAPI Generator team * @link https://openapi-generator.tech @@ -18,7 +17,7 @@ * The version of the OpenAPI document: 0.1.0 * Contact: team@openapitools.org * @generated Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.0.1-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** @@ -34,7 +33,6 @@ /** * PetTest Class Doc Comment * - * @category Class * @description Pet * @package OpenAPI\Client * @author OpenAPI Generator team diff --git a/samples/client/echo_api/php-nextgen/tests/Model/QueryTest.php b/samples/client/echo_api/php-nextgen/tests/Model/QueryTest.php index a01c98c40a3a..58c210fb6032 100644 --- a/samples/client/echo_api/php-nextgen/tests/Model/QueryTest.php +++ b/samples/client/echo_api/php-nextgen/tests/Model/QueryTest.php @@ -4,7 +4,6 @@ * * PHP version 8.1 * - * @category Class * @package OpenAPI\Client * @author OpenAPI Generator team * @link https://openapi-generator.tech @@ -18,7 +17,7 @@ * The version of the OpenAPI document: 0.1.0 * Contact: team@openapitools.org * @generated Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.0.1-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** @@ -34,7 +33,6 @@ /** * QueryTest Class Doc Comment * - * @category Class * @description Query * @package OpenAPI\Client * @author OpenAPI Generator team diff --git a/samples/client/echo_api/php-nextgen/tests/Model/StringEnumRefTest.php b/samples/client/echo_api/php-nextgen/tests/Model/StringEnumRefTest.php index 64bde9a7817b..11342c34bd5c 100644 --- a/samples/client/echo_api/php-nextgen/tests/Model/StringEnumRefTest.php +++ b/samples/client/echo_api/php-nextgen/tests/Model/StringEnumRefTest.php @@ -4,7 +4,6 @@ * * PHP version 8.1 * - * @category Class * @package OpenAPI\Client * @author OpenAPI Generator team * @link https://openapi-generator.tech @@ -18,7 +17,7 @@ * The version of the OpenAPI document: 0.1.0 * Contact: team@openapitools.org * @generated Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.0.1-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** @@ -34,7 +33,6 @@ /** * StringEnumRefTest Class Doc Comment * - * @category Class * @description StringEnumRef * @package OpenAPI\Client * @author OpenAPI Generator team diff --git a/samples/client/echo_api/php-nextgen/tests/Model/TagTest.php b/samples/client/echo_api/php-nextgen/tests/Model/TagTest.php index 0e9a9cbca7e5..86678dfe9b5e 100644 --- a/samples/client/echo_api/php-nextgen/tests/Model/TagTest.php +++ b/samples/client/echo_api/php-nextgen/tests/Model/TagTest.php @@ -4,7 +4,6 @@ * * PHP version 8.1 * - * @category Class * @package OpenAPI\Client * @author OpenAPI Generator team * @link https://openapi-generator.tech @@ -18,7 +17,7 @@ * The version of the OpenAPI document: 0.1.0 * Contact: team@openapitools.org * @generated Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.0.1-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** @@ -34,7 +33,6 @@ /** * TagTest Class Doc Comment * - * @category Class * @description Tag * @package OpenAPI\Client * @author OpenAPI Generator team diff --git a/samples/client/echo_api/php-nextgen/tests/Model/TestFormObjectMultipartRequestMarkerTest.php b/samples/client/echo_api/php-nextgen/tests/Model/TestFormObjectMultipartRequestMarkerTest.php index 30eb64c636a8..1bb03b3d112a 100644 --- a/samples/client/echo_api/php-nextgen/tests/Model/TestFormObjectMultipartRequestMarkerTest.php +++ b/samples/client/echo_api/php-nextgen/tests/Model/TestFormObjectMultipartRequestMarkerTest.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 0.1.0 * Contact: team@openapitools.org * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.5.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/echo_api/php-nextgen/tests/Model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameterTest.php b/samples/client/echo_api/php-nextgen/tests/Model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameterTest.php index 04f2508bdda5..b66353373551 100644 --- a/samples/client/echo_api/php-nextgen/tests/Model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameterTest.php +++ b/samples/client/echo_api/php-nextgen/tests/Model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameterTest.php @@ -4,7 +4,6 @@ * * PHP version 8.1 * - * @category Class * @package OpenAPI\Client * @author OpenAPI Generator team * @link https://openapi-generator.tech @@ -18,7 +17,7 @@ * The version of the OpenAPI document: 0.1.0 * Contact: team@openapitools.org * @generated Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.0.1-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** @@ -34,7 +33,6 @@ /** * TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameterTest Class Doc Comment * - * @category Class * @description TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter * @package OpenAPI\Client * @author OpenAPI Generator team diff --git a/samples/client/echo_api/php-nextgen/tests/Model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameterTest.php b/samples/client/echo_api/php-nextgen/tests/Model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameterTest.php index aea9a6b2729f..267b09d889f5 100644 --- a/samples/client/echo_api/php-nextgen/tests/Model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameterTest.php +++ b/samples/client/echo_api/php-nextgen/tests/Model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameterTest.php @@ -4,7 +4,6 @@ * * PHP version 8.1 * - * @category Class * @package OpenAPI\Client * @author OpenAPI Generator team * @link https://openapi-generator.tech @@ -18,7 +17,7 @@ * The version of the OpenAPI document: 0.1.0 * Contact: team@openapitools.org * @generated Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.0.1-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** @@ -34,7 +33,6 @@ /** * TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameterTest Class Doc Comment * - * @category Class * @description TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter * @package OpenAPI\Client * @author OpenAPI Generator team diff --git a/samples/client/echo_api/powershell/tests/Api/AuthApi.Tests.ps1 b/samples/client/echo_api/powershell/tests/Api/AuthApi.Tests.ps1 index fb4b6a144d8a..8e6af427344b 100644 --- a/samples/client/echo_api/powershell/tests/Api/AuthApi.Tests.ps1 +++ b/samples/client/echo_api/powershell/tests/Api/AuthApi.Tests.ps1 @@ -15,4 +15,12 @@ Describe -tag 'PSOpenAPITools' -name 'AuthApi' { } } + Context 'Test-AuthHttpBearer' { + It 'Test Test-AuthHttpBearer' { + #$TestResult = Test-AuthHttpBearer + #$TestResult | Should -BeOfType TODO + #$TestResult.property | Should -Be 0 + } + } + } diff --git a/samples/client/echo_api/powershell/tests/Api/BodyApi.Tests.ps1 b/samples/client/echo_api/powershell/tests/Api/BodyApi.Tests.ps1 index 4829c660719c..8b57e6e28b2c 100644 --- a/samples/client/echo_api/powershell/tests/Api/BodyApi.Tests.ps1 +++ b/samples/client/echo_api/powershell/tests/Api/BodyApi.Tests.ps1 @@ -31,6 +31,14 @@ Describe -tag 'PSOpenAPITools' -name 'BodyApi' { } } + Context 'Test-BodyMultipartFormdataSingleBinary' { + It 'Test Test-BodyMultipartFormdataSingleBinary' { + #$TestResult = Test-BodyMultipartFormdataSingleBinary -MyFile "TEST_VALUE" + #$TestResult | Should -BeOfType TODO + #$TestResult.property | Should -Be 0 + } + } + Context 'Test-EchoBodyFreeFormObjectResponseString' { It 'Test Test-EchoBodyFreeFormObjectResponseString' { #$TestResult = Test-EchoBodyFreeFormObjectResponseString -Body "TEST_VALUE" @@ -71,4 +79,12 @@ Describe -tag 'PSOpenAPITools' -name 'BodyApi' { } } + Context 'Test-EchoBodyStringEnum' { + It 'Test Test-EchoBodyStringEnum' { + #$TestResult = Test-EchoBodyStringEnum -Body "TEST_VALUE" + #$TestResult | Should -BeOfType TODO + #$TestResult.property | Should -Be 0 + } + } + } diff --git a/samples/client/echo_api/powershell/tests/Api/FormApi.Tests.ps1 b/samples/client/echo_api/powershell/tests/Api/FormApi.Tests.ps1 index db830207c63e..8374b3b9dd72 100644 --- a/samples/client/echo_api/powershell/tests/Api/FormApi.Tests.ps1 +++ b/samples/client/echo_api/powershell/tests/Api/FormApi.Tests.ps1 @@ -15,6 +15,14 @@ Describe -tag 'PSOpenAPITools' -name 'FormApi' { } } + Context 'Test-FormObjectMultipart' { + It 'Test Test-FormObjectMultipart' { + #$TestResult = Test-FormObjectMultipart -Marker "TEST_VALUE" + #$TestResult | Should -BeOfType TODO + #$TestResult.property | Should -Be 0 + } + } + Context 'Test-FormOneof' { It 'Test Test-FormOneof' { #$TestResult = Test-FormOneof -Form1 "TEST_VALUE" -Form2 "TEST_VALUE" -Form3 "TEST_VALUE" -Form4 "TEST_VALUE" -Id "TEST_VALUE" -Name "TEST_VALUE" diff --git a/samples/client/echo_api/powershell/tests/Api/QueryApi.Tests.ps1 b/samples/client/echo_api/powershell/tests/Api/QueryApi.Tests.ps1 index ebbdd643d0be..a7b543136eb6 100644 --- a/samples/client/echo_api/powershell/tests/Api/QueryApi.Tests.ps1 +++ b/samples/client/echo_api/powershell/tests/Api/QueryApi.Tests.ps1 @@ -47,6 +47,22 @@ Describe -tag 'PSOpenAPITools' -name 'QueryApi' { } } + Context 'Test-QueryStyleFormExplodeFalseArrayInteger' { + It 'Test Test-QueryStyleFormExplodeFalseArrayInteger' { + #$TestResult = Test-QueryStyleFormExplodeFalseArrayInteger -QueryObject "TEST_VALUE" + #$TestResult | Should -BeOfType TODO + #$TestResult.property | Should -Be 0 + } + } + + Context 'Test-QueryStyleFormExplodeFalseArrayString' { + It 'Test Test-QueryStyleFormExplodeFalseArrayString' { + #$TestResult = Test-QueryStyleFormExplodeFalseArrayString -QueryObject "TEST_VALUE" + #$TestResult | Should -BeOfType TODO + #$TestResult.property | Should -Be 0 + } + } + Context 'Test-QueryStyleFormExplodeTrueArrayString' { It 'Test Test-QueryStyleFormExplodeTrueArrayString' { #$TestResult = Test-QueryStyleFormExplodeTrueArrayString -QueryObject "TEST_VALUE" diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_auth_api.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_auth_api.py index bfd827933bd6..47756f746042 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_auth_api.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_auth_api.py @@ -15,14 +15,14 @@ import unittest -from openapi_client.api.auth_api import AuthApi # noqa: E501 +from openapi_client.api.auth_api import AuthApi class TestAuthApi(unittest.TestCase): """AuthApi unit test stubs""" def setUp(self) -> None: - self.api = AuthApi() # noqa: E501 + self.api = AuthApi() def tearDown(self) -> None: pass @@ -30,7 +30,14 @@ def tearDown(self) -> None: def test_test_auth_http_basic(self) -> None: """Test case for test_auth_http_basic - To test HTTP basic authentication # noqa: E501 + To test HTTP basic authentication + """ + pass + + def test_test_auth_http_bearer(self) -> None: + """Test case for test_auth_http_bearer + + To test HTTP bearer authentication """ pass diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_bird.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_bird.py index d95a104d7147..1a2289c0d472 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_bird.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_bird.py @@ -3,22 +3,19 @@ """ Echo Server API - Echo Server API # noqa: E501 + Echo Server API The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import datetime -import openapi_client -from openapi_client.models.bird import Bird # noqa: E501 -from openapi_client.rest import ApiException +from openapi_client.models.bird import Bird class TestBird(unittest.TestCase): """Bird unit test stubs""" @@ -29,20 +26,20 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> Bird: """Test Bird - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `Bird` """ - model = openapi_client.models.bird.Bird() # noqa: E501 - if include_optional : + model = Bird() + if include_optional: return Bird( - size = '', + size = '', color = '' ) - else : + else: return Bird( ) """ diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_body_api.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_body_api.py index e5e24ace8102..f9b7917ee006 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_body_api.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_body_api.py @@ -3,36 +3,97 @@ """ Echo Server API - Echo Server API # noqa: E501 + Echo Server API The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import openapi_client -from openapi_client.api.body_api import BodyApi # noqa: E501 -from openapi_client.rest import ApiException +from openapi_client.api.body_api import BodyApi class TestBodyApi(unittest.TestCase): """BodyApi unit test stubs""" - def setUp(self): - self.api = openapi_client.api.body_api.BodyApi() # noqa: E501 + def setUp(self) -> None: + self.api = BodyApi() + + def tearDown(self) -> None: + pass + + def test_test_binary_gif(self) -> None: + """Test case for test_binary_gif + + Test binary (gif) response body + """ + pass + + def test_test_body_application_octetstream_binary(self) -> None: + """Test case for test_body_application_octetstream_binary + + Test body parameter(s) + """ + pass + + def test_test_body_multipart_formdata_array_of_binary(self) -> None: + """Test case for test_body_multipart_formdata_array_of_binary + + Test array of binary in multipart mime + """ + pass + + def test_test_body_multipart_formdata_single_binary(self) -> None: + """Test case for test_body_multipart_formdata_single_binary + + Test single binary in multipart mime + """ + pass + + def test_test_echo_body_all_of_pet(self) -> None: + """Test case for test_echo_body_all_of_pet + + Test body parameter(s) + """ + pass + + def test_test_echo_body_free_form_object_response_string(self) -> None: + """Test case for test_echo_body_free_form_object_response_string - def tearDown(self): + Test free form object + """ pass - def test_test_echo_body_pet(self): + def test_test_echo_body_pet(self) -> None: """Test case for test_echo_body_pet - Test body parameter(s) # noqa: E501 + Test body parameter(s) + """ + pass + + def test_test_echo_body_pet_response_string(self) -> None: + """Test case for test_echo_body_pet_response_string + + Test empty response body + """ + pass + + def test_test_echo_body_string_enum(self) -> None: + """Test case for test_echo_body_string_enum + + Test string enum response body + """ + pass + + def test_test_echo_body_tag_response_string(self) -> None: + """Test case for test_echo_body_tag_response_string + + Test empty json (request body) """ pass diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_category.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_category.py index b5771c572d33..12dfe19f63ac 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_category.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_category.py @@ -3,22 +3,19 @@ """ Echo Server API - Echo Server API # noqa: E501 + Echo Server API The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import datetime -import openapi_client -from openapi_client.models.category import Category # noqa: E501 -from openapi_client.rest import ApiException +from openapi_client.models.category import Category class TestCategory(unittest.TestCase): """Category unit test stubs""" @@ -29,20 +26,20 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> Category: """Test Category - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `Category` """ - model = openapi_client.models.category.Category() # noqa: E501 - if include_optional : + model = Category() + if include_optional: return Category( - id = 1, + id = 1, name = 'Dogs' ) - else : + else: return Category( ) """ diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_data_query.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_data_query.py index f33d8daabae1..fcd7c9566a37 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_data_query.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_data_query.py @@ -3,22 +3,19 @@ """ Echo Server API - Echo Server API # noqa: E501 + Echo Server API The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import datetime -import openapi_client -from openapi_client.models.data_query import DataQuery # noqa: E501 -from openapi_client.rest import ApiException +from openapi_client.models.data_query import DataQuery class TestDataQuery(unittest.TestCase): """DataQuery unit test stubs""" @@ -29,21 +26,21 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> DataQuery: """Test DataQuery - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `DataQuery` """ - model = openapi_client.models.data_query.DataQuery() # noqa: E501 - if include_optional : + model = DataQuery() + if include_optional: return DataQuery( - suffix = '', - text = 'Some text', + suffix = '', + text = 'Some text', var_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') ) - else : + else: return DataQuery( ) """ diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_default_value.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_default_value.py index 6e5f35fd2eff..4bdc49448868 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_default_value.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_default_value.py @@ -3,22 +3,19 @@ """ Echo Server API - Echo Server API # noqa: E501 + Echo Server API The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import datetime -import openapi_client -from openapi_client.models.default_value import DefaultValue # noqa: E501 -from openapi_client.rest import ApiException +from openapi_client.models.default_value import DefaultValue class TestDefaultValue(unittest.TestCase): """DefaultValue unit test stubs""" @@ -29,34 +26,40 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> DefaultValue: """Test DefaultValue - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `DefaultValue` """ - model = openapi_client.models.default_value.DefaultValue() # noqa: E501 - if include_optional : + model = DefaultValue() + if include_optional: return DefaultValue( + array_string_enum_ref_default = [ + 'success' + ], array_string_enum_default = [ 'success' - ], + ], array_string_default = [ '' - ], + ], array_integer_default = [ 56 - ], + ], array_string = [ '' - ], + ], array_string_nullable = [ '' - ], + ], + array_string_extension_nullable = [ + '' + ], string_nullable = '' ) - else : + else: return DefaultValue( ) """ diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_form_api.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_form_api.py index 6422432c79ba..fbd7ed641e6a 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_form_api.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_form_api.py @@ -3,36 +3,48 @@ """ Echo Server API - Echo Server API # noqa: E501 + Echo Server API The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import openapi_client -from openapi_client.api.form_api import FormApi # noqa: E501 -from openapi_client.rest import ApiException +from openapi_client.api.form_api import FormApi class TestFormApi(unittest.TestCase): """FormApi unit test stubs""" - def setUp(self): - self.api = openapi_client.api.form_api.FormApi() # noqa: E501 + def setUp(self) -> None: + self.api = FormApi() - def tearDown(self): + def tearDown(self) -> None: pass - def test_test_form_integer_boolean_string(self): + def test_test_form_integer_boolean_string(self) -> None: """Test case for test_form_integer_boolean_string - Test form parameter(s) # noqa: E501 + Test form parameter(s) + """ + pass + + def test_test_form_object_multipart(self) -> None: + """Test case for test_form_object_multipart + + Test form parameter(s) for multipart schema + """ + pass + + def test_test_form_oneof(self) -> None: + """Test case for test_form_oneof + + Test form parameter(s) for oneOf schema """ pass diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_header_api.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_header_api.py index c1b7ed44e8f8..68670ebc567f 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_header_api.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_header_api.py @@ -3,36 +3,34 @@ """ Echo Server API - Echo Server API # noqa: E501 + Echo Server API The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import openapi_client -from openapi_client.api.header_api import HeaderApi # noqa: E501 -from openapi_client.rest import ApiException +from openapi_client.api.header_api import HeaderApi class TestHeaderApi(unittest.TestCase): """HeaderApi unit test stubs""" - def setUp(self): - self.api = openapi_client.api.header_api.HeaderApi() # noqa: E501 + def setUp(self) -> None: + self.api = HeaderApi() - def tearDown(self): + def tearDown(self) -> None: pass - def test_test_header_integer_boolean_string(self): - """Test case for test_header_integer_boolean_string + def test_test_header_integer_boolean_string_enums(self) -> None: + """Test case for test_header_integer_boolean_string_enums - Test header parameter(s) # noqa: E501 + Test header parameter(s) """ pass diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_number_properties_only.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_number_properties_only.py index 68aa757f9df9..682503a0cbf7 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_number_properties_only.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_number_properties_only.py @@ -3,22 +3,19 @@ """ Echo Server API - Echo Server API # noqa: E501 + Echo Server API The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" +""" # noqa: E501 import unittest -import datetime -import openapi_client -from openapi_client.models.number_properties_only import NumberPropertiesOnly # noqa: E501 -from openapi_client.rest import ApiException +from openapi_client.models.number_properties_only import NumberPropertiesOnly class TestNumberPropertiesOnly(unittest.TestCase): """NumberPropertiesOnly unit test stubs""" @@ -29,21 +26,21 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> NumberPropertiesOnly: """Test NumberPropertiesOnly - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `NumberPropertiesOnly` """ - model = openapi_client.models.number_properties_only.NumberPropertiesOnly() # noqa: E501 - if include_optional : + model = NumberPropertiesOnly() + if include_optional: return NumberPropertiesOnly( - number = 1.337, - float = 1.337, - double = '' + number = 1.337, + var_float = 1.337, + double = 0.8 ) - else : + else: return NumberPropertiesOnly( ) """ diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_path_api.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_path_api.py index 4d8e71f7ce6a..faabe2102426 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_path_api.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_path_api.py @@ -3,36 +3,34 @@ """ Echo Server API - Echo Server API # noqa: E501 + Echo Server API The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import openapi_client -from openapi_client.api.path_api import PathApi # noqa: E501 -from openapi_client.rest import ApiException +from openapi_client.api.path_api import PathApi class TestPathApi(unittest.TestCase): """PathApi unit test stubs""" - def setUp(self): - self.api = openapi_client.api.path_api.PathApi() # noqa: E501 + def setUp(self) -> None: + self.api = PathApi() - def tearDown(self): + def tearDown(self) -> None: pass - def test_tests_path_string_path_string_integer_path_integer(self): - """Test case for tests_path_string_path_string_integer_path_integer + def test_tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path(self) -> None: + """Test case for tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path - Test path parameter(s) # noqa: E501 + Test path parameter(s) """ pass diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_pet.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_pet.py index e02d8615bc08..21965554b265 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_pet.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_pet.py @@ -3,22 +3,19 @@ """ Echo Server API - Echo Server API # noqa: E501 + Echo Server API The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import datetime -import openapi_client -from openapi_client.models.pet import Pet # noqa: E501 -from openapi_client.rest import ApiException +from openapi_client.models.pet import Pet class TestPet(unittest.TestCase): """Pet unit test stubs""" @@ -29,32 +26,32 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> Pet: """Test Pet - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `Pet` """ - model = openapi_client.models.pet.Pet() # noqa: E501 - if include_optional : + model = Pet() + if include_optional: return Pet( - id = 10, - name = 'doggie', + id = 10, + name = 'doggie', category = openapi_client.models.category.Category( id = 1, - name = 'Dogs', ), + name = 'Dogs', ), photo_urls = [ '' - ], + ], tags = [ openapi_client.models.tag.Tag( id = 56, name = '', ) - ], + ], status = 'available' ) - else : + else: return Pet( name = 'doggie', photo_urls = [ diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_query.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_query.py index a7652e1ae59c..c3d033ef0b51 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_query.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_query.py @@ -3,22 +3,19 @@ """ Echo Server API - Echo Server API # noqa: E501 + Echo Server API The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import datetime -import openapi_client -from openapi_client.models.query import Query # noqa: E501 -from openapi_client.rest import ApiException +from openapi_client.models.query import Query class TestQuery(unittest.TestCase): """Query unit test stubs""" @@ -29,22 +26,22 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> Query: """Test Query - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `Query` """ - model = openapi_client.models.query.Query() # noqa: E501 - if include_optional : + model = Query() + if include_optional: return Query( - id = 56, + id = 56, outcomes = [ 'SUCCESS' ] ) - else : + else: return Query( ) """ diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_query_api.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_query_api.py index 829a635d99b9..e2e6c2dac461 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_query_api.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_query_api.py @@ -3,50 +3,97 @@ """ Echo Server API - Echo Server API # noqa: E501 + Echo Server API The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import openapi_client -from openapi_client.api.query_api import QueryApi # noqa: E501 -from openapi_client.rest import ApiException +from openapi_client.api.query_api import QueryApi class TestQueryApi(unittest.TestCase): """QueryApi unit test stubs""" - def setUp(self): - self.api = openapi_client.api.query_api.QueryApi() # noqa: E501 + def setUp(self) -> None: + self.api = QueryApi() + + def tearDown(self) -> None: + pass + + def test_test_enum_ref_string(self) -> None: + """Test case for test_enum_ref_string - def tearDown(self): + Test query parameter(s) + """ pass - def test_test_query_integer_boolean_string(self): + def test_test_query_datetime_date_string(self) -> None: + """Test case for test_query_datetime_date_string + + Test query parameter(s) + """ + pass + + def test_test_query_integer_boolean_string(self) -> None: """Test case for test_query_integer_boolean_string - Test query parameter(s) # noqa: E501 + Test query parameter(s) + """ + pass + + def test_test_query_style_deep_object_explode_true_object(self) -> None: + """Test case for test_query_style_deep_object_explode_true_object + + Test query parameter(s) + """ + pass + + def test_test_query_style_deep_object_explode_true_object_all_of(self) -> None: + """Test case for test_query_style_deep_object_explode_true_object_all_of + + Test query parameter(s) + """ + pass + + def test_test_query_style_form_explode_false_array_integer(self) -> None: + """Test case for test_query_style_form_explode_false_array_integer + + Test query parameter(s) """ pass - def test_test_query_style_form_explode_true_array_string(self): + def test_test_query_style_form_explode_false_array_string(self) -> None: + """Test case for test_query_style_form_explode_false_array_string + + Test query parameter(s) + """ + pass + + def test_test_query_style_form_explode_true_array_string(self) -> None: """Test case for test_query_style_form_explode_true_array_string - Test query parameter(s) # noqa: E501 + Test query parameter(s) """ pass - def test_test_query_style_form_explode_true_object(self): + def test_test_query_style_form_explode_true_object(self) -> None: """Test case for test_query_style_form_explode_true_object - Test query parameter(s) # noqa: E501 + Test query parameter(s) + """ + pass + + def test_test_query_style_form_explode_true_object_all_of(self) -> None: + """Test case for test_query_style_form_explode_true_object_all_of + + Test query parameter(s) """ pass diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_string_enum_ref.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_string_enum_ref.py index 60a3f0781b18..ece5b369cc22 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_string_enum_ref.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_string_enum_ref.py @@ -3,22 +3,19 @@ """ Echo Server API - Echo Server API # noqa: E501 + Echo Server API The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import datetime -import openapi_client -from openapi_client.models.string_enum_ref import StringEnumRef # noqa: E501 -from openapi_client.rest import ApiException +from openapi_client.models.string_enum_ref import StringEnumRef class TestStringEnumRef(unittest.TestCase): """StringEnumRef unit test stubs""" diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_tag.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_tag.py index 8e48170ab6ae..7e235ac8b95b 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_tag.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_tag.py @@ -3,22 +3,19 @@ """ Echo Server API - Echo Server API # noqa: E501 + Echo Server API The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import datetime -import openapi_client -from openapi_client.models.tag import Tag # noqa: E501 -from openapi_client.rest import ApiException +from openapi_client.models.tag import Tag class TestTag(unittest.TestCase): """Tag unit test stubs""" @@ -29,20 +26,20 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> Tag: """Test Tag - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `Tag` """ - model = openapi_client.models.tag.Tag() # noqa: E501 - if include_optional : + model = Tag() + if include_optional: return Tag( - id = 56, + id = 56, name = '' ) - else : + else: return Tag( ) """ diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_test_form_object_multipart_request_marker.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_test_form_object_multipart_request_marker.py index d49974286060..97f5600a234d 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_test_form_object_multipart_request_marker.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_test_form_object_multipart_request_marker.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> TestFormObjectMultipartRequestMarker: """Test TestFormObjectMultipartRequestMarker - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `TestFormObjectMultipartRequestMarker` diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.py index 395407345615..22731b578cc8 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.py @@ -3,22 +3,19 @@ """ Echo Server API - Echo Server API # noqa: E501 + Echo Server API The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import datetime -import openapi_client -from openapi_client.models.test_query_style_deep_object_explode_true_object_all_of_query_object_parameter import TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter # noqa: E501 -from openapi_client.rest import ApiException +from openapi_client.models.test_query_style_deep_object_explode_true_object_all_of_query_object_parameter import TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter class TestTestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter(unittest.TestCase): """TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter unit test stubs""" @@ -29,22 +26,22 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter: """Test TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter` """ - model = openapi_client.models.test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter() # noqa: E501 - if include_optional : + model = TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter() + if include_optional: return TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter( - size = '', - color = '', - id = 1, + size = '', + color = '', + id = 1, name = 'Dogs' ) - else : + else: return TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter( ) """ diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_test_query_style_form_explode_true_array_string_query_object_parameter.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_test_query_style_form_explode_true_array_string_query_object_parameter.py index 6366b5c23587..2656fbf8e027 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_test_query_style_form_explode_true_array_string_query_object_parameter.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_test_query_style_form_explode_true_array_string_query_object_parameter.py @@ -3,22 +3,19 @@ """ Echo Server API - Echo Server API # noqa: E501 + Echo Server API The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import datetime -import openapi_client -from openapi_client.models.test_query_style_form_explode_true_array_string_query_object_parameter import TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter # noqa: E501 -from openapi_client.rest import ApiException +from openapi_client.models.test_query_style_form_explode_true_array_string_query_object_parameter import TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter class TestTestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter(unittest.TestCase): """TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter unit test stubs""" @@ -29,21 +26,21 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter: """Test TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter` """ - model = openapi_client.models.test_query_style_form_explode_true_array_string_query_object_parameter.TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter() # noqa: E501 - if include_optional : + model = TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter() + if include_optional: return TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter( values = [ '' ] ) - else : + else: return TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter( ) """ diff --git a/samples/client/echo_api/python-pydantic-v1/test/test_auth_api.py b/samples/client/echo_api/python-pydantic-v1/test/test_auth_api.py index bfd827933bd6..6317a3e9f6d2 100644 --- a/samples/client/echo_api/python-pydantic-v1/test/test_auth_api.py +++ b/samples/client/echo_api/python-pydantic-v1/test/test_auth_api.py @@ -22,7 +22,7 @@ class TestAuthApi(unittest.TestCase): """AuthApi unit test stubs""" def setUp(self) -> None: - self.api = AuthApi() # noqa: E501 + self.api = AuthApi() def tearDown(self) -> None: pass @@ -34,6 +34,13 @@ def test_test_auth_http_basic(self) -> None: """ pass + def test_test_auth_http_bearer(self) -> None: + """Test case for test_auth_http_bearer + + To test HTTP bearer authentication # noqa: E501 + """ + pass + if __name__ == '__main__': unittest.main() diff --git a/samples/client/echo_api/python-pydantic-v1/test/test_bird.py b/samples/client/echo_api/python-pydantic-v1/test/test_bird.py index d95a104d7147..0ce8736bd8a6 100644 --- a/samples/client/echo_api/python-pydantic-v1/test/test_bird.py +++ b/samples/client/echo_api/python-pydantic-v1/test/test_bird.py @@ -3,22 +3,20 @@ """ Echo Server API - Echo Server API # noqa: E501 + Echo Server API The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest import datetime -import openapi_client from openapi_client.models.bird import Bird # noqa: E501 -from openapi_client.rest import ApiException class TestBird(unittest.TestCase): """Bird unit test stubs""" @@ -29,20 +27,20 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> Bird: """Test Bird include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `Bird` """ - model = openapi_client.models.bird.Bird() # noqa: E501 - if include_optional : + model = Bird() # noqa: E501 + if include_optional: return Bird( - size = '', + size = '', color = '' ) - else : + else: return Bird( ) """ diff --git a/samples/client/echo_api/python-pydantic-v1/test/test_body_api.py b/samples/client/echo_api/python-pydantic-v1/test/test_body_api.py index e5e24ace8102..54bc03763e98 100644 --- a/samples/client/echo_api/python-pydantic-v1/test/test_body_api.py +++ b/samples/client/echo_api/python-pydantic-v1/test/test_body_api.py @@ -3,39 +3,100 @@ """ Echo Server API - Echo Server API # noqa: E501 + Echo Server API The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import openapi_client from openapi_client.api.body_api import BodyApi # noqa: E501 -from openapi_client.rest import ApiException class TestBodyApi(unittest.TestCase): """BodyApi unit test stubs""" - def setUp(self): - self.api = openapi_client.api.body_api.BodyApi() # noqa: E501 + def setUp(self) -> None: + self.api = BodyApi() + + def tearDown(self) -> None: + pass + + def test_test_binary_gif(self) -> None: + """Test case for test_binary_gif + + Test binary (gif) response body # noqa: E501 + """ + pass + + def test_test_body_application_octetstream_binary(self) -> None: + """Test case for test_body_application_octetstream_binary + + Test body parameter(s) # noqa: E501 + """ + pass + + def test_test_body_multipart_formdata_array_of_binary(self) -> None: + """Test case for test_body_multipart_formdata_array_of_binary + + Test array of binary in multipart mime # noqa: E501 + """ + pass + + def test_test_body_multipart_formdata_single_binary(self) -> None: + """Test case for test_body_multipart_formdata_single_binary + + Test single binary in multipart mime # noqa: E501 + """ + pass + + def test_test_echo_body_all_of_pet(self) -> None: + """Test case for test_echo_body_all_of_pet + + Test body parameter(s) # noqa: E501 + """ + pass + + def test_test_echo_body_free_form_object_response_string(self) -> None: + """Test case for test_echo_body_free_form_object_response_string - def tearDown(self): + Test free form object # noqa: E501 + """ pass - def test_test_echo_body_pet(self): + def test_test_echo_body_pet(self) -> None: """Test case for test_echo_body_pet Test body parameter(s) # noqa: E501 """ pass + def test_test_echo_body_pet_response_string(self) -> None: + """Test case for test_echo_body_pet_response_string + + Test empty response body # noqa: E501 + """ + pass + + def test_test_echo_body_string_enum(self) -> None: + """Test case for test_echo_body_string_enum + + Test string enum response body # noqa: E501 + """ + pass + + def test_test_echo_body_tag_response_string(self) -> None: + """Test case for test_echo_body_tag_response_string + + Test empty json (request body) # noqa: E501 + """ + pass + if __name__ == '__main__': unittest.main() diff --git a/samples/client/echo_api/python-pydantic-v1/test/test_category.py b/samples/client/echo_api/python-pydantic-v1/test/test_category.py index b5771c572d33..487e50d95d5c 100644 --- a/samples/client/echo_api/python-pydantic-v1/test/test_category.py +++ b/samples/client/echo_api/python-pydantic-v1/test/test_category.py @@ -3,22 +3,20 @@ """ Echo Server API - Echo Server API # noqa: E501 + Echo Server API The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest import datetime -import openapi_client from openapi_client.models.category import Category # noqa: E501 -from openapi_client.rest import ApiException class TestCategory(unittest.TestCase): """Category unit test stubs""" @@ -29,20 +27,20 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> Category: """Test Category include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `Category` """ - model = openapi_client.models.category.Category() # noqa: E501 - if include_optional : + model = Category() # noqa: E501 + if include_optional: return Category( - id = 1, + id = 1, name = 'Dogs' ) - else : + else: return Category( ) """ diff --git a/samples/client/echo_api/python-pydantic-v1/test/test_data_query.py b/samples/client/echo_api/python-pydantic-v1/test/test_data_query.py index f33d8daabae1..5ae6bdbf8778 100644 --- a/samples/client/echo_api/python-pydantic-v1/test/test_data_query.py +++ b/samples/client/echo_api/python-pydantic-v1/test/test_data_query.py @@ -3,22 +3,20 @@ """ Echo Server API - Echo Server API # noqa: E501 + Echo Server API The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest import datetime -import openapi_client from openapi_client.models.data_query import DataQuery # noqa: E501 -from openapi_client.rest import ApiException class TestDataQuery(unittest.TestCase): """DataQuery unit test stubs""" @@ -29,21 +27,21 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> DataQuery: """Test DataQuery include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `DataQuery` """ - model = openapi_client.models.data_query.DataQuery() # noqa: E501 - if include_optional : + model = DataQuery() # noqa: E501 + if include_optional: return DataQuery( - suffix = '', - text = 'Some text', + suffix = '', + text = 'Some text', var_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') ) - else : + else: return DataQuery( ) """ diff --git a/samples/client/echo_api/python-pydantic-v1/test/test_default_value.py b/samples/client/echo_api/python-pydantic-v1/test/test_default_value.py index 6e5f35fd2eff..a38f9d85c970 100644 --- a/samples/client/echo_api/python-pydantic-v1/test/test_default_value.py +++ b/samples/client/echo_api/python-pydantic-v1/test/test_default_value.py @@ -3,22 +3,20 @@ """ Echo Server API - Echo Server API # noqa: E501 + Echo Server API The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest import datetime -import openapi_client from openapi_client.models.default_value import DefaultValue # noqa: E501 -from openapi_client.rest import ApiException class TestDefaultValue(unittest.TestCase): """DefaultValue unit test stubs""" @@ -29,34 +27,40 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> DefaultValue: """Test DefaultValue include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `DefaultValue` """ - model = openapi_client.models.default_value.DefaultValue() # noqa: E501 - if include_optional : + model = DefaultValue() # noqa: E501 + if include_optional: return DefaultValue( + array_string_enum_ref_default = [ + 'success' + ], array_string_enum_default = [ 'success' - ], + ], array_string_default = [ '' - ], + ], array_integer_default = [ 56 - ], + ], array_string = [ '' - ], + ], array_string_nullable = [ '' - ], + ], + array_string_extension_nullable = [ + '' + ], string_nullable = '' ) - else : + else: return DefaultValue( ) """ diff --git a/samples/client/echo_api/python-pydantic-v1/test/test_form_api.py b/samples/client/echo_api/python-pydantic-v1/test/test_form_api.py index 6422432c79ba..1d7eebf7a62c 100644 --- a/samples/client/echo_api/python-pydantic-v1/test/test_form_api.py +++ b/samples/client/echo_api/python-pydantic-v1/test/test_form_api.py @@ -3,39 +3,51 @@ """ Echo Server API - Echo Server API # noqa: E501 + Echo Server API The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import openapi_client from openapi_client.api.form_api import FormApi # noqa: E501 -from openapi_client.rest import ApiException class TestFormApi(unittest.TestCase): """FormApi unit test stubs""" - def setUp(self): - self.api = openapi_client.api.form_api.FormApi() # noqa: E501 + def setUp(self) -> None: + self.api = FormApi() - def tearDown(self): + def tearDown(self) -> None: pass - def test_test_form_integer_boolean_string(self): + def test_test_form_integer_boolean_string(self) -> None: """Test case for test_form_integer_boolean_string Test form parameter(s) # noqa: E501 """ pass + def test_test_form_object_multipart(self) -> None: + """Test case for test_form_object_multipart + + Test form parameter(s) for multipart schema # noqa: E501 + """ + pass + + def test_test_form_oneof(self) -> None: + """Test case for test_form_oneof + + Test form parameter(s) for oneOf schema # noqa: E501 + """ + pass + if __name__ == '__main__': unittest.main() diff --git a/samples/client/echo_api/python-pydantic-v1/test/test_header_api.py b/samples/client/echo_api/python-pydantic-v1/test/test_header_api.py index c1b7ed44e8f8..b831f9fad281 100644 --- a/samples/client/echo_api/python-pydantic-v1/test/test_header_api.py +++ b/samples/client/echo_api/python-pydantic-v1/test/test_header_api.py @@ -3,34 +3,32 @@ """ Echo Server API - Echo Server API # noqa: E501 + Echo Server API The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import openapi_client from openapi_client.api.header_api import HeaderApi # noqa: E501 -from openapi_client.rest import ApiException class TestHeaderApi(unittest.TestCase): """HeaderApi unit test stubs""" - def setUp(self): - self.api = openapi_client.api.header_api.HeaderApi() # noqa: E501 + def setUp(self) -> None: + self.api = HeaderApi() - def tearDown(self): + def tearDown(self) -> None: pass - def test_test_header_integer_boolean_string(self): - """Test case for test_header_integer_boolean_string + def test_test_header_integer_boolean_string_enums(self) -> None: + """Test case for test_header_integer_boolean_string_enums Test header parameter(s) # noqa: E501 """ diff --git a/samples/client/echo_api/python-pydantic-v1/test/test_number_properties_only.py b/samples/client/echo_api/python-pydantic-v1/test/test_number_properties_only.py index 68aa757f9df9..e5072e660a20 100644 --- a/samples/client/echo_api/python-pydantic-v1/test/test_number_properties_only.py +++ b/samples/client/echo_api/python-pydantic-v1/test/test_number_properties_only.py @@ -3,22 +3,20 @@ """ Echo Server API - Echo Server API # noqa: E501 + Echo Server API The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" +""" # noqa: E501 import unittest import datetime -import openapi_client from openapi_client.models.number_properties_only import NumberPropertiesOnly # noqa: E501 -from openapi_client.rest import ApiException class TestNumberPropertiesOnly(unittest.TestCase): """NumberPropertiesOnly unit test stubs""" @@ -29,21 +27,21 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> NumberPropertiesOnly: """Test NumberPropertiesOnly include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `NumberPropertiesOnly` """ - model = openapi_client.models.number_properties_only.NumberPropertiesOnly() # noqa: E501 - if include_optional : + model = NumberPropertiesOnly() # noqa: E501 + if include_optional: return NumberPropertiesOnly( - number = 1.337, - float = 1.337, - double = '' + number = 1.337, + float = 1.337, + double = 0.8 ) - else : + else: return NumberPropertiesOnly( ) """ diff --git a/samples/client/echo_api/python-pydantic-v1/test/test_path_api.py b/samples/client/echo_api/python-pydantic-v1/test/test_path_api.py index 4d8e71f7ce6a..559023e62d38 100644 --- a/samples/client/echo_api/python-pydantic-v1/test/test_path_api.py +++ b/samples/client/echo_api/python-pydantic-v1/test/test_path_api.py @@ -3,34 +3,32 @@ """ Echo Server API - Echo Server API # noqa: E501 + Echo Server API The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import openapi_client from openapi_client.api.path_api import PathApi # noqa: E501 -from openapi_client.rest import ApiException class TestPathApi(unittest.TestCase): """PathApi unit test stubs""" - def setUp(self): - self.api = openapi_client.api.path_api.PathApi() # noqa: E501 + def setUp(self) -> None: + self.api = PathApi() - def tearDown(self): + def tearDown(self) -> None: pass - def test_tests_path_string_path_string_integer_path_integer(self): - """Test case for tests_path_string_path_string_integer_path_integer + def test_tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path(self) -> None: + """Test case for tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path Test path parameter(s) # noqa: E501 """ diff --git a/samples/client/echo_api/python-pydantic-v1/test/test_pet.py b/samples/client/echo_api/python-pydantic-v1/test/test_pet.py index e02d8615bc08..17f0d1221411 100644 --- a/samples/client/echo_api/python-pydantic-v1/test/test_pet.py +++ b/samples/client/echo_api/python-pydantic-v1/test/test_pet.py @@ -3,22 +3,20 @@ """ Echo Server API - Echo Server API # noqa: E501 + Echo Server API The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest import datetime -import openapi_client from openapi_client.models.pet import Pet # noqa: E501 -from openapi_client.rest import ApiException class TestPet(unittest.TestCase): """Pet unit test stubs""" @@ -29,32 +27,32 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> Pet: """Test Pet include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `Pet` """ - model = openapi_client.models.pet.Pet() # noqa: E501 - if include_optional : + model = Pet() # noqa: E501 + if include_optional: return Pet( - id = 10, - name = 'doggie', + id = 10, + name = 'doggie', category = openapi_client.models.category.Category( id = 1, - name = 'Dogs', ), + name = 'Dogs', ), photo_urls = [ '' - ], + ], tags = [ openapi_client.models.tag.Tag( id = 56, name = '', ) - ], + ], status = 'available' ) - else : + else: return Pet( name = 'doggie', photo_urls = [ diff --git a/samples/client/echo_api/python-pydantic-v1/test/test_query.py b/samples/client/echo_api/python-pydantic-v1/test/test_query.py index a7652e1ae59c..bc3dfd5afd1f 100644 --- a/samples/client/echo_api/python-pydantic-v1/test/test_query.py +++ b/samples/client/echo_api/python-pydantic-v1/test/test_query.py @@ -3,22 +3,20 @@ """ Echo Server API - Echo Server API # noqa: E501 + Echo Server API The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest import datetime -import openapi_client from openapi_client.models.query import Query # noqa: E501 -from openapi_client.rest import ApiException class TestQuery(unittest.TestCase): """Query unit test stubs""" @@ -29,22 +27,22 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> Query: """Test Query include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `Query` """ - model = openapi_client.models.query.Query() # noqa: E501 - if include_optional : + model = Query() # noqa: E501 + if include_optional: return Query( - id = 56, + id = 56, outcomes = [ 'SUCCESS' ] ) - else : + else: return Query( ) """ diff --git a/samples/client/echo_api/python-pydantic-v1/test/test_query_api.py b/samples/client/echo_api/python-pydantic-v1/test/test_query_api.py index 829a635d99b9..0d4db77452c9 100644 --- a/samples/client/echo_api/python-pydantic-v1/test/test_query_api.py +++ b/samples/client/echo_api/python-pydantic-v1/test/test_query_api.py @@ -3,53 +3,100 @@ """ Echo Server API - Echo Server API # noqa: E501 + Echo Server API The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import openapi_client from openapi_client.api.query_api import QueryApi # noqa: E501 -from openapi_client.rest import ApiException class TestQueryApi(unittest.TestCase): """QueryApi unit test stubs""" - def setUp(self): - self.api = openapi_client.api.query_api.QueryApi() # noqa: E501 + def setUp(self) -> None: + self.api = QueryApi() + + def tearDown(self) -> None: + pass + + def test_test_enum_ref_string(self) -> None: + """Test case for test_enum_ref_string - def tearDown(self): + Test query parameter(s) # noqa: E501 + """ pass - def test_test_query_integer_boolean_string(self): + def test_test_query_datetime_date_string(self) -> None: + """Test case for test_query_datetime_date_string + + Test query parameter(s) # noqa: E501 + """ + pass + + def test_test_query_integer_boolean_string(self) -> None: """Test case for test_query_integer_boolean_string Test query parameter(s) # noqa: E501 """ pass - def test_test_query_style_form_explode_true_array_string(self): + def test_test_query_style_deep_object_explode_true_object(self) -> None: + """Test case for test_query_style_deep_object_explode_true_object + + Test query parameter(s) # noqa: E501 + """ + pass + + def test_test_query_style_deep_object_explode_true_object_all_of(self) -> None: + """Test case for test_query_style_deep_object_explode_true_object_all_of + + Test query parameter(s) # noqa: E501 + """ + pass + + def test_test_query_style_form_explode_false_array_integer(self) -> None: + """Test case for test_query_style_form_explode_false_array_integer + + Test query parameter(s) # noqa: E501 + """ + pass + + def test_test_query_style_form_explode_false_array_string(self) -> None: + """Test case for test_query_style_form_explode_false_array_string + + Test query parameter(s) # noqa: E501 + """ + pass + + def test_test_query_style_form_explode_true_array_string(self) -> None: """Test case for test_query_style_form_explode_true_array_string Test query parameter(s) # noqa: E501 """ pass - def test_test_query_style_form_explode_true_object(self): + def test_test_query_style_form_explode_true_object(self) -> None: """Test case for test_query_style_form_explode_true_object Test query parameter(s) # noqa: E501 """ pass + def test_test_query_style_form_explode_true_object_all_of(self) -> None: + """Test case for test_query_style_form_explode_true_object_all_of + + Test query parameter(s) # noqa: E501 + """ + pass + if __name__ == '__main__': unittest.main() diff --git a/samples/client/echo_api/python-pydantic-v1/test/test_string_enum_ref.py b/samples/client/echo_api/python-pydantic-v1/test/test_string_enum_ref.py index 60a3f0781b18..f48d7776fccf 100644 --- a/samples/client/echo_api/python-pydantic-v1/test/test_string_enum_ref.py +++ b/samples/client/echo_api/python-pydantic-v1/test/test_string_enum_ref.py @@ -3,22 +3,20 @@ """ Echo Server API - Echo Server API # noqa: E501 + Echo Server API The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest import datetime -import openapi_client from openapi_client.models.string_enum_ref import StringEnumRef # noqa: E501 -from openapi_client.rest import ApiException class TestStringEnumRef(unittest.TestCase): """StringEnumRef unit test stubs""" diff --git a/samples/client/echo_api/python-pydantic-v1/test/test_tag.py b/samples/client/echo_api/python-pydantic-v1/test/test_tag.py index 8e48170ab6ae..ce6f8f0cdbc5 100644 --- a/samples/client/echo_api/python-pydantic-v1/test/test_tag.py +++ b/samples/client/echo_api/python-pydantic-v1/test/test_tag.py @@ -3,22 +3,20 @@ """ Echo Server API - Echo Server API # noqa: E501 + Echo Server API The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest import datetime -import openapi_client from openapi_client.models.tag import Tag # noqa: E501 -from openapi_client.rest import ApiException class TestTag(unittest.TestCase): """Tag unit test stubs""" @@ -29,20 +27,20 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> Tag: """Test Tag include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `Tag` """ - model = openapi_client.models.tag.Tag() # noqa: E501 - if include_optional : + model = Tag() # noqa: E501 + if include_optional: return Tag( - id = 56, + id = 56, name = '' ) - else : + else: return Tag( ) """ diff --git a/samples/client/echo_api/python-pydantic-v1/test/test_test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.py b/samples/client/echo_api/python-pydantic-v1/test/test_test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.py index 395407345615..8063f5b7b630 100644 --- a/samples/client/echo_api/python-pydantic-v1/test/test_test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.py +++ b/samples/client/echo_api/python-pydantic-v1/test/test_test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.py @@ -3,22 +3,20 @@ """ Echo Server API - Echo Server API # noqa: E501 + Echo Server API The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest import datetime -import openapi_client from openapi_client.models.test_query_style_deep_object_explode_true_object_all_of_query_object_parameter import TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter # noqa: E501 -from openapi_client.rest import ApiException class TestTestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter(unittest.TestCase): """TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter unit test stubs""" @@ -29,22 +27,22 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter: """Test TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter` """ - model = openapi_client.models.test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter() # noqa: E501 - if include_optional : + model = TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter() # noqa: E501 + if include_optional: return TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter( - size = '', - color = '', - id = 1, + size = '', + color = '', + id = 1, name = 'Dogs' ) - else : + else: return TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter( ) """ diff --git a/samples/client/echo_api/python-pydantic-v1/test/test_test_query_style_form_explode_true_array_string_query_object_parameter.py b/samples/client/echo_api/python-pydantic-v1/test/test_test_query_style_form_explode_true_array_string_query_object_parameter.py index 6366b5c23587..f0ce75f334f5 100644 --- a/samples/client/echo_api/python-pydantic-v1/test/test_test_query_style_form_explode_true_array_string_query_object_parameter.py +++ b/samples/client/echo_api/python-pydantic-v1/test/test_test_query_style_form_explode_true_array_string_query_object_parameter.py @@ -3,22 +3,20 @@ """ Echo Server API - Echo Server API # noqa: E501 + Echo Server API The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest import datetime -import openapi_client from openapi_client.models.test_query_style_form_explode_true_array_string_query_object_parameter import TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter # noqa: E501 -from openapi_client.rest import ApiException class TestTestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter(unittest.TestCase): """TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter unit test stubs""" @@ -29,21 +27,21 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter: """Test TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter` """ - model = openapi_client.models.test_query_style_form_explode_true_array_string_query_object_parameter.TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter() # noqa: E501 - if include_optional : + model = TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter() # noqa: E501 + if include_optional: return TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter( values = [ '' ] ) - else : + else: return TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter( ) """ diff --git a/samples/client/echo_api/python/test/test_auth_api.py b/samples/client/echo_api/python/test/test_auth_api.py index bfd827933bd6..47756f746042 100644 --- a/samples/client/echo_api/python/test/test_auth_api.py +++ b/samples/client/echo_api/python/test/test_auth_api.py @@ -15,14 +15,14 @@ import unittest -from openapi_client.api.auth_api import AuthApi # noqa: E501 +from openapi_client.api.auth_api import AuthApi class TestAuthApi(unittest.TestCase): """AuthApi unit test stubs""" def setUp(self) -> None: - self.api = AuthApi() # noqa: E501 + self.api = AuthApi() def tearDown(self) -> None: pass @@ -30,7 +30,14 @@ def tearDown(self) -> None: def test_test_auth_http_basic(self) -> None: """Test case for test_auth_http_basic - To test HTTP basic authentication # noqa: E501 + To test HTTP basic authentication + """ + pass + + def test_test_auth_http_bearer(self) -> None: + """Test case for test_auth_http_bearer + + To test HTTP bearer authentication """ pass diff --git a/samples/client/echo_api/python/test/test_bird.py b/samples/client/echo_api/python/test/test_bird.py index d95a104d7147..1a2289c0d472 100644 --- a/samples/client/echo_api/python/test/test_bird.py +++ b/samples/client/echo_api/python/test/test_bird.py @@ -3,22 +3,19 @@ """ Echo Server API - Echo Server API # noqa: E501 + Echo Server API The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import datetime -import openapi_client -from openapi_client.models.bird import Bird # noqa: E501 -from openapi_client.rest import ApiException +from openapi_client.models.bird import Bird class TestBird(unittest.TestCase): """Bird unit test stubs""" @@ -29,20 +26,20 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> Bird: """Test Bird - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `Bird` """ - model = openapi_client.models.bird.Bird() # noqa: E501 - if include_optional : + model = Bird() + if include_optional: return Bird( - size = '', + size = '', color = '' ) - else : + else: return Bird( ) """ diff --git a/samples/client/echo_api/python/test/test_body_api.py b/samples/client/echo_api/python/test/test_body_api.py index e5e24ace8102..f9b7917ee006 100644 --- a/samples/client/echo_api/python/test/test_body_api.py +++ b/samples/client/echo_api/python/test/test_body_api.py @@ -3,36 +3,97 @@ """ Echo Server API - Echo Server API # noqa: E501 + Echo Server API The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import openapi_client -from openapi_client.api.body_api import BodyApi # noqa: E501 -from openapi_client.rest import ApiException +from openapi_client.api.body_api import BodyApi class TestBodyApi(unittest.TestCase): """BodyApi unit test stubs""" - def setUp(self): - self.api = openapi_client.api.body_api.BodyApi() # noqa: E501 + def setUp(self) -> None: + self.api = BodyApi() + + def tearDown(self) -> None: + pass + + def test_test_binary_gif(self) -> None: + """Test case for test_binary_gif + + Test binary (gif) response body + """ + pass + + def test_test_body_application_octetstream_binary(self) -> None: + """Test case for test_body_application_octetstream_binary + + Test body parameter(s) + """ + pass + + def test_test_body_multipart_formdata_array_of_binary(self) -> None: + """Test case for test_body_multipart_formdata_array_of_binary + + Test array of binary in multipart mime + """ + pass + + def test_test_body_multipart_formdata_single_binary(self) -> None: + """Test case for test_body_multipart_formdata_single_binary + + Test single binary in multipart mime + """ + pass + + def test_test_echo_body_all_of_pet(self) -> None: + """Test case for test_echo_body_all_of_pet + + Test body parameter(s) + """ + pass + + def test_test_echo_body_free_form_object_response_string(self) -> None: + """Test case for test_echo_body_free_form_object_response_string - def tearDown(self): + Test free form object + """ pass - def test_test_echo_body_pet(self): + def test_test_echo_body_pet(self) -> None: """Test case for test_echo_body_pet - Test body parameter(s) # noqa: E501 + Test body parameter(s) + """ + pass + + def test_test_echo_body_pet_response_string(self) -> None: + """Test case for test_echo_body_pet_response_string + + Test empty response body + """ + pass + + def test_test_echo_body_string_enum(self) -> None: + """Test case for test_echo_body_string_enum + + Test string enum response body + """ + pass + + def test_test_echo_body_tag_response_string(self) -> None: + """Test case for test_echo_body_tag_response_string + + Test empty json (request body) """ pass diff --git a/samples/client/echo_api/python/test/test_category.py b/samples/client/echo_api/python/test/test_category.py index b5771c572d33..12dfe19f63ac 100644 --- a/samples/client/echo_api/python/test/test_category.py +++ b/samples/client/echo_api/python/test/test_category.py @@ -3,22 +3,19 @@ """ Echo Server API - Echo Server API # noqa: E501 + Echo Server API The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import datetime -import openapi_client -from openapi_client.models.category import Category # noqa: E501 -from openapi_client.rest import ApiException +from openapi_client.models.category import Category class TestCategory(unittest.TestCase): """Category unit test stubs""" @@ -29,20 +26,20 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> Category: """Test Category - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `Category` """ - model = openapi_client.models.category.Category() # noqa: E501 - if include_optional : + model = Category() + if include_optional: return Category( - id = 1, + id = 1, name = 'Dogs' ) - else : + else: return Category( ) """ diff --git a/samples/client/echo_api/python/test/test_data_query.py b/samples/client/echo_api/python/test/test_data_query.py index f33d8daabae1..fcd7c9566a37 100644 --- a/samples/client/echo_api/python/test/test_data_query.py +++ b/samples/client/echo_api/python/test/test_data_query.py @@ -3,22 +3,19 @@ """ Echo Server API - Echo Server API # noqa: E501 + Echo Server API The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import datetime -import openapi_client -from openapi_client.models.data_query import DataQuery # noqa: E501 -from openapi_client.rest import ApiException +from openapi_client.models.data_query import DataQuery class TestDataQuery(unittest.TestCase): """DataQuery unit test stubs""" @@ -29,21 +26,21 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> DataQuery: """Test DataQuery - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `DataQuery` """ - model = openapi_client.models.data_query.DataQuery() # noqa: E501 - if include_optional : + model = DataQuery() + if include_optional: return DataQuery( - suffix = '', - text = 'Some text', + suffix = '', + text = 'Some text', var_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') ) - else : + else: return DataQuery( ) """ diff --git a/samples/client/echo_api/python/test/test_default_value.py b/samples/client/echo_api/python/test/test_default_value.py index 6e5f35fd2eff..4bdc49448868 100644 --- a/samples/client/echo_api/python/test/test_default_value.py +++ b/samples/client/echo_api/python/test/test_default_value.py @@ -3,22 +3,19 @@ """ Echo Server API - Echo Server API # noqa: E501 + Echo Server API The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import datetime -import openapi_client -from openapi_client.models.default_value import DefaultValue # noqa: E501 -from openapi_client.rest import ApiException +from openapi_client.models.default_value import DefaultValue class TestDefaultValue(unittest.TestCase): """DefaultValue unit test stubs""" @@ -29,34 +26,40 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> DefaultValue: """Test DefaultValue - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `DefaultValue` """ - model = openapi_client.models.default_value.DefaultValue() # noqa: E501 - if include_optional : + model = DefaultValue() + if include_optional: return DefaultValue( + array_string_enum_ref_default = [ + 'success' + ], array_string_enum_default = [ 'success' - ], + ], array_string_default = [ '' - ], + ], array_integer_default = [ 56 - ], + ], array_string = [ '' - ], + ], array_string_nullable = [ '' - ], + ], + array_string_extension_nullable = [ + '' + ], string_nullable = '' ) - else : + else: return DefaultValue( ) """ diff --git a/samples/client/echo_api/python/test/test_form_api.py b/samples/client/echo_api/python/test/test_form_api.py index 6422432c79ba..fbd7ed641e6a 100644 --- a/samples/client/echo_api/python/test/test_form_api.py +++ b/samples/client/echo_api/python/test/test_form_api.py @@ -3,36 +3,48 @@ """ Echo Server API - Echo Server API # noqa: E501 + Echo Server API The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import openapi_client -from openapi_client.api.form_api import FormApi # noqa: E501 -from openapi_client.rest import ApiException +from openapi_client.api.form_api import FormApi class TestFormApi(unittest.TestCase): """FormApi unit test stubs""" - def setUp(self): - self.api = openapi_client.api.form_api.FormApi() # noqa: E501 + def setUp(self) -> None: + self.api = FormApi() - def tearDown(self): + def tearDown(self) -> None: pass - def test_test_form_integer_boolean_string(self): + def test_test_form_integer_boolean_string(self) -> None: """Test case for test_form_integer_boolean_string - Test form parameter(s) # noqa: E501 + Test form parameter(s) + """ + pass + + def test_test_form_object_multipart(self) -> None: + """Test case for test_form_object_multipart + + Test form parameter(s) for multipart schema + """ + pass + + def test_test_form_oneof(self) -> None: + """Test case for test_form_oneof + + Test form parameter(s) for oneOf schema """ pass diff --git a/samples/client/echo_api/python/test/test_header_api.py b/samples/client/echo_api/python/test/test_header_api.py index c1b7ed44e8f8..68670ebc567f 100644 --- a/samples/client/echo_api/python/test/test_header_api.py +++ b/samples/client/echo_api/python/test/test_header_api.py @@ -3,36 +3,34 @@ """ Echo Server API - Echo Server API # noqa: E501 + Echo Server API The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import openapi_client -from openapi_client.api.header_api import HeaderApi # noqa: E501 -from openapi_client.rest import ApiException +from openapi_client.api.header_api import HeaderApi class TestHeaderApi(unittest.TestCase): """HeaderApi unit test stubs""" - def setUp(self): - self.api = openapi_client.api.header_api.HeaderApi() # noqa: E501 + def setUp(self) -> None: + self.api = HeaderApi() - def tearDown(self): + def tearDown(self) -> None: pass - def test_test_header_integer_boolean_string(self): - """Test case for test_header_integer_boolean_string + def test_test_header_integer_boolean_string_enums(self) -> None: + """Test case for test_header_integer_boolean_string_enums - Test header parameter(s) # noqa: E501 + Test header parameter(s) """ pass diff --git a/samples/client/echo_api/python/test/test_number_properties_only.py b/samples/client/echo_api/python/test/test_number_properties_only.py index 68aa757f9df9..682503a0cbf7 100644 --- a/samples/client/echo_api/python/test/test_number_properties_only.py +++ b/samples/client/echo_api/python/test/test_number_properties_only.py @@ -3,22 +3,19 @@ """ Echo Server API - Echo Server API # noqa: E501 + Echo Server API The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" +""" # noqa: E501 import unittest -import datetime -import openapi_client -from openapi_client.models.number_properties_only import NumberPropertiesOnly # noqa: E501 -from openapi_client.rest import ApiException +from openapi_client.models.number_properties_only import NumberPropertiesOnly class TestNumberPropertiesOnly(unittest.TestCase): """NumberPropertiesOnly unit test stubs""" @@ -29,21 +26,21 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> NumberPropertiesOnly: """Test NumberPropertiesOnly - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `NumberPropertiesOnly` """ - model = openapi_client.models.number_properties_only.NumberPropertiesOnly() # noqa: E501 - if include_optional : + model = NumberPropertiesOnly() + if include_optional: return NumberPropertiesOnly( - number = 1.337, - float = 1.337, - double = '' + number = 1.337, + var_float = 1.337, + double = 0.8 ) - else : + else: return NumberPropertiesOnly( ) """ diff --git a/samples/client/echo_api/python/test/test_path_api.py b/samples/client/echo_api/python/test/test_path_api.py index 4d8e71f7ce6a..faabe2102426 100644 --- a/samples/client/echo_api/python/test/test_path_api.py +++ b/samples/client/echo_api/python/test/test_path_api.py @@ -3,36 +3,34 @@ """ Echo Server API - Echo Server API # noqa: E501 + Echo Server API The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import openapi_client -from openapi_client.api.path_api import PathApi # noqa: E501 -from openapi_client.rest import ApiException +from openapi_client.api.path_api import PathApi class TestPathApi(unittest.TestCase): """PathApi unit test stubs""" - def setUp(self): - self.api = openapi_client.api.path_api.PathApi() # noqa: E501 + def setUp(self) -> None: + self.api = PathApi() - def tearDown(self): + def tearDown(self) -> None: pass - def test_tests_path_string_path_string_integer_path_integer(self): - """Test case for tests_path_string_path_string_integer_path_integer + def test_tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path(self) -> None: + """Test case for tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path - Test path parameter(s) # noqa: E501 + Test path parameter(s) """ pass diff --git a/samples/client/echo_api/python/test/test_pet.py b/samples/client/echo_api/python/test/test_pet.py index e02d8615bc08..21965554b265 100644 --- a/samples/client/echo_api/python/test/test_pet.py +++ b/samples/client/echo_api/python/test/test_pet.py @@ -3,22 +3,19 @@ """ Echo Server API - Echo Server API # noqa: E501 + Echo Server API The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import datetime -import openapi_client -from openapi_client.models.pet import Pet # noqa: E501 -from openapi_client.rest import ApiException +from openapi_client.models.pet import Pet class TestPet(unittest.TestCase): """Pet unit test stubs""" @@ -29,32 +26,32 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> Pet: """Test Pet - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `Pet` """ - model = openapi_client.models.pet.Pet() # noqa: E501 - if include_optional : + model = Pet() + if include_optional: return Pet( - id = 10, - name = 'doggie', + id = 10, + name = 'doggie', category = openapi_client.models.category.Category( id = 1, - name = 'Dogs', ), + name = 'Dogs', ), photo_urls = [ '' - ], + ], tags = [ openapi_client.models.tag.Tag( id = 56, name = '', ) - ], + ], status = 'available' ) - else : + else: return Pet( name = 'doggie', photo_urls = [ diff --git a/samples/client/echo_api/python/test/test_query.py b/samples/client/echo_api/python/test/test_query.py index a7652e1ae59c..c3d033ef0b51 100644 --- a/samples/client/echo_api/python/test/test_query.py +++ b/samples/client/echo_api/python/test/test_query.py @@ -3,22 +3,19 @@ """ Echo Server API - Echo Server API # noqa: E501 + Echo Server API The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import datetime -import openapi_client -from openapi_client.models.query import Query # noqa: E501 -from openapi_client.rest import ApiException +from openapi_client.models.query import Query class TestQuery(unittest.TestCase): """Query unit test stubs""" @@ -29,22 +26,22 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> Query: """Test Query - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `Query` """ - model = openapi_client.models.query.Query() # noqa: E501 - if include_optional : + model = Query() + if include_optional: return Query( - id = 56, + id = 56, outcomes = [ 'SUCCESS' ] ) - else : + else: return Query( ) """ diff --git a/samples/client/echo_api/python/test/test_query_api.py b/samples/client/echo_api/python/test/test_query_api.py index 829a635d99b9..e2e6c2dac461 100644 --- a/samples/client/echo_api/python/test/test_query_api.py +++ b/samples/client/echo_api/python/test/test_query_api.py @@ -3,50 +3,97 @@ """ Echo Server API - Echo Server API # noqa: E501 + Echo Server API The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import openapi_client -from openapi_client.api.query_api import QueryApi # noqa: E501 -from openapi_client.rest import ApiException +from openapi_client.api.query_api import QueryApi class TestQueryApi(unittest.TestCase): """QueryApi unit test stubs""" - def setUp(self): - self.api = openapi_client.api.query_api.QueryApi() # noqa: E501 + def setUp(self) -> None: + self.api = QueryApi() + + def tearDown(self) -> None: + pass + + def test_test_enum_ref_string(self) -> None: + """Test case for test_enum_ref_string - def tearDown(self): + Test query parameter(s) + """ pass - def test_test_query_integer_boolean_string(self): + def test_test_query_datetime_date_string(self) -> None: + """Test case for test_query_datetime_date_string + + Test query parameter(s) + """ + pass + + def test_test_query_integer_boolean_string(self) -> None: """Test case for test_query_integer_boolean_string - Test query parameter(s) # noqa: E501 + Test query parameter(s) + """ + pass + + def test_test_query_style_deep_object_explode_true_object(self) -> None: + """Test case for test_query_style_deep_object_explode_true_object + + Test query parameter(s) + """ + pass + + def test_test_query_style_deep_object_explode_true_object_all_of(self) -> None: + """Test case for test_query_style_deep_object_explode_true_object_all_of + + Test query parameter(s) + """ + pass + + def test_test_query_style_form_explode_false_array_integer(self) -> None: + """Test case for test_query_style_form_explode_false_array_integer + + Test query parameter(s) """ pass - def test_test_query_style_form_explode_true_array_string(self): + def test_test_query_style_form_explode_false_array_string(self) -> None: + """Test case for test_query_style_form_explode_false_array_string + + Test query parameter(s) + """ + pass + + def test_test_query_style_form_explode_true_array_string(self) -> None: """Test case for test_query_style_form_explode_true_array_string - Test query parameter(s) # noqa: E501 + Test query parameter(s) """ pass - def test_test_query_style_form_explode_true_object(self): + def test_test_query_style_form_explode_true_object(self) -> None: """Test case for test_query_style_form_explode_true_object - Test query parameter(s) # noqa: E501 + Test query parameter(s) + """ + pass + + def test_test_query_style_form_explode_true_object_all_of(self) -> None: + """Test case for test_query_style_form_explode_true_object_all_of + + Test query parameter(s) """ pass diff --git a/samples/client/echo_api/python/test/test_string_enum_ref.py b/samples/client/echo_api/python/test/test_string_enum_ref.py index 60a3f0781b18..ece5b369cc22 100644 --- a/samples/client/echo_api/python/test/test_string_enum_ref.py +++ b/samples/client/echo_api/python/test/test_string_enum_ref.py @@ -3,22 +3,19 @@ """ Echo Server API - Echo Server API # noqa: E501 + Echo Server API The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import datetime -import openapi_client -from openapi_client.models.string_enum_ref import StringEnumRef # noqa: E501 -from openapi_client.rest import ApiException +from openapi_client.models.string_enum_ref import StringEnumRef class TestStringEnumRef(unittest.TestCase): """StringEnumRef unit test stubs""" diff --git a/samples/client/echo_api/python/test/test_tag.py b/samples/client/echo_api/python/test/test_tag.py index 8e48170ab6ae..7e235ac8b95b 100644 --- a/samples/client/echo_api/python/test/test_tag.py +++ b/samples/client/echo_api/python/test/test_tag.py @@ -3,22 +3,19 @@ """ Echo Server API - Echo Server API # noqa: E501 + Echo Server API The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import datetime -import openapi_client -from openapi_client.models.tag import Tag # noqa: E501 -from openapi_client.rest import ApiException +from openapi_client.models.tag import Tag class TestTag(unittest.TestCase): """Tag unit test stubs""" @@ -29,20 +26,20 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> Tag: """Test Tag - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `Tag` """ - model = openapi_client.models.tag.Tag() # noqa: E501 - if include_optional : + model = Tag() + if include_optional: return Tag( - id = 56, + id = 56, name = '' ) - else : + else: return Tag( ) """ diff --git a/samples/client/echo_api/python/test/test_test_form_object_multipart_request_marker.py b/samples/client/echo_api/python/test/test_test_form_object_multipart_request_marker.py index d49974286060..97f5600a234d 100644 --- a/samples/client/echo_api/python/test/test_test_form_object_multipart_request_marker.py +++ b/samples/client/echo_api/python/test/test_test_form_object_multipart_request_marker.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> TestFormObjectMultipartRequestMarker: """Test TestFormObjectMultipartRequestMarker - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `TestFormObjectMultipartRequestMarker` diff --git a/samples/client/echo_api/python/test/test_test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.py b/samples/client/echo_api/python/test/test_test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.py index 395407345615..22731b578cc8 100644 --- a/samples/client/echo_api/python/test/test_test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.py +++ b/samples/client/echo_api/python/test/test_test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.py @@ -3,22 +3,19 @@ """ Echo Server API - Echo Server API # noqa: E501 + Echo Server API The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import datetime -import openapi_client -from openapi_client.models.test_query_style_deep_object_explode_true_object_all_of_query_object_parameter import TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter # noqa: E501 -from openapi_client.rest import ApiException +from openapi_client.models.test_query_style_deep_object_explode_true_object_all_of_query_object_parameter import TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter class TestTestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter(unittest.TestCase): """TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter unit test stubs""" @@ -29,22 +26,22 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter: """Test TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter` """ - model = openapi_client.models.test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter() # noqa: E501 - if include_optional : + model = TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter() + if include_optional: return TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter( - size = '', - color = '', - id = 1, + size = '', + color = '', + id = 1, name = 'Dogs' ) - else : + else: return TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter( ) """ diff --git a/samples/client/echo_api/python/test/test_test_query_style_form_explode_true_array_string_query_object_parameter.py b/samples/client/echo_api/python/test/test_test_query_style_form_explode_true_array_string_query_object_parameter.py index 6366b5c23587..2656fbf8e027 100644 --- a/samples/client/echo_api/python/test/test_test_query_style_form_explode_true_array_string_query_object_parameter.py +++ b/samples/client/echo_api/python/test/test_test_query_style_form_explode_true_array_string_query_object_parameter.py @@ -3,22 +3,19 @@ """ Echo Server API - Echo Server API # noqa: E501 + Echo Server API The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import datetime -import openapi_client -from openapi_client.models.test_query_style_form_explode_true_array_string_query_object_parameter import TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter # noqa: E501 -from openapi_client.rest import ApiException +from openapi_client.models.test_query_style_form_explode_true_array_string_query_object_parameter import TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter class TestTestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter(unittest.TestCase): """TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter unit test stubs""" @@ -29,21 +26,21 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter: """Test TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter` """ - model = openapi_client.models.test_query_style_form_explode_true_array_string_query_object_parameter.TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter() # noqa: E501 - if include_optional : + model = TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter() + if include_optional: return TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter( values = [ '' ] ) - else : + else: return TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter( ) """ diff --git a/samples/client/echo_api/r/tests/testthat/test_body_api.R b/samples/client/echo_api/r/tests/testthat/test_body_api.R index ff54935492fb..b5b9c7288f90 100644 --- a/samples/client/echo_api/r/tests/testthat/test_body_api.R +++ b/samples/client/echo_api/r/tests/testthat/test_body_api.R @@ -100,6 +100,18 @@ test_that("TestEchoBodyPetResponseString", { #expect_equal(result, "EXPECTED_RESULT") }) +test_that("TestEchoBodyStringEnum", { + # tests for TestEchoBodyStringEnum + # base path: http://localhost:3000 + # Test string enum response body + # Test string enum response body + # @param body character String enum (optional) + # @return [StringEnumRef] + + # uncomment below to test the operation + #expect_equal(result, "EXPECTED_RESULT") +}) + test_that("TestEchoBodyTagResponseString", { # tests for TestEchoBodyTagResponseString # base path: http://localhost:3000 diff --git a/samples/client/echo_api/r/tests/testthat/test_form_api.R b/samples/client/echo_api/r/tests/testthat/test_form_api.R index a2b306f2d8d0..99438867befe 100644 --- a/samples/client/echo_api/r/tests/testthat/test_form_api.R +++ b/samples/client/echo_api/r/tests/testthat/test_form_api.R @@ -19,6 +19,18 @@ test_that("TestFormIntegerBooleanString", { #expect_equal(result, "EXPECTED_RESULT") }) +test_that("TestFormObjectMultipart", { + # tests for TestFormObjectMultipart + # base path: http://localhost:3000 + # Test form parameter(s) for multipart schema + # Test form parameter(s) for multipart schema + # @param marker TestFormObjectMultipartRequestMarker + # @return [character] + + # uncomment below to test the operation + #expect_equal(result, "EXPECTED_RESULT") +}) + test_that("TestFormOneof", { # tests for TestFormOneof # base path: http://localhost:3000 diff --git a/samples/client/echo_api/r/tests/testthat/test_query_api.R b/samples/client/echo_api/r/tests/testthat/test_query_api.R index 202460c859ad..90f47368b9c9 100644 --- a/samples/client/echo_api/r/tests/testthat/test_query_api.R +++ b/samples/client/echo_api/r/tests/testthat/test_query_api.R @@ -70,6 +70,30 @@ test_that("TestQueryStyleDeepObjectExplodeTrueObjectAllOf", { #expect_equal(result, "EXPECTED_RESULT") }) +test_that("TestQueryStyleFormExplodeFalseArrayInteger", { + # tests for TestQueryStyleFormExplodeFalseArrayInteger + # base path: http://localhost:3000 + # Test query parameter(s) + # Test query parameter(s) + # @param query_object array[integer] (optional) + # @return [character] + + # uncomment below to test the operation + #expect_equal(result, "EXPECTED_RESULT") +}) + +test_that("TestQueryStyleFormExplodeFalseArrayString", { + # tests for TestQueryStyleFormExplodeFalseArrayString + # base path: http://localhost:3000 + # Test query parameter(s) + # Test query parameter(s) + # @param query_object array[character] (optional) + # @return [character] + + # uncomment below to test the operation + #expect_equal(result, "EXPECTED_RESULT") +}) + test_that("TestQueryStyleFormExplodeTrueArrayString", { # tests for TestQueryStyleFormExplodeTrueArrayString # base path: http://localhost:3000 diff --git a/samples/client/echo_api/ruby-faraday/spec/api/auth_api_spec.rb b/samples/client/echo_api/ruby-faraday/spec/api/auth_api_spec.rb index 565fe5d2a239..8c403d76391a 100644 --- a/samples/client/echo_api/ruby-faraday/spec/api/auth_api_spec.rb +++ b/samples/client/echo_api/ruby-faraday/spec/api/auth_api_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org Generated by: https://openapi-generator.tech -OpenAPI Generator version: 7.2.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end diff --git a/samples/client/echo_api/ruby-faraday/spec/api/body_api_spec.rb b/samples/client/echo_api/ruby-faraday/spec/api/body_api_spec.rb index 363e9f8b8b64..8c4c34df3491 100644 --- a/samples/client/echo_api/ruby-faraday/spec/api/body_api_spec.rb +++ b/samples/client/echo_api/ruby-faraday/spec/api/body_api_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org Generated by: https://openapi-generator.tech -OpenAPI Generator version: 7.2.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -67,6 +67,18 @@ end end + # unit tests for test_body_multipart_formdata_single_binary + # Test single binary in multipart mime + # Test single binary in multipart mime + # @param [Hash] opts the optional parameters + # @option opts [File] :my_file + # @return [String] + describe 'test_body_multipart_formdata_single_binary test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + # unit tests for test_echo_body_all_of_pet # Test body parameter(s) # Test body parameter(s) @@ -115,6 +127,18 @@ end end + # unit tests for test_echo_body_string_enum + # Test string enum response body + # Test string enum response body + # @param [Hash] opts the optional parameters + # @option opts [String] :body String enum + # @return [StringEnumRef] + describe 'test_echo_body_string_enum test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + # unit tests for test_echo_body_tag_response_string # Test empty json (request body) # Test empty json (request body) diff --git a/samples/client/echo_api/ruby-faraday/spec/api/form_api_spec.rb b/samples/client/echo_api/ruby-faraday/spec/api/form_api_spec.rb index c404fc538470..1f4e5e8ed838 100644 --- a/samples/client/echo_api/ruby-faraday/spec/api/form_api_spec.rb +++ b/samples/client/echo_api/ruby-faraday/spec/api/form_api_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org Generated by: https://openapi-generator.tech -OpenAPI Generator version: 7.2.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -46,6 +46,18 @@ end end + # unit tests for test_form_object_multipart + # Test form parameter(s) for multipart schema + # Test form parameter(s) for multipart schema + # @param marker + # @param [Hash] opts the optional parameters + # @return [String] + describe 'test_form_object_multipart test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + # unit tests for test_form_oneof # Test form parameter(s) for oneOf schema # Test form parameter(s) for oneOf schema diff --git a/samples/client/echo_api/ruby-faraday/spec/api/header_api_spec.rb b/samples/client/echo_api/ruby-faraday/spec/api/header_api_spec.rb index e7772849df69..c5e59c5b77d8 100644 --- a/samples/client/echo_api/ruby-faraday/spec/api/header_api_spec.rb +++ b/samples/client/echo_api/ruby-faraday/spec/api/header_api_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org Generated by: https://openapi-generator.tech -OpenAPI Generator version: 7.2.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end diff --git a/samples/client/echo_api/ruby-faraday/spec/api/path_api_spec.rb b/samples/client/echo_api/ruby-faraday/spec/api/path_api_spec.rb index 6ac30f152f7b..06ba6c5f51ef 100644 --- a/samples/client/echo_api/ruby-faraday/spec/api/path_api_spec.rb +++ b/samples/client/echo_api/ruby-faraday/spec/api/path_api_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org Generated by: https://openapi-generator.tech -OpenAPI Generator version: 7.2.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end diff --git a/samples/client/echo_api/ruby-faraday/spec/api/query_api_spec.rb b/samples/client/echo_api/ruby-faraday/spec/api/query_api_spec.rb index f9043d4f8b7b..aad0b53c0c26 100644 --- a/samples/client/echo_api/ruby-faraday/spec/api/query_api_spec.rb +++ b/samples/client/echo_api/ruby-faraday/spec/api/query_api_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org Generated by: https://openapi-generator.tech -OpenAPI Generator version: 7.2.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -97,6 +97,30 @@ end end + # unit tests for test_query_style_form_explode_false_array_integer + # Test query parameter(s) + # Test query parameter(s) + # @param [Hash] opts the optional parameters + # @option opts [Array] :query_object + # @return [String] + describe 'test_query_style_form_explode_false_array_integer test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + # unit tests for test_query_style_form_explode_false_array_string + # Test query parameter(s) + # Test query parameter(s) + # @param [Hash] opts the optional parameters + # @option opts [Array] :query_object + # @return [String] + describe 'test_query_style_form_explode_false_array_string test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + # unit tests for test_query_style_form_explode_true_array_string # Test query parameter(s) # Test query parameter(s) diff --git a/samples/client/echo_api/ruby-faraday/spec/models/bird_spec.rb b/samples/client/echo_api/ruby-faraday/spec/models/bird_spec.rb index 764ab5329e01..fd1f90c1503a 100644 --- a/samples/client/echo_api/ruby-faraday/spec/models/bird_spec.rb +++ b/samples/client/echo_api/ruby-faraday/spec/models/bird_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org Generated by: https://openapi-generator.tech -OpenAPI Generator version: 7.2.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end diff --git a/samples/client/echo_api/ruby-faraday/spec/models/category_spec.rb b/samples/client/echo_api/ruby-faraday/spec/models/category_spec.rb index 6bf16df513c7..978cea9fb8a5 100644 --- a/samples/client/echo_api/ruby-faraday/spec/models/category_spec.rb +++ b/samples/client/echo_api/ruby-faraday/spec/models/category_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org Generated by: https://openapi-generator.tech -OpenAPI Generator version: 7.2.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end diff --git a/samples/client/echo_api/ruby-faraday/spec/models/data_query_spec.rb b/samples/client/echo_api/ruby-faraday/spec/models/data_query_spec.rb index 616516cd6f18..57816b0414ab 100644 --- a/samples/client/echo_api/ruby-faraday/spec/models/data_query_spec.rb +++ b/samples/client/echo_api/ruby-faraday/spec/models/data_query_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org Generated by: https://openapi-generator.tech -OpenAPI Generator version: 7.2.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end diff --git a/samples/client/echo_api/ruby-faraday/spec/models/default_value_spec.rb b/samples/client/echo_api/ruby-faraday/spec/models/default_value_spec.rb index 1601e3bf0be2..43eba63bb2da 100644 --- a/samples/client/echo_api/ruby-faraday/spec/models/default_value_spec.rb +++ b/samples/client/echo_api/ruby-faraday/spec/models/default_value_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org Generated by: https://openapi-generator.tech -OpenAPI Generator version: 7.2.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end diff --git a/samples/client/echo_api/ruby-faraday/spec/models/number_properties_only_spec.rb b/samples/client/echo_api/ruby-faraday/spec/models/number_properties_only_spec.rb index c528b0ff2628..037ea1198a82 100644 --- a/samples/client/echo_api/ruby-faraday/spec/models/number_properties_only_spec.rb +++ b/samples/client/echo_api/ruby-faraday/spec/models/number_properties_only_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org Generated by: https://openapi-generator.tech -OpenAPI Generator version: 7.2.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end diff --git a/samples/client/echo_api/ruby-faraday/spec/models/pet_spec.rb b/samples/client/echo_api/ruby-faraday/spec/models/pet_spec.rb index 75d8b5f6079d..3d8ebe57a654 100644 --- a/samples/client/echo_api/ruby-faraday/spec/models/pet_spec.rb +++ b/samples/client/echo_api/ruby-faraday/spec/models/pet_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org Generated by: https://openapi-generator.tech -OpenAPI Generator version: 7.2.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end diff --git a/samples/client/echo_api/ruby-faraday/spec/models/query_spec.rb b/samples/client/echo_api/ruby-faraday/spec/models/query_spec.rb index 893943f3a776..df37a14bc77d 100644 --- a/samples/client/echo_api/ruby-faraday/spec/models/query_spec.rb +++ b/samples/client/echo_api/ruby-faraday/spec/models/query_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org Generated by: https://openapi-generator.tech -OpenAPI Generator version: 7.2.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end diff --git a/samples/client/echo_api/ruby-faraday/spec/models/string_enum_ref_spec.rb b/samples/client/echo_api/ruby-faraday/spec/models/string_enum_ref_spec.rb index 6bd5883ca5a6..f48d0924ce5b 100644 --- a/samples/client/echo_api/ruby-faraday/spec/models/string_enum_ref_spec.rb +++ b/samples/client/echo_api/ruby-faraday/spec/models/string_enum_ref_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org Generated by: https://openapi-generator.tech -OpenAPI Generator version: 7.2.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end diff --git a/samples/client/echo_api/ruby-faraday/spec/models/tag_spec.rb b/samples/client/echo_api/ruby-faraday/spec/models/tag_spec.rb index 9ee4d2c31c78..c145bef0fdb5 100644 --- a/samples/client/echo_api/ruby-faraday/spec/models/tag_spec.rb +++ b/samples/client/echo_api/ruby-faraday/spec/models/tag_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org Generated by: https://openapi-generator.tech -OpenAPI Generator version: 7.2.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end diff --git a/samples/client/echo_api/ruby-faraday/spec/models/test_form_object_multipart_request_marker_spec.rb b/samples/client/echo_api/ruby-faraday/spec/models/test_form_object_multipart_request_marker_spec.rb index 9cfa1af80f84..af1d0cf1fdd3 100644 --- a/samples/client/echo_api/ruby-faraday/spec/models/test_form_object_multipart_request_marker_spec.rb +++ b/samples/client/echo_api/ruby-faraday/spec/models/test_form_object_multipart_request_marker_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org Generated by: https://openapi-generator.tech -Generator version: 7.5.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end diff --git a/samples/client/echo_api/ruby-faraday/spec/models/test_query_style_deep_object_explode_true_object_all_of_query_object_parameter_spec.rb b/samples/client/echo_api/ruby-faraday/spec/models/test_query_style_deep_object_explode_true_object_all_of_query_object_parameter_spec.rb index 4fd29f1fc78e..71adac89ca1a 100644 --- a/samples/client/echo_api/ruby-faraday/spec/models/test_query_style_deep_object_explode_true_object_all_of_query_object_parameter_spec.rb +++ b/samples/client/echo_api/ruby-faraday/spec/models/test_query_style_deep_object_explode_true_object_all_of_query_object_parameter_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org Generated by: https://openapi-generator.tech -OpenAPI Generator version: 7.2.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end diff --git a/samples/client/echo_api/ruby-faraday/spec/models/test_query_style_form_explode_true_array_string_query_object_parameter_spec.rb b/samples/client/echo_api/ruby-faraday/spec/models/test_query_style_form_explode_true_array_string_query_object_parameter_spec.rb index 092ead39ae9c..e4167aa7a3c4 100644 --- a/samples/client/echo_api/ruby-faraday/spec/models/test_query_style_form_explode_true_array_string_query_object_parameter_spec.rb +++ b/samples/client/echo_api/ruby-faraday/spec/models/test_query_style_form_explode_true_array_string_query_object_parameter_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org Generated by: https://openapi-generator.tech -OpenAPI Generator version: 7.2.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end diff --git a/samples/client/echo_api/ruby-httpx/spec/api/auth_api_spec.rb b/samples/client/echo_api/ruby-httpx/spec/api/auth_api_spec.rb index 0cc2f1182bad..8c403d76391a 100644 --- a/samples/client/echo_api/ruby-httpx/spec/api/auth_api_spec.rb +++ b/samples/client/echo_api/ruby-httpx/spec/api/auth_api_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org Generated by: https://openapi-generator.tech -OpenAPI Generator version: 7.1.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -43,4 +43,15 @@ end end + # unit tests for test_auth_http_bearer + # To test HTTP bearer authentication + # To test HTTP bearer authentication + # @param [Hash] opts the optional parameters + # @return [String] + describe 'test_auth_http_bearer test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + end diff --git a/samples/client/echo_api/ruby-httpx/spec/api/body_api_spec.rb b/samples/client/echo_api/ruby-httpx/spec/api/body_api_spec.rb index cd346b568d5e..8c4c34df3491 100644 --- a/samples/client/echo_api/ruby-httpx/spec/api/body_api_spec.rb +++ b/samples/client/echo_api/ruby-httpx/spec/api/body_api_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org Generated by: https://openapi-generator.tech -OpenAPI Generator version: 7.1.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -67,6 +67,30 @@ end end + # unit tests for test_body_multipart_formdata_single_binary + # Test single binary in multipart mime + # Test single binary in multipart mime + # @param [Hash] opts the optional parameters + # @option opts [File] :my_file + # @return [String] + describe 'test_body_multipart_formdata_single_binary test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + # unit tests for test_echo_body_all_of_pet + # Test body parameter(s) + # Test body parameter(s) + # @param [Hash] opts the optional parameters + # @option opts [Pet] :pet Pet object that needs to be added to the store + # @return [Pet] + describe 'test_echo_body_all_of_pet test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + # unit tests for test_echo_body_free_form_object_response_string # Test free form object # Test free form object @@ -103,6 +127,18 @@ end end + # unit tests for test_echo_body_string_enum + # Test string enum response body + # Test string enum response body + # @param [Hash] opts the optional parameters + # @option opts [String] :body String enum + # @return [StringEnumRef] + describe 'test_echo_body_string_enum test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + # unit tests for test_echo_body_tag_response_string # Test empty json (request body) # Test empty json (request body) diff --git a/samples/client/echo_api/ruby-httpx/spec/api/form_api_spec.rb b/samples/client/echo_api/ruby-httpx/spec/api/form_api_spec.rb index 6d7be3056a47..1f4e5e8ed838 100644 --- a/samples/client/echo_api/ruby-httpx/spec/api/form_api_spec.rb +++ b/samples/client/echo_api/ruby-httpx/spec/api/form_api_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org Generated by: https://openapi-generator.tech -OpenAPI Generator version: 7.1.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -46,6 +46,18 @@ end end + # unit tests for test_form_object_multipart + # Test form parameter(s) for multipart schema + # Test form parameter(s) for multipart schema + # @param marker + # @param [Hash] opts the optional parameters + # @return [String] + describe 'test_form_object_multipart test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + # unit tests for test_form_oneof # Test form parameter(s) for oneOf schema # Test form parameter(s) for oneOf schema diff --git a/samples/client/echo_api/ruby-httpx/spec/api/header_api_spec.rb b/samples/client/echo_api/ruby-httpx/spec/api/header_api_spec.rb index 47a146beb657..c5e59c5b77d8 100644 --- a/samples/client/echo_api/ruby-httpx/spec/api/header_api_spec.rb +++ b/samples/client/echo_api/ruby-httpx/spec/api/header_api_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org Generated by: https://openapi-generator.tech -OpenAPI Generator version: 7.1.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -32,15 +32,17 @@ end end - # unit tests for test_header_integer_boolean_string + # unit tests for test_header_integer_boolean_string_enums # Test header parameter(s) # Test header parameter(s) # @param [Hash] opts the optional parameters # @option opts [Integer] :integer_header # @option opts [Boolean] :boolean_header # @option opts [String] :string_header + # @option opts [String] :enum_nonref_string_header + # @option opts [StringEnumRef] :enum_ref_string_header # @return [String] - describe 'test_header_integer_boolean_string test' do + describe 'test_header_integer_boolean_string_enums test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end diff --git a/samples/client/echo_api/ruby-httpx/spec/api/path_api_spec.rb b/samples/client/echo_api/ruby-httpx/spec/api/path_api_spec.rb index 5885056b53e0..06ba6c5f51ef 100644 --- a/samples/client/echo_api/ruby-httpx/spec/api/path_api_spec.rb +++ b/samples/client/echo_api/ruby-httpx/spec/api/path_api_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org Generated by: https://openapi-generator.tech -OpenAPI Generator version: 7.1.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -32,14 +32,16 @@ end end - # unit tests for tests_path_string_path_string_integer_path_integer + # unit tests for tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path # Test path parameter(s) # Test path parameter(s) # @param path_string # @param path_integer + # @param enum_nonref_string_path + # @param enum_ref_string_path # @param [Hash] opts the optional parameters # @return [String] - describe 'tests_path_string_path_string_integer_path_integer test' do + describe 'tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end diff --git a/samples/client/echo_api/ruby-httpx/spec/api/query_api_spec.rb b/samples/client/echo_api/ruby-httpx/spec/api/query_api_spec.rb index 8c3e9dbfdb9d..aad0b53c0c26 100644 --- a/samples/client/echo_api/ruby-httpx/spec/api/query_api_spec.rb +++ b/samples/client/echo_api/ruby-httpx/spec/api/query_api_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org Generated by: https://openapi-generator.tech -OpenAPI Generator version: 7.1.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -36,6 +36,7 @@ # Test query parameter(s) # Test query parameter(s) # @param [Hash] opts the optional parameters + # @option opts [String] :enum_nonref_string_query # @option opts [StringEnumRef] :enum_ref_string_query # @return [String] describe 'test_enum_ref_string test' do @@ -96,6 +97,30 @@ end end + # unit tests for test_query_style_form_explode_false_array_integer + # Test query parameter(s) + # Test query parameter(s) + # @param [Hash] opts the optional parameters + # @option opts [Array] :query_object + # @return [String] + describe 'test_query_style_form_explode_false_array_integer test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + # unit tests for test_query_style_form_explode_false_array_string + # Test query parameter(s) + # Test query parameter(s) + # @param [Hash] opts the optional parameters + # @option opts [Array] :query_object + # @return [String] + describe 'test_query_style_form_explode_false_array_string test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + # unit tests for test_query_style_form_explode_true_array_string # Test query parameter(s) # Test query parameter(s) diff --git a/samples/client/echo_api/ruby-httpx/spec/models/bird_spec.rb b/samples/client/echo_api/ruby-httpx/spec/models/bird_spec.rb index a7f2f46d85f1..fd1f90c1503a 100644 --- a/samples/client/echo_api/ruby-httpx/spec/models/bird_spec.rb +++ b/samples/client/echo_api/ruby-httpx/spec/models/bird_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org Generated by: https://openapi-generator.tech -OpenAPI Generator version: 7.1.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end diff --git a/samples/client/echo_api/ruby-httpx/spec/models/category_spec.rb b/samples/client/echo_api/ruby-httpx/spec/models/category_spec.rb index e52db312db6d..978cea9fb8a5 100644 --- a/samples/client/echo_api/ruby-httpx/spec/models/category_spec.rb +++ b/samples/client/echo_api/ruby-httpx/spec/models/category_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org Generated by: https://openapi-generator.tech -OpenAPI Generator version: 7.1.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end diff --git a/samples/client/echo_api/ruby-httpx/spec/models/data_query_spec.rb b/samples/client/echo_api/ruby-httpx/spec/models/data_query_spec.rb index 91decf8c8d5b..57816b0414ab 100644 --- a/samples/client/echo_api/ruby-httpx/spec/models/data_query_spec.rb +++ b/samples/client/echo_api/ruby-httpx/spec/models/data_query_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org Generated by: https://openapi-generator.tech -OpenAPI Generator version: 7.1.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end diff --git a/samples/client/echo_api/ruby-httpx/spec/models/default_value_spec.rb b/samples/client/echo_api/ruby-httpx/spec/models/default_value_spec.rb index 79a3e1fdffa2..43eba63bb2da 100644 --- a/samples/client/echo_api/ruby-httpx/spec/models/default_value_spec.rb +++ b/samples/client/echo_api/ruby-httpx/spec/models/default_value_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org Generated by: https://openapi-generator.tech -OpenAPI Generator version: 7.1.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end diff --git a/samples/client/echo_api/ruby-httpx/spec/models/number_properties_only_spec.rb b/samples/client/echo_api/ruby-httpx/spec/models/number_properties_only_spec.rb index 44de02223da5..037ea1198a82 100644 --- a/samples/client/echo_api/ruby-httpx/spec/models/number_properties_only_spec.rb +++ b/samples/client/echo_api/ruby-httpx/spec/models/number_properties_only_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org Generated by: https://openapi-generator.tech -OpenAPI Generator version: 7.1.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end diff --git a/samples/client/echo_api/ruby-httpx/spec/models/pet_spec.rb b/samples/client/echo_api/ruby-httpx/spec/models/pet_spec.rb index 92371a301145..3d8ebe57a654 100644 --- a/samples/client/echo_api/ruby-httpx/spec/models/pet_spec.rb +++ b/samples/client/echo_api/ruby-httpx/spec/models/pet_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org Generated by: https://openapi-generator.tech -OpenAPI Generator version: 7.1.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end diff --git a/samples/client/echo_api/ruby-httpx/spec/models/query_spec.rb b/samples/client/echo_api/ruby-httpx/spec/models/query_spec.rb index 4d4317c71bcf..df37a14bc77d 100644 --- a/samples/client/echo_api/ruby-httpx/spec/models/query_spec.rb +++ b/samples/client/echo_api/ruby-httpx/spec/models/query_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org Generated by: https://openapi-generator.tech -OpenAPI Generator version: 7.1.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end diff --git a/samples/client/echo_api/ruby-httpx/spec/models/string_enum_ref_spec.rb b/samples/client/echo_api/ruby-httpx/spec/models/string_enum_ref_spec.rb index 3f51c331cbe2..f48d0924ce5b 100644 --- a/samples/client/echo_api/ruby-httpx/spec/models/string_enum_ref_spec.rb +++ b/samples/client/echo_api/ruby-httpx/spec/models/string_enum_ref_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org Generated by: https://openapi-generator.tech -OpenAPI Generator version: 7.1.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end diff --git a/samples/client/echo_api/ruby-httpx/spec/models/tag_spec.rb b/samples/client/echo_api/ruby-httpx/spec/models/tag_spec.rb index e9ce719d4d40..c145bef0fdb5 100644 --- a/samples/client/echo_api/ruby-httpx/spec/models/tag_spec.rb +++ b/samples/client/echo_api/ruby-httpx/spec/models/tag_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org Generated by: https://openapi-generator.tech -OpenAPI Generator version: 7.1.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end diff --git a/samples/client/echo_api/ruby-httpx/spec/models/test_form_object_multipart_request_marker_spec.rb b/samples/client/echo_api/ruby-httpx/spec/models/test_form_object_multipart_request_marker_spec.rb index 9cfa1af80f84..af1d0cf1fdd3 100644 --- a/samples/client/echo_api/ruby-httpx/spec/models/test_form_object_multipart_request_marker_spec.rb +++ b/samples/client/echo_api/ruby-httpx/spec/models/test_form_object_multipart_request_marker_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org Generated by: https://openapi-generator.tech -Generator version: 7.5.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end diff --git a/samples/client/echo_api/ruby-httpx/spec/models/test_query_style_deep_object_explode_true_object_all_of_query_object_parameter_spec.rb b/samples/client/echo_api/ruby-httpx/spec/models/test_query_style_deep_object_explode_true_object_all_of_query_object_parameter_spec.rb index ac82b993db20..71adac89ca1a 100644 --- a/samples/client/echo_api/ruby-httpx/spec/models/test_query_style_deep_object_explode_true_object_all_of_query_object_parameter_spec.rb +++ b/samples/client/echo_api/ruby-httpx/spec/models/test_query_style_deep_object_explode_true_object_all_of_query_object_parameter_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org Generated by: https://openapi-generator.tech -OpenAPI Generator version: 7.1.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end diff --git a/samples/client/echo_api/ruby-httpx/spec/models/test_query_style_form_explode_true_array_string_query_object_parameter_spec.rb b/samples/client/echo_api/ruby-httpx/spec/models/test_query_style_form_explode_true_array_string_query_object_parameter_spec.rb index 073ceac81306..e4167aa7a3c4 100644 --- a/samples/client/echo_api/ruby-httpx/spec/models/test_query_style_form_explode_true_array_string_query_object_parameter_spec.rb +++ b/samples/client/echo_api/ruby-httpx/spec/models/test_query_style_form_explode_true_array_string_query_object_parameter_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org Generated by: https://openapi-generator.tech -OpenAPI Generator version: 7.1.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end diff --git a/samples/client/echo_api/ruby-typhoeus/spec/api/auth_api_spec.rb b/samples/client/echo_api/ruby-typhoeus/spec/api/auth_api_spec.rb index 565fe5d2a239..8c403d76391a 100644 --- a/samples/client/echo_api/ruby-typhoeus/spec/api/auth_api_spec.rb +++ b/samples/client/echo_api/ruby-typhoeus/spec/api/auth_api_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org Generated by: https://openapi-generator.tech -OpenAPI Generator version: 7.2.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end diff --git a/samples/client/echo_api/ruby-typhoeus/spec/api/body_api_spec.rb b/samples/client/echo_api/ruby-typhoeus/spec/api/body_api_spec.rb index 363e9f8b8b64..8c4c34df3491 100644 --- a/samples/client/echo_api/ruby-typhoeus/spec/api/body_api_spec.rb +++ b/samples/client/echo_api/ruby-typhoeus/spec/api/body_api_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org Generated by: https://openapi-generator.tech -OpenAPI Generator version: 7.2.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -67,6 +67,18 @@ end end + # unit tests for test_body_multipart_formdata_single_binary + # Test single binary in multipart mime + # Test single binary in multipart mime + # @param [Hash] opts the optional parameters + # @option opts [File] :my_file + # @return [String] + describe 'test_body_multipart_formdata_single_binary test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + # unit tests for test_echo_body_all_of_pet # Test body parameter(s) # Test body parameter(s) @@ -115,6 +127,18 @@ end end + # unit tests for test_echo_body_string_enum + # Test string enum response body + # Test string enum response body + # @param [Hash] opts the optional parameters + # @option opts [String] :body String enum + # @return [StringEnumRef] + describe 'test_echo_body_string_enum test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + # unit tests for test_echo_body_tag_response_string # Test empty json (request body) # Test empty json (request body) diff --git a/samples/client/echo_api/ruby-typhoeus/spec/api/form_api_spec.rb b/samples/client/echo_api/ruby-typhoeus/spec/api/form_api_spec.rb index c404fc538470..1f4e5e8ed838 100644 --- a/samples/client/echo_api/ruby-typhoeus/spec/api/form_api_spec.rb +++ b/samples/client/echo_api/ruby-typhoeus/spec/api/form_api_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org Generated by: https://openapi-generator.tech -OpenAPI Generator version: 7.2.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -46,6 +46,18 @@ end end + # unit tests for test_form_object_multipart + # Test form parameter(s) for multipart schema + # Test form parameter(s) for multipart schema + # @param marker + # @param [Hash] opts the optional parameters + # @return [String] + describe 'test_form_object_multipart test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + # unit tests for test_form_oneof # Test form parameter(s) for oneOf schema # Test form parameter(s) for oneOf schema diff --git a/samples/client/echo_api/ruby-typhoeus/spec/api/header_api_spec.rb b/samples/client/echo_api/ruby-typhoeus/spec/api/header_api_spec.rb index e7772849df69..c5e59c5b77d8 100644 --- a/samples/client/echo_api/ruby-typhoeus/spec/api/header_api_spec.rb +++ b/samples/client/echo_api/ruby-typhoeus/spec/api/header_api_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org Generated by: https://openapi-generator.tech -OpenAPI Generator version: 7.2.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end diff --git a/samples/client/echo_api/ruby-typhoeus/spec/api/path_api_spec.rb b/samples/client/echo_api/ruby-typhoeus/spec/api/path_api_spec.rb index 6ac30f152f7b..06ba6c5f51ef 100644 --- a/samples/client/echo_api/ruby-typhoeus/spec/api/path_api_spec.rb +++ b/samples/client/echo_api/ruby-typhoeus/spec/api/path_api_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org Generated by: https://openapi-generator.tech -OpenAPI Generator version: 7.2.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end diff --git a/samples/client/echo_api/ruby-typhoeus/spec/api/query_api_spec.rb b/samples/client/echo_api/ruby-typhoeus/spec/api/query_api_spec.rb index f9043d4f8b7b..aad0b53c0c26 100644 --- a/samples/client/echo_api/ruby-typhoeus/spec/api/query_api_spec.rb +++ b/samples/client/echo_api/ruby-typhoeus/spec/api/query_api_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org Generated by: https://openapi-generator.tech -OpenAPI Generator version: 7.2.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -97,6 +97,30 @@ end end + # unit tests for test_query_style_form_explode_false_array_integer + # Test query parameter(s) + # Test query parameter(s) + # @param [Hash] opts the optional parameters + # @option opts [Array] :query_object + # @return [String] + describe 'test_query_style_form_explode_false_array_integer test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + # unit tests for test_query_style_form_explode_false_array_string + # Test query parameter(s) + # Test query parameter(s) + # @param [Hash] opts the optional parameters + # @option opts [Array] :query_object + # @return [String] + describe 'test_query_style_form_explode_false_array_string test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + # unit tests for test_query_style_form_explode_true_array_string # Test query parameter(s) # Test query parameter(s) diff --git a/samples/client/echo_api/ruby-typhoeus/spec/models/bird_spec.rb b/samples/client/echo_api/ruby-typhoeus/spec/models/bird_spec.rb index 764ab5329e01..fd1f90c1503a 100644 --- a/samples/client/echo_api/ruby-typhoeus/spec/models/bird_spec.rb +++ b/samples/client/echo_api/ruby-typhoeus/spec/models/bird_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org Generated by: https://openapi-generator.tech -OpenAPI Generator version: 7.2.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end diff --git a/samples/client/echo_api/ruby-typhoeus/spec/models/category_spec.rb b/samples/client/echo_api/ruby-typhoeus/spec/models/category_spec.rb index 6bf16df513c7..978cea9fb8a5 100644 --- a/samples/client/echo_api/ruby-typhoeus/spec/models/category_spec.rb +++ b/samples/client/echo_api/ruby-typhoeus/spec/models/category_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org Generated by: https://openapi-generator.tech -OpenAPI Generator version: 7.2.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end diff --git a/samples/client/echo_api/ruby-typhoeus/spec/models/data_query_spec.rb b/samples/client/echo_api/ruby-typhoeus/spec/models/data_query_spec.rb index 616516cd6f18..57816b0414ab 100644 --- a/samples/client/echo_api/ruby-typhoeus/spec/models/data_query_spec.rb +++ b/samples/client/echo_api/ruby-typhoeus/spec/models/data_query_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org Generated by: https://openapi-generator.tech -OpenAPI Generator version: 7.2.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end diff --git a/samples/client/echo_api/ruby-typhoeus/spec/models/default_value_spec.rb b/samples/client/echo_api/ruby-typhoeus/spec/models/default_value_spec.rb index 1601e3bf0be2..43eba63bb2da 100644 --- a/samples/client/echo_api/ruby-typhoeus/spec/models/default_value_spec.rb +++ b/samples/client/echo_api/ruby-typhoeus/spec/models/default_value_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org Generated by: https://openapi-generator.tech -OpenAPI Generator version: 7.2.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end diff --git a/samples/client/echo_api/ruby-typhoeus/spec/models/number_properties_only_spec.rb b/samples/client/echo_api/ruby-typhoeus/spec/models/number_properties_only_spec.rb index c528b0ff2628..037ea1198a82 100644 --- a/samples/client/echo_api/ruby-typhoeus/spec/models/number_properties_only_spec.rb +++ b/samples/client/echo_api/ruby-typhoeus/spec/models/number_properties_only_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org Generated by: https://openapi-generator.tech -OpenAPI Generator version: 7.2.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end diff --git a/samples/client/echo_api/ruby-typhoeus/spec/models/pet_spec.rb b/samples/client/echo_api/ruby-typhoeus/spec/models/pet_spec.rb index 75d8b5f6079d..3d8ebe57a654 100644 --- a/samples/client/echo_api/ruby-typhoeus/spec/models/pet_spec.rb +++ b/samples/client/echo_api/ruby-typhoeus/spec/models/pet_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org Generated by: https://openapi-generator.tech -OpenAPI Generator version: 7.2.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end diff --git a/samples/client/echo_api/ruby-typhoeus/spec/models/query_spec.rb b/samples/client/echo_api/ruby-typhoeus/spec/models/query_spec.rb index 893943f3a776..df37a14bc77d 100644 --- a/samples/client/echo_api/ruby-typhoeus/spec/models/query_spec.rb +++ b/samples/client/echo_api/ruby-typhoeus/spec/models/query_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org Generated by: https://openapi-generator.tech -OpenAPI Generator version: 7.2.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end diff --git a/samples/client/echo_api/ruby-typhoeus/spec/models/string_enum_ref_spec.rb b/samples/client/echo_api/ruby-typhoeus/spec/models/string_enum_ref_spec.rb index 6bd5883ca5a6..f48d0924ce5b 100644 --- a/samples/client/echo_api/ruby-typhoeus/spec/models/string_enum_ref_spec.rb +++ b/samples/client/echo_api/ruby-typhoeus/spec/models/string_enum_ref_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org Generated by: https://openapi-generator.tech -OpenAPI Generator version: 7.2.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end diff --git a/samples/client/echo_api/ruby-typhoeus/spec/models/tag_spec.rb b/samples/client/echo_api/ruby-typhoeus/spec/models/tag_spec.rb index 9ee4d2c31c78..c145bef0fdb5 100644 --- a/samples/client/echo_api/ruby-typhoeus/spec/models/tag_spec.rb +++ b/samples/client/echo_api/ruby-typhoeus/spec/models/tag_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org Generated by: https://openapi-generator.tech -OpenAPI Generator version: 7.2.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end diff --git a/samples/client/echo_api/ruby-typhoeus/spec/models/test_form_object_multipart_request_marker_spec.rb b/samples/client/echo_api/ruby-typhoeus/spec/models/test_form_object_multipart_request_marker_spec.rb index 9cfa1af80f84..af1d0cf1fdd3 100644 --- a/samples/client/echo_api/ruby-typhoeus/spec/models/test_form_object_multipart_request_marker_spec.rb +++ b/samples/client/echo_api/ruby-typhoeus/spec/models/test_form_object_multipart_request_marker_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org Generated by: https://openapi-generator.tech -Generator version: 7.5.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end diff --git a/samples/client/echo_api/ruby-typhoeus/spec/models/test_query_style_deep_object_explode_true_object_all_of_query_object_parameter_spec.rb b/samples/client/echo_api/ruby-typhoeus/spec/models/test_query_style_deep_object_explode_true_object_all_of_query_object_parameter_spec.rb index 4fd29f1fc78e..71adac89ca1a 100644 --- a/samples/client/echo_api/ruby-typhoeus/spec/models/test_query_style_deep_object_explode_true_object_all_of_query_object_parameter_spec.rb +++ b/samples/client/echo_api/ruby-typhoeus/spec/models/test_query_style_deep_object_explode_true_object_all_of_query_object_parameter_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org Generated by: https://openapi-generator.tech -OpenAPI Generator version: 7.2.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end diff --git a/samples/client/echo_api/ruby-typhoeus/spec/models/test_query_style_form_explode_true_array_string_query_object_parameter_spec.rb b/samples/client/echo_api/ruby-typhoeus/spec/models/test_query_style_form_explode_true_array_string_query_object_parameter_spec.rb index 092ead39ae9c..e4167aa7a3c4 100644 --- a/samples/client/echo_api/ruby-typhoeus/spec/models/test_query_style_form_explode_true_array_string_query_object_parameter_spec.rb +++ b/samples/client/echo_api/ruby-typhoeus/spec/models/test_query_style_form_explode_true_array_string_query_object_parameter_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org Generated by: https://openapi-generator.tech -OpenAPI Generator version: 7.2.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end diff --git a/samples/client/others/java/okhttp-gson-streaming/src/test/java/org/openapitools/client/api/PingApiTest.java b/samples/client/others/java/okhttp-gson-streaming/src/test/java/org/openapitools/client/api/PingApiTest.java index 0a39fbae22fb..7a1a957481fb 100644 --- a/samples/client/others/java/okhttp-gson-streaming/src/test/java/org/openapitools/client/api/PingApiTest.java +++ b/samples/client/others/java/okhttp-gson-streaming/src/test/java/org/openapitools/client/api/PingApiTest.java @@ -32,20 +32,29 @@ public class PingApiTest { private final PingApi api = new PingApi(); - /** - * - * - * - * - * @throws ApiException - * if the Api call fails + * @throws ApiException if the Api call fails + */ + @Test + public void getPingTest() throws ApiException { + Long petId = null; + String name = null; + String status = null; + InputStream response = api.getPing(petId) + .name(name) + .status(status) + .execute(); + // TODO: test validations + } + + /** + * @throws ApiException if the Api call fails */ @Test public void postPingTest() throws ApiException { SomeObj someObj = null; - InputStream response = api.postPing(someObj); + InputStream response = api.postPing(someObj); // TODO: test validations } - + } diff --git a/samples/client/others/java/okhttp-gson-streaming/src/test/java/org/openapitools/client/model/SomeObjTest.java b/samples/client/others/java/okhttp-gson-streaming/src/test/java/org/openapitools/client/model/SomeObjTest.java index 82da30bc403a..87d9d0ac2dc6 100644 --- a/samples/client/others/java/okhttp-gson-streaming/src/test/java/org/openapitools/client/model/SomeObjTest.java +++ b/samples/client/others/java/okhttp-gson-streaming/src/test/java/org/openapitools/client/model/SomeObjTest.java @@ -19,10 +19,10 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for SomeObj */ diff --git a/samples/client/others/java/resttemplate-useAbstractionForFiles/src/test/java/org/openapitools/client/api/ResourceApiTest.java b/samples/client/others/java/resttemplate-useAbstractionForFiles/src/test/java/org/openapitools/client/api/ResourceApiTest.java index 2465072fbfb2..0eb89d8d784b 100644 --- a/samples/client/others/java/resttemplate-useAbstractionForFiles/src/test/java/org/openapitools/client/api/ResourceApiTest.java +++ b/samples/client/others/java/resttemplate-useAbstractionForFiles/src/test/java/org/openapitools/client/api/ResourceApiTest.java @@ -14,8 +14,9 @@ package org.openapitools.client.api; import java.io.File; -import org.junit.Test; -import org.junit.Ignore; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; +import org.springframework.web.client.RestClientException; import java.time.LocalDate; import java.time.OffsetDateTime; @@ -27,8 +28,8 @@ /** * API tests for ResourceApi */ -@Ignore -public class ResourceApiTest { +@Disabled +class ResourceApiTest { private final ResourceApi api = new ResourceApi(); @@ -38,11 +39,11 @@ public class ResourceApiTest { * * Response file abstraction * - * @throws ApiException + * @throws RestClientException * if the Api call fails */ @Test - public void resourceInResponseTest() { + void resourceInResponseTest() { org.springframework.core.io.Resource response = api.resourceInResponse(); diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/src/test/kotlin/org/openapitools/client/apis/DefaultApiTest.kt b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/src/test/kotlin/org/openapitools/client/apis/DefaultApiTest.kt index 3ae3d3e40aae..3d6abd9cec53 100644 --- a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/src/test/kotlin/org/openapitools/client/apis/DefaultApiTest.kt +++ b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/src/test/kotlin/org/openapitools/client/apis/DefaultApiTest.kt @@ -20,7 +20,7 @@ import io.kotlintest.specs.ShouldSpec import org.openapitools.client.apis.DefaultApi -class DefaultApi : ShouldSpec() { +class DefaultApiTest : ShouldSpec() { init { // uncomment below to create an instance of DefaultApi //val apiInstance = DefaultApi() diff --git a/samples/client/petstore/R-httr2-wrapper/tests/testthat/test_category.R b/samples/client/petstore/R-httr2-wrapper/tests/testthat/test_category.R index c7838edeb623..df2725e9cef7 100644 --- a/samples/client/petstore/R-httr2-wrapper/tests/testthat/test_category.R +++ b/samples/client/petstore/R-httr2-wrapper/tests/testthat/test_category.R @@ -3,19 +3,18 @@ context("Test Category") -model.instance <- Category$new() +model_instance <- Category$new() test_that("id", { # tests for the property `id` (integer) - # uncomment below to test the property + # uncomment below to test the property #expect_equal(model.instance$`id`, "EXPECTED_RESULT") }) test_that("name", { # tests for the property `name` (character) - # uncomment below to test the property + # uncomment below to test the property #expect_equal(model.instance$`name`, "EXPECTED_RESULT") }) - diff --git a/samples/client/petstore/R-httr2-wrapper/tests/testthat/test_date.R b/samples/client/petstore/R-httr2-wrapper/tests/testthat/test_date.R index 214fd8a352f5..d6c093206c0b 100644 --- a/samples/client/petstore/R-httr2-wrapper/tests/testthat/test_date.R +++ b/samples/client/petstore/R-httr2-wrapper/tests/testthat/test_date.R @@ -11,3 +11,18 @@ test_that("className", { # uncomment below to test the property #expect_equal(model.instance$`className`, "EXPECTED_RESULT") }) + +test_that("percent_description", { + # tests for the property `percent_description` (character) + # using % in the description + + # uncomment below to test the property + #expect_equal(model.instance$`percent_description`, "EXPECTED_RESULT") +}) + +test_that("url_property", { + # tests for the property `url_property` (character) + + # uncomment below to test the property + #expect_equal(model.instance$`url_property`, "EXPECTED_RESULT") +}) diff --git a/samples/client/petstore/R-httr2-wrapper/tests/testthat/test_fake_api.R b/samples/client/petstore/R-httr2-wrapper/tests/testthat/test_fake_api.R index 7514044ac14f..bafe825a9a91 100644 --- a/samples/client/petstore/R-httr2-wrapper/tests/testthat/test_fake_api.R +++ b/samples/client/petstore/R-httr2-wrapper/tests/testthat/test_fake_api.R @@ -3,18 +3,66 @@ context("Test FakeApi") -api.instance <- FakeApi$new() +api_instance <- FakeApi$new() -test_that("FakeDataFile", { - # tests for FakeDataFile +test_that("add_pet_optional", { + # tests for add_pet_optional + # base path: http://petstore.swagger.io/v2 + # Add a new pet to the store (optional body) + # + # @param pet Pet Pet object that needs to be added to the store (optional) + # @return [Pet] + + # uncomment below to test the operation + #expect_equal(result, "EXPECTED_RESULT") +}) + +test_that("fake_data_file", { + # tests for fake_data_file # base path: http://petstore.swagger.io/v2 # test data_file to ensure it's escaped correctly # # @param dummy character dummy required parameter - # @param DataFile. character header data file (optional) + # @param var_data_file character header data file (optional) + # @return [User] + + # uncomment below to test the operation + #expect_equal(result, "EXPECTED_RESULT") +}) + +test_that("fake_path_array", { + # tests for fake_path_array + # base path: http://petstore.swagger.io/v2 + # test array parameter in path + # + # @param path_array array[character] dummy path parameter # @return [Void] # uncomment below to test the operation #expect_equal(result, "EXPECTED_RESULT") }) +test_that("fake_regular_expression", { + # tests for fake_regular_expression + # base path: http://petstore.swagger.io/v2 + # test regular expression to ensure no exception + # + # @param reg_exp_test character dummy required parameter + # @return [Void] + + # uncomment below to test the operation + #expect_equal(result, "EXPECTED_RESULT") +}) + +test_that("fake_set_query", { + # tests for fake_set_query + # base path: http://petstore.swagger.io/v2 + # test set query parameter + # + # @param set_dummy set[character] set query + # @param array_dummy array[character] array query + # @return [Void] + + # uncomment below to test the operation + #expect_equal(result, "EXPECTED_RESULT") +}) diff --git a/samples/client/petstore/R-httr2-wrapper/tests/testthat/test_model_api_response.R b/samples/client/petstore/R-httr2-wrapper/tests/testthat/test_model_api_response.R index d5dcef5716f9..d14ecb4a4fbd 100644 --- a/samples/client/petstore/R-httr2-wrapper/tests/testthat/test_model_api_response.R +++ b/samples/client/petstore/R-httr2-wrapper/tests/testthat/test_model_api_response.R @@ -3,26 +3,25 @@ context("Test ModelApiResponse") -model.instance <- ModelApiResponse$new() +model_instance <- ModelApiResponse$new() test_that("code", { # tests for the property `code` (integer) - # uncomment below to test the property + # uncomment below to test the property #expect_equal(model.instance$`code`, "EXPECTED_RESULT") }) test_that("type", { # tests for the property `type` (character) - # uncomment below to test the property + # uncomment below to test the property #expect_equal(model.instance$`type`, "EXPECTED_RESULT") }) test_that("message", { # tests for the property `message` (character) - # uncomment below to test the property + # uncomment below to test the property #expect_equal(model.instance$`message`, "EXPECTED_RESULT") }) - diff --git a/samples/client/petstore/R-httr2-wrapper/tests/testthat/test_order.R b/samples/client/petstore/R-httr2-wrapper/tests/testthat/test_order.R index 33b87520254d..5f254b6d26cc 100644 --- a/samples/client/petstore/R-httr2-wrapper/tests/testthat/test_order.R +++ b/samples/client/petstore/R-httr2-wrapper/tests/testthat/test_order.R @@ -3,33 +3,33 @@ context("Test Order") -model.instance <- Order$new() +model_instance <- Order$new() test_that("id", { # tests for the property `id` (integer) - # uncomment below to test the property + # uncomment below to test the property #expect_equal(model.instance$`id`, "EXPECTED_RESULT") }) test_that("petId", { # tests for the property `petId` (integer) - # uncomment below to test the property + # uncomment below to test the property #expect_equal(model.instance$`petId`, "EXPECTED_RESULT") }) test_that("quantity", { # tests for the property `quantity` (integer) - # uncomment below to test the property + # uncomment below to test the property #expect_equal(model.instance$`quantity`, "EXPECTED_RESULT") }) test_that("shipDate", { # tests for the property `shipDate` (character) - # uncomment below to test the property + # uncomment below to test the property #expect_equal(model.instance$`shipDate`, "EXPECTED_RESULT") }) @@ -37,14 +37,13 @@ test_that("status", { # tests for the property `status` (character) # Order Status - # uncomment below to test the property + # uncomment below to test the property #expect_equal(model.instance$`status`, "EXPECTED_RESULT") }) test_that("complete", { # tests for the property `complete` (character) - # uncomment below to test the property + # uncomment below to test the property #expect_equal(model.instance$`complete`, "EXPECTED_RESULT") }) - diff --git a/samples/client/petstore/R-httr2-wrapper/tests/testthat/test_pet.R b/samples/client/petstore/R-httr2-wrapper/tests/testthat/test_pet.R index ac3e4f31dd10..f23e5ee63486 100644 --- a/samples/client/petstore/R-httr2-wrapper/tests/testthat/test_pet.R +++ b/samples/client/petstore/R-httr2-wrapper/tests/testthat/test_pet.R @@ -3,40 +3,40 @@ context("Test Pet") -model.instance <- Pet$new() +model_instance <- Pet$new() test_that("id", { # tests for the property `id` (integer) - # uncomment below to test the property + # uncomment below to test the property #expect_equal(model.instance$`id`, "EXPECTED_RESULT") }) test_that("category", { # tests for the property `category` (Category) - # uncomment below to test the property + # uncomment below to test the property #expect_equal(model.instance$`category`, "EXPECTED_RESULT") }) test_that("name", { # tests for the property `name` (character) - # uncomment below to test the property + # uncomment below to test the property #expect_equal(model.instance$`name`, "EXPECTED_RESULT") }) test_that("photoUrls", { # tests for the property `photoUrls` (array[character]) - # uncomment below to test the property + # uncomment below to test the property #expect_equal(model.instance$`photoUrls`, "EXPECTED_RESULT") }) test_that("tags", { # tests for the property `tags` (array[Tag]) - # uncomment below to test the property + # uncomment below to test the property #expect_equal(model.instance$`tags`, "EXPECTED_RESULT") }) @@ -44,7 +44,6 @@ test_that("status", { # tests for the property `status` (character) # pet status in the store - # uncomment below to test the property + # uncomment below to test the property #expect_equal(model.instance$`status`, "EXPECTED_RESULT") }) - diff --git a/samples/client/petstore/R-httr2-wrapper/tests/testthat/test_pet_api.R b/samples/client/petstore/R-httr2-wrapper/tests/testthat/test_pet_api.R index 7fbdd1a70deb..7655227b40ff 100644 --- a/samples/client/petstore/R-httr2-wrapper/tests/testthat/test_pet_api.R +++ b/samples/client/petstore/R-httr2-wrapper/tests/testthat/test_pet_api.R @@ -3,33 +3,35 @@ context("Test PetApi") -api.instance <- PetApi$new() +api_instance <- PetApi$new() -test_that("AddPet", { - # tests for AddPet +test_that("add_pet", { + # tests for add_pet # base path: http://petstore.swagger.io/v2 # Add a new pet to the store - # @param body Pet Pet object that needs to be added to the store - # @return [Void] + # + # @param pet Pet Pet object that needs to be added to the store + # @return [Pet] # uncomment below to test the operation #expect_equal(result, "EXPECTED_RESULT") }) -test_that("DeletePet", { - # tests for DeletePet +test_that("delete_pet", { + # tests for delete_pet # base path: http://petstore.swagger.io/v2 # Deletes a pet - # @param pet.id integer Pet id to delete - # @param api.key character (optional) + # + # @param pet_id integer Pet id to delete + # @param api_key character (optional) # @return [Void] # uncomment below to test the operation #expect_equal(result, "EXPECTED_RESULT") }) -test_that("FindPetsByStatus", { - # tests for FindPetsByStatus +test_that("find_pets_by_status", { + # tests for find_pets_by_status # base path: http://petstore.swagger.io/v2 # Finds Pets by status # Multiple status values can be provided with comma separated strings @@ -40,8 +42,8 @@ test_that("FindPetsByStatus", { #expect_equal(result, "EXPECTED_RESULT") }) -test_that("FindPetsByTags", { - # tests for FindPetsByTags +test_that("find_pets_by_tags", { + # tests for find_pets_by_tags # base path: http://petstore.swagger.io/v2 # Finds Pets by tags # Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. @@ -52,34 +54,60 @@ test_that("FindPetsByTags", { #expect_equal(result, "EXPECTED_RESULT") }) -test_that("GetPetById", { - # tests for GetPetById +test_that("get_pet_by_id", { + # tests for get_pet_by_id # base path: http://petstore.swagger.io/v2 # Find pet by ID # Returns a single pet - # @param pet.id integer ID of pet to return + # @param pet_id integer ID of pet to return + # @return [Pet] + + # uncomment below to test the operation + #expect_equal(result, "EXPECTED_RESULT") +}) + +test_that("get_pet_by_id_streaming", { + # tests for get_pet_by_id_streaming + # base path: http://petstore.swagger.io/v2 + # Find pet by ID (streaming) + # Returns a single pet + # @param pet_id integer ID of pet to return # @return [Pet] # uncomment below to test the operation #expect_equal(result, "EXPECTED_RESULT") }) -test_that("UpdatePet", { - # tests for UpdatePet +test_that("test_header", { + # tests for test_header + # base path: http://petstore.swagger.io/v2 + # Header test + # Header test + # @param header_test_int integer header test int + # @return [Pet] + + # uncomment below to test the operation + #expect_equal(result, "EXPECTED_RESULT") +}) + +test_that("update_pet", { + # tests for update_pet # base path: http://petstore.swagger.io/v2 # Update an existing pet - # @param body Pet Pet object that needs to be added to the store - # @return [Void] + # + # @param pet Pet Pet object that needs to be added to the store + # @return [Pet] # uncomment below to test the operation #expect_equal(result, "EXPECTED_RESULT") }) -test_that("UpdatePetWithForm", { - # tests for UpdatePetWithForm +test_that("update_pet_with_form", { + # tests for update_pet_with_form # base path: http://petstore.swagger.io/v2 # Updates a pet in the store with form data - # @param pet.id integer ID of pet that needs to be updated + # + # @param pet_id integer ID of pet that needs to be updated # @param name character Updated name of the pet (optional) # @param status character Updated status of the pet (optional) # @return [Void] @@ -88,16 +116,16 @@ test_that("UpdatePetWithForm", { #expect_equal(result, "EXPECTED_RESULT") }) -test_that("UploadFile", { - # tests for UploadFile +test_that("upload_file", { + # tests for upload_file # base path: http://petstore.swagger.io/v2 # uploads an image - # @param pet.id integer ID of pet to update - # @param additional.metadata character Additional data to pass to server (optional) + # + # @param pet_id integer ID of pet to update + # @param additional_metadata character Additional data to pass to server (optional) # @param file data.frame file to upload (optional) # @return [ModelApiResponse] # uncomment below to test the operation #expect_equal(result, "EXPECTED_RESULT") }) - diff --git a/samples/client/petstore/R-httr2-wrapper/tests/testthat/test_special.R b/samples/client/petstore/R-httr2-wrapper/tests/testthat/test_special.R index c76671b21334..9fc5192ff217 100644 --- a/samples/client/petstore/R-httr2-wrapper/tests/testthat/test_special.R +++ b/samples/client/petstore/R-httr2-wrapper/tests/testthat/test_special.R @@ -5,23 +5,51 @@ context("Test Special") model_instance <- Special$new() -test_that("self", { - # tests for the property `self` (integer) +test_that("set_test", { + # tests for the property `set_test` (set[character]) # uncomment below to test the property - #expect_equal(model.instance$`self`, "EXPECTED_RESULT") + #expect_equal(model.instance$`set_test`, "EXPECTED_RESULT") }) -test_that("private", { - # tests for the property `private` (character) +test_that("item_self", { + # tests for the property `item_self` (integer) # uncomment below to test the property - #expect_equal(model.instance$`private`, "EXPECTED_RESULT") + #expect_equal(model.instance$`item_self`, "EXPECTED_RESULT") }) -test_that("super", { - # tests for the property `super` (character) +test_that("item_private", { + # tests for the property `item_private` (character) # uncomment below to test the property - #expect_equal(model.instance$`super`, "EXPECTED_RESULT") + #expect_equal(model.instance$`item_private`, "EXPECTED_RESULT") +}) + +test_that("item_super", { + # tests for the property `item_super` (character) + + # uncomment below to test the property + #expect_equal(model.instance$`item_super`, "EXPECTED_RESULT") +}) + +test_that("123_number", { + # tests for the property `123_number` (character) + + # uncomment below to test the property + #expect_equal(model.instance$`123_number`, "EXPECTED_RESULT") +}) + +test_that("array[test]", { + # tests for the property `array[test]` (character) + + # uncomment below to test the property + #expect_equal(model.instance$`array[test]`, "EXPECTED_RESULT") +}) + +test_that("empty_string", { + # tests for the property `empty_string` (character) + + # uncomment below to test the property + #expect_equal(model.instance$`empty_string`, "EXPECTED_RESULT") }) diff --git a/samples/client/petstore/R-httr2-wrapper/tests/testthat/test_store_api.R b/samples/client/petstore/R-httr2-wrapper/tests/testthat/test_store_api.R index 3ce6f412c93d..b88a68985786 100644 --- a/samples/client/petstore/R-httr2-wrapper/tests/testthat/test_store_api.R +++ b/samples/client/petstore/R-httr2-wrapper/tests/testthat/test_store_api.R @@ -3,22 +3,22 @@ context("Test StoreApi") -api.instance <- StoreApi$new() +api_instance <- StoreApi$new() -test_that("DeleteOrder", { - # tests for DeleteOrder +test_that("delete_order", { + # tests for delete_order # base path: http://petstore.swagger.io/v2 # Delete purchase order by ID # For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors - # @param order.id character ID of the order that needs to be deleted + # @param order_id character ID of the order that needs to be deleted # @return [Void] # uncomment below to test the operation #expect_equal(result, "EXPECTED_RESULT") }) -test_that("GetInventory", { - # tests for GetInventory +test_that("get_inventory", { + # tests for get_inventory # base path: http://petstore.swagger.io/v2 # Returns pet inventories by status # Returns a map of status codes to quantities @@ -28,26 +28,26 @@ test_that("GetInventory", { #expect_equal(result, "EXPECTED_RESULT") }) -test_that("GetOrderById", { - # tests for GetOrderById +test_that("get_order_by_id", { + # tests for get_order_by_id # base path: http://petstore.swagger.io/v2 # Find purchase order by ID # For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions - # @param order.id integer ID of pet that needs to be fetched + # @param order_id integer ID of pet that needs to be fetched # @return [Order] # uncomment below to test the operation #expect_equal(result, "EXPECTED_RESULT") }) -test_that("PlaceOrder", { - # tests for PlaceOrder +test_that("place_order", { + # tests for place_order # base path: http://petstore.swagger.io/v2 # Place an order for a pet - # @param body Order order placed for purchasing the pet + # + # @param order Order order placed for purchasing the pet # @return [Order] # uncomment below to test the operation #expect_equal(result, "EXPECTED_RESULT") }) - diff --git a/samples/client/petstore/R-httr2-wrapper/tests/testthat/test_tag.R b/samples/client/petstore/R-httr2-wrapper/tests/testthat/test_tag.R index 2dd6d369af0a..af8af7062cd4 100644 --- a/samples/client/petstore/R-httr2-wrapper/tests/testthat/test_tag.R +++ b/samples/client/petstore/R-httr2-wrapper/tests/testthat/test_tag.R @@ -3,19 +3,18 @@ context("Test Tag") -model.instance <- Tag$new() +model_instance <- Tag$new() test_that("id", { # tests for the property `id` (integer) - # uncomment below to test the property + # uncomment below to test the property #expect_equal(model.instance$`id`, "EXPECTED_RESULT") }) test_that("name", { # tests for the property `name` (character) - # uncomment below to test the property + # uncomment below to test the property #expect_equal(model.instance$`name`, "EXPECTED_RESULT") }) - diff --git a/samples/client/petstore/R-httr2-wrapper/tests/testthat/test_user.R b/samples/client/petstore/R-httr2-wrapper/tests/testthat/test_user.R index 9929623b42f8..958d3bd8620f 100644 --- a/samples/client/petstore/R-httr2-wrapper/tests/testthat/test_user.R +++ b/samples/client/petstore/R-httr2-wrapper/tests/testthat/test_user.R @@ -3,54 +3,54 @@ context("Test User") -model.instance <- User$new() +model_instance <- User$new() test_that("id", { # tests for the property `id` (integer) - # uncomment below to test the property + # uncomment below to test the property #expect_equal(model.instance$`id`, "EXPECTED_RESULT") }) test_that("username", { # tests for the property `username` (character) - # uncomment below to test the property + # uncomment below to test the property #expect_equal(model.instance$`username`, "EXPECTED_RESULT") }) test_that("firstName", { # tests for the property `firstName` (character) - # uncomment below to test the property + # uncomment below to test the property #expect_equal(model.instance$`firstName`, "EXPECTED_RESULT") }) test_that("lastName", { # tests for the property `lastName` (character) - # uncomment below to test the property + # uncomment below to test the property #expect_equal(model.instance$`lastName`, "EXPECTED_RESULT") }) test_that("email", { # tests for the property `email` (character) - # uncomment below to test the property + # uncomment below to test the property #expect_equal(model.instance$`email`, "EXPECTED_RESULT") }) test_that("password", { # tests for the property `password` (character) - # uncomment below to test the property + # uncomment below to test the property #expect_equal(model.instance$`password`, "EXPECTED_RESULT") }) test_that("phone", { # tests for the property `phone` (character) - # uncomment below to test the property + # uncomment below to test the property #expect_equal(model.instance$`phone`, "EXPECTED_RESULT") }) @@ -58,7 +58,6 @@ test_that("userStatus", { # tests for the property `userStatus` (integer) # User Status - # uncomment below to test the property + # uncomment below to test the property #expect_equal(model.instance$`userStatus`, "EXPECTED_RESULT") }) - diff --git a/samples/client/petstore/R-httr2-wrapper/tests/testthat/test_user_api.R b/samples/client/petstore/R-httr2-wrapper/tests/testthat/test_user_api.R index 8b8c3ba38477..fb10ba15bc50 100644 --- a/samples/client/petstore/R-httr2-wrapper/tests/testthat/test_user_api.R +++ b/samples/client/petstore/R-httr2-wrapper/tests/testthat/test_user_api.R @@ -3,44 +3,46 @@ context("Test UserApi") -api.instance <- UserApi$new() +api_instance <- UserApi$new() -test_that("CreateUser", { - # tests for CreateUser +test_that("create_user", { + # tests for create_user # base path: http://petstore.swagger.io/v2 # Create user # This can only be done by the logged in user. - # @param body User Created user object + # @param user User Created user object # @return [Void] # uncomment below to test the operation #expect_equal(result, "EXPECTED_RESULT") }) -test_that("CreateUsersWithArrayInput", { - # tests for CreateUsersWithArrayInput +test_that("create_users_with_array_input", { + # tests for create_users_with_array_input # base path: http://petstore.swagger.io/v2 # Creates list of users with given input array - # @param body array[User] List of user object + # + # @param user array[User] List of user object # @return [Void] # uncomment below to test the operation #expect_equal(result, "EXPECTED_RESULT") }) -test_that("CreateUsersWithListInput", { - # tests for CreateUsersWithListInput +test_that("create_users_with_list_input", { + # tests for create_users_with_list_input # base path: http://petstore.swagger.io/v2 # Creates list of users with given input array - # @param body array[User] List of user object + # + # @param user array[User] List of user object # @return [Void] # uncomment below to test the operation #expect_equal(result, "EXPECTED_RESULT") }) -test_that("DeleteUser", { - # tests for DeleteUser +test_that("delete_user", { + # tests for delete_user # base path: http://petstore.swagger.io/v2 # Delete user # This can only be done by the logged in user. @@ -51,10 +53,11 @@ test_that("DeleteUser", { #expect_equal(result, "EXPECTED_RESULT") }) -test_that("GetUserByName", { - # tests for GetUserByName +test_that("get_user_by_name", { + # tests for get_user_by_name # base path: http://petstore.swagger.io/v2 # Get user by user name + # # @param username character The name that needs to be fetched. Use user1 for testing. # @return [User] @@ -62,10 +65,11 @@ test_that("GetUserByName", { #expect_equal(result, "EXPECTED_RESULT") }) -test_that("LoginUser", { - # tests for LoginUser +test_that("login_user", { + # tests for login_user # base path: http://petstore.swagger.io/v2 # Logs user into the system + # # @param username character The user name for login # @param password character The password for login in clear text # @return [character] @@ -74,26 +78,26 @@ test_that("LoginUser", { #expect_equal(result, "EXPECTED_RESULT") }) -test_that("LogoutUser", { - # tests for LogoutUser +test_that("logout_user", { + # tests for logout_user # base path: http://petstore.swagger.io/v2 # Logs out current logged in user session + # # @return [Void] # uncomment below to test the operation #expect_equal(result, "EXPECTED_RESULT") }) -test_that("UpdateUser", { - # tests for UpdateUser +test_that("update_user", { + # tests for update_user # base path: http://petstore.swagger.io/v2 # Updated user # This can only be done by the logged in user. # @param username character name that need to be deleted - # @param body User Updated user object + # @param user User Updated user object # @return [Void] # uncomment below to test the operation #expect_equal(result, "EXPECTED_RESULT") }) - diff --git a/samples/client/petstore/R-httr2/tests/testthat/test_category.R b/samples/client/petstore/R-httr2/tests/testthat/test_category.R index c7838edeb623..df2725e9cef7 100644 --- a/samples/client/petstore/R-httr2/tests/testthat/test_category.R +++ b/samples/client/petstore/R-httr2/tests/testthat/test_category.R @@ -3,19 +3,18 @@ context("Test Category") -model.instance <- Category$new() +model_instance <- Category$new() test_that("id", { # tests for the property `id` (integer) - # uncomment below to test the property + # uncomment below to test the property #expect_equal(model.instance$`id`, "EXPECTED_RESULT") }) test_that("name", { # tests for the property `name` (character) - # uncomment below to test the property + # uncomment below to test the property #expect_equal(model.instance$`name`, "EXPECTED_RESULT") }) - diff --git a/samples/client/petstore/R-httr2/tests/testthat/test_date.R b/samples/client/petstore/R-httr2/tests/testthat/test_date.R index 214fd8a352f5..093e32f2fbfb 100644 --- a/samples/client/petstore/R-httr2/tests/testthat/test_date.R +++ b/samples/client/petstore/R-httr2/tests/testthat/test_date.R @@ -11,3 +11,18 @@ test_that("className", { # uncomment below to test the property #expect_equal(model.instance$`className`, "EXPECTED_RESULT") }) + +test_that("percent", { + # tests for the property `percent` (character) + # using % in the description + + # uncomment below to test the property + #expect_equal(model.instance$`percent`, "EXPECTED_RESULT") +}) + +test_that("url_property", { + # tests for the property `url_property` (character) + + # uncomment below to test the property + #expect_equal(model.instance$`url_property`, "EXPECTED_RESULT") +}) diff --git a/samples/client/petstore/R-httr2/tests/testthat/test_fake_api.R b/samples/client/petstore/R-httr2/tests/testthat/test_fake_api.R index 7514044ac14f..2297c1ae9fbb 100644 --- a/samples/client/petstore/R-httr2/tests/testthat/test_fake_api.R +++ b/samples/client/petstore/R-httr2/tests/testthat/test_fake_api.R @@ -3,18 +3,66 @@ context("Test FakeApi") -api.instance <- FakeApi$new() +api_instance <- FakeApi$new() -test_that("FakeDataFile", { - # tests for FakeDataFile +test_that("add_pet_optional", { + # tests for add_pet_optional + # base path: http://petstore.swagger.io/v2 + # Add a new pet to the store (optional body) + # + # @param pet Pet Pet object that needs to be added to the store (optional) + # @return [Pet] + + # uncomment below to test the operation + #expect_equal(result, "EXPECTED_RESULT") +}) + +test_that("fake_data_file", { + # tests for fake_data_file # base path: http://petstore.swagger.io/v2 # test data_file to ensure it's escaped correctly # # @param dummy character dummy required parameter - # @param DataFile. character header data file (optional) + # @param var_data_file character header data file (optional) + # @return [User] + + # uncomment below to test the operation + #expect_equal(result, "EXPECTED_RESULT") +}) + +test_that("fake_path_array", { + # tests for fake_path_array + # base path: http://petstore.swagger.io/v2 + # test array parameter in path + # + # @param path_array_parameter array[character] dummy path parameter # @return [Void] # uncomment below to test the operation #expect_equal(result, "EXPECTED_RESULT") }) +test_that("fake_regular_expression", { + # tests for fake_regular_expression + # base path: http://petstore.swagger.io/v2 + # test regular expression to ensure no exception + # + # @param reg_exp_test character dummy required parameter + # @return [Void] + + # uncomment below to test the operation + #expect_equal(result, "EXPECTED_RESULT") +}) + +test_that("fake_set_query", { + # tests for fake_set_query + # base path: http://petstore.swagger.io/v2 + # test set query parameter + # + # @param set_dummy set[character] set query + # @param array_dummy array[character] array query + # @return [Void] + + # uncomment below to test the operation + #expect_equal(result, "EXPECTED_RESULT") +}) diff --git a/samples/client/petstore/R-httr2/tests/testthat/test_model_api_response.R b/samples/client/petstore/R-httr2/tests/testthat/test_model_api_response.R index d5dcef5716f9..d14ecb4a4fbd 100644 --- a/samples/client/petstore/R-httr2/tests/testthat/test_model_api_response.R +++ b/samples/client/petstore/R-httr2/tests/testthat/test_model_api_response.R @@ -3,26 +3,25 @@ context("Test ModelApiResponse") -model.instance <- ModelApiResponse$new() +model_instance <- ModelApiResponse$new() test_that("code", { # tests for the property `code` (integer) - # uncomment below to test the property + # uncomment below to test the property #expect_equal(model.instance$`code`, "EXPECTED_RESULT") }) test_that("type", { # tests for the property `type` (character) - # uncomment below to test the property + # uncomment below to test the property #expect_equal(model.instance$`type`, "EXPECTED_RESULT") }) test_that("message", { # tests for the property `message` (character) - # uncomment below to test the property + # uncomment below to test the property #expect_equal(model.instance$`message`, "EXPECTED_RESULT") }) - diff --git a/samples/client/petstore/R-httr2/tests/testthat/test_order.R b/samples/client/petstore/R-httr2/tests/testthat/test_order.R index 33b87520254d..5f254b6d26cc 100644 --- a/samples/client/petstore/R-httr2/tests/testthat/test_order.R +++ b/samples/client/petstore/R-httr2/tests/testthat/test_order.R @@ -3,33 +3,33 @@ context("Test Order") -model.instance <- Order$new() +model_instance <- Order$new() test_that("id", { # tests for the property `id` (integer) - # uncomment below to test the property + # uncomment below to test the property #expect_equal(model.instance$`id`, "EXPECTED_RESULT") }) test_that("petId", { # tests for the property `petId` (integer) - # uncomment below to test the property + # uncomment below to test the property #expect_equal(model.instance$`petId`, "EXPECTED_RESULT") }) test_that("quantity", { # tests for the property `quantity` (integer) - # uncomment below to test the property + # uncomment below to test the property #expect_equal(model.instance$`quantity`, "EXPECTED_RESULT") }) test_that("shipDate", { # tests for the property `shipDate` (character) - # uncomment below to test the property + # uncomment below to test the property #expect_equal(model.instance$`shipDate`, "EXPECTED_RESULT") }) @@ -37,14 +37,13 @@ test_that("status", { # tests for the property `status` (character) # Order Status - # uncomment below to test the property + # uncomment below to test the property #expect_equal(model.instance$`status`, "EXPECTED_RESULT") }) test_that("complete", { # tests for the property `complete` (character) - # uncomment below to test the property + # uncomment below to test the property #expect_equal(model.instance$`complete`, "EXPECTED_RESULT") }) - diff --git a/samples/client/petstore/R-httr2/tests/testthat/test_pet.R b/samples/client/petstore/R-httr2/tests/testthat/test_pet.R index ac3e4f31dd10..f23e5ee63486 100644 --- a/samples/client/petstore/R-httr2/tests/testthat/test_pet.R +++ b/samples/client/petstore/R-httr2/tests/testthat/test_pet.R @@ -3,40 +3,40 @@ context("Test Pet") -model.instance <- Pet$new() +model_instance <- Pet$new() test_that("id", { # tests for the property `id` (integer) - # uncomment below to test the property + # uncomment below to test the property #expect_equal(model.instance$`id`, "EXPECTED_RESULT") }) test_that("category", { # tests for the property `category` (Category) - # uncomment below to test the property + # uncomment below to test the property #expect_equal(model.instance$`category`, "EXPECTED_RESULT") }) test_that("name", { # tests for the property `name` (character) - # uncomment below to test the property + # uncomment below to test the property #expect_equal(model.instance$`name`, "EXPECTED_RESULT") }) test_that("photoUrls", { # tests for the property `photoUrls` (array[character]) - # uncomment below to test the property + # uncomment below to test the property #expect_equal(model.instance$`photoUrls`, "EXPECTED_RESULT") }) test_that("tags", { # tests for the property `tags` (array[Tag]) - # uncomment below to test the property + # uncomment below to test the property #expect_equal(model.instance$`tags`, "EXPECTED_RESULT") }) @@ -44,7 +44,6 @@ test_that("status", { # tests for the property `status` (character) # pet status in the store - # uncomment below to test the property + # uncomment below to test the property #expect_equal(model.instance$`status`, "EXPECTED_RESULT") }) - diff --git a/samples/client/petstore/R-httr2/tests/testthat/test_pet_api.R b/samples/client/petstore/R-httr2/tests/testthat/test_pet_api.R index 7fbdd1a70deb..7655227b40ff 100644 --- a/samples/client/petstore/R-httr2/tests/testthat/test_pet_api.R +++ b/samples/client/petstore/R-httr2/tests/testthat/test_pet_api.R @@ -3,33 +3,35 @@ context("Test PetApi") -api.instance <- PetApi$new() +api_instance <- PetApi$new() -test_that("AddPet", { - # tests for AddPet +test_that("add_pet", { + # tests for add_pet # base path: http://petstore.swagger.io/v2 # Add a new pet to the store - # @param body Pet Pet object that needs to be added to the store - # @return [Void] + # + # @param pet Pet Pet object that needs to be added to the store + # @return [Pet] # uncomment below to test the operation #expect_equal(result, "EXPECTED_RESULT") }) -test_that("DeletePet", { - # tests for DeletePet +test_that("delete_pet", { + # tests for delete_pet # base path: http://petstore.swagger.io/v2 # Deletes a pet - # @param pet.id integer Pet id to delete - # @param api.key character (optional) + # + # @param pet_id integer Pet id to delete + # @param api_key character (optional) # @return [Void] # uncomment below to test the operation #expect_equal(result, "EXPECTED_RESULT") }) -test_that("FindPetsByStatus", { - # tests for FindPetsByStatus +test_that("find_pets_by_status", { + # tests for find_pets_by_status # base path: http://petstore.swagger.io/v2 # Finds Pets by status # Multiple status values can be provided with comma separated strings @@ -40,8 +42,8 @@ test_that("FindPetsByStatus", { #expect_equal(result, "EXPECTED_RESULT") }) -test_that("FindPetsByTags", { - # tests for FindPetsByTags +test_that("find_pets_by_tags", { + # tests for find_pets_by_tags # base path: http://petstore.swagger.io/v2 # Finds Pets by tags # Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. @@ -52,34 +54,60 @@ test_that("FindPetsByTags", { #expect_equal(result, "EXPECTED_RESULT") }) -test_that("GetPetById", { - # tests for GetPetById +test_that("get_pet_by_id", { + # tests for get_pet_by_id # base path: http://petstore.swagger.io/v2 # Find pet by ID # Returns a single pet - # @param pet.id integer ID of pet to return + # @param pet_id integer ID of pet to return + # @return [Pet] + + # uncomment below to test the operation + #expect_equal(result, "EXPECTED_RESULT") +}) + +test_that("get_pet_by_id_streaming", { + # tests for get_pet_by_id_streaming + # base path: http://petstore.swagger.io/v2 + # Find pet by ID (streaming) + # Returns a single pet + # @param pet_id integer ID of pet to return # @return [Pet] # uncomment below to test the operation #expect_equal(result, "EXPECTED_RESULT") }) -test_that("UpdatePet", { - # tests for UpdatePet +test_that("test_header", { + # tests for test_header + # base path: http://petstore.swagger.io/v2 + # Header test + # Header test + # @param header_test_int integer header test int + # @return [Pet] + + # uncomment below to test the operation + #expect_equal(result, "EXPECTED_RESULT") +}) + +test_that("update_pet", { + # tests for update_pet # base path: http://petstore.swagger.io/v2 # Update an existing pet - # @param body Pet Pet object that needs to be added to the store - # @return [Void] + # + # @param pet Pet Pet object that needs to be added to the store + # @return [Pet] # uncomment below to test the operation #expect_equal(result, "EXPECTED_RESULT") }) -test_that("UpdatePetWithForm", { - # tests for UpdatePetWithForm +test_that("update_pet_with_form", { + # tests for update_pet_with_form # base path: http://petstore.swagger.io/v2 # Updates a pet in the store with form data - # @param pet.id integer ID of pet that needs to be updated + # + # @param pet_id integer ID of pet that needs to be updated # @param name character Updated name of the pet (optional) # @param status character Updated status of the pet (optional) # @return [Void] @@ -88,16 +116,16 @@ test_that("UpdatePetWithForm", { #expect_equal(result, "EXPECTED_RESULT") }) -test_that("UploadFile", { - # tests for UploadFile +test_that("upload_file", { + # tests for upload_file # base path: http://petstore.swagger.io/v2 # uploads an image - # @param pet.id integer ID of pet to update - # @param additional.metadata character Additional data to pass to server (optional) + # + # @param pet_id integer ID of pet to update + # @param additional_metadata character Additional data to pass to server (optional) # @param file data.frame file to upload (optional) # @return [ModelApiResponse] # uncomment below to test the operation #expect_equal(result, "EXPECTED_RESULT") }) - diff --git a/samples/client/petstore/R-httr2/tests/testthat/test_special.R b/samples/client/petstore/R-httr2/tests/testthat/test_special.R index c76671b21334..9fc5192ff217 100644 --- a/samples/client/petstore/R-httr2/tests/testthat/test_special.R +++ b/samples/client/petstore/R-httr2/tests/testthat/test_special.R @@ -5,23 +5,51 @@ context("Test Special") model_instance <- Special$new() -test_that("self", { - # tests for the property `self` (integer) +test_that("set_test", { + # tests for the property `set_test` (set[character]) # uncomment below to test the property - #expect_equal(model.instance$`self`, "EXPECTED_RESULT") + #expect_equal(model.instance$`set_test`, "EXPECTED_RESULT") }) -test_that("private", { - # tests for the property `private` (character) +test_that("item_self", { + # tests for the property `item_self` (integer) # uncomment below to test the property - #expect_equal(model.instance$`private`, "EXPECTED_RESULT") + #expect_equal(model.instance$`item_self`, "EXPECTED_RESULT") }) -test_that("super", { - # tests for the property `super` (character) +test_that("item_private", { + # tests for the property `item_private` (character) # uncomment below to test the property - #expect_equal(model.instance$`super`, "EXPECTED_RESULT") + #expect_equal(model.instance$`item_private`, "EXPECTED_RESULT") +}) + +test_that("item_super", { + # tests for the property `item_super` (character) + + # uncomment below to test the property + #expect_equal(model.instance$`item_super`, "EXPECTED_RESULT") +}) + +test_that("123_number", { + # tests for the property `123_number` (character) + + # uncomment below to test the property + #expect_equal(model.instance$`123_number`, "EXPECTED_RESULT") +}) + +test_that("array[test]", { + # tests for the property `array[test]` (character) + + # uncomment below to test the property + #expect_equal(model.instance$`array[test]`, "EXPECTED_RESULT") +}) + +test_that("empty_string", { + # tests for the property `empty_string` (character) + + # uncomment below to test the property + #expect_equal(model.instance$`empty_string`, "EXPECTED_RESULT") }) diff --git a/samples/client/petstore/R-httr2/tests/testthat/test_store_api.R b/samples/client/petstore/R-httr2/tests/testthat/test_store_api.R index 3ce6f412c93d..b88a68985786 100644 --- a/samples/client/petstore/R-httr2/tests/testthat/test_store_api.R +++ b/samples/client/petstore/R-httr2/tests/testthat/test_store_api.R @@ -3,22 +3,22 @@ context("Test StoreApi") -api.instance <- StoreApi$new() +api_instance <- StoreApi$new() -test_that("DeleteOrder", { - # tests for DeleteOrder +test_that("delete_order", { + # tests for delete_order # base path: http://petstore.swagger.io/v2 # Delete purchase order by ID # For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors - # @param order.id character ID of the order that needs to be deleted + # @param order_id character ID of the order that needs to be deleted # @return [Void] # uncomment below to test the operation #expect_equal(result, "EXPECTED_RESULT") }) -test_that("GetInventory", { - # tests for GetInventory +test_that("get_inventory", { + # tests for get_inventory # base path: http://petstore.swagger.io/v2 # Returns pet inventories by status # Returns a map of status codes to quantities @@ -28,26 +28,26 @@ test_that("GetInventory", { #expect_equal(result, "EXPECTED_RESULT") }) -test_that("GetOrderById", { - # tests for GetOrderById +test_that("get_order_by_id", { + # tests for get_order_by_id # base path: http://petstore.swagger.io/v2 # Find purchase order by ID # For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions - # @param order.id integer ID of pet that needs to be fetched + # @param order_id integer ID of pet that needs to be fetched # @return [Order] # uncomment below to test the operation #expect_equal(result, "EXPECTED_RESULT") }) -test_that("PlaceOrder", { - # tests for PlaceOrder +test_that("place_order", { + # tests for place_order # base path: http://petstore.swagger.io/v2 # Place an order for a pet - # @param body Order order placed for purchasing the pet + # + # @param order Order order placed for purchasing the pet # @return [Order] # uncomment below to test the operation #expect_equal(result, "EXPECTED_RESULT") }) - diff --git a/samples/client/petstore/R-httr2/tests/testthat/test_tag.R b/samples/client/petstore/R-httr2/tests/testthat/test_tag.R index 2dd6d369af0a..af8af7062cd4 100644 --- a/samples/client/petstore/R-httr2/tests/testthat/test_tag.R +++ b/samples/client/petstore/R-httr2/tests/testthat/test_tag.R @@ -3,19 +3,18 @@ context("Test Tag") -model.instance <- Tag$new() +model_instance <- Tag$new() test_that("id", { # tests for the property `id` (integer) - # uncomment below to test the property + # uncomment below to test the property #expect_equal(model.instance$`id`, "EXPECTED_RESULT") }) test_that("name", { # tests for the property `name` (character) - # uncomment below to test the property + # uncomment below to test the property #expect_equal(model.instance$`name`, "EXPECTED_RESULT") }) - diff --git a/samples/client/petstore/R-httr2/tests/testthat/test_user.R b/samples/client/petstore/R-httr2/tests/testthat/test_user.R index 9929623b42f8..958d3bd8620f 100644 --- a/samples/client/petstore/R-httr2/tests/testthat/test_user.R +++ b/samples/client/petstore/R-httr2/tests/testthat/test_user.R @@ -3,54 +3,54 @@ context("Test User") -model.instance <- User$new() +model_instance <- User$new() test_that("id", { # tests for the property `id` (integer) - # uncomment below to test the property + # uncomment below to test the property #expect_equal(model.instance$`id`, "EXPECTED_RESULT") }) test_that("username", { # tests for the property `username` (character) - # uncomment below to test the property + # uncomment below to test the property #expect_equal(model.instance$`username`, "EXPECTED_RESULT") }) test_that("firstName", { # tests for the property `firstName` (character) - # uncomment below to test the property + # uncomment below to test the property #expect_equal(model.instance$`firstName`, "EXPECTED_RESULT") }) test_that("lastName", { # tests for the property `lastName` (character) - # uncomment below to test the property + # uncomment below to test the property #expect_equal(model.instance$`lastName`, "EXPECTED_RESULT") }) test_that("email", { # tests for the property `email` (character) - # uncomment below to test the property + # uncomment below to test the property #expect_equal(model.instance$`email`, "EXPECTED_RESULT") }) test_that("password", { # tests for the property `password` (character) - # uncomment below to test the property + # uncomment below to test the property #expect_equal(model.instance$`password`, "EXPECTED_RESULT") }) test_that("phone", { # tests for the property `phone` (character) - # uncomment below to test the property + # uncomment below to test the property #expect_equal(model.instance$`phone`, "EXPECTED_RESULT") }) @@ -58,7 +58,6 @@ test_that("userStatus", { # tests for the property `userStatus` (integer) # User Status - # uncomment below to test the property + # uncomment below to test the property #expect_equal(model.instance$`userStatus`, "EXPECTED_RESULT") }) - diff --git a/samples/client/petstore/R-httr2/tests/testthat/test_user_api.R b/samples/client/petstore/R-httr2/tests/testthat/test_user_api.R index 8b8c3ba38477..fb10ba15bc50 100644 --- a/samples/client/petstore/R-httr2/tests/testthat/test_user_api.R +++ b/samples/client/petstore/R-httr2/tests/testthat/test_user_api.R @@ -3,44 +3,46 @@ context("Test UserApi") -api.instance <- UserApi$new() +api_instance <- UserApi$new() -test_that("CreateUser", { - # tests for CreateUser +test_that("create_user", { + # tests for create_user # base path: http://petstore.swagger.io/v2 # Create user # This can only be done by the logged in user. - # @param body User Created user object + # @param user User Created user object # @return [Void] # uncomment below to test the operation #expect_equal(result, "EXPECTED_RESULT") }) -test_that("CreateUsersWithArrayInput", { - # tests for CreateUsersWithArrayInput +test_that("create_users_with_array_input", { + # tests for create_users_with_array_input # base path: http://petstore.swagger.io/v2 # Creates list of users with given input array - # @param body array[User] List of user object + # + # @param user array[User] List of user object # @return [Void] # uncomment below to test the operation #expect_equal(result, "EXPECTED_RESULT") }) -test_that("CreateUsersWithListInput", { - # tests for CreateUsersWithListInput +test_that("create_users_with_list_input", { + # tests for create_users_with_list_input # base path: http://petstore.swagger.io/v2 # Creates list of users with given input array - # @param body array[User] List of user object + # + # @param user array[User] List of user object # @return [Void] # uncomment below to test the operation #expect_equal(result, "EXPECTED_RESULT") }) -test_that("DeleteUser", { - # tests for DeleteUser +test_that("delete_user", { + # tests for delete_user # base path: http://petstore.swagger.io/v2 # Delete user # This can only be done by the logged in user. @@ -51,10 +53,11 @@ test_that("DeleteUser", { #expect_equal(result, "EXPECTED_RESULT") }) -test_that("GetUserByName", { - # tests for GetUserByName +test_that("get_user_by_name", { + # tests for get_user_by_name # base path: http://petstore.swagger.io/v2 # Get user by user name + # # @param username character The name that needs to be fetched. Use user1 for testing. # @return [User] @@ -62,10 +65,11 @@ test_that("GetUserByName", { #expect_equal(result, "EXPECTED_RESULT") }) -test_that("LoginUser", { - # tests for LoginUser +test_that("login_user", { + # tests for login_user # base path: http://petstore.swagger.io/v2 # Logs user into the system + # # @param username character The user name for login # @param password character The password for login in clear text # @return [character] @@ -74,26 +78,26 @@ test_that("LoginUser", { #expect_equal(result, "EXPECTED_RESULT") }) -test_that("LogoutUser", { - # tests for LogoutUser +test_that("logout_user", { + # tests for logout_user # base path: http://petstore.swagger.io/v2 # Logs out current logged in user session + # # @return [Void] # uncomment below to test the operation #expect_equal(result, "EXPECTED_RESULT") }) -test_that("UpdateUser", { - # tests for UpdateUser +test_that("update_user", { + # tests for update_user # base path: http://petstore.swagger.io/v2 # Updated user # This can only be done by the logged in user. # @param username character name that need to be deleted - # @param body User Updated user object + # @param user User Updated user object # @return [Void] # uncomment below to test the operation #expect_equal(result, "EXPECTED_RESULT") }) - diff --git a/samples/client/petstore/R/tests/testthat/test_category.R b/samples/client/petstore/R/tests/testthat/test_category.R index c7838edeb623..df2725e9cef7 100644 --- a/samples/client/petstore/R/tests/testthat/test_category.R +++ b/samples/client/petstore/R/tests/testthat/test_category.R @@ -3,19 +3,18 @@ context("Test Category") -model.instance <- Category$new() +model_instance <- Category$new() test_that("id", { # tests for the property `id` (integer) - # uncomment below to test the property + # uncomment below to test the property #expect_equal(model.instance$`id`, "EXPECTED_RESULT") }) test_that("name", { # tests for the property `name` (character) - # uncomment below to test the property + # uncomment below to test the property #expect_equal(model.instance$`name`, "EXPECTED_RESULT") }) - diff --git a/samples/client/petstore/R/tests/testthat/test_date.R b/samples/client/petstore/R/tests/testthat/test_date.R index 214fd8a352f5..d6c093206c0b 100644 --- a/samples/client/petstore/R/tests/testthat/test_date.R +++ b/samples/client/petstore/R/tests/testthat/test_date.R @@ -11,3 +11,18 @@ test_that("className", { # uncomment below to test the property #expect_equal(model.instance$`className`, "EXPECTED_RESULT") }) + +test_that("percent_description", { + # tests for the property `percent_description` (character) + # using % in the description + + # uncomment below to test the property + #expect_equal(model.instance$`percent_description`, "EXPECTED_RESULT") +}) + +test_that("url_property", { + # tests for the property `url_property` (character) + + # uncomment below to test the property + #expect_equal(model.instance$`url_property`, "EXPECTED_RESULT") +}) diff --git a/samples/client/petstore/R/tests/testthat/test_fake_api.R b/samples/client/petstore/R/tests/testthat/test_fake_api.R index 7514044ac14f..abcc33f6ca6a 100644 --- a/samples/client/petstore/R/tests/testthat/test_fake_api.R +++ b/samples/client/petstore/R/tests/testthat/test_fake_api.R @@ -3,7 +3,19 @@ context("Test FakeApi") -api.instance <- FakeApi$new() +api_instance <- FakeApi$new() + +test_that("AddPetOptional", { + # tests for AddPetOptional + # base path: http://petstore.swagger.io/v2 + # Add a new pet to the store (optional body) + # + # @param pet Pet Pet object that needs to be added to the store (optional) + # @return [Pet] + + # uncomment below to test the operation + #expect_equal(result, "EXPECTED_RESULT") +}) test_that("FakeDataFile", { # tests for FakeDataFile @@ -11,10 +23,46 @@ test_that("FakeDataFile", { # test data_file to ensure it's escaped correctly # # @param dummy character dummy required parameter - # @param DataFile. character header data file (optional) + # @param var_data_file character header data file (optional) + # @return [User] + + # uncomment below to test the operation + #expect_equal(result, "EXPECTED_RESULT") +}) + +test_that("FakePathArray", { + # tests for FakePathArray + # base path: http://petstore.swagger.io/v2 + # test array parameter in path + # + # @param path_array array[character] dummy path parameter # @return [Void] # uncomment below to test the operation #expect_equal(result, "EXPECTED_RESULT") }) +test_that("FakeRegularExpression", { + # tests for FakeRegularExpression + # base path: http://petstore.swagger.io/v2 + # test regular expression to ensure no exception + # + # @param reg_exp_test character dummy required parameter + # @return [Void] + + # uncomment below to test the operation + #expect_equal(result, "EXPECTED_RESULT") +}) + +test_that("FakeSetQuery", { + # tests for FakeSetQuery + # base path: http://petstore.swagger.io/v2 + # test set query parameter + # + # @param set_dummy set[character] set query + # @param array_dummy array[character] array query + # @return [Void] + + # uncomment below to test the operation + #expect_equal(result, "EXPECTED_RESULT") +}) diff --git a/samples/client/petstore/R/tests/testthat/test_model_api_response.R b/samples/client/petstore/R/tests/testthat/test_model_api_response.R index d5dcef5716f9..d14ecb4a4fbd 100644 --- a/samples/client/petstore/R/tests/testthat/test_model_api_response.R +++ b/samples/client/petstore/R/tests/testthat/test_model_api_response.R @@ -3,26 +3,25 @@ context("Test ModelApiResponse") -model.instance <- ModelApiResponse$new() +model_instance <- ModelApiResponse$new() test_that("code", { # tests for the property `code` (integer) - # uncomment below to test the property + # uncomment below to test the property #expect_equal(model.instance$`code`, "EXPECTED_RESULT") }) test_that("type", { # tests for the property `type` (character) - # uncomment below to test the property + # uncomment below to test the property #expect_equal(model.instance$`type`, "EXPECTED_RESULT") }) test_that("message", { # tests for the property `message` (character) - # uncomment below to test the property + # uncomment below to test the property #expect_equal(model.instance$`message`, "EXPECTED_RESULT") }) - diff --git a/samples/client/petstore/R/tests/testthat/test_order.R b/samples/client/petstore/R/tests/testthat/test_order.R index 33b87520254d..5f254b6d26cc 100644 --- a/samples/client/petstore/R/tests/testthat/test_order.R +++ b/samples/client/petstore/R/tests/testthat/test_order.R @@ -3,33 +3,33 @@ context("Test Order") -model.instance <- Order$new() +model_instance <- Order$new() test_that("id", { # tests for the property `id` (integer) - # uncomment below to test the property + # uncomment below to test the property #expect_equal(model.instance$`id`, "EXPECTED_RESULT") }) test_that("petId", { # tests for the property `petId` (integer) - # uncomment below to test the property + # uncomment below to test the property #expect_equal(model.instance$`petId`, "EXPECTED_RESULT") }) test_that("quantity", { # tests for the property `quantity` (integer) - # uncomment below to test the property + # uncomment below to test the property #expect_equal(model.instance$`quantity`, "EXPECTED_RESULT") }) test_that("shipDate", { # tests for the property `shipDate` (character) - # uncomment below to test the property + # uncomment below to test the property #expect_equal(model.instance$`shipDate`, "EXPECTED_RESULT") }) @@ -37,14 +37,13 @@ test_that("status", { # tests for the property `status` (character) # Order Status - # uncomment below to test the property + # uncomment below to test the property #expect_equal(model.instance$`status`, "EXPECTED_RESULT") }) test_that("complete", { # tests for the property `complete` (character) - # uncomment below to test the property + # uncomment below to test the property #expect_equal(model.instance$`complete`, "EXPECTED_RESULT") }) - diff --git a/samples/client/petstore/R/tests/testthat/test_pet.R b/samples/client/petstore/R/tests/testthat/test_pet.R index ac3e4f31dd10..f23e5ee63486 100644 --- a/samples/client/petstore/R/tests/testthat/test_pet.R +++ b/samples/client/petstore/R/tests/testthat/test_pet.R @@ -3,40 +3,40 @@ context("Test Pet") -model.instance <- Pet$new() +model_instance <- Pet$new() test_that("id", { # tests for the property `id` (integer) - # uncomment below to test the property + # uncomment below to test the property #expect_equal(model.instance$`id`, "EXPECTED_RESULT") }) test_that("category", { # tests for the property `category` (Category) - # uncomment below to test the property + # uncomment below to test the property #expect_equal(model.instance$`category`, "EXPECTED_RESULT") }) test_that("name", { # tests for the property `name` (character) - # uncomment below to test the property + # uncomment below to test the property #expect_equal(model.instance$`name`, "EXPECTED_RESULT") }) test_that("photoUrls", { # tests for the property `photoUrls` (array[character]) - # uncomment below to test the property + # uncomment below to test the property #expect_equal(model.instance$`photoUrls`, "EXPECTED_RESULT") }) test_that("tags", { # tests for the property `tags` (array[Tag]) - # uncomment below to test the property + # uncomment below to test the property #expect_equal(model.instance$`tags`, "EXPECTED_RESULT") }) @@ -44,7 +44,6 @@ test_that("status", { # tests for the property `status` (character) # pet status in the store - # uncomment below to test the property + # uncomment below to test the property #expect_equal(model.instance$`status`, "EXPECTED_RESULT") }) - diff --git a/samples/client/petstore/R/tests/testthat/test_pet_api.R b/samples/client/petstore/R/tests/testthat/test_pet_api.R index 7fbdd1a70deb..e9fce704b6e8 100644 --- a/samples/client/petstore/R/tests/testthat/test_pet_api.R +++ b/samples/client/petstore/R/tests/testthat/test_pet_api.R @@ -3,14 +3,15 @@ context("Test PetApi") -api.instance <- PetApi$new() +api_instance <- PetApi$new() test_that("AddPet", { # tests for AddPet # base path: http://petstore.swagger.io/v2 # Add a new pet to the store - # @param body Pet Pet object that needs to be added to the store - # @return [Void] + # + # @param pet Pet Pet object that needs to be added to the store + # @return [Pet] # uncomment below to test the operation #expect_equal(result, "EXPECTED_RESULT") @@ -20,8 +21,9 @@ test_that("DeletePet", { # tests for DeletePet # base path: http://petstore.swagger.io/v2 # Deletes a pet - # @param pet.id integer Pet id to delete - # @param api.key character (optional) + # + # @param pet_id integer Pet id to delete + # @param api_key character (optional) # @return [Void] # uncomment below to test the operation @@ -57,7 +59,31 @@ test_that("GetPetById", { # base path: http://petstore.swagger.io/v2 # Find pet by ID # Returns a single pet - # @param pet.id integer ID of pet to return + # @param pet_id integer ID of pet to return + # @return [Pet] + + # uncomment below to test the operation + #expect_equal(result, "EXPECTED_RESULT") +}) + +test_that("GetPetByIdStreaming", { + # tests for GetPetByIdStreaming + # base path: http://petstore.swagger.io/v2 + # Find pet by ID (streaming) + # Returns a single pet + # @param pet_id integer ID of pet to return + # @return [Pet] + + # uncomment below to test the operation + #expect_equal(result, "EXPECTED_RESULT") +}) + +test_that("TestHeader", { + # tests for TestHeader + # base path: http://petstore.swagger.io/v2 + # Header test + # Header test + # @param header_test_int integer header test int # @return [Pet] # uncomment below to test the operation @@ -68,8 +94,9 @@ test_that("UpdatePet", { # tests for UpdatePet # base path: http://petstore.swagger.io/v2 # Update an existing pet - # @param body Pet Pet object that needs to be added to the store - # @return [Void] + # + # @param pet Pet Pet object that needs to be added to the store + # @return [Pet] # uncomment below to test the operation #expect_equal(result, "EXPECTED_RESULT") @@ -79,7 +106,8 @@ test_that("UpdatePetWithForm", { # tests for UpdatePetWithForm # base path: http://petstore.swagger.io/v2 # Updates a pet in the store with form data - # @param pet.id integer ID of pet that needs to be updated + # + # @param pet_id integer ID of pet that needs to be updated # @param name character Updated name of the pet (optional) # @param status character Updated status of the pet (optional) # @return [Void] @@ -92,12 +120,12 @@ test_that("UploadFile", { # tests for UploadFile # base path: http://petstore.swagger.io/v2 # uploads an image - # @param pet.id integer ID of pet to update - # @param additional.metadata character Additional data to pass to server (optional) + # + # @param pet_id integer ID of pet to update + # @param additional_metadata character Additional data to pass to server (optional) # @param file data.frame file to upload (optional) # @return [ModelApiResponse] # uncomment below to test the operation #expect_equal(result, "EXPECTED_RESULT") }) - diff --git a/samples/client/petstore/R/tests/testthat/test_special.R b/samples/client/petstore/R/tests/testthat/test_special.R index c76671b21334..9fc5192ff217 100644 --- a/samples/client/petstore/R/tests/testthat/test_special.R +++ b/samples/client/petstore/R/tests/testthat/test_special.R @@ -5,23 +5,51 @@ context("Test Special") model_instance <- Special$new() -test_that("self", { - # tests for the property `self` (integer) +test_that("set_test", { + # tests for the property `set_test` (set[character]) # uncomment below to test the property - #expect_equal(model.instance$`self`, "EXPECTED_RESULT") + #expect_equal(model.instance$`set_test`, "EXPECTED_RESULT") }) -test_that("private", { - # tests for the property `private` (character) +test_that("item_self", { + # tests for the property `item_self` (integer) # uncomment below to test the property - #expect_equal(model.instance$`private`, "EXPECTED_RESULT") + #expect_equal(model.instance$`item_self`, "EXPECTED_RESULT") }) -test_that("super", { - # tests for the property `super` (character) +test_that("item_private", { + # tests for the property `item_private` (character) # uncomment below to test the property - #expect_equal(model.instance$`super`, "EXPECTED_RESULT") + #expect_equal(model.instance$`item_private`, "EXPECTED_RESULT") +}) + +test_that("item_super", { + # tests for the property `item_super` (character) + + # uncomment below to test the property + #expect_equal(model.instance$`item_super`, "EXPECTED_RESULT") +}) + +test_that("123_number", { + # tests for the property `123_number` (character) + + # uncomment below to test the property + #expect_equal(model.instance$`123_number`, "EXPECTED_RESULT") +}) + +test_that("array[test]", { + # tests for the property `array[test]` (character) + + # uncomment below to test the property + #expect_equal(model.instance$`array[test]`, "EXPECTED_RESULT") +}) + +test_that("empty_string", { + # tests for the property `empty_string` (character) + + # uncomment below to test the property + #expect_equal(model.instance$`empty_string`, "EXPECTED_RESULT") }) diff --git a/samples/client/petstore/R/tests/testthat/test_store_api.R b/samples/client/petstore/R/tests/testthat/test_store_api.R index 3ce6f412c93d..5efae519e2b4 100644 --- a/samples/client/petstore/R/tests/testthat/test_store_api.R +++ b/samples/client/petstore/R/tests/testthat/test_store_api.R @@ -3,14 +3,14 @@ context("Test StoreApi") -api.instance <- StoreApi$new() +api_instance <- StoreApi$new() test_that("DeleteOrder", { # tests for DeleteOrder # base path: http://petstore.swagger.io/v2 # Delete purchase order by ID # For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors - # @param order.id character ID of the order that needs to be deleted + # @param order_id character ID of the order that needs to be deleted # @return [Void] # uncomment below to test the operation @@ -33,7 +33,7 @@ test_that("GetOrderById", { # base path: http://petstore.swagger.io/v2 # Find purchase order by ID # For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions - # @param order.id integer ID of pet that needs to be fetched + # @param order_id integer ID of pet that needs to be fetched # @return [Order] # uncomment below to test the operation @@ -44,10 +44,10 @@ test_that("PlaceOrder", { # tests for PlaceOrder # base path: http://petstore.swagger.io/v2 # Place an order for a pet - # @param body Order order placed for purchasing the pet + # + # @param order Order order placed for purchasing the pet # @return [Order] # uncomment below to test the operation #expect_equal(result, "EXPECTED_RESULT") }) - diff --git a/samples/client/petstore/R/tests/testthat/test_tag.R b/samples/client/petstore/R/tests/testthat/test_tag.R index 2dd6d369af0a..af8af7062cd4 100644 --- a/samples/client/petstore/R/tests/testthat/test_tag.R +++ b/samples/client/petstore/R/tests/testthat/test_tag.R @@ -3,19 +3,18 @@ context("Test Tag") -model.instance <- Tag$new() +model_instance <- Tag$new() test_that("id", { # tests for the property `id` (integer) - # uncomment below to test the property + # uncomment below to test the property #expect_equal(model.instance$`id`, "EXPECTED_RESULT") }) test_that("name", { # tests for the property `name` (character) - # uncomment below to test the property + # uncomment below to test the property #expect_equal(model.instance$`name`, "EXPECTED_RESULT") }) - diff --git a/samples/client/petstore/R/tests/testthat/test_user.R b/samples/client/petstore/R/tests/testthat/test_user.R index 9929623b42f8..958d3bd8620f 100644 --- a/samples/client/petstore/R/tests/testthat/test_user.R +++ b/samples/client/petstore/R/tests/testthat/test_user.R @@ -3,54 +3,54 @@ context("Test User") -model.instance <- User$new() +model_instance <- User$new() test_that("id", { # tests for the property `id` (integer) - # uncomment below to test the property + # uncomment below to test the property #expect_equal(model.instance$`id`, "EXPECTED_RESULT") }) test_that("username", { # tests for the property `username` (character) - # uncomment below to test the property + # uncomment below to test the property #expect_equal(model.instance$`username`, "EXPECTED_RESULT") }) test_that("firstName", { # tests for the property `firstName` (character) - # uncomment below to test the property + # uncomment below to test the property #expect_equal(model.instance$`firstName`, "EXPECTED_RESULT") }) test_that("lastName", { # tests for the property `lastName` (character) - # uncomment below to test the property + # uncomment below to test the property #expect_equal(model.instance$`lastName`, "EXPECTED_RESULT") }) test_that("email", { # tests for the property `email` (character) - # uncomment below to test the property + # uncomment below to test the property #expect_equal(model.instance$`email`, "EXPECTED_RESULT") }) test_that("password", { # tests for the property `password` (character) - # uncomment below to test the property + # uncomment below to test the property #expect_equal(model.instance$`password`, "EXPECTED_RESULT") }) test_that("phone", { # tests for the property `phone` (character) - # uncomment below to test the property + # uncomment below to test the property #expect_equal(model.instance$`phone`, "EXPECTED_RESULT") }) @@ -58,7 +58,6 @@ test_that("userStatus", { # tests for the property `userStatus` (integer) # User Status - # uncomment below to test the property + # uncomment below to test the property #expect_equal(model.instance$`userStatus`, "EXPECTED_RESULT") }) - diff --git a/samples/client/petstore/R/tests/testthat/test_user_api.R b/samples/client/petstore/R/tests/testthat/test_user_api.R index 8b8c3ba38477..3a86b7a0298c 100644 --- a/samples/client/petstore/R/tests/testthat/test_user_api.R +++ b/samples/client/petstore/R/tests/testthat/test_user_api.R @@ -3,14 +3,14 @@ context("Test UserApi") -api.instance <- UserApi$new() +api_instance <- UserApi$new() test_that("CreateUser", { # tests for CreateUser # base path: http://petstore.swagger.io/v2 # Create user # This can only be done by the logged in user. - # @param body User Created user object + # @param user User Created user object # @return [Void] # uncomment below to test the operation @@ -21,7 +21,8 @@ test_that("CreateUsersWithArrayInput", { # tests for CreateUsersWithArrayInput # base path: http://petstore.swagger.io/v2 # Creates list of users with given input array - # @param body array[User] List of user object + # + # @param user array[User] List of user object # @return [Void] # uncomment below to test the operation @@ -32,7 +33,8 @@ test_that("CreateUsersWithListInput", { # tests for CreateUsersWithListInput # base path: http://petstore.swagger.io/v2 # Creates list of users with given input array - # @param body array[User] List of user object + # + # @param user array[User] List of user object # @return [Void] # uncomment below to test the operation @@ -55,6 +57,7 @@ test_that("GetUserByName", { # tests for GetUserByName # base path: http://petstore.swagger.io/v2 # Get user by user name + # # @param username character The name that needs to be fetched. Use user1 for testing. # @return [User] @@ -66,6 +69,7 @@ test_that("LoginUser", { # tests for LoginUser # base path: http://petstore.swagger.io/v2 # Logs user into the system + # # @param username character The user name for login # @param password character The password for login in clear text # @return [character] @@ -78,6 +82,7 @@ test_that("LogoutUser", { # tests for LogoutUser # base path: http://petstore.swagger.io/v2 # Logs out current logged in user session + # # @return [Void] # uncomment below to test the operation @@ -90,10 +95,9 @@ test_that("UpdateUser", { # Updated user # This can only be done by the logged in user. # @param username character name that need to be deleted - # @param body User Updated user object + # @param user User Updated user object # @return [Void] # uncomment below to test the operation #expect_equal(result, "EXPECTED_RESULT") }) - diff --git a/samples/client/petstore/apex/force-app/main/default/classes/OASApiResponseTest.cls b/samples/client/petstore/apex/force-app/main/default/classes/OASApiResponseTest.cls index 4245ce16642d..8b43f71ae35f 100644 --- a/samples/client/petstore/apex/force-app/main/default/classes/OASApiResponseTest.cls +++ b/samples/client/petstore/apex/force-app/main/default/classes/OASApiResponseTest.cls @@ -68,11 +68,4 @@ private class OASApiResponseTest { System.assertEquals(apiResponse1.hashCode(), apiResponse2.hashCode()); System.assertEquals(apiResponse3.hashCode(), apiResponse4.hashCode()); } - - @isTest - private static void maintainRenamedProperties() { - OASApiResponse apiResponse = new OASApiResponse(); - Map propertyMappings = apiResponse.getPropertyMappings(); - System.assertEquals('r_type', propertyMappings.get('type')); - } } diff --git a/samples/client/petstore/apex/force-app/main/default/classes/OASPetApiTest.cls b/samples/client/petstore/apex/force-app/main/default/classes/OASPetApiTest.cls index 1eaf5a3ad2bc..65fcc4565b71 100644 --- a/samples/client/petstore/apex/force-app/main/default/classes/OASPetApiTest.cls +++ b/samples/client/petstore/apex/force-app/main/default/classes/OASPetApiTest.cls @@ -13,16 +13,32 @@ private class OASPetApiTest { Test.setMock(HttpCalloutMock.class, new OASResponseMock(res)); Map params = new Map{ - 'oaSPet' => OASPet.getExample() + 'oaSPet' => '' }; OASClient client; OASPetApi api; + OASPet response; + OASPet expectedResponse; String js = ''; client = new OASClient(); api = new OASPetApi(client); - api.addPet(params); + + js = JSON.serialize(OASPet.getExample()); + res.setHeader('Content-Type', 'application/json'); + res.setBody(js); + expectedResponse = OASPet.getExample(); + response = (OASPet) api.addPet(params); + System.assertEquals(expectedResponse, response); + + + js = JSON.serialize(OASPet.getExample()); + res.setHeader('Content-Type', 'application/xml'); + res.setBody(js); + expectedResponse = OASPet.getExample(); + response = (OASPet) api.addPet(params); + System.assertEquals(expectedResponse, response); } /** @@ -189,16 +205,32 @@ private class OASPetApiTest { Test.setMock(HttpCalloutMock.class, new OASResponseMock(res)); Map params = new Map{ - 'oaSPet' => OASPet.getExample() + 'oaSPet' => '' }; OASClient client; OASPetApi api; + OASPet response; + OASPet expectedResponse; String js = ''; client = new OASClient(); api = new OASPetApi(client); - api.updatePet(params); + + js = JSON.serialize(OASPet.getExample()); + res.setHeader('Content-Type', 'application/json'); + res.setBody(js); + expectedResponse = OASPet.getExample(); + response = (OASPet) api.updatePet(params); + System.assertEquals(expectedResponse, response); + + + js = JSON.serialize(OASPet.getExample()); + res.setHeader('Content-Type', 'application/xml'); + res.setBody(js); + expectedResponse = OASPet.getExample(); + response = (OASPet) api.updatePet(params); + System.assertEquals(expectedResponse, response); } /** diff --git a/samples/client/petstore/apex/force-app/main/default/classes/OASStoreApiTest.cls b/samples/client/petstore/apex/force-app/main/default/classes/OASStoreApiTest.cls index 8c1eca4b90a8..10ccac28df86 100644 --- a/samples/client/petstore/apex/force-app/main/default/classes/OASStoreApiTest.cls +++ b/samples/client/petstore/apex/force-app/main/default/classes/OASStoreApiTest.cls @@ -102,7 +102,7 @@ private class OASStoreApiTest { Test.setMock(HttpCalloutMock.class, new OASResponseMock(res)); Map params = new Map{ - 'oaSOrder' => OASOrder.getExample() + 'oaSOrder' => '' }; OASClient client; diff --git a/samples/client/petstore/apex/force-app/main/default/classes/OASUserApiTest.cls b/samples/client/petstore/apex/force-app/main/default/classes/OASUserApiTest.cls index 3d797e07982b..7d837ec7894d 100644 --- a/samples/client/petstore/apex/force-app/main/default/classes/OASUserApiTest.cls +++ b/samples/client/petstore/apex/force-app/main/default/classes/OASUserApiTest.cls @@ -13,14 +13,16 @@ private class OASUserApiTest { Test.setMock(HttpCalloutMock.class, new OASResponseMock(res)); Map params = new Map{ - 'oaSUser' => OASUser.getExample() + 'oaSUser' => '' }; OASClient client; OASUserApi api; String js = ''; - api = new OASUserApi(new OASClient()); + client = new OASClient(); + api = new OASUserApi(client); + ((OAS.ApiKeyAuth)client.getAuthentication('api_key')).setApiKey('foo-bar-api-key'); api.createUser(params); } @@ -45,7 +47,9 @@ private class OASUserApiTest { OASUserApi api; String js = ''; - api = new OASUserApi(new OASClient()); + client = new OASClient(); + api = new OASUserApi(client); + ((OAS.ApiKeyAuth)client.getAuthentication('api_key')).setApiKey('foo-bar-api-key'); api.createUsersWithArrayInput(params); } @@ -70,7 +74,9 @@ private class OASUserApiTest { OASUserApi api; String js = ''; - api = new OASUserApi(new OASClient()); + client = new OASClient(); + api = new OASUserApi(client); + ((OAS.ApiKeyAuth)client.getAuthentication('api_key')).setApiKey('foo-bar-api-key'); api.createUsersWithListInput(params); } @@ -95,7 +101,9 @@ private class OASUserApiTest { OASUserApi api; String js = ''; - api = new OASUserApi(new OASClient()); + client = new OASClient(); + api = new OASUserApi(client); + ((OAS.ApiKeyAuth)client.getAuthentication('api_key')).setApiKey('foo-bar-api-key'); api.deleteUser(params); } @@ -183,7 +191,9 @@ private class OASUserApiTest { OASUserApi api; String js = ''; - api = new OASUserApi(new OASClient()); + client = new OASClient(); + api = new OASUserApi(client); + ((OAS.ApiKeyAuth)client.getAuthentication('api_key')).setApiKey('foo-bar-api-key'); api.logoutUser(); } @@ -202,14 +212,16 @@ private class OASUserApiTest { Map params = new Map{ 'username' => 'null', - 'oaSUser' => OASUser.getExample() + 'oaSUser' => '' }; OASClient client; OASUserApi api; String js = ''; - api = new OASUserApi(new OASClient()); + client = new OASClient(); + api = new OASUserApi(client); + ((OAS.ApiKeyAuth)client.getAuthentication('api_key')).setApiKey('foo-bar-api-key'); api.updateUser(params); } diff --git a/samples/client/petstore/c-useJsonUnformatted/unit-test/test_user.c b/samples/client/petstore/c-useJsonUnformatted/unit-test/test_user.c index 8e86588002f2..60620b7eddd6 100644 --- a/samples/client/petstore/c-useJsonUnformatted/unit-test/test_user.c +++ b/samples/client/petstore/c-useJsonUnformatted/unit-test/test_user.c @@ -29,7 +29,9 @@ user_t* instantiate_user(int include_optional) { "0", "0", "0", - 56 + 56, + list_createList(), + openapi_petstore_user__cats ); } else { user = user_create( @@ -40,7 +42,9 @@ user_t* instantiate_user(int include_optional) { "0", "0", "0", - 56 + 56, + list_createList(), + openapi_petstore_user__cats ); } diff --git a/samples/client/petstore/c/unit-test/test_mapped_model.c b/samples/client/petstore/c/unit-test/test_mapped_model.c index 214b17d14e6f..1862dda758cf 100644 --- a/samples/client/petstore/c/unit-test/test_mapped_model.c +++ b/samples/client/petstore/c/unit-test/test_mapped_model.c @@ -22,11 +22,13 @@ MappedModel_t* instantiate_MappedModel(int include_optional) { MappedModel_t* MappedModel = NULL; if (include_optional) { MappedModel = MappedModel_create( - 56 + 56, + "0" ); } else { MappedModel = MappedModel_create( - 56 + 56, + "0" ); } diff --git a/samples/client/petstore/c/unit-test/test_user.c b/samples/client/petstore/c/unit-test/test_user.c index d2a230b9cd71..4af0663e1bac 100644 --- a/samples/client/petstore/c/unit-test/test_user.c +++ b/samples/client/petstore/c/unit-test/test_user.c @@ -29,7 +29,9 @@ user_t* instantiate_user(int include_optional) { "0", "0", "0", - 56 + 56, + list_createList(), + openapi_petstore_user__cats ); } else { user = user_create( @@ -40,7 +42,9 @@ user_t* instantiate_user(int include_optional) { "0", "0", "0", - 56 + 56, + list_createList(), + openapi_petstore_user__cats ); } diff --git a/samples/client/petstore/cpp-tiny/lib/TestFiles/ApiResponseTest.cpp b/samples/client/petstore/cpp-tiny/lib/TestFiles/ApiResponseTest.cpp index 160f4217f5df..edee6a3a1dc2 100644 --- a/samples/client/petstore/cpp-tiny/lib/TestFiles/ApiResponseTest.cpp +++ b/samples/client/petstore/cpp-tiny/lib/TestFiles/ApiResponseTest.cpp @@ -12,7 +12,7 @@ using namespace Tiny; void test_ApiResponse_code_is_assigned_from_json() { - bourne::json input = + bourne::json input = { "code", 1 }; @@ -35,7 +35,7 @@ void test_ApiResponse_type_is_assigned_from_json() { - bourne::json input = + bourne::json input = { "type", "hello" }; @@ -56,7 +56,7 @@ void test_ApiResponse_message_is_assigned_from_json() { - bourne::json input = + bourne::json input = { "message", "hello" }; @@ -76,7 +76,7 @@ void test_ApiResponse_message_is_assigned_from_json() void test_ApiResponse_code_is_converted_to_json() { - bourne::json input = + bourne::json input = { "code", 1 }; @@ -98,7 +98,7 @@ void test_ApiResponse_code_is_converted_to_json() void test_ApiResponse_type_is_converted_to_json() { - bourne::json input = + bourne::json input = { "type", "hello" }; @@ -119,7 +119,7 @@ void test_ApiResponse_type_is_converted_to_json() void test_ApiResponse_message_is_converted_to_json() { - bourne::json input = + bourne::json input = { "message", "hello" }; diff --git a/samples/client/petstore/cpp-tiny/lib/TestFiles/CategoryTest.cpp b/samples/client/petstore/cpp-tiny/lib/TestFiles/CategoryTest.cpp index 2951856e6a58..37d9317b0d6f 100644 --- a/samples/client/petstore/cpp-tiny/lib/TestFiles/CategoryTest.cpp +++ b/samples/client/petstore/cpp-tiny/lib/TestFiles/CategoryTest.cpp @@ -18,7 +18,7 @@ void test_Category_id_is_assigned_from_json() - bourne::json input = + bourne::json input = { "id", 1 }; @@ -35,7 +35,7 @@ void test_Category_name_is_assigned_from_json() { - bourne::json input = + bourne::json input = { "name", "hello" }; @@ -58,7 +58,7 @@ void test_Category_id_is_converted_to_json() - bourne::json input = + bourne::json input = { "id", 1 }; @@ -77,7 +77,7 @@ void test_Category_id_is_converted_to_json() void test_Category_name_is_converted_to_json() { - bourne::json input = + bourne::json input = { "name", "hello" }; diff --git a/samples/client/petstore/cpp-tiny/lib/TestFiles/OrderTest.cpp b/samples/client/petstore/cpp-tiny/lib/TestFiles/OrderTest.cpp index 13125fc8fc5a..23c9f589d2f8 100644 --- a/samples/client/petstore/cpp-tiny/lib/TestFiles/OrderTest.cpp +++ b/samples/client/petstore/cpp-tiny/lib/TestFiles/OrderTest.cpp @@ -18,7 +18,7 @@ void test_Order_id_is_assigned_from_json() - bourne::json input = + bourne::json input = { "id", 1 }; @@ -39,7 +39,7 @@ void test_Order_petId_is_assigned_from_json() - bourne::json input = + bourne::json input = { "petId", 1 }; @@ -54,7 +54,7 @@ void test_Order_petId_is_assigned_from_json() void test_Order_quantity_is_assigned_from_json() { - bourne::json input = + bourne::json input = { "quantity", 1 }; @@ -90,7 +90,7 @@ void test_Order_status_is_assigned_from_json() { - bourne::json input = + bourne::json input = { "status", "hello" }; @@ -113,7 +113,7 @@ void test_Order_complete_is_assigned_from_json() - bourne::json input = + bourne::json input = { "complete", true }; @@ -134,7 +134,7 @@ void test_Order_id_is_converted_to_json() - bourne::json input = + bourne::json input = { "id", 1 }; @@ -155,7 +155,7 @@ void test_Order_petId_is_converted_to_json() - bourne::json input = + bourne::json input = { "petId", 1 }; @@ -173,7 +173,7 @@ void test_Order_petId_is_converted_to_json() void test_Order_quantity_is_converted_to_json() { - bourne::json input = + bourne::json input = { "quantity", 1 }; @@ -204,7 +204,7 @@ void test_Order_shipDate_is_converted_to_json() void test_Order_status_is_converted_to_json() { - bourne::json input = + bourne::json input = { "status", "hello" }; @@ -226,7 +226,7 @@ void test_Order_complete_is_converted_to_json() { - bourne::json input = + bourne::json input = { "complete", true }; diff --git a/samples/client/petstore/cpp-tiny/lib/TestFiles/PetTest.cpp b/samples/client/petstore/cpp-tiny/lib/TestFiles/PetTest.cpp index 04dad4640939..ae303c61f22d 100644 --- a/samples/client/petstore/cpp-tiny/lib/TestFiles/PetTest.cpp +++ b/samples/client/petstore/cpp-tiny/lib/TestFiles/PetTest.cpp @@ -18,7 +18,7 @@ void test_Pet_id_is_assigned_from_json() - bourne::json input = + bourne::json input = { "id", 1 }; @@ -36,7 +36,7 @@ void test_Pet_name_is_assigned_from_json() { - bourne::json input = + bourne::json input = { "name", "hello" }; @@ -59,7 +59,7 @@ void test_Pet_status_is_assigned_from_json() { - bourne::json input = + bourne::json input = { "status", "hello" }; @@ -82,7 +82,7 @@ void test_Pet_id_is_converted_to_json() - bourne::json input = + bourne::json input = { "id", 1 }; @@ -102,7 +102,7 @@ void test_Pet_id_is_converted_to_json() void test_Pet_name_is_converted_to_json() { - bourne::json input = + bourne::json input = { "name", "hello" }; @@ -125,7 +125,7 @@ void test_Pet_name_is_converted_to_json() void test_Pet_status_is_converted_to_json() { - bourne::json input = + bourne::json input = { "status", "hello" }; diff --git a/samples/client/petstore/cpp-tiny/lib/TestFiles/TagTest.cpp b/samples/client/petstore/cpp-tiny/lib/TestFiles/TagTest.cpp index 41ea1d0095dd..d96a259ce7e6 100644 --- a/samples/client/petstore/cpp-tiny/lib/TestFiles/TagTest.cpp +++ b/samples/client/petstore/cpp-tiny/lib/TestFiles/TagTest.cpp @@ -18,7 +18,7 @@ void test_Tag_id_is_assigned_from_json() - bourne::json input = + bourne::json input = { "id", 1 }; @@ -35,7 +35,7 @@ void test_Tag_name_is_assigned_from_json() { - bourne::json input = + bourne::json input = { "name", "hello" }; @@ -58,7 +58,7 @@ void test_Tag_id_is_converted_to_json() - bourne::json input = + bourne::json input = { "id", 1 }; @@ -77,7 +77,7 @@ void test_Tag_id_is_converted_to_json() void test_Tag_name_is_converted_to_json() { - bourne::json input = + bourne::json input = { "name", "hello" }; diff --git a/samples/client/petstore/cpp-tiny/lib/TestFiles/UserTest.cpp b/samples/client/petstore/cpp-tiny/lib/TestFiles/UserTest.cpp index 689ee582bee3..c4274a56e7a3 100644 --- a/samples/client/petstore/cpp-tiny/lib/TestFiles/UserTest.cpp +++ b/samples/client/petstore/cpp-tiny/lib/TestFiles/UserTest.cpp @@ -18,7 +18,7 @@ void test_User_id_is_assigned_from_json() - bourne::json input = + bourne::json input = { "id", 1 }; @@ -35,7 +35,7 @@ void test_User_username_is_assigned_from_json() { - bourne::json input = + bourne::json input = { "username", "hello" }; @@ -56,7 +56,7 @@ void test_User_firstName_is_assigned_from_json() { - bourne::json input = + bourne::json input = { "firstName", "hello" }; @@ -77,7 +77,7 @@ void test_User_lastName_is_assigned_from_json() { - bourne::json input = + bourne::json input = { "lastName", "hello" }; @@ -98,7 +98,7 @@ void test_User_email_is_assigned_from_json() { - bourne::json input = + bourne::json input = { "email", "hello" }; @@ -119,7 +119,7 @@ void test_User_password_is_assigned_from_json() { - bourne::json input = + bourne::json input = { "password", "hello" }; @@ -140,7 +140,7 @@ void test_User_phone_is_assigned_from_json() { - bourne::json input = + bourne::json input = { "phone", "hello" }; @@ -159,7 +159,7 @@ void test_User_phone_is_assigned_from_json() void test_User_userStatus_is_assigned_from_json() { - bourne::json input = + bourne::json input = { "userStatus", 1 }; @@ -184,7 +184,7 @@ void test_User_id_is_converted_to_json() - bourne::json input = + bourne::json input = { "id", 1 }; @@ -203,7 +203,7 @@ void test_User_id_is_converted_to_json() void test_User_username_is_converted_to_json() { - bourne::json input = + bourne::json input = { "username", "hello" }; @@ -224,7 +224,7 @@ void test_User_username_is_converted_to_json() void test_User_firstName_is_converted_to_json() { - bourne::json input = + bourne::json input = { "firstName", "hello" }; @@ -245,7 +245,7 @@ void test_User_firstName_is_converted_to_json() void test_User_lastName_is_converted_to_json() { - bourne::json input = + bourne::json input = { "lastName", "hello" }; @@ -266,7 +266,7 @@ void test_User_lastName_is_converted_to_json() void test_User_email_is_converted_to_json() { - bourne::json input = + bourne::json input = { "email", "hello" }; @@ -287,7 +287,7 @@ void test_User_email_is_converted_to_json() void test_User_password_is_converted_to_json() { - bourne::json input = + bourne::json input = { "password", "hello" }; @@ -308,7 +308,7 @@ void test_User_password_is_converted_to_json() void test_User_phone_is_converted_to_json() { - bourne::json input = + bourne::json input = { "phone", "hello" }; @@ -328,7 +328,7 @@ void test_User_phone_is_converted_to_json() void test_User_userStatus_is_converted_to_json() { - bourne::json input = + bourne::json input = { "userStatus", 1 }; diff --git a/samples/client/petstore/crystal/spec/api/fake_api_spec.cr b/samples/client/petstore/crystal/spec/api/fake_api_spec.cr index b8b9922be4c4..829198b6aba8 100644 --- a/samples/client/petstore/crystal/spec/api/fake_api_spec.cr +++ b/samples/client/petstore/crystal/spec/api/fake_api_spec.cr @@ -5,7 +5,7 @@ #The version of the OpenAPI document: 1.0.0 # #Generated by: https://openapi-generator.tech -#OpenAPI Generator version: 7.0.0-SNAPSHOT +#Generator version: 7.11.0-SNAPSHOT # require "../spec_helper" @@ -25,10 +25,10 @@ describe "FakeApi" do # unit tests for get_parameter_name_mapping # parameter name mapping test - # @param _type _type - # @param _type2 type - # @param type_ type_ - # @param type_2 type- + # @param underscore_type _type + # @param _type type + # @param type_with_underscore type_ + # @param type_with_dash type- # @param http_debug_option http debug option (to test parameter naming option) # @param [Hash] opts the optional parameters # @return [nil] diff --git a/samples/client/petstore/crystal/spec/api/pet_api_spec.cr b/samples/client/petstore/crystal/spec/api/pet_api_spec.cr index 5eb508ebd72a..975d500c9261 100644 --- a/samples/client/petstore/crystal/spec/api/pet_api_spec.cr +++ b/samples/client/petstore/crystal/spec/api/pet_api_spec.cr @@ -5,7 +5,7 @@ #The version of the OpenAPI document: 1.0.0 # #Generated by: https://openapi-generator.tech -#OpenAPI Generator version: 5.0.1-SNAPSHOT +#Generator version: 7.11.0-SNAPSHOT # require "../spec_helper" @@ -25,37 +25,19 @@ describe "PetApi" do # unit tests for add_pet # Add a new pet to the store + # # @param pet Pet object that needs to be added to the store # @param [Hash] opts the optional parameters # @return [Pet] describe "add_pet test" do - it "should work with only required attributes" do + it "should work" do # assertion here. ref: https://crystal-lang.org/reference/guides/testing.html - - config = Petstore::Configuration.new - config.access_token = "yyy" - config.api_key[:api_key] = "xxx" - config.api_key_prefix[:api_key] = "Token" - - api_client = Petstore::ApiClient.new(config) - - api_instance = Petstore::PetApi.new(api_client) - - pet_name = "new pet" - new_pet = Petstore::Pet.new(id: nil, category: nil, name: pet_name, photo_urls: Array(String).new, tags: nil, status: nil) - - pet = api_instance.add_pet(new_pet) - pet.id.should_not be_nil - pet.category.should be_nil - pet.name.should eq pet_name - pet.photo_urls.should eq Array(String).new - pet.status.should be_nil - pet.tags.should eq Array(Petstore::Tag).new end end # unit tests for delete_pet # Deletes a pet + # # @param pet_id Pet id to delete # @param [Hash] opts the optional parameters # @option opts [String] :api_key @@ -99,32 +81,12 @@ describe "PetApi" do describe "get_pet_by_id test" do it "should work" do # assertion here. ref: https://crystal-lang.org/reference/guides/testing.html - - config = Petstore::Configuration.new - config.access_token = "yyy" - config.api_key[:api_key] = "xxx" - config.api_key_prefix[:api_key] = "Token" - - api_client = Petstore::ApiClient.new(config) - - api_instance = Petstore::PetApi.new(api_client) - - new_pet = Petstore::Pet.new(id: nil, category: nil, name: "crystal", photo_urls: Array(String).new, tags: nil, status: nil) - - pet = api_instance.add_pet(new_pet) - pet_id = pet.id.not_nil! - result = api_instance.get_pet_by_id(pet_id: pet_id) - result.id.should eq pet_id - result.category.should be_nil - result.name.should eq "crystal" - result.photo_urls.should eq Array(String).new - result.status.should be_nil - result.tags.should eq Array(Petstore::Tag).new end end # unit tests for update_pet # Update an existing pet + # # @param pet Pet object that needs to be added to the store # @param [Hash] opts the optional parameters # @return [Pet] @@ -136,6 +98,7 @@ describe "PetApi" do # unit tests for update_pet_with_form # Updates a pet in the store with form data + # # @param pet_id ID of pet that needs to be updated # @param [Hash] opts the optional parameters # @option opts [String] :name Updated name of the pet @@ -149,10 +112,11 @@ describe "PetApi" do # unit tests for upload_file # uploads an image + # # @param pet_id ID of pet to update # @param [Hash] opts the optional parameters # @option opts [String] :additional_metadata Additional data to pass to server - # @option opts [File] :file file to upload + # @option opts [::File] :file file to upload # @return [ApiResponse] describe "upload_file test" do it "should work" do diff --git a/samples/client/petstore/crystal/spec/api/store_api_spec.cr b/samples/client/petstore/crystal/spec/api/store_api_spec.cr index 05fd3146d882..f669cbeba87a 100644 --- a/samples/client/petstore/crystal/spec/api/store_api_spec.cr +++ b/samples/client/petstore/crystal/spec/api/store_api_spec.cr @@ -5,7 +5,7 @@ #The version of the OpenAPI document: 1.0.0 # #Generated by: https://openapi-generator.tech -#OpenAPI Generator version: 5.0.1-SNAPSHOT +#Generator version: 7.11.0-SNAPSHOT # require "../spec_helper" @@ -60,6 +60,7 @@ describe "StoreApi" do # unit tests for place_order # Place an order for a pet + # # @param order order placed for purchasing the pet # @param [Hash] opts the optional parameters # @return [Order] diff --git a/samples/client/petstore/crystal/spec/api/user_api_spec.cr b/samples/client/petstore/crystal/spec/api/user_api_spec.cr index 38a13b9d7c93..1abb6fe6b8fc 100644 --- a/samples/client/petstore/crystal/spec/api/user_api_spec.cr +++ b/samples/client/petstore/crystal/spec/api/user_api_spec.cr @@ -5,7 +5,7 @@ #The version of the OpenAPI document: 1.0.0 # #Generated by: https://openapi-generator.tech -#OpenAPI Generator version: 5.0.1-SNAPSHOT +#Generator version: 7.11.0-SNAPSHOT # require "../spec_helper" @@ -37,6 +37,7 @@ describe "UserApi" do # unit tests for create_users_with_array_input # Creates list of users with given input array + # # @param user List of user object # @param [Hash] opts the optional parameters # @return [nil] @@ -48,6 +49,7 @@ describe "UserApi" do # unit tests for create_users_with_list_input # Creates list of users with given input array + # # @param user List of user object # @param [Hash] opts the optional parameters # @return [nil] @@ -71,6 +73,7 @@ describe "UserApi" do # unit tests for get_user_by_name # Get user by user name + # # @param username The name that needs to be fetched. Use user1 for testing. # @param [Hash] opts the optional parameters # @return [User] @@ -82,6 +85,7 @@ describe "UserApi" do # unit tests for login_user # Logs user into the system + # # @param username The user name for login # @param password The password for login in clear text # @param [Hash] opts the optional parameters @@ -94,6 +98,7 @@ describe "UserApi" do # unit tests for logout_user # Logs out current logged in user session + # # @param [Hash] opts the optional parameters # @return [nil] describe "logout_user test" do diff --git a/samples/client/petstore/crystal/spec/models/another_property_name_mapping_spec.cr b/samples/client/petstore/crystal/spec/models/another_property_name_mapping_spec.cr index c7491f69c04a..95840acd37bf 100644 --- a/samples/client/petstore/crystal/spec/models/another_property_name_mapping_spec.cr +++ b/samples/client/petstore/crystal/spec/models/another_property_name_mapping_spec.cr @@ -5,7 +5,7 @@ #The version of the OpenAPI document: 1.0.0 # #Generated by: https://openapi-generator.tech -#OpenAPI Generator version: 7.0.0-SNAPSHOT +#Generator version: 7.11.0-SNAPSHOT # require "../spec_helper" diff --git a/samples/client/petstore/crystal/spec/models/api_response_spec.cr b/samples/client/petstore/crystal/spec/models/api_response_spec.cr index 3a4ff0b1269e..e1b8029487ed 100644 --- a/samples/client/petstore/crystal/spec/models/api_response_spec.cr +++ b/samples/client/petstore/crystal/spec/models/api_response_spec.cr @@ -5,7 +5,7 @@ #The version of the OpenAPI document: 1.0.0 # #Generated by: https://openapi-generator.tech -#OpenAPI Generator version: 5.0.1-SNAPSHOT +#Generator version: 7.11.0-SNAPSHOT # require "../spec_helper" diff --git a/samples/client/petstore/crystal/spec/models/category_spec.cr b/samples/client/petstore/crystal/spec/models/category_spec.cr index 120fa0459f18..350aae9ed00a 100644 --- a/samples/client/petstore/crystal/spec/models/category_spec.cr +++ b/samples/client/petstore/crystal/spec/models/category_spec.cr @@ -5,7 +5,7 @@ #The version of the OpenAPI document: 1.0.0 # #Generated by: https://openapi-generator.tech -#OpenAPI Generator version: 5.0.1-SNAPSHOT +#Generator version: 7.11.0-SNAPSHOT # require "../spec_helper" diff --git a/samples/client/petstore/crystal/spec/models/format_test_spec.cr b/samples/client/petstore/crystal/spec/models/format_test_spec.cr index 8801945aece0..58448e401621 100644 --- a/samples/client/petstore/crystal/spec/models/format_test_spec.cr +++ b/samples/client/petstore/crystal/spec/models/format_test_spec.cr @@ -5,7 +5,7 @@ #The version of the OpenAPI document: 1.0.0 # #Generated by: https://openapi-generator.tech -#OpenAPI Generator version: 6.2.1-SNAPSHOT +#Generator version: 7.11.0-SNAPSHOT # require "../spec_helper" diff --git a/samples/client/petstore/crystal/spec/models/order_spec.cr b/samples/client/petstore/crystal/spec/models/order_spec.cr index e64ada1fb51b..19a2d003d0fa 100644 --- a/samples/client/petstore/crystal/spec/models/order_spec.cr +++ b/samples/client/petstore/crystal/spec/models/order_spec.cr @@ -5,7 +5,7 @@ #The version of the OpenAPI document: 1.0.0 # #Generated by: https://openapi-generator.tech -#OpenAPI Generator version: 5.0.1-SNAPSHOT +#Generator version: 7.11.0-SNAPSHOT # require "../spec_helper" diff --git a/samples/client/petstore/crystal/spec/models/pet_spec.cr b/samples/client/petstore/crystal/spec/models/pet_spec.cr index dac484057c96..b7f30ac26ac1 100644 --- a/samples/client/petstore/crystal/spec/models/pet_spec.cr +++ b/samples/client/petstore/crystal/spec/models/pet_spec.cr @@ -5,7 +5,7 @@ #The version of the OpenAPI document: 1.0.0 # #Generated by: https://openapi-generator.tech -#OpenAPI Generator version: 5.0.1-SNAPSHOT +#Generator version: 7.11.0-SNAPSHOT # require "../spec_helper" @@ -18,49 +18,11 @@ require "time" describe Petstore::Pet do describe "test an instance of Pet" do - it "should fail to compile if any required properties is missing" do - assert_compilation_error(path: "./pet_compilation_error_spec.cr", message: "Error: expected argument 'name' to 'Petstore::Pet.new' to be String, not Nil") - end - - it "should create an instance of Pet with only required properties" do - pet = Petstore::Pet.new(id: nil, category: nil, name: "new pet", photo_urls: Array(String).new, tags: nil, status: nil) - pet.should be_a(Petstore::Pet) - end - - it "should create an instance of Pet with all properties" do - pet_id = 12345_i64 - pet = Petstore::Pet.new(id: pet_id, category: Petstore::Category.new(id: pet_id + 10, name: "crystal category"), name: "crystal", photo_urls: ["https://crystal-lang.org"], tags: [Petstore::Tag.new(id: pet_id + 100, name: "crystal tag")], status: "available") - pet.should be_a(Petstore::Pet) - end - end - - describe "#from_json" do - it "should instantiate a new instance from json string with required properties" do - pet = Petstore::Pet.from_json("{\"name\": \"json pet\", \"photoUrls\": []}") - pet.should be_a(Petstore::Pet) - pet.name.should eq "json pet" - pet.photo_urls.should eq Array(String).new - end - - it "should raise error when instantiating a new instance from json string with missing required properties" do - expect_raises(JSON::SerializableError, "Missing JSON attribute: name") do - Petstore::Pet.from_json("{\"photoUrls\": []}") - end - expect_raises(JSON::SerializableError, "Missing JSON attribute: photoUrls") do - Petstore::Pet.from_json("{\"name\": \"json pet\"}") - end - end - - it "should raise error when instantiating a new instance from json string with required properties set to null value" do - expect_raises(JSON::SerializableError, "Expected String but was Null") do - Petstore::Pet.from_json("{\"name\": null, \"photoUrls\": []}") - end - expect_raises(JSON::SerializableError, "Expected BeginArray but was Null") do - Petstore::Pet.from_json("{\"name\": \"json pet\", \"photoUrls\": null}") - end + it "should create an instance of Pet" do + #instance = Petstore::Pet.new + #expect(instance).to be_instance_of(Petstore::Pet) end end - describe "test attribute 'id'" do it "should work" do # assertion here. ref: https://crystal-lang.org/reference/guides/testing.html diff --git a/samples/client/petstore/crystal/spec/models/tag_spec.cr b/samples/client/petstore/crystal/spec/models/tag_spec.cr index 64a05f292ce2..128adcc6a068 100644 --- a/samples/client/petstore/crystal/spec/models/tag_spec.cr +++ b/samples/client/petstore/crystal/spec/models/tag_spec.cr @@ -5,7 +5,7 @@ #The version of the OpenAPI document: 1.0.0 # #Generated by: https://openapi-generator.tech -#OpenAPI Generator version: 5.0.1-SNAPSHOT +#Generator version: 7.11.0-SNAPSHOT # require "../spec_helper" @@ -23,21 +23,6 @@ describe Petstore::Tag do #expect(instance).to be_instance_of(Petstore::Tag) end end - - describe "test equality of Tag instances" do - it "should equal to itself" do - tag1 = Petstore::Tag.new(id: 0, name: "same") - tag2 = tag1 - (tag1 == tag2).should be_true - end - - it "should equal to another instance with same attributes" do - tag1 = Petstore::Tag.new(id: 0, name: "tag") - tag2 = Petstore::Tag.new(id: 0, name: "tag") - (tag1 == tag2).should be_true - end - end - describe "test attribute 'id'" do it "should work" do # assertion here. ref: https://crystal-lang.org/reference/guides/testing.html diff --git a/samples/client/petstore/crystal/spec/models/user_spec.cr b/samples/client/petstore/crystal/spec/models/user_spec.cr index 6e52fc2c5bdf..194268274ec0 100644 --- a/samples/client/petstore/crystal/spec/models/user_spec.cr +++ b/samples/client/petstore/crystal/spec/models/user_spec.cr @@ -5,7 +5,7 @@ #The version of the OpenAPI document: 1.0.0 # #Generated by: https://openapi-generator.tech -#OpenAPI Generator version: 5.0.1-SNAPSHOT +#Generator version: 7.11.0-SNAPSHOT # require "../spec_helper" diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs index 767537cf4086..1ec3e8933caa 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs @@ -63,5 +63,49 @@ public void FooGetTest() //var response = instance.FooGet(); //Assert.IsType(response); } + + /// + /// Test GetCountry + /// + [Fact] + public void GetCountryTest() + { + // TODO uncomment below to test the method and replace null with proper value + //string country = null; + //instance.GetCountry(country); + } + + /// + /// Test Hello + /// + [Fact] + public void HelloTest() + { + // TODO uncomment below to test the method and replace null with proper value + //var response = instance.Hello(); + //Assert.IsType>(response); + } + + /// + /// Test RolesReportGet + /// + [Fact] + public void RolesReportGetTest() + { + // TODO uncomment below to test the method and replace null with proper value + //var response = instance.RolesReportGet(); + //Assert.IsType>>(response); + } + + /// + /// Test Test + /// + [Fact] + public void TestTest() + { + // TODO uncomment below to test the method and replace null with proper value + //var response = instance.Test(); + //Assert.IsType(response); + } } } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Api/FakeApiTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Api/FakeApiTests.cs index 41e1c365c2b5..050588a08577 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Api/FakeApiTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Api/FakeApiTests.cs @@ -107,8 +107,9 @@ public void FakeOuterNumberSerializeTest() public void FakeOuterStringSerializeTest() { // TODO uncomment below to test the method and replace null with proper value + //Guid requiredStringUuid = null; //string body = null; - //var response = instance.FakeOuterStringSerialize(body); + //var response = instance.FakeOuterStringSerialize(requiredStringUuid, body); //Assert.IsType(response); } @@ -123,6 +124,39 @@ public void GetArrayOfEnumsTest() //Assert.IsType>(response); } + /// + /// Test GetMixedAnyOf + /// + [Fact] + public void GetMixedAnyOfTest() + { + // TODO uncomment below to test the method and replace null with proper value + //var response = instance.GetMixedAnyOf(); + //Assert.IsType(response); + } + + /// + /// Test GetMixedOneOf + /// + [Fact] + public void GetMixedOneOfTest() + { + // TODO uncomment below to test the method and replace null with proper value + //var response = instance.GetMixedOneOf(); + //Assert.IsType(response); + } + + /// + /// Test TestAdditionalPropertiesReference + /// + [Fact] + public void TestAdditionalPropertiesReferenceTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Dictionary requestBody = null; + //instance.TestAdditionalPropertiesReference(requestBody); + } + /// /// Test TestBodyWithFileSchema /// @@ -166,20 +200,20 @@ public void TestEndpointParametersTest() { // TODO uncomment below to test the method and replace null with proper value //decimal number = null; - //double _double = null; + //double varDouble = null; //string patternWithoutDelimiter = null; - //byte[] _byte = null; + //byte[] varByte = null; //int? integer = null; //int? int32 = null; //long? int64 = null; - //float? _float = null; - //string _string = null; + //float? varFloat = null; + //string varString = null; //FileParameter binary = null; //DateTime? date = null; //DateTime? dateTime = null; //string password = null; //string callback = null; - //instance.TestEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback); + //instance.TestEndpointParameters(number, varDouble, patternWithoutDelimiter, varByte, integer, int32, int64, varFloat, varString, binary, date, dateTime, password, callback); } /// @@ -227,6 +261,17 @@ public void TestInlineAdditionalPropertiesTest() //instance.TestInlineAdditionalProperties(requestBody); } + /// + /// Test TestInlineFreeformAdditionalProperties + /// + [Fact] + public void TestInlineFreeformAdditionalPropertiesTest() + { + // TODO uncomment below to test the method and replace null with proper value + //TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest = null; + //instance.TestInlineFreeformAdditionalProperties(testInlineFreeformAdditionalPropertiesRequest); + } + /// /// Test TestJsonFormData /// @@ -251,7 +296,22 @@ public void TestQueryParameterCollectionFormatTest() //List http = null; //List url = null; //List context = null; - //instance.TestQueryParameterCollectionFormat(pipe, ioutil, http, url, context); + //string requiredNotNullable = null; + //string requiredNullable = null; + //string notRequiredNotNullable = null; + //string notRequiredNullable = null; + //instance.TestQueryParameterCollectionFormat(pipe, ioutil, http, url, context, requiredNotNullable, requiredNullable, notRequiredNotNullable, notRequiredNullable); + } + + /// + /// Test TestStringMapReference + /// + [Fact] + public void TestStringMapReferenceTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Dictionary requestBody = null; + //instance.TestStringMapReference(requestBody); } } } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Api/PetApiTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Api/PetApiTests.cs index e12582623e86..ed2b4df25b2b 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Api/PetApiTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Api/PetApiTests.cs @@ -1,10 +1,9 @@ -/* +/* * OpenAPI Petstore * * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 - * + * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -16,16 +15,15 @@ using System.Reflection; using Xunit; -using System.Net.Http; - using Org.OpenAPITools.Client; using Org.OpenAPITools.Api; -using Org.OpenAPITools.Model; +// uncomment below to import models +//using Org.OpenAPITools.Model; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Api { /// - /// Class for testing PetApi + /// Class for testing PetApi /// /// /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). @@ -35,255 +33,83 @@ public class PetApiTests : IDisposable { private PetApi instance; - private long petId = 11088; - private long notExistentPetId = 99999; - - /// - /// Create a Pet object - /// - private Pet createPet() + public PetApiTests() { - // create pet - Pet p = new Pet(name: "Csharp test", photoUrls: new List { "http://petstore.com/csharp_test" }); - p.Id = petId; - //p.Name = "Csharp test"; - p.Status = Pet.StatusEnum.Available; - // create Category object - Category category = new Category(); - category.Id = 56; - category.Name = "sample category name2"; - List photoUrls = new List(new String[] { "sample photoUrls" }); - // create Tag object - Tag tag = new Tag(); - tag.Id = petId; - tag.Name = "csharp sample tag name1"; - List tags = new List(new Tag[] { tag }); - p.Tags = tags; - p.Category = category; - p.PhotoUrls = photoUrls; - - return p; + instance = new PetApi(); } - /// - /// Convert string to byte array - /// - private byte[] GetBytes(string str) + public void Dispose() { - byte[] bytes = new byte[str.Length * sizeof(char)]; - System.Buffer.BlockCopy(str.ToCharArray(), 0, bytes, 0, bytes.Length); - return bytes; + // Cleanup when everything is done. } - public PetApiTests() - { - HttpClient httpClient = new HttpClient(); - HttpClientHandler httpClientHandler = new HttpClientHandler(); - instance = new PetApi(httpClient, httpClientHandler); - - // create pet - Pet p = createPet(); - - // add pet before testing - PetApi petApi = new PetApi("http://petstore.swagger.io/v2"); - petApi.AddPet(p); - } - /// /// Test an instance of PetApi /// [Fact] public void InstanceTest() { - Assert.IsType(instance); + // TODO uncomment below to test 'IsType' PetApi + //Assert.IsType(instance); } - /// /// Test AddPet /// [Fact] public void AddPetTest() { - // create pet - Pet p = createPet(); - instance.AddPet(p); + // TODO uncomment below to test the method and replace null with proper value + //Pet pet = null; + //instance.AddPet(pet); } - + /// /// Test DeletePet /// [Fact] public void DeletePetTest() { - // no need to test as it'c covered by Cleanup() already + // TODO uncomment below to test the method and replace null with proper value + //long petId = null; + //string apiKey = null; + //instance.DeletePet(petId, apiKey); } - + /// /// Test FindPetsByStatus /// [Fact] public void FindPetsByStatusTest() { - PetApi petApi = new PetApi(); - List tagsList = new List(new String[] { "available" }); - - List listPet = petApi.FindPetsByTags(tagsList); - foreach (Pet pet in listPet) // Loop through List with foreach. - { - Assert.IsType(pet); - Assert.Equal("available", pet.Tags[0].Name); - } + // TODO uncomment below to test the method and replace null with proper value + //List status = null; + //var response = instance.FindPetsByStatus(status); + //Assert.IsType>(response); } - + /// /// Test FindPetsByTags /// [Fact] public void FindPetsByTagsTest() { - List tags = new List(new String[] { "pet" }); - var response = instance.FindPetsByTags(tags); - Assert.IsType>(response); + // TODO uncomment below to test the method and replace null with proper value + //List tags = null; + //var response = instance.FindPetsByTags(tags); + //Assert.IsType>(response); } - + /// /// Test GetPetById /// [Fact] public void GetPetByIdTest() { - // set timeout to 10 seconds - Configuration c1 = new Configuration(); - c1.Timeout = TimeSpan.FromSeconds(10); - c1.UserAgent = "TEST_USER_AGENT"; - - HttpClient httpClient = new HttpClient(); - HttpClientHandler httpClientHandler = new HttpClientHandler(); - PetApi petApi = new PetApi(httpClient, c1, httpClientHandler); - Pet response = petApi.GetPetById(petId); - Assert.IsType(response); - - Assert.Equal("Csharp test", response.Name); - Assert.Equal(Pet.StatusEnum.Available, response.Status); - - Assert.IsType>(response.Tags); - Assert.Equal(petId, response.Tags[0].Id); - Assert.Equal("csharp sample tag name1", response.Tags[0].Name); - - Assert.IsType>(response.PhotoUrls); - Assert.Equal("sample photoUrls", response.PhotoUrls[0]); - - Assert.IsType(response.Category); - Assert.Equal(56, response.Category.Id); - Assert.Equal("sample category name2", response.Category.Name); - } - - /// - /// Test GetPetByIdAsync - /// - [Fact] - public void TestGetPetByIdAsync() - { - PetApi petApi = new PetApi(); - var task = petApi.GetPetByIdAsync(petId); - Pet response = task.Result; - Assert.IsType(response); - - Assert.Equal("Csharp test", response.Name); - Assert.Equal(Pet.StatusEnum.Available, response.Status); - - Assert.IsType>(response.Tags); - Assert.Equal(petId, response.Tags[0].Id); - Assert.Equal("csharp sample tag name1", response.Tags[0].Name); - - Assert.IsType>(response.PhotoUrls); - Assert.Equal("sample photoUrls", response.PhotoUrls[0]); - - Assert.IsType(response.Category); - Assert.Equal(56, response.Category.Id); - Assert.Equal("sample category name2", response.Category.Name); - } - - /// - /// Test GetPetById on a non-existent Id - /// - [Fact] - public void TestGetPetById_TestException() - { - PetApi petApi = new PetApi(); - - var exception = Assert.Throws(() => - { - petApi.GetPetById(notExistentPetId); - }); - - Assert.IsType(exception); - Assert.Equal(404, exception.ErrorCode); - Assert.Equal("{\"code\":1,\"type\":\"error\",\"message\":\"Pet not found\"}", exception.ErrorContent); - Assert.Equal("Error calling GetPetById: {\"code\":1,\"type\":\"error\",\"message\":\"Pet not found\"}", exception.Message); - } - - /* a simple test for binary response. no longer in use. - [Fact] - public void TestGetByIdBinaryResponse() - { - PetApi petApi = new PetApi(c1); - Stream response = petApi.GetPetByIdBinaryResponse(petId); - Assert.IsType(response); - StreamReader reader = new StreamReader(response); - // the following will fail for sure - //Assert.Equal("something", reader.ReadToEnd()); - } - */ - - /// - /// Test GetPetByIdWithHttpInfoAsync - /// - [Fact] - public void TestGetPetByIdWithHttpInfoAsync() - { - PetApi petApi = new PetApi(); - var task = petApi.GetPetByIdWithHttpInfoAsync(petId); - - Assert.Equal(200, (int)task.Result.StatusCode); - Assert.True(task.Result.Headers.ContainsKey("Content-Type")); - Assert.Equal("application/json", task.Result.Headers["Content-Type"][0]); - - Pet response = task.Result.Data; - Assert.IsType(response); - - Assert.Equal("Csharp test", response.Name); - Assert.Equal(Pet.StatusEnum.Available, response.Status); - - Assert.IsType>(response.Tags); - Assert.Equal(petId, response.Tags[0].Id); - Assert.Equal("csharp sample tag name1", response.Tags[0].Name); - - Assert.IsType>(response.PhotoUrls); - Assert.Equal("sample photoUrls", response.PhotoUrls[0]); - - Assert.IsType(response.Category); - Assert.Equal(56, response.Category.Id); - Assert.Equal("sample category name2", response.Category.Name); - } - - [Fact] - public void TestGetPetByIdWithHttpInfoAsync_Test404Response() - { - PetApi petApi = new PetApi(); - petApi.ExceptionFactory = null; - var response = petApi.GetPetByIdWithHttpInfoAsync(notExistentPetId).Result; - Pet result = response.Data; - - Assert.IsType>(response); - Assert.Equal(404, (int)response.StatusCode); - Assert.True(response.Headers.ContainsKey("Content-Type")); - Assert.Equal("application/json", response.Headers["Content-Type"][0]); - - Assert.Null(result); - Assert.Equal("{\"code\":1,\"type\":\"error\",\"message\":\"Pet not found\"}", response.RawContent); - Assert.Equal("Not Found", response.ErrorText); + // TODO uncomment below to test the method and replace null with proper value + //long petId = null; + //var response = instance.GetPetById(petId); + //Assert.IsType(response); } /// @@ -293,55 +119,37 @@ public void TestGetPetByIdWithHttpInfoAsync_Test404Response() public void UpdatePetTest() { // TODO uncomment below to test the method and replace null with proper value - // create pet - Pet p = createPet(); - instance.UpdatePet(p); - + //Pet pet = null; + //instance.UpdatePet(pet); } - + /// /// Test UpdatePetWithForm /// [Fact] public void UpdatePetWithFormTest() { - PetApi petApi = new PetApi(); - petApi.UpdatePetWithForm(petId, "new form name", "pending"); - - Pet response = petApi.GetPetById(petId); - Assert.IsType(response); - Assert.IsType(response.Category); - Assert.IsType>(response.Tags); - - Assert.Equal("new form name", response.Name); - Assert.Equal(Pet.StatusEnum.Pending, response.Status); - - Assert.Equal(petId, response.Tags[0].Id); - Assert.Equal(56, response.Category.Id); - - // test optional parameter - petApi.UpdatePetWithForm(petId, "new form name2"); - Pet response2 = petApi.GetPetById(petId); - Assert.Equal("new form name2", response2.Name); + // TODO uncomment below to test the method and replace null with proper value + //long petId = null; + //string name = null; + //string status = null; + //instance.UpdatePetWithForm(petId, name, status); } - + /// /// Test UploadFile /// [Fact] public void UploadFileTest() { - Assembly _assembly = Assembly.GetExecutingAssembly(); - Stream _imageStream = _assembly.GetManifestResourceStream("Org.OpenAPITools.Test.linux-logo.png"); - PetApi petApi = new PetApi(); - // test file upload with form parameters - petApi.UploadFile(petId, "new form name", _imageStream); - - // test file upload without any form parameters - // using optional parameter syntax introduced at .net 4.0 - petApi.UploadFile(petId: petId, file: _imageStream); + // TODO uncomment below to test the method and replace null with proper value + //long petId = null; + //string additionalMetadata = null; + //FileParameter file = null; + //var response = instance.UploadFile(petId, additionalMetadata, file); + //Assert.IsType(response); } - + /// /// Test UploadFileWithRequiredFile /// @@ -349,47 +157,11 @@ public void UploadFileTest() public void UploadFileWithRequiredFileTest() { // TODO uncomment below to test the method and replace null with proper value - //long? petId = null; - //System.IO.Stream requiredFile = null; + //long petId = null; + //FileParameter requiredFile = null; //string additionalMetadata = null; //var response = instance.UploadFileWithRequiredFile(petId, requiredFile, additionalMetadata); - //Assert.IsType (response, "response is ApiResponse"); - } - - /// - /// Test status code - /// - [Fact] - public void TestStatusCodeAndHeader() - { - PetApi petApi = new PetApi(); - var response = petApi.GetPetByIdWithHttpInfo(petId); - //Assert.Equal("OK", response.StatusCode); - Assert.Equal(200, (int)response.StatusCode); - Assert.True(response.Headers.ContainsKey("Content-Type")); - Assert.Equal("application/json", response.Headers["Content-Type"][0]); - } - - /// - /// Test default header (should be deprecated) - /// - [Fact] - public void TestDefaultHeader() - { - //PetApi petApi = new PetApi(); - // commented out the warning test below as it's confirmed the warning is working as expected - // there should be a warning for using AddDefaultHeader (deprecated) below - //petApi.AddDefaultHeader ("header_key", "header_value"); - // the following should be used instead as suggested in the doc - //petApi.Configuration.AddDefaultHeader("header_key2", "header_value2"); - } - - public void Dispose() - { - // remove the pet after testing - PetApi petApi = new PetApi(); - petApi.DeletePet(petId, "test key"); + //Assert.IsType(response); } } - } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ActivityOutputElementRepresentationTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ActivityOutputElementRepresentationTests.cs index f211a64884af..b4bb73592031 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ActivityOutputElementRepresentationTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ActivityOutputElementRepresentationTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ActivityOutputElementRepresentationInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Prop1' /// @@ -64,6 +62,7 @@ public void Prop1Test() { // TODO unit test for the property 'Prop1' } + /// /// Test the property 'Prop2' /// @@ -72,7 +71,5 @@ public void Prop2Test() { // TODO unit test for the property 'Prop2' } - } - } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ActivityTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ActivityTests.cs index afe9e846ee94..0b9efbd5a20b 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ActivityTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ActivityTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ActivityInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ActivityOutputs' /// @@ -64,7 +62,5 @@ public void ActivityOutputsTest() { // TODO unit test for the property 'ActivityOutputs' } - } - } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesClassTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesClassTests.cs index 9ab029ed0979..d766719b5bce 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesClassTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesClassTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void AdditionalPropertiesClassInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'MapProperty' /// @@ -64,6 +62,7 @@ public void MapPropertyTest() { // TODO unit test for the property 'MapProperty' } + /// /// Test the property 'MapOfMapProperty' /// @@ -72,6 +71,7 @@ public void MapOfMapPropertyTest() { // TODO unit test for the property 'MapOfMapProperty' } + /// /// Test the property 'Anytype1' /// @@ -80,6 +80,7 @@ public void Anytype1Test() { // TODO unit test for the property 'Anytype1' } + /// /// Test the property 'MapWithUndeclaredPropertiesAnytype1' /// @@ -88,6 +89,7 @@ public void MapWithUndeclaredPropertiesAnytype1Test() { // TODO unit test for the property 'MapWithUndeclaredPropertiesAnytype1' } + /// /// Test the property 'MapWithUndeclaredPropertiesAnytype2' /// @@ -96,6 +98,7 @@ public void MapWithUndeclaredPropertiesAnytype2Test() { // TODO unit test for the property 'MapWithUndeclaredPropertiesAnytype2' } + /// /// Test the property 'MapWithUndeclaredPropertiesAnytype3' /// @@ -104,6 +107,7 @@ public void MapWithUndeclaredPropertiesAnytype3Test() { // TODO unit test for the property 'MapWithUndeclaredPropertiesAnytype3' } + /// /// Test the property 'EmptyMap' /// @@ -112,6 +116,7 @@ public void EmptyMapTest() { // TODO unit test for the property 'EmptyMap' } + /// /// Test the property 'MapWithUndeclaredPropertiesString' /// @@ -120,7 +125,5 @@ public void MapWithUndeclaredPropertiesStringTest() { // TODO unit test for the property 'MapWithUndeclaredPropertiesString' } - } - } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/AnimalTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/AnimalTests.cs index ced34a4faadd..0bc46ab7f479 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/AnimalTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/AnimalTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -64,6 +63,7 @@ public void CatDeserializeFromAnimalTest() // TODO uncomment below to test deserialize a Cat from type Animal //Assert.IsType(JsonConvert.DeserializeObject(new Cat().ToJson())); } + /// /// Test deserialize a Dog from type Animal /// @@ -82,6 +82,7 @@ public void ClassNameTest() { // TODO unit test for the property 'ClassName' } + /// /// Test the property 'Color' /// @@ -90,7 +91,5 @@ public void ColorTest() { // TODO unit test for the property 'Color' } - } - } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ApiResponseTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ApiResponseTests.cs index 2a2e098e6082..901c6a02965e 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ApiResponseTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ApiResponseTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ApiResponseInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Code' /// @@ -64,6 +62,7 @@ public void CodeTest() { // TODO unit test for the property 'Code' } + /// /// Test the property 'Type' /// @@ -72,6 +71,7 @@ public void TypeTest() { // TODO unit test for the property 'Type' } + /// /// Test the property 'Message' /// @@ -80,7 +80,5 @@ public void MessageTest() { // TODO unit test for the property 'Message' } - } - } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/AppleReqTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/AppleReqTests.cs index f945f6593685..94d06c61e236 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/AppleReqTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/AppleReqTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void AppleReqInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Cultivar' /// @@ -64,6 +62,7 @@ public void CultivarTest() { // TODO unit test for the property 'Cultivar' } + /// /// Test the property 'Mealy' /// @@ -72,7 +71,5 @@ public void MealyTest() { // TODO unit test for the property 'Mealy' } - } - } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/AppleTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/AppleTests.cs index 468d60184ada..b3aa7e34f8db 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/AppleTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/AppleTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void AppleInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Cultivar' /// @@ -64,6 +62,7 @@ public void CultivarTest() { // TODO unit test for the property 'Cultivar' } + /// /// Test the property 'Origin' /// @@ -73,6 +72,13 @@ public void OriginTest() // TODO unit test for the property 'Origin' } + /// + /// Test the property 'ColorCode' + /// + [Fact] + public void ColorCodeTest() + { + // TODO unit test for the property 'ColorCode' + } } - } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ArrayOfArrayOfNumberOnlyTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ArrayOfArrayOfNumberOnlyTests.cs index 0b259d7d3916..d52b1938e420 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ArrayOfArrayOfNumberOnlyTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ArrayOfArrayOfNumberOnlyTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ArrayOfArrayOfNumberOnlyInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ArrayArrayNumber' /// @@ -64,7 +62,5 @@ public void ArrayArrayNumberTest() { // TODO unit test for the property 'ArrayArrayNumber' } - } - } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ArrayOfNumberOnlyTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ArrayOfNumberOnlyTests.cs index 27f312ad25f5..421bfd6caeab 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ArrayOfNumberOnlyTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ArrayOfNumberOnlyTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ArrayOfNumberOnlyInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ArrayNumber' /// @@ -64,7 +62,5 @@ public void ArrayNumberTest() { // TODO unit test for the property 'ArrayNumber' } - } - } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ArrayTestTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ArrayTestTests.cs index a433e8c87cf7..5028c715b988 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ArrayTestTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ArrayTestTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ArrayTestInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ArrayOfString' /// @@ -64,6 +62,7 @@ public void ArrayOfStringTest() { // TODO unit test for the property 'ArrayOfString' } + /// /// Test the property 'ArrayArrayOfInteger' /// @@ -72,6 +71,7 @@ public void ArrayArrayOfIntegerTest() { // TODO unit test for the property 'ArrayArrayOfInteger' } + /// /// Test the property 'ArrayArrayOfModel' /// @@ -80,7 +80,5 @@ public void ArrayArrayOfModelTest() { // TODO unit test for the property 'ArrayArrayOfModel' } - } - } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/BananaReqTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/BananaReqTests.cs index 8a6eeb82eeea..8242ff9e7969 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/BananaReqTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/BananaReqTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void BananaReqInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'LengthCm' /// @@ -64,6 +62,7 @@ public void LengthCmTest() { // TODO unit test for the property 'LengthCm' } + /// /// Test the property 'Sweet' /// @@ -72,7 +71,5 @@ public void SweetTest() { // TODO unit test for the property 'Sweet' } - } - } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/BananaTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/BananaTests.cs index 8d8cc376b038..ddcea686eee8 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/BananaTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/BananaTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void BananaInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'LengthCm' /// @@ -64,7 +62,5 @@ public void LengthCmTest() { // TODO unit test for the property 'LengthCm' } - } - } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/BasquePigTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/BasquePigTests.cs index 3cdccaa75959..9cb45c006e64 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/BasquePigTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/BasquePigTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void BasquePigInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ClassName' /// @@ -64,7 +62,5 @@ public void ClassNameTest() { // TODO unit test for the property 'ClassName' } - } - } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/CapitalizationTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/CapitalizationTests.cs index 185c83666fc7..9e6a400d1ed1 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/CapitalizationTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/CapitalizationTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void CapitalizationInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'SmallCamel' /// @@ -64,6 +62,7 @@ public void SmallCamelTest() { // TODO unit test for the property 'SmallCamel' } + /// /// Test the property 'CapitalCamel' /// @@ -72,6 +71,7 @@ public void CapitalCamelTest() { // TODO unit test for the property 'CapitalCamel' } + /// /// Test the property 'SmallSnake' /// @@ -80,6 +80,7 @@ public void SmallSnakeTest() { // TODO unit test for the property 'SmallSnake' } + /// /// Test the property 'CapitalSnake' /// @@ -88,6 +89,7 @@ public void CapitalSnakeTest() { // TODO unit test for the property 'CapitalSnake' } + /// /// Test the property 'SCAETHFlowPoints' /// @@ -96,6 +98,7 @@ public void SCAETHFlowPointsTest() { // TODO unit test for the property 'SCAETHFlowPoints' } + /// /// Test the property 'ATT_NAME' /// @@ -104,7 +107,5 @@ public void ATT_NAMETest() { // TODO unit test for the property 'ATT_NAME' } - } - } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/CatTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/CatTests.cs index 701ba7602823..c1b10d32171b 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/CatTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/CatTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void CatInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Declawed' /// @@ -64,7 +62,5 @@ public void DeclawedTest() { // TODO unit test for the property 'Declawed' } - } - } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/CategoryTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/CategoryTests.cs index 6ce48e601e47..d1ef61862440 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/CategoryTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/CategoryTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void CategoryInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Id' /// @@ -64,6 +62,7 @@ public void IdTest() { // TODO unit test for the property 'Id' } + /// /// Test the property 'Name' /// @@ -72,7 +71,5 @@ public void NameTest() { // TODO unit test for the property 'Name' } - } - } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ChildCatTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ChildCatTests.cs index 68566fd8d560..b40a42cb0225 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ChildCatTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ChildCatTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ChildCatInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Name' /// @@ -64,6 +62,7 @@ public void NameTest() { // TODO unit test for the property 'Name' } + /// /// Test the property 'PetType' /// @@ -72,7 +71,5 @@ public void PetTypeTest() { // TODO unit test for the property 'PetType' } - } - } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ClassModelTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ClassModelTests.cs index d29472e83aaf..a09b95ab4c9c 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ClassModelTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ClassModelTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ClassModelInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Class' /// @@ -64,7 +62,5 @@ public void ClassTest() { // TODO unit test for the property 'Class' } - } - } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ComplexQuadrilateralTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ComplexQuadrilateralTests.cs index b3529280c8d6..835c5b87bc6e 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ComplexQuadrilateralTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ComplexQuadrilateralTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ComplexQuadrilateralInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// @@ -64,6 +62,7 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } + /// /// Test the property 'QuadrilateralType' /// @@ -72,7 +71,5 @@ public void QuadrilateralTypeTest() { // TODO unit test for the property 'QuadrilateralType' } - } - } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/DanishPigTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/DanishPigTests.cs index 572d9bffa790..765496ea0ced 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/DanishPigTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/DanishPigTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void DanishPigInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ClassName' /// @@ -64,7 +62,5 @@ public void ClassNameTest() { // TODO unit test for the property 'ClassName' } - } - } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/DateOnlyClassTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/DateOnlyClassTests.cs index 3bd2b54a366a..67be10782efd 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/DateOnlyClassTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/DateOnlyClassTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void DateOnlyClassInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'DateOnlyProperty' /// @@ -64,7 +62,5 @@ public void DateOnlyPropertyTest() { // TODO unit test for the property 'DateOnlyProperty' } - } - } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/DeprecatedObjectTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/DeprecatedObjectTests.cs index 1da5f4011c95..be6b35dbf451 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/DeprecatedObjectTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/DeprecatedObjectTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void DeprecatedObjectInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Name' /// @@ -64,7 +62,5 @@ public void NameTest() { // TODO unit test for the property 'Name' } - } - } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/DogTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/DogTests.cs index 992f93a51fd5..a00de64ef51a 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/DogTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/DogTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void DogInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Breed' /// @@ -64,7 +62,5 @@ public void BreedTest() { // TODO unit test for the property 'Breed' } - } - } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/DrawingTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/DrawingTests.cs index 0709ad9eeb3b..3b1308e50513 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/DrawingTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/DrawingTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void DrawingInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'MainShape' /// @@ -64,6 +62,7 @@ public void MainShapeTest() { // TODO unit test for the property 'MainShape' } + /// /// Test the property 'ShapeOrNull' /// @@ -72,6 +71,7 @@ public void ShapeOrNullTest() { // TODO unit test for the property 'ShapeOrNull' } + /// /// Test the property 'NullableShape' /// @@ -80,6 +80,7 @@ public void NullableShapeTest() { // TODO unit test for the property 'NullableShape' } + /// /// Test the property 'Shapes' /// @@ -88,7 +89,5 @@ public void ShapesTest() { // TODO unit test for the property 'Shapes' } - } - } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/EnumArraysTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/EnumArraysTests.cs index 5779ca294775..6fcfa6f448c1 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/EnumArraysTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/EnumArraysTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void EnumArraysInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'JustSymbol' /// @@ -64,6 +62,7 @@ public void JustSymbolTest() { // TODO unit test for the property 'JustSymbol' } + /// /// Test the property 'ArrayEnum' /// @@ -72,7 +71,5 @@ public void ArrayEnumTest() { // TODO unit test for the property 'ArrayEnum' } - } - } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/EnumClassTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/EnumClassTests.cs index a17738c5cbc5..bb46e292a652 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/EnumClassTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/EnumClassTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,9 +53,5 @@ public void EnumClassInstanceTest() // TODO uncomment below to test "IsType" EnumClass //Assert.IsType(instance); } - - - } - } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/EnumTestTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/EnumTestTests.cs index 4f81b845d493..3050af442410 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/EnumTestTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/EnumTestTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void EnumTestInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'EnumString' /// @@ -64,6 +62,7 @@ public void EnumStringTest() { // TODO unit test for the property 'EnumString' } + /// /// Test the property 'EnumStringRequired' /// @@ -72,6 +71,7 @@ public void EnumStringRequiredTest() { // TODO unit test for the property 'EnumStringRequired' } + /// /// Test the property 'EnumInteger' /// @@ -80,6 +80,7 @@ public void EnumIntegerTest() { // TODO unit test for the property 'EnumInteger' } + /// /// Test the property 'EnumIntegerOnly' /// @@ -88,6 +89,7 @@ public void EnumIntegerOnlyTest() { // TODO unit test for the property 'EnumIntegerOnly' } + /// /// Test the property 'EnumNumber' /// @@ -96,6 +98,7 @@ public void EnumNumberTest() { // TODO unit test for the property 'EnumNumber' } + /// /// Test the property 'OuterEnum' /// @@ -104,6 +107,7 @@ public void OuterEnumTest() { // TODO unit test for the property 'OuterEnum' } + /// /// Test the property 'OuterEnumInteger' /// @@ -112,6 +116,7 @@ public void OuterEnumIntegerTest() { // TODO unit test for the property 'OuterEnumInteger' } + /// /// Test the property 'OuterEnumDefaultValue' /// @@ -120,6 +125,7 @@ public void OuterEnumDefaultValueTest() { // TODO unit test for the property 'OuterEnumDefaultValue' } + /// /// Test the property 'OuterEnumIntegerDefaultValue' /// @@ -128,7 +134,5 @@ public void OuterEnumIntegerDefaultValueTest() { // TODO unit test for the property 'OuterEnumIntegerDefaultValue' } - } - } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/EquilateralTriangleTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/EquilateralTriangleTests.cs index 4663cb667de6..71d48f7e200a 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/EquilateralTriangleTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/EquilateralTriangleTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void EquilateralTriangleInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// @@ -64,6 +62,7 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } + /// /// Test the property 'TriangleType' /// @@ -72,7 +71,5 @@ public void TriangleTypeTest() { // TODO unit test for the property 'TriangleType' } - } - } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FileSchemaTestClassTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FileSchemaTestClassTests.cs index 9f45b4fe89d5..d89ad5a5bc7b 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FileSchemaTestClassTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FileSchemaTestClassTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void FileSchemaTestClassInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'File' /// @@ -64,6 +62,7 @@ public void FileTest() { // TODO unit test for the property 'File' } + /// /// Test the property 'Files' /// @@ -72,7 +71,5 @@ public void FilesTest() { // TODO unit test for the property 'Files' } - } - } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FileTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FileTests.cs index 761bb72a844f..7eaea9c8786f 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FileTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FileTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void FileInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'SourceURI' /// @@ -64,7 +62,5 @@ public void SourceURITest() { // TODO unit test for the property 'SourceURI' } - } - } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FooGetDefaultResponseTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FooGetDefaultResponseTests.cs index 0154d528418e..563269643111 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FooGetDefaultResponseTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FooGetDefaultResponseTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void FooGetDefaultResponseInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'String' /// @@ -64,7 +62,5 @@ public void StringTest() { // TODO unit test for the property 'String' } - } - } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FooTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FooTests.cs index 0b6ed52edbd4..52f87dd5b0e0 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FooTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FooTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void FooInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Bar' /// @@ -64,7 +62,5 @@ public void BarTest() { // TODO unit test for the property 'Bar' } - } - } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FormatTestTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FormatTestTests.cs index 97332800e9af..611393395b3e 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FormatTestTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FormatTestTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void FormatTestInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Integer' /// @@ -64,6 +62,7 @@ public void IntegerTest() { // TODO unit test for the property 'Integer' } + /// /// Test the property 'Int32' /// @@ -72,6 +71,61 @@ public void Int32Test() { // TODO unit test for the property 'Int32' } + + /// + /// Test the property 'Int32Range' + /// + [Fact] + public void Int32RangeTest() + { + // TODO unit test for the property 'Int32Range' + } + + /// + /// Test the property 'Int64Positive' + /// + [Fact] + public void Int64PositiveTest() + { + // TODO unit test for the property 'Int64Positive' + } + + /// + /// Test the property 'Int64Negative' + /// + [Fact] + public void Int64NegativeTest() + { + // TODO unit test for the property 'Int64Negative' + } + + /// + /// Test the property 'Int64PositiveExclusive' + /// + [Fact] + public void Int64PositiveExclusiveTest() + { + // TODO unit test for the property 'Int64PositiveExclusive' + } + + /// + /// Test the property 'Int64NegativeExclusive' + /// + [Fact] + public void Int64NegativeExclusiveTest() + { + // TODO unit test for the property 'Int64NegativeExclusive' + } + + /// + /// Test the property 'UnsignedInteger' + /// + [Fact] + public void UnsignedIntegerTest() + { + // TODO unit test for the property 'UnsignedInteger' + } + /// /// Test the property 'Int64' /// @@ -80,6 +134,16 @@ public void Int64Test() { // TODO unit test for the property 'Int64' } + + /// + /// Test the property 'UnsignedLong' + /// + [Fact] + public void UnsignedLongTest() + { + // TODO unit test for the property 'UnsignedLong' + } + /// /// Test the property 'Number' /// @@ -88,6 +152,7 @@ public void NumberTest() { // TODO unit test for the property 'Number' } + /// /// Test the property 'Float' /// @@ -96,6 +161,7 @@ public void FloatTest() { // TODO unit test for the property 'Float' } + /// /// Test the property 'Double' /// @@ -104,6 +170,7 @@ public void DoubleTest() { // TODO unit test for the property 'Double' } + /// /// Test the property 'Decimal' /// @@ -112,6 +179,7 @@ public void DecimalTest() { // TODO unit test for the property 'Decimal' } + /// /// Test the property 'String' /// @@ -120,6 +188,7 @@ public void StringTest() { // TODO unit test for the property 'String' } + /// /// Test the property 'Byte' /// @@ -128,6 +197,7 @@ public void ByteTest() { // TODO unit test for the property 'Byte' } + /// /// Test the property 'Binary' /// @@ -136,6 +206,7 @@ public void BinaryTest() { // TODO unit test for the property 'Binary' } + /// /// Test the property 'Date' /// @@ -144,6 +215,7 @@ public void DateTest() { // TODO unit test for the property 'Date' } + /// /// Test the property 'DateTime' /// @@ -152,6 +224,7 @@ public void DateTimeTest() { // TODO unit test for the property 'DateTime' } + /// /// Test the property 'Uuid' /// @@ -160,6 +233,7 @@ public void UuidTest() { // TODO unit test for the property 'Uuid' } + /// /// Test the property 'Password' /// @@ -168,6 +242,7 @@ public void PasswordTest() { // TODO unit test for the property 'Password' } + /// /// Test the property 'PatternWithDigits' /// @@ -176,6 +251,7 @@ public void PatternWithDigitsTest() { // TODO unit test for the property 'PatternWithDigits' } + /// /// Test the property 'PatternWithDigitsAndDelimiter' /// @@ -185,6 +261,13 @@ public void PatternWithDigitsAndDelimiterTest() // TODO unit test for the property 'PatternWithDigitsAndDelimiter' } + /// + /// Test the property 'PatternWithBackslash' + /// + [Fact] + public void PatternWithBackslashTest() + { + // TODO unit test for the property 'PatternWithBackslash' + } } - } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FruitReqTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FruitReqTests.cs index 5ea9e3ffc1d5..771ef1ae2c5d 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FruitReqTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FruitReqTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void FruitReqInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Cultivar' /// @@ -64,6 +62,7 @@ public void CultivarTest() { // TODO unit test for the property 'Cultivar' } + /// /// Test the property 'Mealy' /// @@ -72,6 +71,7 @@ public void MealyTest() { // TODO unit test for the property 'Mealy' } + /// /// Test the property 'LengthCm' /// @@ -80,6 +80,7 @@ public void LengthCmTest() { // TODO unit test for the property 'LengthCm' } + /// /// Test the property 'Sweet' /// @@ -88,7 +89,5 @@ public void SweetTest() { // TODO unit test for the property 'Sweet' } - } - } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FruitTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FruitTests.cs index 91e069bb42fa..53881a333193 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FruitTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FruitTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void FruitInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Color' /// @@ -64,6 +62,7 @@ public void ColorTest() { // TODO unit test for the property 'Color' } + /// /// Test the property 'Cultivar' /// @@ -72,6 +71,7 @@ public void CultivarTest() { // TODO unit test for the property 'Cultivar' } + /// /// Test the property 'Origin' /// @@ -80,6 +80,16 @@ public void OriginTest() { // TODO unit test for the property 'Origin' } + + /// + /// Test the property 'ColorCode' + /// + [Fact] + public void ColorCodeTest() + { + // TODO unit test for the property 'ColorCode' + } + /// /// Test the property 'LengthCm' /// @@ -88,7 +98,5 @@ public void LengthCmTest() { // TODO unit test for the property 'LengthCm' } - } - } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/GmFruitTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/GmFruitTests.cs index 08fb0e07a1c8..6322d4e2a721 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/GmFruitTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/GmFruitTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void GmFruitInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Color' /// @@ -64,6 +62,7 @@ public void ColorTest() { // TODO unit test for the property 'Color' } + /// /// Test the property 'Cultivar' /// @@ -72,6 +71,7 @@ public void CultivarTest() { // TODO unit test for the property 'Cultivar' } + /// /// Test the property 'Origin' /// @@ -80,6 +80,16 @@ public void OriginTest() { // TODO unit test for the property 'Origin' } + + /// + /// Test the property 'ColorCode' + /// + [Fact] + public void ColorCodeTest() + { + // TODO unit test for the property 'ColorCode' + } + /// /// Test the property 'LengthCm' /// @@ -88,7 +98,5 @@ public void LengthCmTest() { // TODO unit test for the property 'LengthCm' } - } - } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/GrandparentAnimalTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/GrandparentAnimalTests.cs index faa4930944be..3adc2a0573e7 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/GrandparentAnimalTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/GrandparentAnimalTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -64,6 +63,7 @@ public void ChildCatDeserializeFromParentPetTest() // TODO uncomment below to test deserialize a ChildCat from type ParentPet //Assert.IsType(JsonConvert.DeserializeObject(new ChildCat().ToJson())); } + /// /// Test deserialize a ParentPet from type GrandparentAnimal /// @@ -82,7 +82,5 @@ public void PetTypeTest() { // TODO unit test for the property 'PetType' } - } - } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/HasOnlyReadOnlyTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/HasOnlyReadOnlyTests.cs index 651a9f0ce30c..69abe3f9e6ad 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/HasOnlyReadOnlyTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/HasOnlyReadOnlyTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void HasOnlyReadOnlyInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Bar' /// @@ -64,6 +62,7 @@ public void BarTest() { // TODO unit test for the property 'Bar' } + /// /// Test the property 'Foo' /// @@ -72,7 +71,5 @@ public void FooTest() { // TODO unit test for the property 'Foo' } - } - } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/HealthCheckResultTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/HealthCheckResultTests.cs index 857190a3334d..794fda2c2d6d 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/HealthCheckResultTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/HealthCheckResultTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void HealthCheckResultInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'NullableMessage' /// @@ -64,7 +62,5 @@ public void NullableMessageTest() { // TODO unit test for the property 'NullableMessage' } - } - } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/IsoscelesTriangleTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/IsoscelesTriangleTests.cs index 755c417cc54f..ca8a058e37df 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/IsoscelesTriangleTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/IsoscelesTriangleTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void IsoscelesTriangleInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// @@ -64,6 +62,7 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } + /// /// Test the property 'TriangleType' /// @@ -72,7 +71,5 @@ public void TriangleTypeTest() { // TODO unit test for the property 'TriangleType' } - } - } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ListTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ListTests.cs index 2ed828d05208..d659080e89c9 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ListTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ListTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,16 +54,13 @@ public void ListInstanceTest() //Assert.IsType(instance); } - /// - /// Test the property '_123List' + /// Test the property 'Var123List' /// [Fact] - public void _123ListTest() + public void Var123ListTest() { - // TODO unit test for the property '_123List' + // TODO unit test for the property 'Var123List' } - } - } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/LiteralStringClassTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/LiteralStringClassTests.cs index 74dc17b9f4a1..58dc425228ff 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/LiteralStringClassTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/LiteralStringClassTests.cs @@ -54,7 +54,6 @@ public void LiteralStringClassInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'EscapedLiteralString' /// @@ -63,6 +62,7 @@ public void EscapedLiteralStringTest() { // TODO unit test for the property 'EscapedLiteralString' } + /// /// Test the property 'UnescapedLiteralString' /// @@ -71,7 +71,5 @@ public void UnescapedLiteralStringTest() { // TODO unit test for the property 'UnescapedLiteralString' } - } - } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/MammalTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/MammalTests.cs index 7b46cbf06450..3fdadd19646c 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/MammalTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/MammalTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void MammalInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'HasBaleen' /// @@ -64,6 +62,7 @@ public void HasBaleenTest() { // TODO unit test for the property 'HasBaleen' } + /// /// Test the property 'HasTeeth' /// @@ -72,6 +71,7 @@ public void HasTeethTest() { // TODO unit test for the property 'HasTeeth' } + /// /// Test the property 'ClassName' /// @@ -80,6 +80,7 @@ public void ClassNameTest() { // TODO unit test for the property 'ClassName' } + /// /// Test the property 'Type' /// @@ -88,7 +89,5 @@ public void TypeTest() { // TODO unit test for the property 'Type' } - } - } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/MapTestTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/MapTestTests.cs index 20036e1c905e..e055027f15bf 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/MapTestTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/MapTestTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void MapTestInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'MapMapOfString' /// @@ -64,6 +62,7 @@ public void MapMapOfStringTest() { // TODO unit test for the property 'MapMapOfString' } + /// /// Test the property 'MapOfEnumString' /// @@ -72,6 +71,7 @@ public void MapOfEnumStringTest() { // TODO unit test for the property 'MapOfEnumString' } + /// /// Test the property 'DirectMap' /// @@ -80,6 +80,7 @@ public void DirectMapTest() { // TODO unit test for the property 'DirectMap' } + /// /// Test the property 'IndirectMap' /// @@ -88,7 +89,5 @@ public void IndirectMapTest() { // TODO unit test for the property 'IndirectMap' } - } - } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/MixedPropertiesAndAdditionalPropertiesClassTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/MixedPropertiesAndAdditionalPropertiesClassTests.cs index f56cd715f45f..07c592a8a4c0 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/MixedPropertiesAndAdditionalPropertiesClassTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/MixedPropertiesAndAdditionalPropertiesClassTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,6 +54,14 @@ public void MixedPropertiesAndAdditionalPropertiesClassInstanceTest() //Assert.IsType(instance); } + /// + /// Test the property 'UuidWithPattern' + /// + [Fact] + public void UuidWithPatternTest() + { + // TODO unit test for the property 'UuidWithPattern' + } /// /// Test the property 'Uuid' @@ -64,6 +71,7 @@ public void UuidTest() { // TODO unit test for the property 'Uuid' } + /// /// Test the property 'DateTime' /// @@ -72,6 +80,7 @@ public void DateTimeTest() { // TODO unit test for the property 'DateTime' } + /// /// Test the property 'Map' /// @@ -80,7 +89,5 @@ public void MapTest() { // TODO unit test for the property 'Map' } - } - } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/Model200ResponseTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/Model200ResponseTests.cs index e25478618f20..85be687d5c2b 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/Model200ResponseTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/Model200ResponseTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void Model200ResponseInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Name' /// @@ -64,6 +62,7 @@ public void NameTest() { // TODO unit test for the property 'Name' } + /// /// Test the property 'Class' /// @@ -72,7 +71,5 @@ public void ClassTest() { // TODO unit test for the property 'Class' } - } - } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ModelClientTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ModelClientTests.cs index 24a9e2631586..a5f4aa1593e1 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ModelClientTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ModelClientTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,16 +54,13 @@ public void ModelClientInstanceTest() //Assert.IsType(instance); } - /// - /// Test the property '_Client' + /// Test the property 'VarClient' /// [Fact] - public void _ClientTest() + public void VarClientTest() { - // TODO unit test for the property '_Client' + // TODO unit test for the property 'VarClient' } - } - } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/NameTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/NameTests.cs index c390049e66dc..fc1756b66bec 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/NameTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/NameTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,15 +54,15 @@ public void NameInstanceTest() //Assert.IsType(instance); } - /// - /// Test the property '_Name' + /// Test the property 'VarName' /// [Fact] - public void _NameTest() + public void VarNameTest() { - // TODO unit test for the property '_Name' + // TODO unit test for the property 'VarName' } + /// /// Test the property 'SnakeCase' /// @@ -72,6 +71,7 @@ public void SnakeCaseTest() { // TODO unit test for the property 'SnakeCase' } + /// /// Test the property 'Property' /// @@ -80,15 +80,14 @@ public void PropertyTest() { // TODO unit test for the property 'Property' } + /// - /// Test the property '_123Number' + /// Test the property 'Var123Number' /// [Fact] - public void _123NumberTest() + public void Var123NumberTest() { - // TODO unit test for the property '_123Number' + // TODO unit test for the property 'Var123Number' } - } - } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/NullableClassTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/NullableClassTests.cs index 8f00505612a9..214795f86c27 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/NullableClassTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/NullableClassTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void NullableClassInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'IntegerProp' /// @@ -64,6 +62,7 @@ public void IntegerPropTest() { // TODO unit test for the property 'IntegerProp' } + /// /// Test the property 'NumberProp' /// @@ -72,6 +71,7 @@ public void NumberPropTest() { // TODO unit test for the property 'NumberProp' } + /// /// Test the property 'BooleanProp' /// @@ -80,6 +80,7 @@ public void BooleanPropTest() { // TODO unit test for the property 'BooleanProp' } + /// /// Test the property 'StringProp' /// @@ -88,6 +89,7 @@ public void StringPropTest() { // TODO unit test for the property 'StringProp' } + /// /// Test the property 'DateProp' /// @@ -96,6 +98,7 @@ public void DatePropTest() { // TODO unit test for the property 'DateProp' } + /// /// Test the property 'DatetimeProp' /// @@ -104,6 +107,7 @@ public void DatetimePropTest() { // TODO unit test for the property 'DatetimeProp' } + /// /// Test the property 'ArrayNullableProp' /// @@ -112,6 +116,7 @@ public void ArrayNullablePropTest() { // TODO unit test for the property 'ArrayNullableProp' } + /// /// Test the property 'ArrayAndItemsNullableProp' /// @@ -120,6 +125,7 @@ public void ArrayAndItemsNullablePropTest() { // TODO unit test for the property 'ArrayAndItemsNullableProp' } + /// /// Test the property 'ArrayItemsNullable' /// @@ -128,6 +134,7 @@ public void ArrayItemsNullableTest() { // TODO unit test for the property 'ArrayItemsNullable' } + /// /// Test the property 'ObjectNullableProp' /// @@ -136,6 +143,7 @@ public void ObjectNullablePropTest() { // TODO unit test for the property 'ObjectNullableProp' } + /// /// Test the property 'ObjectAndItemsNullableProp' /// @@ -144,6 +152,7 @@ public void ObjectAndItemsNullablePropTest() { // TODO unit test for the property 'ObjectAndItemsNullableProp' } + /// /// Test the property 'ObjectItemsNullable' /// @@ -152,7 +161,5 @@ public void ObjectItemsNullableTest() { // TODO unit test for the property 'ObjectItemsNullable' } - } - } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/NullableGuidClassTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/NullableGuidClassTests.cs index 0bc0ea369188..1290072514cd 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/NullableGuidClassTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/NullableGuidClassTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void NullableGuidClassInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Uuid' /// @@ -64,7 +62,5 @@ public void UuidTest() { // TODO unit test for the property 'Uuid' } - } - } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/NullableShapeTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/NullableShapeTests.cs index 5662f91d6e64..75e9c7e8fd49 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/NullableShapeTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/NullableShapeTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void NullableShapeInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// @@ -64,6 +62,7 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } + /// /// Test the property 'QuadrilateralType' /// @@ -72,7 +71,5 @@ public void QuadrilateralTypeTest() { // TODO unit test for the property 'QuadrilateralType' } - } - } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/NumberOnlyTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/NumberOnlyTests.cs index 3a06cb020b2a..2fb06f9afb48 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/NumberOnlyTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/NumberOnlyTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void NumberOnlyInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'JustNumber' /// @@ -64,7 +62,5 @@ public void JustNumberTest() { // TODO unit test for the property 'JustNumber' } - } - } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ObjectWithDeprecatedFieldsTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ObjectWithDeprecatedFieldsTests.cs index 82f93fab48c5..e90b746d19c6 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ObjectWithDeprecatedFieldsTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ObjectWithDeprecatedFieldsTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ObjectWithDeprecatedFieldsInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Uuid' /// @@ -64,6 +62,7 @@ public void UuidTest() { // TODO unit test for the property 'Uuid' } + /// /// Test the property 'Id' /// @@ -72,6 +71,7 @@ public void IdTest() { // TODO unit test for the property 'Id' } + /// /// Test the property 'DeprecatedRef' /// @@ -80,6 +80,7 @@ public void DeprecatedRefTest() { // TODO unit test for the property 'DeprecatedRef' } + /// /// Test the property 'Bars' /// @@ -88,7 +89,5 @@ public void BarsTest() { // TODO unit test for the property 'Bars' } - } - } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OneOfStringTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OneOfStringTests.cs index 75bd7cd9bfd0..04727e77c691 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OneOfStringTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OneOfStringTests.cs @@ -53,9 +53,5 @@ public void OneOfStringInstanceTest() // TODO uncomment below to test "IsType" OneOfString //Assert.IsType(instance); } - - - } - } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OrderTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OrderTests.cs index cf5c561c5476..84d2828b367f 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OrderTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OrderTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void OrderInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Id' /// @@ -64,6 +62,7 @@ public void IdTest() { // TODO unit test for the property 'Id' } + /// /// Test the property 'PetId' /// @@ -72,6 +71,7 @@ public void PetIdTest() { // TODO unit test for the property 'PetId' } + /// /// Test the property 'Quantity' /// @@ -80,6 +80,7 @@ public void QuantityTest() { // TODO unit test for the property 'Quantity' } + /// /// Test the property 'ShipDate' /// @@ -88,6 +89,7 @@ public void ShipDateTest() { // TODO unit test for the property 'ShipDate' } + /// /// Test the property 'Status' /// @@ -96,6 +98,7 @@ public void StatusTest() { // TODO unit test for the property 'Status' } + /// /// Test the property 'Complete' /// @@ -104,7 +107,5 @@ public void CompleteTest() { // TODO unit test for the property 'Complete' } - } - } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OuterCompositeTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OuterCompositeTests.cs index 2efda0db59c4..fd52fa2cfca7 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OuterCompositeTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OuterCompositeTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void OuterCompositeInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'MyNumber' /// @@ -64,6 +62,7 @@ public void MyNumberTest() { // TODO unit test for the property 'MyNumber' } + /// /// Test the property 'MyString' /// @@ -72,6 +71,7 @@ public void MyStringTest() { // TODO unit test for the property 'MyString' } + /// /// Test the property 'MyBoolean' /// @@ -80,7 +80,5 @@ public void MyBooleanTest() { // TODO unit test for the property 'MyBoolean' } - } - } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumDefaultValueTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumDefaultValueTests.cs index 986fff774c46..db98c5a44ae3 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumDefaultValueTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumDefaultValueTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,9 +53,5 @@ public void OuterEnumDefaultValueInstanceTest() // TODO uncomment below to test "IsType" OuterEnumDefaultValue //Assert.IsType(instance); } - - - } - } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerDefaultValueTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerDefaultValueTests.cs index 015d5dab945e..a4c028ea750d 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerDefaultValueTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerDefaultValueTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,9 +53,5 @@ public void OuterEnumIntegerDefaultValueInstanceTest() // TODO uncomment below to test "IsType" OuterEnumIntegerDefaultValue //Assert.IsType(instance); } - - - } - } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerTests.cs index 385e899110a4..4d1be408011e 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,9 +53,5 @@ public void OuterEnumIntegerInstanceTest() // TODO uncomment below to test "IsType" OuterEnumInteger //Assert.IsType(instance); } - - - } - } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumTests.cs index f47304767b9e..d4d6e96125d9 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,9 +53,5 @@ public void OuterEnumInstanceTest() // TODO uncomment below to test "IsType" OuterEnum //Assert.IsType(instance); } - - - } - } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ParentPetTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ParentPetTests.cs index 1e17568ed331..eb9f5956b215 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ParentPetTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ParentPetTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -64,8 +63,5 @@ public void ChildCatDeserializeFromParentPetTest() // TODO uncomment below to test deserialize a ChildCat from type ParentPet //Assert.IsType(JsonConvert.DeserializeObject(new ChildCat().ToJson())); } - - } - } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/PetTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/PetTests.cs index 154e66f8dfc0..535ab69d2aa2 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/PetTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/PetTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void PetInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Id' /// @@ -64,6 +62,7 @@ public void IdTest() { // TODO unit test for the property 'Id' } + /// /// Test the property 'Category' /// @@ -72,6 +71,7 @@ public void CategoryTest() { // TODO unit test for the property 'Category' } + /// /// Test the property 'Name' /// @@ -80,6 +80,7 @@ public void NameTest() { // TODO unit test for the property 'Name' } + /// /// Test the property 'PhotoUrls' /// @@ -88,6 +89,7 @@ public void PhotoUrlsTest() { // TODO unit test for the property 'PhotoUrls' } + /// /// Test the property 'Tags' /// @@ -96,6 +98,7 @@ public void TagsTest() { // TODO unit test for the property 'Tags' } + /// /// Test the property 'Status' /// @@ -104,7 +107,5 @@ public void StatusTest() { // TODO unit test for the property 'Status' } - } - } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/PigTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/PigTests.cs index 55cf2189046b..34562dc6860f 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/PigTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/PigTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void PigInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ClassName' /// @@ -64,7 +62,5 @@ public void ClassNameTest() { // TODO unit test for the property 'ClassName' } - } - } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/PolymorphicPropertyTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/PolymorphicPropertyTests.cs index eff3c6ddc9bb..a546cd2b0032 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/PolymorphicPropertyTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/PolymorphicPropertyTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,9 +53,5 @@ public void PolymorphicPropertyInstanceTest() // TODO uncomment below to test "IsType" PolymorphicProperty //Assert.IsType(instance); } - - - } - } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/QuadrilateralInterfaceTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/QuadrilateralInterfaceTests.cs index 6eef9f4c816d..d08798b36050 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/QuadrilateralInterfaceTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/QuadrilateralInterfaceTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void QuadrilateralInterfaceInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'QuadrilateralType' /// @@ -64,7 +62,5 @@ public void QuadrilateralTypeTest() { // TODO unit test for the property 'QuadrilateralType' } - } - } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/QuadrilateralTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/QuadrilateralTests.cs index 26826681a478..cd996d7e0edf 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/QuadrilateralTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/QuadrilateralTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void QuadrilateralInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// @@ -64,6 +62,7 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } + /// /// Test the property 'QuadrilateralType' /// @@ -72,7 +71,5 @@ public void QuadrilateralTypeTest() { // TODO unit test for the property 'QuadrilateralType' } - } - } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ReadOnlyFirstTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ReadOnlyFirstTests.cs index dc3d0fad54cd..056bc2b4519c 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ReadOnlyFirstTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ReadOnlyFirstTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ReadOnlyFirstInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Bar' /// @@ -64,6 +62,7 @@ public void BarTest() { // TODO unit test for the property 'Bar' } + /// /// Test the property 'Baz' /// @@ -72,7 +71,5 @@ public void BazTest() { // TODO unit test for the property 'Baz' } - } - } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ReturnTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ReturnTests.cs index c8c1d6510d2f..d2dc7ce4a7e1 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ReturnTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ReturnTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,16 +54,40 @@ public void ReturnInstanceTest() //Assert.IsType(instance); } + /// + /// Test the property 'VarReturn' + /// + [Fact] + public void VarReturnTest() + { + // TODO unit test for the property 'VarReturn' + } /// - /// Test the property '_Return' + /// Test the property 'Lock' /// [Fact] - public void _ReturnTest() + public void LockTest() { - // TODO unit test for the property '_Return' + // TODO unit test for the property 'Lock' } - } + /// + /// Test the property 'Abstract' + /// + [Fact] + public void AbstractTest() + { + // TODO unit test for the property 'Abstract' + } + /// + /// Test the property 'Unsafe' + /// + [Fact] + public void UnsafeTest() + { + // TODO unit test for the property 'Unsafe' + } + } } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ScaleneTriangleTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ScaleneTriangleTests.cs index 04cb9f1ab6b1..a7332ab47b03 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ScaleneTriangleTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ScaleneTriangleTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ScaleneTriangleInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// @@ -64,6 +62,7 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } + /// /// Test the property 'TriangleType' /// @@ -72,7 +71,5 @@ public void TriangleTypeTest() { // TODO unit test for the property 'TriangleType' } - } - } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ShapeInterfaceTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ShapeInterfaceTests.cs index 7bd0bc86f963..e082fb3b4faa 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ShapeInterfaceTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ShapeInterfaceTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ShapeInterfaceInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// @@ -64,7 +62,5 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } - } - } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ShapeOrNullTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ShapeOrNullTests.cs index d0af114157c9..b70c157800b5 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ShapeOrNullTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ShapeOrNullTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ShapeOrNullInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// @@ -64,6 +62,7 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } + /// /// Test the property 'QuadrilateralType' /// @@ -72,7 +71,5 @@ public void QuadrilateralTypeTest() { // TODO unit test for the property 'QuadrilateralType' } - } - } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ShapeTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ShapeTests.cs index b01bd531f857..babd94722cfb 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ShapeTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ShapeTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ShapeInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// @@ -64,6 +62,7 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } + /// /// Test the property 'QuadrilateralType' /// @@ -72,7 +71,5 @@ public void QuadrilateralTypeTest() { // TODO unit test for the property 'QuadrilateralType' } - } - } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/SimpleQuadrilateralTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/SimpleQuadrilateralTests.cs index 6648e9809281..24f0288bcac4 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/SimpleQuadrilateralTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/SimpleQuadrilateralTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void SimpleQuadrilateralInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// @@ -64,6 +62,7 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } + /// /// Test the property 'QuadrilateralType' /// @@ -72,7 +71,5 @@ public void QuadrilateralTypeTest() { // TODO unit test for the property 'QuadrilateralType' } - } - } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/SpecialModelNameTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/SpecialModelNameTests.cs index 0f0e1ff12a9e..ef8a8d50e3ee 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/SpecialModelNameTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/SpecialModelNameTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void SpecialModelNameInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'SpecialPropertyName' /// @@ -64,15 +62,14 @@ public void SpecialPropertyNameTest() { // TODO unit test for the property 'SpecialPropertyName' } + /// - /// Test the property '_SpecialModelName' + /// Test the property 'VarSpecialModelName' /// [Fact] - public void _SpecialModelNameTest() + public void VarSpecialModelNameTest() { - // TODO unit test for the property '_SpecialModelName' + // TODO unit test for the property 'VarSpecialModelName' } - } - } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/TagTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/TagTests.cs index 6d56232d0a76..8f9ad604eab9 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/TagTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/TagTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void TagInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Id' /// @@ -64,6 +62,7 @@ public void IdTest() { // TODO unit test for the property 'Id' } + /// /// Test the property 'Name' /// @@ -72,7 +71,5 @@ public void NameTest() { // TODO unit test for the property 'Name' } - } - } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/TestCollectionEndingWithWordListObjectTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/TestCollectionEndingWithWordListObjectTests.cs index 4def0dcda9cc..6623a04fcc40 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/TestCollectionEndingWithWordListObjectTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/TestCollectionEndingWithWordListObjectTests.cs @@ -54,7 +54,6 @@ public void TestCollectionEndingWithWordListObjectInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'TestCollectionEndingWithWordList' /// @@ -63,7 +62,5 @@ public void TestCollectionEndingWithWordListTest() { // TODO unit test for the property 'TestCollectionEndingWithWordList' } - } - } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/TestCollectionEndingWithWordListTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/TestCollectionEndingWithWordListTests.cs index e9df66daf2e5..a32943a0c841 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/TestCollectionEndingWithWordListTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/TestCollectionEndingWithWordListTests.cs @@ -54,7 +54,6 @@ public void TestCollectionEndingWithWordListInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Value' /// @@ -63,7 +62,5 @@ public void ValueTest() { // TODO unit test for the property 'Value' } - } - } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/TriangleInterfaceTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/TriangleInterfaceTests.cs index fba65470bee6..1750c64c4eda 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/TriangleInterfaceTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/TriangleInterfaceTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void TriangleInterfaceInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'TriangleType' /// @@ -64,7 +62,5 @@ public void TriangleTypeTest() { // TODO unit test for the property 'TriangleType' } - } - } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/TriangleTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/TriangleTests.cs index bdaab0b47965..0dd209f5303a 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/TriangleTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/TriangleTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void TriangleInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// @@ -64,6 +62,7 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } + /// /// Test the property 'TriangleType' /// @@ -72,7 +71,5 @@ public void TriangleTypeTest() { // TODO unit test for the property 'TriangleType' } - } - } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/UserTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/UserTests.cs index a7b095e4c28e..bc3cb3775de1 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/UserTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/UserTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void UserInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Id' /// @@ -64,6 +62,7 @@ public void IdTest() { // TODO unit test for the property 'Id' } + /// /// Test the property 'Username' /// @@ -72,6 +71,7 @@ public void UsernameTest() { // TODO unit test for the property 'Username' } + /// /// Test the property 'FirstName' /// @@ -80,6 +80,7 @@ public void FirstNameTest() { // TODO unit test for the property 'FirstName' } + /// /// Test the property 'LastName' /// @@ -88,6 +89,7 @@ public void LastNameTest() { // TODO unit test for the property 'LastName' } + /// /// Test the property 'Email' /// @@ -96,6 +98,7 @@ public void EmailTest() { // TODO unit test for the property 'Email' } + /// /// Test the property 'Password' /// @@ -104,6 +107,7 @@ public void PasswordTest() { // TODO unit test for the property 'Password' } + /// /// Test the property 'Phone' /// @@ -112,6 +116,7 @@ public void PhoneTest() { // TODO unit test for the property 'Phone' } + /// /// Test the property 'UserStatus' /// @@ -120,6 +125,7 @@ public void UserStatusTest() { // TODO unit test for the property 'UserStatus' } + /// /// Test the property 'ObjectWithNoDeclaredProps' /// @@ -128,6 +134,7 @@ public void ObjectWithNoDeclaredPropsTest() { // TODO unit test for the property 'ObjectWithNoDeclaredProps' } + /// /// Test the property 'ObjectWithNoDeclaredPropsNullable' /// @@ -136,6 +143,7 @@ public void ObjectWithNoDeclaredPropsNullableTest() { // TODO unit test for the property 'ObjectWithNoDeclaredPropsNullable' } + /// /// Test the property 'AnyTypeProp' /// @@ -144,6 +152,7 @@ public void AnyTypePropTest() { // TODO unit test for the property 'AnyTypeProp' } + /// /// Test the property 'AnyTypePropNullable' /// @@ -152,7 +161,5 @@ public void AnyTypePropNullableTest() { // TODO unit test for the property 'AnyTypePropNullable' } - } - } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/WhaleTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/WhaleTests.cs index 09610791943c..de86c02372cd 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/WhaleTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/WhaleTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void WhaleInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'HasBaleen' /// @@ -64,6 +62,7 @@ public void HasBaleenTest() { // TODO unit test for the property 'HasBaleen' } + /// /// Test the property 'HasTeeth' /// @@ -72,6 +71,7 @@ public void HasTeethTest() { // TODO unit test for the property 'HasTeeth' } + /// /// Test the property 'ClassName' /// @@ -80,7 +80,5 @@ public void ClassNameTest() { // TODO unit test for the property 'ClassName' } - } - } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ZebraTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ZebraTests.cs index f44e92131400..55e70c43e0a0 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ZebraTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ZebraTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ZebraInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Type' /// @@ -64,6 +62,7 @@ public void TypeTest() { // TODO unit test for the property 'Type' } + /// /// Test the property 'ClassName' /// @@ -72,7 +71,5 @@ public void ClassNameTest() { // TODO unit test for the property 'ClassName' } - } - } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ZeroBasedEnumClassTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ZeroBasedEnumClassTests.cs index f713baf3235e..d828b6d03a7b 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ZeroBasedEnumClassTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ZeroBasedEnumClassTests.cs @@ -54,7 +54,6 @@ public void ZeroBasedEnumClassInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ZeroBasedEnum' /// @@ -63,7 +62,5 @@ public void ZeroBasedEnumTest() { // TODO unit test for the property 'ZeroBasedEnum' } - } - } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ZeroBasedEnumTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ZeroBasedEnumTests.cs index 412297e39f71..38260add43e8 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ZeroBasedEnumTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ZeroBasedEnumTests.cs @@ -53,9 +53,5 @@ public void ZeroBasedEnumInstanceTest() // TODO uncomment below to test "IsType" ZeroBasedEnum //Assert.IsType(instance); } - - - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools.Test/Api/PetApiTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools.Test/Api/PetApiTests.cs index 763684189ae2..c1ed54241c6b 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools.Test/Api/PetApiTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools.Test/Api/PetApiTests.cs @@ -152,6 +152,5 @@ public void UploadFileTest() //var response = instance.UploadFile(petId, additionalMetadata, file); //Assert.IsType(response); } - } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools.Test/Model/ApiResponseTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools.Test/Model/ApiResponseTests.cs index 54c455c8af1b..eb9eb82931e1 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools.Test/Model/ApiResponseTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools.Test/Model/ApiResponseTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ApiResponseInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Code' /// @@ -64,6 +62,7 @@ public void CodeTest() { // TODO unit test for the property 'Code' } + /// /// Test the property 'Type' /// @@ -72,6 +71,7 @@ public void TypeTest() { // TODO unit test for the property 'Type' } + /// /// Test the property 'Message' /// @@ -80,7 +80,5 @@ public void MessageTest() { // TODO unit test for the property 'Message' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools.Test/Model/CategoryTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools.Test/Model/CategoryTests.cs index 973015d694e7..8c6fc5d10db7 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools.Test/Model/CategoryTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools.Test/Model/CategoryTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void CategoryInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Id' /// @@ -64,6 +62,7 @@ public void IdTest() { // TODO unit test for the property 'Id' } + /// /// Test the property 'Name' /// @@ -72,7 +71,5 @@ public void NameTest() { // TODO unit test for the property 'Name' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools.Test/Model/OrderTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools.Test/Model/OrderTests.cs index 0cc1e616df43..bf9fbd58b354 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools.Test/Model/OrderTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools.Test/Model/OrderTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void OrderInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Id' /// @@ -64,6 +62,7 @@ public void IdTest() { // TODO unit test for the property 'Id' } + /// /// Test the property 'PetId' /// @@ -72,6 +71,7 @@ public void PetIdTest() { // TODO unit test for the property 'PetId' } + /// /// Test the property 'Quantity' /// @@ -80,6 +80,7 @@ public void QuantityTest() { // TODO unit test for the property 'Quantity' } + /// /// Test the property 'ShipDate' /// @@ -88,6 +89,7 @@ public void ShipDateTest() { // TODO unit test for the property 'ShipDate' } + /// /// Test the property 'Status' /// @@ -96,6 +98,7 @@ public void StatusTest() { // TODO unit test for the property 'Status' } + /// /// Test the property 'Complete' /// @@ -104,7 +107,5 @@ public void CompleteTest() { // TODO unit test for the property 'Complete' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools.Test/Model/PetTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools.Test/Model/PetTests.cs index a296ab12b4c0..1b7f6c023496 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools.Test/Model/PetTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools.Test/Model/PetTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void PetInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Id' /// @@ -64,6 +62,7 @@ public void IdTest() { // TODO unit test for the property 'Id' } + /// /// Test the property 'Category' /// @@ -72,6 +71,7 @@ public void CategoryTest() { // TODO unit test for the property 'Category' } + /// /// Test the property 'Name' /// @@ -80,6 +80,7 @@ public void NameTest() { // TODO unit test for the property 'Name' } + /// /// Test the property 'PhotoUrls' /// @@ -88,6 +89,7 @@ public void PhotoUrlsTest() { // TODO unit test for the property 'PhotoUrls' } + /// /// Test the property 'Tags' /// @@ -96,6 +98,7 @@ public void TagsTest() { // TODO unit test for the property 'Tags' } + /// /// Test the property 'Status' /// @@ -104,7 +107,5 @@ public void StatusTest() { // TODO unit test for the property 'Status' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools.Test/Model/TagTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools.Test/Model/TagTests.cs index d3b4766b104a..c994710b0e50 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools.Test/Model/TagTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools.Test/Model/TagTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void TagInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Id' /// @@ -64,6 +62,7 @@ public void IdTest() { // TODO unit test for the property 'Id' } + /// /// Test the property 'Name' /// @@ -72,7 +71,5 @@ public void NameTest() { // TODO unit test for the property 'Name' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools.Test/Model/UserTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools.Test/Model/UserTests.cs index b7019235bfe6..427b254ebe28 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools.Test/Model/UserTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools.Test/Model/UserTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void UserInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Id' /// @@ -64,6 +62,7 @@ public void IdTest() { // TODO unit test for the property 'Id' } + /// /// Test the property 'Username' /// @@ -72,6 +71,7 @@ public void UsernameTest() { // TODO unit test for the property 'Username' } + /// /// Test the property 'FirstName' /// @@ -80,6 +80,7 @@ public void FirstNameTest() { // TODO unit test for the property 'FirstName' } + /// /// Test the property 'LastName' /// @@ -88,6 +89,7 @@ public void LastNameTest() { // TODO unit test for the property 'LastName' } + /// /// Test the property 'Email' /// @@ -96,6 +98,7 @@ public void EmailTest() { // TODO unit test for the property 'Email' } + /// /// Test the property 'Password' /// @@ -104,6 +107,7 @@ public void PasswordTest() { // TODO unit test for the property 'Password' } + /// /// Test the property 'Phone' /// @@ -112,6 +116,7 @@ public void PhoneTest() { // TODO unit test for the property 'Phone' } + /// /// Test the property 'UserStatus' /// @@ -120,7 +125,5 @@ public void UserStatusTest() { // TODO unit test for the property 'UserStatus' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs index 5d048a005bdc..f870aa706425 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs @@ -64,5 +64,49 @@ public void FooGetTest() //var response = instance.FooGet(); //Assert.IsType(response); } + + /// + /// Test GetCountry + /// + [Fact] + public void GetCountryTest() + { + // TODO uncomment below to test the method and replace null with proper value + //string country = null; + //instance.GetCountry(country); + } + + /// + /// Test Hello + /// + [Fact] + public void HelloTest() + { + // TODO uncomment below to test the method and replace null with proper value + //var response = instance.Hello(); + //Assert.IsType>(response); + } + + /// + /// Test RolesReportGet + /// + [Fact] + public void RolesReportGetTest() + { + // TODO uncomment below to test the method and replace null with proper value + //var response = instance.RolesReportGet(); + //Assert.IsType>>(response); + } + + /// + /// Test Test + /// + [Fact] + public void TestTest() + { + // TODO uncomment below to test the method and replace null with proper value + //var response = instance.Test(); + //Assert.IsType(response); + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Api/FakeApiTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Api/FakeApiTests.cs index 994cd46d38ae..20dfede3f9b1 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Api/FakeApiTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Api/FakeApiTests.cs @@ -108,8 +108,9 @@ public void FakeOuterNumberSerializeTest() public void FakeOuterStringSerializeTest() { // TODO uncomment below to test the method and replace null with proper value + //Guid requiredStringUuid = null; //string body = null; - //var response = instance.FakeOuterStringSerialize(body); + //var response = instance.FakeOuterStringSerialize(requiredStringUuid, body); //Assert.IsType(response); } @@ -124,6 +125,39 @@ public void GetArrayOfEnumsTest() //Assert.IsType>(response); } + /// + /// Test GetMixedAnyOf + /// + [Fact] + public void GetMixedAnyOfTest() + { + // TODO uncomment below to test the method and replace null with proper value + //var response = instance.GetMixedAnyOf(); + //Assert.IsType(response); + } + + /// + /// Test GetMixedOneOf + /// + [Fact] + public void GetMixedOneOfTest() + { + // TODO uncomment below to test the method and replace null with proper value + //var response = instance.GetMixedOneOf(); + //Assert.IsType(response); + } + + /// + /// Test TestAdditionalPropertiesReference + /// + [Fact] + public void TestAdditionalPropertiesReferenceTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Dictionary requestBody = null; + //instance.TestAdditionalPropertiesReference(requestBody); + } + /// /// Test TestBodyWithFileSchema /// @@ -167,20 +201,20 @@ public void TestEndpointParametersTest() { // TODO uncomment below to test the method and replace null with proper value //decimal number = null; - //double _double = null; + //double varDouble = null; //string patternWithoutDelimiter = null; - //byte[] _byte = null; + //byte[] varByte = null; //int? integer = null; //int? int32 = null; //long? int64 = null; - //float? _float = null; - //string _string = null; + //float? varFloat = null; + //string varString = null; //System.IO.Stream binary = null; //DateTime? date = null; //DateTime? dateTime = null; //string password = null; //string callback = null; - //instance.TestEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback); + //instance.TestEndpointParameters(number, varDouble, patternWithoutDelimiter, varByte, integer, int32, int64, varFloat, varString, binary, date, dateTime, password, callback); } /// @@ -228,6 +262,17 @@ public void TestInlineAdditionalPropertiesTest() //instance.TestInlineAdditionalProperties(requestBody); } + /// + /// Test TestInlineFreeformAdditionalProperties + /// + [Fact] + public void TestInlineFreeformAdditionalPropertiesTest() + { + // TODO uncomment below to test the method and replace null with proper value + //TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest = null; + //instance.TestInlineFreeformAdditionalProperties(testInlineFreeformAdditionalPropertiesRequest); + } + /// /// Test TestJsonFormData /// @@ -252,7 +297,22 @@ public void TestQueryParameterCollectionFormatTest() //List http = null; //List url = null; //List context = null; - //instance.TestQueryParameterCollectionFormat(pipe, ioutil, http, url, context); + //string requiredNotNullable = null; + //string requiredNullable = null; + //string notRequiredNotNullable = null; + //string notRequiredNullable = null; + //instance.TestQueryParameterCollectionFormat(pipe, ioutil, http, url, context, requiredNotNullable, requiredNullable, notRequiredNotNullable, notRequiredNullable); + } + + /// + /// Test TestStringMapReference + /// + [Fact] + public void TestStringMapReferenceTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Dictionary requestBody = null; + //instance.TestStringMapReference(requestBody); } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ActivityOutputElementRepresentationTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ActivityOutputElementRepresentationTests.cs index f211a64884af..b4bb73592031 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ActivityOutputElementRepresentationTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ActivityOutputElementRepresentationTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ActivityOutputElementRepresentationInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Prop1' /// @@ -64,6 +62,7 @@ public void Prop1Test() { // TODO unit test for the property 'Prop1' } + /// /// Test the property 'Prop2' /// @@ -72,7 +71,5 @@ public void Prop2Test() { // TODO unit test for the property 'Prop2' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ActivityTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ActivityTests.cs index afe9e846ee94..0b9efbd5a20b 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ActivityTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ActivityTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ActivityInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ActivityOutputs' /// @@ -64,7 +62,5 @@ public void ActivityOutputsTest() { // TODO unit test for the property 'ActivityOutputs' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesClassTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesClassTests.cs index 9ab029ed0979..d766719b5bce 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesClassTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesClassTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void AdditionalPropertiesClassInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'MapProperty' /// @@ -64,6 +62,7 @@ public void MapPropertyTest() { // TODO unit test for the property 'MapProperty' } + /// /// Test the property 'MapOfMapProperty' /// @@ -72,6 +71,7 @@ public void MapOfMapPropertyTest() { // TODO unit test for the property 'MapOfMapProperty' } + /// /// Test the property 'Anytype1' /// @@ -80,6 +80,7 @@ public void Anytype1Test() { // TODO unit test for the property 'Anytype1' } + /// /// Test the property 'MapWithUndeclaredPropertiesAnytype1' /// @@ -88,6 +89,7 @@ public void MapWithUndeclaredPropertiesAnytype1Test() { // TODO unit test for the property 'MapWithUndeclaredPropertiesAnytype1' } + /// /// Test the property 'MapWithUndeclaredPropertiesAnytype2' /// @@ -96,6 +98,7 @@ public void MapWithUndeclaredPropertiesAnytype2Test() { // TODO unit test for the property 'MapWithUndeclaredPropertiesAnytype2' } + /// /// Test the property 'MapWithUndeclaredPropertiesAnytype3' /// @@ -104,6 +107,7 @@ public void MapWithUndeclaredPropertiesAnytype3Test() { // TODO unit test for the property 'MapWithUndeclaredPropertiesAnytype3' } + /// /// Test the property 'EmptyMap' /// @@ -112,6 +116,7 @@ public void EmptyMapTest() { // TODO unit test for the property 'EmptyMap' } + /// /// Test the property 'MapWithUndeclaredPropertiesString' /// @@ -120,7 +125,5 @@ public void MapWithUndeclaredPropertiesStringTest() { // TODO unit test for the property 'MapWithUndeclaredPropertiesString' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/AnimalTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/AnimalTests.cs index ced34a4faadd..0bc46ab7f479 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/AnimalTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/AnimalTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -64,6 +63,7 @@ public void CatDeserializeFromAnimalTest() // TODO uncomment below to test deserialize a Cat from type Animal //Assert.IsType(JsonConvert.DeserializeObject(new Cat().ToJson())); } + /// /// Test deserialize a Dog from type Animal /// @@ -82,6 +82,7 @@ public void ClassNameTest() { // TODO unit test for the property 'ClassName' } + /// /// Test the property 'Color' /// @@ -90,7 +91,5 @@ public void ColorTest() { // TODO unit test for the property 'Color' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ApiResponseTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ApiResponseTests.cs index 2a2e098e6082..901c6a02965e 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ApiResponseTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ApiResponseTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ApiResponseInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Code' /// @@ -64,6 +62,7 @@ public void CodeTest() { // TODO unit test for the property 'Code' } + /// /// Test the property 'Type' /// @@ -72,6 +71,7 @@ public void TypeTest() { // TODO unit test for the property 'Type' } + /// /// Test the property 'Message' /// @@ -80,7 +80,5 @@ public void MessageTest() { // TODO unit test for the property 'Message' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/AppleReqTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/AppleReqTests.cs index f945f6593685..94d06c61e236 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/AppleReqTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/AppleReqTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void AppleReqInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Cultivar' /// @@ -64,6 +62,7 @@ public void CultivarTest() { // TODO unit test for the property 'Cultivar' } + /// /// Test the property 'Mealy' /// @@ -72,7 +71,5 @@ public void MealyTest() { // TODO unit test for the property 'Mealy' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/AppleTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/AppleTests.cs index 468d60184ada..b3aa7e34f8db 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/AppleTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/AppleTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void AppleInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Cultivar' /// @@ -64,6 +62,7 @@ public void CultivarTest() { // TODO unit test for the property 'Cultivar' } + /// /// Test the property 'Origin' /// @@ -73,6 +72,13 @@ public void OriginTest() // TODO unit test for the property 'Origin' } + /// + /// Test the property 'ColorCode' + /// + [Fact] + public void ColorCodeTest() + { + // TODO unit test for the property 'ColorCode' + } } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ArrayOfArrayOfNumberOnlyTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ArrayOfArrayOfNumberOnlyTests.cs index 0b259d7d3916..d52b1938e420 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ArrayOfArrayOfNumberOnlyTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ArrayOfArrayOfNumberOnlyTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ArrayOfArrayOfNumberOnlyInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ArrayArrayNumber' /// @@ -64,7 +62,5 @@ public void ArrayArrayNumberTest() { // TODO unit test for the property 'ArrayArrayNumber' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ArrayOfNumberOnlyTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ArrayOfNumberOnlyTests.cs index 27f312ad25f5..421bfd6caeab 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ArrayOfNumberOnlyTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ArrayOfNumberOnlyTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ArrayOfNumberOnlyInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ArrayNumber' /// @@ -64,7 +62,5 @@ public void ArrayNumberTest() { // TODO unit test for the property 'ArrayNumber' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ArrayTestTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ArrayTestTests.cs index a433e8c87cf7..5028c715b988 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ArrayTestTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ArrayTestTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ArrayTestInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ArrayOfString' /// @@ -64,6 +62,7 @@ public void ArrayOfStringTest() { // TODO unit test for the property 'ArrayOfString' } + /// /// Test the property 'ArrayArrayOfInteger' /// @@ -72,6 +71,7 @@ public void ArrayArrayOfIntegerTest() { // TODO unit test for the property 'ArrayArrayOfInteger' } + /// /// Test the property 'ArrayArrayOfModel' /// @@ -80,7 +80,5 @@ public void ArrayArrayOfModelTest() { // TODO unit test for the property 'ArrayArrayOfModel' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/BananaReqTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/BananaReqTests.cs index 8a6eeb82eeea..8242ff9e7969 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/BananaReqTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/BananaReqTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void BananaReqInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'LengthCm' /// @@ -64,6 +62,7 @@ public void LengthCmTest() { // TODO unit test for the property 'LengthCm' } + /// /// Test the property 'Sweet' /// @@ -72,7 +71,5 @@ public void SweetTest() { // TODO unit test for the property 'Sweet' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/BananaTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/BananaTests.cs index 8d8cc376b038..ddcea686eee8 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/BananaTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/BananaTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void BananaInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'LengthCm' /// @@ -64,7 +62,5 @@ public void LengthCmTest() { // TODO unit test for the property 'LengthCm' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/BasquePigTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/BasquePigTests.cs index 3cdccaa75959..9cb45c006e64 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/BasquePigTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/BasquePigTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void BasquePigInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ClassName' /// @@ -64,7 +62,5 @@ public void ClassNameTest() { // TODO unit test for the property 'ClassName' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/CapitalizationTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/CapitalizationTests.cs index 185c83666fc7..9e6a400d1ed1 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/CapitalizationTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/CapitalizationTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void CapitalizationInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'SmallCamel' /// @@ -64,6 +62,7 @@ public void SmallCamelTest() { // TODO unit test for the property 'SmallCamel' } + /// /// Test the property 'CapitalCamel' /// @@ -72,6 +71,7 @@ public void CapitalCamelTest() { // TODO unit test for the property 'CapitalCamel' } + /// /// Test the property 'SmallSnake' /// @@ -80,6 +80,7 @@ public void SmallSnakeTest() { // TODO unit test for the property 'SmallSnake' } + /// /// Test the property 'CapitalSnake' /// @@ -88,6 +89,7 @@ public void CapitalSnakeTest() { // TODO unit test for the property 'CapitalSnake' } + /// /// Test the property 'SCAETHFlowPoints' /// @@ -96,6 +98,7 @@ public void SCAETHFlowPointsTest() { // TODO unit test for the property 'SCAETHFlowPoints' } + /// /// Test the property 'ATT_NAME' /// @@ -104,7 +107,5 @@ public void ATT_NAMETest() { // TODO unit test for the property 'ATT_NAME' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/CatTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/CatTests.cs index 701ba7602823..c1b10d32171b 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/CatTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/CatTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void CatInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Declawed' /// @@ -64,7 +62,5 @@ public void DeclawedTest() { // TODO unit test for the property 'Declawed' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/CategoryTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/CategoryTests.cs index 6ce48e601e47..d1ef61862440 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/CategoryTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/CategoryTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void CategoryInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Id' /// @@ -64,6 +62,7 @@ public void IdTest() { // TODO unit test for the property 'Id' } + /// /// Test the property 'Name' /// @@ -72,7 +71,5 @@ public void NameTest() { // TODO unit test for the property 'Name' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ChildCatTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ChildCatTests.cs index 68566fd8d560..b40a42cb0225 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ChildCatTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ChildCatTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ChildCatInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Name' /// @@ -64,6 +62,7 @@ public void NameTest() { // TODO unit test for the property 'Name' } + /// /// Test the property 'PetType' /// @@ -72,7 +71,5 @@ public void PetTypeTest() { // TODO unit test for the property 'PetType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ClassModelTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ClassModelTests.cs index d29472e83aaf..a09b95ab4c9c 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ClassModelTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ClassModelTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ClassModelInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Class' /// @@ -64,7 +62,5 @@ public void ClassTest() { // TODO unit test for the property 'Class' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ComplexQuadrilateralTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ComplexQuadrilateralTests.cs index b3529280c8d6..835c5b87bc6e 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ComplexQuadrilateralTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ComplexQuadrilateralTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ComplexQuadrilateralInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// @@ -64,6 +62,7 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } + /// /// Test the property 'QuadrilateralType' /// @@ -72,7 +71,5 @@ public void QuadrilateralTypeTest() { // TODO unit test for the property 'QuadrilateralType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/DanishPigTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/DanishPigTests.cs index 572d9bffa790..765496ea0ced 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/DanishPigTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/DanishPigTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void DanishPigInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ClassName' /// @@ -64,7 +62,5 @@ public void ClassNameTest() { // TODO unit test for the property 'ClassName' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/DateOnlyClassTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/DateOnlyClassTests.cs index 3bd2b54a366a..67be10782efd 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/DateOnlyClassTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/DateOnlyClassTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void DateOnlyClassInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'DateOnlyProperty' /// @@ -64,7 +62,5 @@ public void DateOnlyPropertyTest() { // TODO unit test for the property 'DateOnlyProperty' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/DeprecatedObjectTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/DeprecatedObjectTests.cs index 1da5f4011c95..be6b35dbf451 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/DeprecatedObjectTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/DeprecatedObjectTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void DeprecatedObjectInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Name' /// @@ -64,7 +62,5 @@ public void NameTest() { // TODO unit test for the property 'Name' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/DogTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/DogTests.cs index 992f93a51fd5..a00de64ef51a 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/DogTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/DogTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void DogInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Breed' /// @@ -64,7 +62,5 @@ public void BreedTest() { // TODO unit test for the property 'Breed' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/DrawingTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/DrawingTests.cs index 0709ad9eeb3b..3b1308e50513 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/DrawingTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/DrawingTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void DrawingInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'MainShape' /// @@ -64,6 +62,7 @@ public void MainShapeTest() { // TODO unit test for the property 'MainShape' } + /// /// Test the property 'ShapeOrNull' /// @@ -72,6 +71,7 @@ public void ShapeOrNullTest() { // TODO unit test for the property 'ShapeOrNull' } + /// /// Test the property 'NullableShape' /// @@ -80,6 +80,7 @@ public void NullableShapeTest() { // TODO unit test for the property 'NullableShape' } + /// /// Test the property 'Shapes' /// @@ -88,7 +89,5 @@ public void ShapesTest() { // TODO unit test for the property 'Shapes' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/EnumArraysTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/EnumArraysTests.cs index 5779ca294775..6fcfa6f448c1 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/EnumArraysTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/EnumArraysTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void EnumArraysInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'JustSymbol' /// @@ -64,6 +62,7 @@ public void JustSymbolTest() { // TODO unit test for the property 'JustSymbol' } + /// /// Test the property 'ArrayEnum' /// @@ -72,7 +71,5 @@ public void ArrayEnumTest() { // TODO unit test for the property 'ArrayEnum' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/EnumClassTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/EnumClassTests.cs index a17738c5cbc5..bb46e292a652 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/EnumClassTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/EnumClassTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,9 +53,5 @@ public void EnumClassInstanceTest() // TODO uncomment below to test "IsType" EnumClass //Assert.IsType(instance); } - - - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/EnumTestTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/EnumTestTests.cs index 4f81b845d493..3050af442410 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/EnumTestTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/EnumTestTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void EnumTestInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'EnumString' /// @@ -64,6 +62,7 @@ public void EnumStringTest() { // TODO unit test for the property 'EnumString' } + /// /// Test the property 'EnumStringRequired' /// @@ -72,6 +71,7 @@ public void EnumStringRequiredTest() { // TODO unit test for the property 'EnumStringRequired' } + /// /// Test the property 'EnumInteger' /// @@ -80,6 +80,7 @@ public void EnumIntegerTest() { // TODO unit test for the property 'EnumInteger' } + /// /// Test the property 'EnumIntegerOnly' /// @@ -88,6 +89,7 @@ public void EnumIntegerOnlyTest() { // TODO unit test for the property 'EnumIntegerOnly' } + /// /// Test the property 'EnumNumber' /// @@ -96,6 +98,7 @@ public void EnumNumberTest() { // TODO unit test for the property 'EnumNumber' } + /// /// Test the property 'OuterEnum' /// @@ -104,6 +107,7 @@ public void OuterEnumTest() { // TODO unit test for the property 'OuterEnum' } + /// /// Test the property 'OuterEnumInteger' /// @@ -112,6 +116,7 @@ public void OuterEnumIntegerTest() { // TODO unit test for the property 'OuterEnumInteger' } + /// /// Test the property 'OuterEnumDefaultValue' /// @@ -120,6 +125,7 @@ public void OuterEnumDefaultValueTest() { // TODO unit test for the property 'OuterEnumDefaultValue' } + /// /// Test the property 'OuterEnumIntegerDefaultValue' /// @@ -128,7 +134,5 @@ public void OuterEnumIntegerDefaultValueTest() { // TODO unit test for the property 'OuterEnumIntegerDefaultValue' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/EquilateralTriangleTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/EquilateralTriangleTests.cs index 4663cb667de6..71d48f7e200a 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/EquilateralTriangleTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/EquilateralTriangleTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void EquilateralTriangleInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// @@ -64,6 +62,7 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } + /// /// Test the property 'TriangleType' /// @@ -72,7 +71,5 @@ public void TriangleTypeTest() { // TODO unit test for the property 'TriangleType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/FileSchemaTestClassTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/FileSchemaTestClassTests.cs index 9f45b4fe89d5..d89ad5a5bc7b 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/FileSchemaTestClassTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/FileSchemaTestClassTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void FileSchemaTestClassInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'File' /// @@ -64,6 +62,7 @@ public void FileTest() { // TODO unit test for the property 'File' } + /// /// Test the property 'Files' /// @@ -72,7 +71,5 @@ public void FilesTest() { // TODO unit test for the property 'Files' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/FileTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/FileTests.cs index 761bb72a844f..7eaea9c8786f 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/FileTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/FileTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void FileInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'SourceURI' /// @@ -64,7 +62,5 @@ public void SourceURITest() { // TODO unit test for the property 'SourceURI' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/FooGetDefaultResponseTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/FooGetDefaultResponseTests.cs index 0154d528418e..563269643111 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/FooGetDefaultResponseTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/FooGetDefaultResponseTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void FooGetDefaultResponseInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'String' /// @@ -64,7 +62,5 @@ public void StringTest() { // TODO unit test for the property 'String' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/FooTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/FooTests.cs index 0b6ed52edbd4..52f87dd5b0e0 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/FooTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/FooTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void FooInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Bar' /// @@ -64,7 +62,5 @@ public void BarTest() { // TODO unit test for the property 'Bar' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/FormatTestTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/FormatTestTests.cs index 97332800e9af..fbe8039a5a30 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/FormatTestTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/FormatTestTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void FormatTestInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Integer' /// @@ -64,6 +62,7 @@ public void IntegerTest() { // TODO unit test for the property 'Integer' } + /// /// Test the property 'Int32' /// @@ -72,6 +71,16 @@ public void Int32Test() { // TODO unit test for the property 'Int32' } + + /// + /// Test the property 'UnsignedInteger' + /// + [Fact] + public void UnsignedIntegerTest() + { + // TODO unit test for the property 'UnsignedInteger' + } + /// /// Test the property 'Int64' /// @@ -80,6 +89,16 @@ public void Int64Test() { // TODO unit test for the property 'Int64' } + + /// + /// Test the property 'UnsignedLong' + /// + [Fact] + public void UnsignedLongTest() + { + // TODO unit test for the property 'UnsignedLong' + } + /// /// Test the property 'Number' /// @@ -88,6 +107,7 @@ public void NumberTest() { // TODO unit test for the property 'Number' } + /// /// Test the property 'Float' /// @@ -96,6 +116,7 @@ public void FloatTest() { // TODO unit test for the property 'Float' } + /// /// Test the property 'Double' /// @@ -104,6 +125,7 @@ public void DoubleTest() { // TODO unit test for the property 'Double' } + /// /// Test the property 'Decimal' /// @@ -112,6 +134,7 @@ public void DecimalTest() { // TODO unit test for the property 'Decimal' } + /// /// Test the property 'String' /// @@ -120,6 +143,7 @@ public void StringTest() { // TODO unit test for the property 'String' } + /// /// Test the property 'Byte' /// @@ -128,6 +152,7 @@ public void ByteTest() { // TODO unit test for the property 'Byte' } + /// /// Test the property 'Binary' /// @@ -136,6 +161,7 @@ public void BinaryTest() { // TODO unit test for the property 'Binary' } + /// /// Test the property 'Date' /// @@ -144,6 +170,7 @@ public void DateTest() { // TODO unit test for the property 'Date' } + /// /// Test the property 'DateTime' /// @@ -152,6 +179,7 @@ public void DateTimeTest() { // TODO unit test for the property 'DateTime' } + /// /// Test the property 'Uuid' /// @@ -160,6 +188,7 @@ public void UuidTest() { // TODO unit test for the property 'Uuid' } + /// /// Test the property 'Password' /// @@ -168,6 +197,7 @@ public void PasswordTest() { // TODO unit test for the property 'Password' } + /// /// Test the property 'PatternWithDigits' /// @@ -176,6 +206,7 @@ public void PatternWithDigitsTest() { // TODO unit test for the property 'PatternWithDigits' } + /// /// Test the property 'PatternWithDigitsAndDelimiter' /// @@ -185,6 +216,13 @@ public void PatternWithDigitsAndDelimiterTest() // TODO unit test for the property 'PatternWithDigitsAndDelimiter' } + /// + /// Test the property 'PatternWithBackslash' + /// + [Fact] + public void PatternWithBackslashTest() + { + // TODO unit test for the property 'PatternWithBackslash' + } } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/FruitReqTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/FruitReqTests.cs index 5ea9e3ffc1d5..771ef1ae2c5d 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/FruitReqTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/FruitReqTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void FruitReqInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Cultivar' /// @@ -64,6 +62,7 @@ public void CultivarTest() { // TODO unit test for the property 'Cultivar' } + /// /// Test the property 'Mealy' /// @@ -72,6 +71,7 @@ public void MealyTest() { // TODO unit test for the property 'Mealy' } + /// /// Test the property 'LengthCm' /// @@ -80,6 +80,7 @@ public void LengthCmTest() { // TODO unit test for the property 'LengthCm' } + /// /// Test the property 'Sweet' /// @@ -88,7 +89,5 @@ public void SweetTest() { // TODO unit test for the property 'Sweet' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/FruitTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/FruitTests.cs index 91e069bb42fa..53881a333193 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/FruitTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/FruitTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void FruitInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Color' /// @@ -64,6 +62,7 @@ public void ColorTest() { // TODO unit test for the property 'Color' } + /// /// Test the property 'Cultivar' /// @@ -72,6 +71,7 @@ public void CultivarTest() { // TODO unit test for the property 'Cultivar' } + /// /// Test the property 'Origin' /// @@ -80,6 +80,16 @@ public void OriginTest() { // TODO unit test for the property 'Origin' } + + /// + /// Test the property 'ColorCode' + /// + [Fact] + public void ColorCodeTest() + { + // TODO unit test for the property 'ColorCode' + } + /// /// Test the property 'LengthCm' /// @@ -88,7 +98,5 @@ public void LengthCmTest() { // TODO unit test for the property 'LengthCm' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/GmFruitTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/GmFruitTests.cs index 08fb0e07a1c8..6322d4e2a721 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/GmFruitTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/GmFruitTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void GmFruitInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Color' /// @@ -64,6 +62,7 @@ public void ColorTest() { // TODO unit test for the property 'Color' } + /// /// Test the property 'Cultivar' /// @@ -72,6 +71,7 @@ public void CultivarTest() { // TODO unit test for the property 'Cultivar' } + /// /// Test the property 'Origin' /// @@ -80,6 +80,16 @@ public void OriginTest() { // TODO unit test for the property 'Origin' } + + /// + /// Test the property 'ColorCode' + /// + [Fact] + public void ColorCodeTest() + { + // TODO unit test for the property 'ColorCode' + } + /// /// Test the property 'LengthCm' /// @@ -88,7 +98,5 @@ public void LengthCmTest() { // TODO unit test for the property 'LengthCm' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/GrandparentAnimalTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/GrandparentAnimalTests.cs index faa4930944be..3adc2a0573e7 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/GrandparentAnimalTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/GrandparentAnimalTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -64,6 +63,7 @@ public void ChildCatDeserializeFromParentPetTest() // TODO uncomment below to test deserialize a ChildCat from type ParentPet //Assert.IsType(JsonConvert.DeserializeObject(new ChildCat().ToJson())); } + /// /// Test deserialize a ParentPet from type GrandparentAnimal /// @@ -82,7 +82,5 @@ public void PetTypeTest() { // TODO unit test for the property 'PetType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/HasOnlyReadOnlyTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/HasOnlyReadOnlyTests.cs index 651a9f0ce30c..69abe3f9e6ad 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/HasOnlyReadOnlyTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/HasOnlyReadOnlyTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void HasOnlyReadOnlyInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Bar' /// @@ -64,6 +62,7 @@ public void BarTest() { // TODO unit test for the property 'Bar' } + /// /// Test the property 'Foo' /// @@ -72,7 +71,5 @@ public void FooTest() { // TODO unit test for the property 'Foo' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/HealthCheckResultTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/HealthCheckResultTests.cs index 857190a3334d..794fda2c2d6d 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/HealthCheckResultTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/HealthCheckResultTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void HealthCheckResultInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'NullableMessage' /// @@ -64,7 +62,5 @@ public void NullableMessageTest() { // TODO unit test for the property 'NullableMessage' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/IsoscelesTriangleTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/IsoscelesTriangleTests.cs index 755c417cc54f..ca8a058e37df 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/IsoscelesTriangleTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/IsoscelesTriangleTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void IsoscelesTriangleInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// @@ -64,6 +62,7 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } + /// /// Test the property 'TriangleType' /// @@ -72,7 +71,5 @@ public void TriangleTypeTest() { // TODO unit test for the property 'TriangleType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ListTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ListTests.cs index 2ed828d05208..d659080e89c9 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ListTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ListTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,16 +54,13 @@ public void ListInstanceTest() //Assert.IsType(instance); } - /// - /// Test the property '_123List' + /// Test the property 'Var123List' /// [Fact] - public void _123ListTest() + public void Var123ListTest() { - // TODO unit test for the property '_123List' + // TODO unit test for the property 'Var123List' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/LiteralStringClassTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/LiteralStringClassTests.cs index 74dc17b9f4a1..58dc425228ff 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/LiteralStringClassTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/LiteralStringClassTests.cs @@ -54,7 +54,6 @@ public void LiteralStringClassInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'EscapedLiteralString' /// @@ -63,6 +62,7 @@ public void EscapedLiteralStringTest() { // TODO unit test for the property 'EscapedLiteralString' } + /// /// Test the property 'UnescapedLiteralString' /// @@ -71,7 +71,5 @@ public void UnescapedLiteralStringTest() { // TODO unit test for the property 'UnescapedLiteralString' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/MammalTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/MammalTests.cs index 7b46cbf06450..3fdadd19646c 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/MammalTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/MammalTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void MammalInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'HasBaleen' /// @@ -64,6 +62,7 @@ public void HasBaleenTest() { // TODO unit test for the property 'HasBaleen' } + /// /// Test the property 'HasTeeth' /// @@ -72,6 +71,7 @@ public void HasTeethTest() { // TODO unit test for the property 'HasTeeth' } + /// /// Test the property 'ClassName' /// @@ -80,6 +80,7 @@ public void ClassNameTest() { // TODO unit test for the property 'ClassName' } + /// /// Test the property 'Type' /// @@ -88,7 +89,5 @@ public void TypeTest() { // TODO unit test for the property 'Type' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/MapTestTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/MapTestTests.cs index 20036e1c905e..e055027f15bf 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/MapTestTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/MapTestTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void MapTestInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'MapMapOfString' /// @@ -64,6 +62,7 @@ public void MapMapOfStringTest() { // TODO unit test for the property 'MapMapOfString' } + /// /// Test the property 'MapOfEnumString' /// @@ -72,6 +71,7 @@ public void MapOfEnumStringTest() { // TODO unit test for the property 'MapOfEnumString' } + /// /// Test the property 'DirectMap' /// @@ -80,6 +80,7 @@ public void DirectMapTest() { // TODO unit test for the property 'DirectMap' } + /// /// Test the property 'IndirectMap' /// @@ -88,7 +89,5 @@ public void IndirectMapTest() { // TODO unit test for the property 'IndirectMap' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/MixedPropertiesAndAdditionalPropertiesClassTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/MixedPropertiesAndAdditionalPropertiesClassTests.cs index f56cd715f45f..07c592a8a4c0 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/MixedPropertiesAndAdditionalPropertiesClassTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/MixedPropertiesAndAdditionalPropertiesClassTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,6 +54,14 @@ public void MixedPropertiesAndAdditionalPropertiesClassInstanceTest() //Assert.IsType(instance); } + /// + /// Test the property 'UuidWithPattern' + /// + [Fact] + public void UuidWithPatternTest() + { + // TODO unit test for the property 'UuidWithPattern' + } /// /// Test the property 'Uuid' @@ -64,6 +71,7 @@ public void UuidTest() { // TODO unit test for the property 'Uuid' } + /// /// Test the property 'DateTime' /// @@ -72,6 +80,7 @@ public void DateTimeTest() { // TODO unit test for the property 'DateTime' } + /// /// Test the property 'Map' /// @@ -80,7 +89,5 @@ public void MapTest() { // TODO unit test for the property 'Map' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/Model200ResponseTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/Model200ResponseTests.cs index e25478618f20..85be687d5c2b 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/Model200ResponseTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/Model200ResponseTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void Model200ResponseInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Name' /// @@ -64,6 +62,7 @@ public void NameTest() { // TODO unit test for the property 'Name' } + /// /// Test the property 'Class' /// @@ -72,7 +71,5 @@ public void ClassTest() { // TODO unit test for the property 'Class' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ModelClientTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ModelClientTests.cs index 24a9e2631586..a5f4aa1593e1 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ModelClientTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ModelClientTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,16 +54,13 @@ public void ModelClientInstanceTest() //Assert.IsType(instance); } - /// - /// Test the property '_Client' + /// Test the property 'VarClient' /// [Fact] - public void _ClientTest() + public void VarClientTest() { - // TODO unit test for the property '_Client' + // TODO unit test for the property 'VarClient' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/NameTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/NameTests.cs index c390049e66dc..fc1756b66bec 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/NameTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/NameTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,15 +54,15 @@ public void NameInstanceTest() //Assert.IsType(instance); } - /// - /// Test the property '_Name' + /// Test the property 'VarName' /// [Fact] - public void _NameTest() + public void VarNameTest() { - // TODO unit test for the property '_Name' + // TODO unit test for the property 'VarName' } + /// /// Test the property 'SnakeCase' /// @@ -72,6 +71,7 @@ public void SnakeCaseTest() { // TODO unit test for the property 'SnakeCase' } + /// /// Test the property 'Property' /// @@ -80,15 +80,14 @@ public void PropertyTest() { // TODO unit test for the property 'Property' } + /// - /// Test the property '_123Number' + /// Test the property 'Var123Number' /// [Fact] - public void _123NumberTest() + public void Var123NumberTest() { - // TODO unit test for the property '_123Number' + // TODO unit test for the property 'Var123Number' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/NullableClassTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/NullableClassTests.cs index 8f00505612a9..214795f86c27 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/NullableClassTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/NullableClassTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void NullableClassInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'IntegerProp' /// @@ -64,6 +62,7 @@ public void IntegerPropTest() { // TODO unit test for the property 'IntegerProp' } + /// /// Test the property 'NumberProp' /// @@ -72,6 +71,7 @@ public void NumberPropTest() { // TODO unit test for the property 'NumberProp' } + /// /// Test the property 'BooleanProp' /// @@ -80,6 +80,7 @@ public void BooleanPropTest() { // TODO unit test for the property 'BooleanProp' } + /// /// Test the property 'StringProp' /// @@ -88,6 +89,7 @@ public void StringPropTest() { // TODO unit test for the property 'StringProp' } + /// /// Test the property 'DateProp' /// @@ -96,6 +98,7 @@ public void DatePropTest() { // TODO unit test for the property 'DateProp' } + /// /// Test the property 'DatetimeProp' /// @@ -104,6 +107,7 @@ public void DatetimePropTest() { // TODO unit test for the property 'DatetimeProp' } + /// /// Test the property 'ArrayNullableProp' /// @@ -112,6 +116,7 @@ public void ArrayNullablePropTest() { // TODO unit test for the property 'ArrayNullableProp' } + /// /// Test the property 'ArrayAndItemsNullableProp' /// @@ -120,6 +125,7 @@ public void ArrayAndItemsNullablePropTest() { // TODO unit test for the property 'ArrayAndItemsNullableProp' } + /// /// Test the property 'ArrayItemsNullable' /// @@ -128,6 +134,7 @@ public void ArrayItemsNullableTest() { // TODO unit test for the property 'ArrayItemsNullable' } + /// /// Test the property 'ObjectNullableProp' /// @@ -136,6 +143,7 @@ public void ObjectNullablePropTest() { // TODO unit test for the property 'ObjectNullableProp' } + /// /// Test the property 'ObjectAndItemsNullableProp' /// @@ -144,6 +152,7 @@ public void ObjectAndItemsNullablePropTest() { // TODO unit test for the property 'ObjectAndItemsNullableProp' } + /// /// Test the property 'ObjectItemsNullable' /// @@ -152,7 +161,5 @@ public void ObjectItemsNullableTest() { // TODO unit test for the property 'ObjectItemsNullable' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/NullableGuidClassTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/NullableGuidClassTests.cs index 0bc0ea369188..1290072514cd 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/NullableGuidClassTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/NullableGuidClassTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void NullableGuidClassInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Uuid' /// @@ -64,7 +62,5 @@ public void UuidTest() { // TODO unit test for the property 'Uuid' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/NullableShapeTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/NullableShapeTests.cs index 5662f91d6e64..75e9c7e8fd49 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/NullableShapeTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/NullableShapeTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void NullableShapeInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// @@ -64,6 +62,7 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } + /// /// Test the property 'QuadrilateralType' /// @@ -72,7 +71,5 @@ public void QuadrilateralTypeTest() { // TODO unit test for the property 'QuadrilateralType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/NumberOnlyTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/NumberOnlyTests.cs index 3a06cb020b2a..2fb06f9afb48 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/NumberOnlyTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/NumberOnlyTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void NumberOnlyInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'JustNumber' /// @@ -64,7 +62,5 @@ public void JustNumberTest() { // TODO unit test for the property 'JustNumber' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ObjectWithDeprecatedFieldsTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ObjectWithDeprecatedFieldsTests.cs index 82f93fab48c5..e90b746d19c6 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ObjectWithDeprecatedFieldsTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ObjectWithDeprecatedFieldsTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ObjectWithDeprecatedFieldsInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Uuid' /// @@ -64,6 +62,7 @@ public void UuidTest() { // TODO unit test for the property 'Uuid' } + /// /// Test the property 'Id' /// @@ -72,6 +71,7 @@ public void IdTest() { // TODO unit test for the property 'Id' } + /// /// Test the property 'DeprecatedRef' /// @@ -80,6 +80,7 @@ public void DeprecatedRefTest() { // TODO unit test for the property 'DeprecatedRef' } + /// /// Test the property 'Bars' /// @@ -88,7 +89,5 @@ public void BarsTest() { // TODO unit test for the property 'Bars' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/OneOfStringTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/OneOfStringTests.cs index 75bd7cd9bfd0..04727e77c691 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/OneOfStringTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/OneOfStringTests.cs @@ -53,9 +53,5 @@ public void OneOfStringInstanceTest() // TODO uncomment below to test "IsType" OneOfString //Assert.IsType(instance); } - - - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/OrderTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/OrderTests.cs index cf5c561c5476..84d2828b367f 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/OrderTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/OrderTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void OrderInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Id' /// @@ -64,6 +62,7 @@ public void IdTest() { // TODO unit test for the property 'Id' } + /// /// Test the property 'PetId' /// @@ -72,6 +71,7 @@ public void PetIdTest() { // TODO unit test for the property 'PetId' } + /// /// Test the property 'Quantity' /// @@ -80,6 +80,7 @@ public void QuantityTest() { // TODO unit test for the property 'Quantity' } + /// /// Test the property 'ShipDate' /// @@ -88,6 +89,7 @@ public void ShipDateTest() { // TODO unit test for the property 'ShipDate' } + /// /// Test the property 'Status' /// @@ -96,6 +98,7 @@ public void StatusTest() { // TODO unit test for the property 'Status' } + /// /// Test the property 'Complete' /// @@ -104,7 +107,5 @@ public void CompleteTest() { // TODO unit test for the property 'Complete' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/OuterCompositeTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/OuterCompositeTests.cs index 2efda0db59c4..fd52fa2cfca7 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/OuterCompositeTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/OuterCompositeTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void OuterCompositeInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'MyNumber' /// @@ -64,6 +62,7 @@ public void MyNumberTest() { // TODO unit test for the property 'MyNumber' } + /// /// Test the property 'MyString' /// @@ -72,6 +71,7 @@ public void MyStringTest() { // TODO unit test for the property 'MyString' } + /// /// Test the property 'MyBoolean' /// @@ -80,7 +80,5 @@ public void MyBooleanTest() { // TODO unit test for the property 'MyBoolean' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumDefaultValueTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumDefaultValueTests.cs index 986fff774c46..db98c5a44ae3 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumDefaultValueTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumDefaultValueTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,9 +53,5 @@ public void OuterEnumDefaultValueInstanceTest() // TODO uncomment below to test "IsType" OuterEnumDefaultValue //Assert.IsType(instance); } - - - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerDefaultValueTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerDefaultValueTests.cs index 015d5dab945e..a4c028ea750d 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerDefaultValueTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerDefaultValueTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,9 +53,5 @@ public void OuterEnumIntegerDefaultValueInstanceTest() // TODO uncomment below to test "IsType" OuterEnumIntegerDefaultValue //Assert.IsType(instance); } - - - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerTests.cs index 385e899110a4..4d1be408011e 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,9 +53,5 @@ public void OuterEnumIntegerInstanceTest() // TODO uncomment below to test "IsType" OuterEnumInteger //Assert.IsType(instance); } - - - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumTests.cs index f47304767b9e..d4d6e96125d9 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,9 +53,5 @@ public void OuterEnumInstanceTest() // TODO uncomment below to test "IsType" OuterEnum //Assert.IsType(instance); } - - - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ParentPetTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ParentPetTests.cs index 1e17568ed331..eb9f5956b215 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ParentPetTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ParentPetTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -64,8 +63,5 @@ public void ChildCatDeserializeFromParentPetTest() // TODO uncomment below to test deserialize a ChildCat from type ParentPet //Assert.IsType(JsonConvert.DeserializeObject(new ChildCat().ToJson())); } - - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/PetTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/PetTests.cs index 154e66f8dfc0..535ab69d2aa2 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/PetTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/PetTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void PetInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Id' /// @@ -64,6 +62,7 @@ public void IdTest() { // TODO unit test for the property 'Id' } + /// /// Test the property 'Category' /// @@ -72,6 +71,7 @@ public void CategoryTest() { // TODO unit test for the property 'Category' } + /// /// Test the property 'Name' /// @@ -80,6 +80,7 @@ public void NameTest() { // TODO unit test for the property 'Name' } + /// /// Test the property 'PhotoUrls' /// @@ -88,6 +89,7 @@ public void PhotoUrlsTest() { // TODO unit test for the property 'PhotoUrls' } + /// /// Test the property 'Tags' /// @@ -96,6 +98,7 @@ public void TagsTest() { // TODO unit test for the property 'Tags' } + /// /// Test the property 'Status' /// @@ -104,7 +107,5 @@ public void StatusTest() { // TODO unit test for the property 'Status' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/PigTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/PigTests.cs index 55cf2189046b..34562dc6860f 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/PigTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/PigTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void PigInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ClassName' /// @@ -64,7 +62,5 @@ public void ClassNameTest() { // TODO unit test for the property 'ClassName' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/PolymorphicPropertyTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/PolymorphicPropertyTests.cs index eff3c6ddc9bb..a546cd2b0032 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/PolymorphicPropertyTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/PolymorphicPropertyTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,9 +53,5 @@ public void PolymorphicPropertyInstanceTest() // TODO uncomment below to test "IsType" PolymorphicProperty //Assert.IsType(instance); } - - - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/QuadrilateralInterfaceTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/QuadrilateralInterfaceTests.cs index 6eef9f4c816d..d08798b36050 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/QuadrilateralInterfaceTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/QuadrilateralInterfaceTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void QuadrilateralInterfaceInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'QuadrilateralType' /// @@ -64,7 +62,5 @@ public void QuadrilateralTypeTest() { // TODO unit test for the property 'QuadrilateralType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/QuadrilateralTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/QuadrilateralTests.cs index 26826681a478..cd996d7e0edf 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/QuadrilateralTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/QuadrilateralTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void QuadrilateralInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// @@ -64,6 +62,7 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } + /// /// Test the property 'QuadrilateralType' /// @@ -72,7 +71,5 @@ public void QuadrilateralTypeTest() { // TODO unit test for the property 'QuadrilateralType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ReadOnlyFirstTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ReadOnlyFirstTests.cs index dc3d0fad54cd..056bc2b4519c 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ReadOnlyFirstTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ReadOnlyFirstTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ReadOnlyFirstInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Bar' /// @@ -64,6 +62,7 @@ public void BarTest() { // TODO unit test for the property 'Bar' } + /// /// Test the property 'Baz' /// @@ -72,7 +71,5 @@ public void BazTest() { // TODO unit test for the property 'Baz' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ReturnTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ReturnTests.cs index c8c1d6510d2f..4779edd80792 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ReturnTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ReturnTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,16 +54,13 @@ public void ReturnInstanceTest() //Assert.IsType(instance); } - /// - /// Test the property '_Return' + /// Test the property 'VarReturn' /// [Fact] - public void _ReturnTest() + public void VarReturnTest() { - // TODO unit test for the property '_Return' + // TODO unit test for the property 'VarReturn' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ScaleneTriangleTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ScaleneTriangleTests.cs index 04cb9f1ab6b1..a7332ab47b03 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ScaleneTriangleTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ScaleneTriangleTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ScaleneTriangleInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// @@ -64,6 +62,7 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } + /// /// Test the property 'TriangleType' /// @@ -72,7 +71,5 @@ public void TriangleTypeTest() { // TODO unit test for the property 'TriangleType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ShapeInterfaceTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ShapeInterfaceTests.cs index 7bd0bc86f963..e082fb3b4faa 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ShapeInterfaceTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ShapeInterfaceTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ShapeInterfaceInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// @@ -64,7 +62,5 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ShapeOrNullTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ShapeOrNullTests.cs index d0af114157c9..b70c157800b5 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ShapeOrNullTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ShapeOrNullTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ShapeOrNullInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// @@ -64,6 +62,7 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } + /// /// Test the property 'QuadrilateralType' /// @@ -72,7 +71,5 @@ public void QuadrilateralTypeTest() { // TODO unit test for the property 'QuadrilateralType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ShapeTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ShapeTests.cs index b01bd531f857..babd94722cfb 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ShapeTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ShapeTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ShapeInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// @@ -64,6 +62,7 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } + /// /// Test the property 'QuadrilateralType' /// @@ -72,7 +71,5 @@ public void QuadrilateralTypeTest() { // TODO unit test for the property 'QuadrilateralType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/SimpleQuadrilateralTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/SimpleQuadrilateralTests.cs index 6648e9809281..24f0288bcac4 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/SimpleQuadrilateralTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/SimpleQuadrilateralTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void SimpleQuadrilateralInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// @@ -64,6 +62,7 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } + /// /// Test the property 'QuadrilateralType' /// @@ -72,7 +71,5 @@ public void QuadrilateralTypeTest() { // TODO unit test for the property 'QuadrilateralType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/SpecialModelNameTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/SpecialModelNameTests.cs index 0f0e1ff12a9e..ef8a8d50e3ee 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/SpecialModelNameTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/SpecialModelNameTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void SpecialModelNameInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'SpecialPropertyName' /// @@ -64,15 +62,14 @@ public void SpecialPropertyNameTest() { // TODO unit test for the property 'SpecialPropertyName' } + /// - /// Test the property '_SpecialModelName' + /// Test the property 'VarSpecialModelName' /// [Fact] - public void _SpecialModelNameTest() + public void VarSpecialModelNameTest() { - // TODO unit test for the property '_SpecialModelName' + // TODO unit test for the property 'VarSpecialModelName' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/TagTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/TagTests.cs index 6d56232d0a76..8f9ad604eab9 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/TagTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/TagTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void TagInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Id' /// @@ -64,6 +62,7 @@ public void IdTest() { // TODO unit test for the property 'Id' } + /// /// Test the property 'Name' /// @@ -72,7 +71,5 @@ public void NameTest() { // TODO unit test for the property 'Name' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/TestCollectionEndingWithWordListObjectTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/TestCollectionEndingWithWordListObjectTests.cs index 4def0dcda9cc..6623a04fcc40 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/TestCollectionEndingWithWordListObjectTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/TestCollectionEndingWithWordListObjectTests.cs @@ -54,7 +54,6 @@ public void TestCollectionEndingWithWordListObjectInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'TestCollectionEndingWithWordList' /// @@ -63,7 +62,5 @@ public void TestCollectionEndingWithWordListTest() { // TODO unit test for the property 'TestCollectionEndingWithWordList' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/TestCollectionEndingWithWordListTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/TestCollectionEndingWithWordListTests.cs index e9df66daf2e5..a32943a0c841 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/TestCollectionEndingWithWordListTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/TestCollectionEndingWithWordListTests.cs @@ -54,7 +54,6 @@ public void TestCollectionEndingWithWordListInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Value' /// @@ -63,7 +62,5 @@ public void ValueTest() { // TODO unit test for the property 'Value' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/TriangleInterfaceTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/TriangleInterfaceTests.cs index fba65470bee6..1750c64c4eda 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/TriangleInterfaceTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/TriangleInterfaceTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void TriangleInterfaceInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'TriangleType' /// @@ -64,7 +62,5 @@ public void TriangleTypeTest() { // TODO unit test for the property 'TriangleType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/TriangleTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/TriangleTests.cs index bdaab0b47965..0dd209f5303a 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/TriangleTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/TriangleTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void TriangleInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// @@ -64,6 +62,7 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } + /// /// Test the property 'TriangleType' /// @@ -72,7 +71,5 @@ public void TriangleTypeTest() { // TODO unit test for the property 'TriangleType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/UserTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/UserTests.cs index a7b095e4c28e..bc3cb3775de1 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/UserTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/UserTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void UserInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Id' /// @@ -64,6 +62,7 @@ public void IdTest() { // TODO unit test for the property 'Id' } + /// /// Test the property 'Username' /// @@ -72,6 +71,7 @@ public void UsernameTest() { // TODO unit test for the property 'Username' } + /// /// Test the property 'FirstName' /// @@ -80,6 +80,7 @@ public void FirstNameTest() { // TODO unit test for the property 'FirstName' } + /// /// Test the property 'LastName' /// @@ -88,6 +89,7 @@ public void LastNameTest() { // TODO unit test for the property 'LastName' } + /// /// Test the property 'Email' /// @@ -96,6 +98,7 @@ public void EmailTest() { // TODO unit test for the property 'Email' } + /// /// Test the property 'Password' /// @@ -104,6 +107,7 @@ public void PasswordTest() { // TODO unit test for the property 'Password' } + /// /// Test the property 'Phone' /// @@ -112,6 +116,7 @@ public void PhoneTest() { // TODO unit test for the property 'Phone' } + /// /// Test the property 'UserStatus' /// @@ -120,6 +125,7 @@ public void UserStatusTest() { // TODO unit test for the property 'UserStatus' } + /// /// Test the property 'ObjectWithNoDeclaredProps' /// @@ -128,6 +134,7 @@ public void ObjectWithNoDeclaredPropsTest() { // TODO unit test for the property 'ObjectWithNoDeclaredProps' } + /// /// Test the property 'ObjectWithNoDeclaredPropsNullable' /// @@ -136,6 +143,7 @@ public void ObjectWithNoDeclaredPropsNullableTest() { // TODO unit test for the property 'ObjectWithNoDeclaredPropsNullable' } + /// /// Test the property 'AnyTypeProp' /// @@ -144,6 +152,7 @@ public void AnyTypePropTest() { // TODO unit test for the property 'AnyTypeProp' } + /// /// Test the property 'AnyTypePropNullable' /// @@ -152,7 +161,5 @@ public void AnyTypePropNullableTest() { // TODO unit test for the property 'AnyTypePropNullable' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/WhaleTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/WhaleTests.cs index 09610791943c..de86c02372cd 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/WhaleTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/WhaleTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void WhaleInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'HasBaleen' /// @@ -64,6 +62,7 @@ public void HasBaleenTest() { // TODO unit test for the property 'HasBaleen' } + /// /// Test the property 'HasTeeth' /// @@ -72,6 +71,7 @@ public void HasTeethTest() { // TODO unit test for the property 'HasTeeth' } + /// /// Test the property 'ClassName' /// @@ -80,7 +80,5 @@ public void ClassNameTest() { // TODO unit test for the property 'ClassName' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ZebraTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ZebraTests.cs index f44e92131400..55e70c43e0a0 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ZebraTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ZebraTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ZebraInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Type' /// @@ -64,6 +62,7 @@ public void TypeTest() { // TODO unit test for the property 'Type' } + /// /// Test the property 'ClassName' /// @@ -72,7 +71,5 @@ public void ClassNameTest() { // TODO unit test for the property 'ClassName' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ZeroBasedEnumClassTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ZeroBasedEnumClassTests.cs index f713baf3235e..d828b6d03a7b 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ZeroBasedEnumClassTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ZeroBasedEnumClassTests.cs @@ -54,7 +54,6 @@ public void ZeroBasedEnumClassInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ZeroBasedEnum' /// @@ -63,7 +62,5 @@ public void ZeroBasedEnumTest() { // TODO unit test for the property 'ZeroBasedEnum' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ZeroBasedEnumTests.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ZeroBasedEnumTests.cs index 412297e39f71..38260add43e8 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ZeroBasedEnumTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools.Test/Model/ZeroBasedEnumTests.cs @@ -53,9 +53,5 @@ public void ZeroBasedEnumInstanceTest() // TODO uncomment below to test "IsType" ZeroBasedEnum //Assert.IsType(instance); } - - - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs index 5d048a005bdc..f870aa706425 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs @@ -64,5 +64,49 @@ public void FooGetTest() //var response = instance.FooGet(); //Assert.IsType(response); } + + /// + /// Test GetCountry + /// + [Fact] + public void GetCountryTest() + { + // TODO uncomment below to test the method and replace null with proper value + //string country = null; + //instance.GetCountry(country); + } + + /// + /// Test Hello + /// + [Fact] + public void HelloTest() + { + // TODO uncomment below to test the method and replace null with proper value + //var response = instance.Hello(); + //Assert.IsType>(response); + } + + /// + /// Test RolesReportGet + /// + [Fact] + public void RolesReportGetTest() + { + // TODO uncomment below to test the method and replace null with proper value + //var response = instance.RolesReportGet(); + //Assert.IsType>>(response); + } + + /// + /// Test Test + /// + [Fact] + public void TestTest() + { + // TODO uncomment below to test the method and replace null with proper value + //var response = instance.Test(); + //Assert.IsType(response); + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Api/FakeApiTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Api/FakeApiTests.cs index 994cd46d38ae..20dfede3f9b1 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Api/FakeApiTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Api/FakeApiTests.cs @@ -108,8 +108,9 @@ public void FakeOuterNumberSerializeTest() public void FakeOuterStringSerializeTest() { // TODO uncomment below to test the method and replace null with proper value + //Guid requiredStringUuid = null; //string body = null; - //var response = instance.FakeOuterStringSerialize(body); + //var response = instance.FakeOuterStringSerialize(requiredStringUuid, body); //Assert.IsType(response); } @@ -124,6 +125,39 @@ public void GetArrayOfEnumsTest() //Assert.IsType>(response); } + /// + /// Test GetMixedAnyOf + /// + [Fact] + public void GetMixedAnyOfTest() + { + // TODO uncomment below to test the method and replace null with proper value + //var response = instance.GetMixedAnyOf(); + //Assert.IsType(response); + } + + /// + /// Test GetMixedOneOf + /// + [Fact] + public void GetMixedOneOfTest() + { + // TODO uncomment below to test the method and replace null with proper value + //var response = instance.GetMixedOneOf(); + //Assert.IsType(response); + } + + /// + /// Test TestAdditionalPropertiesReference + /// + [Fact] + public void TestAdditionalPropertiesReferenceTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Dictionary requestBody = null; + //instance.TestAdditionalPropertiesReference(requestBody); + } + /// /// Test TestBodyWithFileSchema /// @@ -167,20 +201,20 @@ public void TestEndpointParametersTest() { // TODO uncomment below to test the method and replace null with proper value //decimal number = null; - //double _double = null; + //double varDouble = null; //string patternWithoutDelimiter = null; - //byte[] _byte = null; + //byte[] varByte = null; //int? integer = null; //int? int32 = null; //long? int64 = null; - //float? _float = null; - //string _string = null; + //float? varFloat = null; + //string varString = null; //System.IO.Stream binary = null; //DateTime? date = null; //DateTime? dateTime = null; //string password = null; //string callback = null; - //instance.TestEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback); + //instance.TestEndpointParameters(number, varDouble, patternWithoutDelimiter, varByte, integer, int32, int64, varFloat, varString, binary, date, dateTime, password, callback); } /// @@ -228,6 +262,17 @@ public void TestInlineAdditionalPropertiesTest() //instance.TestInlineAdditionalProperties(requestBody); } + /// + /// Test TestInlineFreeformAdditionalProperties + /// + [Fact] + public void TestInlineFreeformAdditionalPropertiesTest() + { + // TODO uncomment below to test the method and replace null with proper value + //TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest = null; + //instance.TestInlineFreeformAdditionalProperties(testInlineFreeformAdditionalPropertiesRequest); + } + /// /// Test TestJsonFormData /// @@ -252,7 +297,22 @@ public void TestQueryParameterCollectionFormatTest() //List http = null; //List url = null; //List context = null; - //instance.TestQueryParameterCollectionFormat(pipe, ioutil, http, url, context); + //string requiredNotNullable = null; + //string requiredNullable = null; + //string notRequiredNotNullable = null; + //string notRequiredNullable = null; + //instance.TestQueryParameterCollectionFormat(pipe, ioutil, http, url, context, requiredNotNullable, requiredNullable, notRequiredNotNullable, notRequiredNullable); + } + + /// + /// Test TestStringMapReference + /// + [Fact] + public void TestStringMapReferenceTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Dictionary requestBody = null; + //instance.TestStringMapReference(requestBody); } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ActivityOutputElementRepresentationTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ActivityOutputElementRepresentationTests.cs index f211a64884af..b4bb73592031 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ActivityOutputElementRepresentationTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ActivityOutputElementRepresentationTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ActivityOutputElementRepresentationInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Prop1' /// @@ -64,6 +62,7 @@ public void Prop1Test() { // TODO unit test for the property 'Prop1' } + /// /// Test the property 'Prop2' /// @@ -72,7 +71,5 @@ public void Prop2Test() { // TODO unit test for the property 'Prop2' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ActivityTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ActivityTests.cs index afe9e846ee94..0b9efbd5a20b 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ActivityTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ActivityTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ActivityInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ActivityOutputs' /// @@ -64,7 +62,5 @@ public void ActivityOutputsTest() { // TODO unit test for the property 'ActivityOutputs' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesClassTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesClassTests.cs index 9ab029ed0979..d766719b5bce 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesClassTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesClassTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void AdditionalPropertiesClassInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'MapProperty' /// @@ -64,6 +62,7 @@ public void MapPropertyTest() { // TODO unit test for the property 'MapProperty' } + /// /// Test the property 'MapOfMapProperty' /// @@ -72,6 +71,7 @@ public void MapOfMapPropertyTest() { // TODO unit test for the property 'MapOfMapProperty' } + /// /// Test the property 'Anytype1' /// @@ -80,6 +80,7 @@ public void Anytype1Test() { // TODO unit test for the property 'Anytype1' } + /// /// Test the property 'MapWithUndeclaredPropertiesAnytype1' /// @@ -88,6 +89,7 @@ public void MapWithUndeclaredPropertiesAnytype1Test() { // TODO unit test for the property 'MapWithUndeclaredPropertiesAnytype1' } + /// /// Test the property 'MapWithUndeclaredPropertiesAnytype2' /// @@ -96,6 +98,7 @@ public void MapWithUndeclaredPropertiesAnytype2Test() { // TODO unit test for the property 'MapWithUndeclaredPropertiesAnytype2' } + /// /// Test the property 'MapWithUndeclaredPropertiesAnytype3' /// @@ -104,6 +107,7 @@ public void MapWithUndeclaredPropertiesAnytype3Test() { // TODO unit test for the property 'MapWithUndeclaredPropertiesAnytype3' } + /// /// Test the property 'EmptyMap' /// @@ -112,6 +116,7 @@ public void EmptyMapTest() { // TODO unit test for the property 'EmptyMap' } + /// /// Test the property 'MapWithUndeclaredPropertiesString' /// @@ -120,7 +125,5 @@ public void MapWithUndeclaredPropertiesStringTest() { // TODO unit test for the property 'MapWithUndeclaredPropertiesString' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/AnimalTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/AnimalTests.cs index ced34a4faadd..0bc46ab7f479 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/AnimalTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/AnimalTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -64,6 +63,7 @@ public void CatDeserializeFromAnimalTest() // TODO uncomment below to test deserialize a Cat from type Animal //Assert.IsType(JsonConvert.DeserializeObject(new Cat().ToJson())); } + /// /// Test deserialize a Dog from type Animal /// @@ -82,6 +82,7 @@ public void ClassNameTest() { // TODO unit test for the property 'ClassName' } + /// /// Test the property 'Color' /// @@ -90,7 +91,5 @@ public void ColorTest() { // TODO unit test for the property 'Color' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ApiResponseTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ApiResponseTests.cs index 2a2e098e6082..901c6a02965e 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ApiResponseTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ApiResponseTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ApiResponseInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Code' /// @@ -64,6 +62,7 @@ public void CodeTest() { // TODO unit test for the property 'Code' } + /// /// Test the property 'Type' /// @@ -72,6 +71,7 @@ public void TypeTest() { // TODO unit test for the property 'Type' } + /// /// Test the property 'Message' /// @@ -80,7 +80,5 @@ public void MessageTest() { // TODO unit test for the property 'Message' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/AppleReqTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/AppleReqTests.cs index f945f6593685..94d06c61e236 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/AppleReqTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/AppleReqTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void AppleReqInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Cultivar' /// @@ -64,6 +62,7 @@ public void CultivarTest() { // TODO unit test for the property 'Cultivar' } + /// /// Test the property 'Mealy' /// @@ -72,7 +71,5 @@ public void MealyTest() { // TODO unit test for the property 'Mealy' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/AppleTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/AppleTests.cs index 468d60184ada..b3aa7e34f8db 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/AppleTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/AppleTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void AppleInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Cultivar' /// @@ -64,6 +62,7 @@ public void CultivarTest() { // TODO unit test for the property 'Cultivar' } + /// /// Test the property 'Origin' /// @@ -73,6 +72,13 @@ public void OriginTest() // TODO unit test for the property 'Origin' } + /// + /// Test the property 'ColorCode' + /// + [Fact] + public void ColorCodeTest() + { + // TODO unit test for the property 'ColorCode' + } } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ArrayOfArrayOfNumberOnlyTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ArrayOfArrayOfNumberOnlyTests.cs index 0b259d7d3916..d52b1938e420 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ArrayOfArrayOfNumberOnlyTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ArrayOfArrayOfNumberOnlyTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ArrayOfArrayOfNumberOnlyInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ArrayArrayNumber' /// @@ -64,7 +62,5 @@ public void ArrayArrayNumberTest() { // TODO unit test for the property 'ArrayArrayNumber' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ArrayOfNumberOnlyTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ArrayOfNumberOnlyTests.cs index 27f312ad25f5..421bfd6caeab 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ArrayOfNumberOnlyTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ArrayOfNumberOnlyTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ArrayOfNumberOnlyInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ArrayNumber' /// @@ -64,7 +62,5 @@ public void ArrayNumberTest() { // TODO unit test for the property 'ArrayNumber' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ArrayTestTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ArrayTestTests.cs index a433e8c87cf7..5028c715b988 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ArrayTestTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ArrayTestTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ArrayTestInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ArrayOfString' /// @@ -64,6 +62,7 @@ public void ArrayOfStringTest() { // TODO unit test for the property 'ArrayOfString' } + /// /// Test the property 'ArrayArrayOfInteger' /// @@ -72,6 +71,7 @@ public void ArrayArrayOfIntegerTest() { // TODO unit test for the property 'ArrayArrayOfInteger' } + /// /// Test the property 'ArrayArrayOfModel' /// @@ -80,7 +80,5 @@ public void ArrayArrayOfModelTest() { // TODO unit test for the property 'ArrayArrayOfModel' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/BananaReqTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/BananaReqTests.cs index 8a6eeb82eeea..8242ff9e7969 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/BananaReqTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/BananaReqTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void BananaReqInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'LengthCm' /// @@ -64,6 +62,7 @@ public void LengthCmTest() { // TODO unit test for the property 'LengthCm' } + /// /// Test the property 'Sweet' /// @@ -72,7 +71,5 @@ public void SweetTest() { // TODO unit test for the property 'Sweet' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/BananaTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/BananaTests.cs index 8d8cc376b038..ddcea686eee8 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/BananaTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/BananaTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void BananaInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'LengthCm' /// @@ -64,7 +62,5 @@ public void LengthCmTest() { // TODO unit test for the property 'LengthCm' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/BasquePigTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/BasquePigTests.cs index 3cdccaa75959..9cb45c006e64 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/BasquePigTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/BasquePigTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void BasquePigInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ClassName' /// @@ -64,7 +62,5 @@ public void ClassNameTest() { // TODO unit test for the property 'ClassName' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/CapitalizationTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/CapitalizationTests.cs index 185c83666fc7..9e6a400d1ed1 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/CapitalizationTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/CapitalizationTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void CapitalizationInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'SmallCamel' /// @@ -64,6 +62,7 @@ public void SmallCamelTest() { // TODO unit test for the property 'SmallCamel' } + /// /// Test the property 'CapitalCamel' /// @@ -72,6 +71,7 @@ public void CapitalCamelTest() { // TODO unit test for the property 'CapitalCamel' } + /// /// Test the property 'SmallSnake' /// @@ -80,6 +80,7 @@ public void SmallSnakeTest() { // TODO unit test for the property 'SmallSnake' } + /// /// Test the property 'CapitalSnake' /// @@ -88,6 +89,7 @@ public void CapitalSnakeTest() { // TODO unit test for the property 'CapitalSnake' } + /// /// Test the property 'SCAETHFlowPoints' /// @@ -96,6 +98,7 @@ public void SCAETHFlowPointsTest() { // TODO unit test for the property 'SCAETHFlowPoints' } + /// /// Test the property 'ATT_NAME' /// @@ -104,7 +107,5 @@ public void ATT_NAMETest() { // TODO unit test for the property 'ATT_NAME' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/CatTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/CatTests.cs index 701ba7602823..c1b10d32171b 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/CatTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/CatTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void CatInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Declawed' /// @@ -64,7 +62,5 @@ public void DeclawedTest() { // TODO unit test for the property 'Declawed' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/CategoryTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/CategoryTests.cs index 6ce48e601e47..d1ef61862440 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/CategoryTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/CategoryTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void CategoryInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Id' /// @@ -64,6 +62,7 @@ public void IdTest() { // TODO unit test for the property 'Id' } + /// /// Test the property 'Name' /// @@ -72,7 +71,5 @@ public void NameTest() { // TODO unit test for the property 'Name' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ChildCatTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ChildCatTests.cs index 68566fd8d560..b40a42cb0225 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ChildCatTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ChildCatTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ChildCatInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Name' /// @@ -64,6 +62,7 @@ public void NameTest() { // TODO unit test for the property 'Name' } + /// /// Test the property 'PetType' /// @@ -72,7 +71,5 @@ public void PetTypeTest() { // TODO unit test for the property 'PetType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ClassModelTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ClassModelTests.cs index d29472e83aaf..a09b95ab4c9c 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ClassModelTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ClassModelTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ClassModelInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Class' /// @@ -64,7 +62,5 @@ public void ClassTest() { // TODO unit test for the property 'Class' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ComplexQuadrilateralTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ComplexQuadrilateralTests.cs index b3529280c8d6..835c5b87bc6e 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ComplexQuadrilateralTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ComplexQuadrilateralTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ComplexQuadrilateralInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// @@ -64,6 +62,7 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } + /// /// Test the property 'QuadrilateralType' /// @@ -72,7 +71,5 @@ public void QuadrilateralTypeTest() { // TODO unit test for the property 'QuadrilateralType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/DanishPigTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/DanishPigTests.cs index 572d9bffa790..765496ea0ced 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/DanishPigTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/DanishPigTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void DanishPigInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ClassName' /// @@ -64,7 +62,5 @@ public void ClassNameTest() { // TODO unit test for the property 'ClassName' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/DateOnlyClassTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/DateOnlyClassTests.cs index 3bd2b54a366a..67be10782efd 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/DateOnlyClassTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/DateOnlyClassTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void DateOnlyClassInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'DateOnlyProperty' /// @@ -64,7 +62,5 @@ public void DateOnlyPropertyTest() { // TODO unit test for the property 'DateOnlyProperty' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/DeprecatedObjectTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/DeprecatedObjectTests.cs index 1da5f4011c95..be6b35dbf451 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/DeprecatedObjectTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/DeprecatedObjectTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void DeprecatedObjectInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Name' /// @@ -64,7 +62,5 @@ public void NameTest() { // TODO unit test for the property 'Name' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/DogTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/DogTests.cs index 992f93a51fd5..a00de64ef51a 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/DogTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/DogTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void DogInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Breed' /// @@ -64,7 +62,5 @@ public void BreedTest() { // TODO unit test for the property 'Breed' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/DrawingTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/DrawingTests.cs index 0709ad9eeb3b..3b1308e50513 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/DrawingTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/DrawingTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void DrawingInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'MainShape' /// @@ -64,6 +62,7 @@ public void MainShapeTest() { // TODO unit test for the property 'MainShape' } + /// /// Test the property 'ShapeOrNull' /// @@ -72,6 +71,7 @@ public void ShapeOrNullTest() { // TODO unit test for the property 'ShapeOrNull' } + /// /// Test the property 'NullableShape' /// @@ -80,6 +80,7 @@ public void NullableShapeTest() { // TODO unit test for the property 'NullableShape' } + /// /// Test the property 'Shapes' /// @@ -88,7 +89,5 @@ public void ShapesTest() { // TODO unit test for the property 'Shapes' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/EnumArraysTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/EnumArraysTests.cs index 5779ca294775..6fcfa6f448c1 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/EnumArraysTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/EnumArraysTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void EnumArraysInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'JustSymbol' /// @@ -64,6 +62,7 @@ public void JustSymbolTest() { // TODO unit test for the property 'JustSymbol' } + /// /// Test the property 'ArrayEnum' /// @@ -72,7 +71,5 @@ public void ArrayEnumTest() { // TODO unit test for the property 'ArrayEnum' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/EnumClassTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/EnumClassTests.cs index a17738c5cbc5..bb46e292a652 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/EnumClassTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/EnumClassTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,9 +53,5 @@ public void EnumClassInstanceTest() // TODO uncomment below to test "IsType" EnumClass //Assert.IsType(instance); } - - - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/EnumTestTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/EnumTestTests.cs index 4f81b845d493..3050af442410 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/EnumTestTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/EnumTestTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void EnumTestInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'EnumString' /// @@ -64,6 +62,7 @@ public void EnumStringTest() { // TODO unit test for the property 'EnumString' } + /// /// Test the property 'EnumStringRequired' /// @@ -72,6 +71,7 @@ public void EnumStringRequiredTest() { // TODO unit test for the property 'EnumStringRequired' } + /// /// Test the property 'EnumInteger' /// @@ -80,6 +80,7 @@ public void EnumIntegerTest() { // TODO unit test for the property 'EnumInteger' } + /// /// Test the property 'EnumIntegerOnly' /// @@ -88,6 +89,7 @@ public void EnumIntegerOnlyTest() { // TODO unit test for the property 'EnumIntegerOnly' } + /// /// Test the property 'EnumNumber' /// @@ -96,6 +98,7 @@ public void EnumNumberTest() { // TODO unit test for the property 'EnumNumber' } + /// /// Test the property 'OuterEnum' /// @@ -104,6 +107,7 @@ public void OuterEnumTest() { // TODO unit test for the property 'OuterEnum' } + /// /// Test the property 'OuterEnumInteger' /// @@ -112,6 +116,7 @@ public void OuterEnumIntegerTest() { // TODO unit test for the property 'OuterEnumInteger' } + /// /// Test the property 'OuterEnumDefaultValue' /// @@ -120,6 +125,7 @@ public void OuterEnumDefaultValueTest() { // TODO unit test for the property 'OuterEnumDefaultValue' } + /// /// Test the property 'OuterEnumIntegerDefaultValue' /// @@ -128,7 +134,5 @@ public void OuterEnumIntegerDefaultValueTest() { // TODO unit test for the property 'OuterEnumIntegerDefaultValue' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/EquilateralTriangleTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/EquilateralTriangleTests.cs index 4663cb667de6..71d48f7e200a 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/EquilateralTriangleTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/EquilateralTriangleTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void EquilateralTriangleInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// @@ -64,6 +62,7 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } + /// /// Test the property 'TriangleType' /// @@ -72,7 +71,5 @@ public void TriangleTypeTest() { // TODO unit test for the property 'TriangleType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/FileSchemaTestClassTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/FileSchemaTestClassTests.cs index 9f45b4fe89d5..d89ad5a5bc7b 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/FileSchemaTestClassTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/FileSchemaTestClassTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void FileSchemaTestClassInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'File' /// @@ -64,6 +62,7 @@ public void FileTest() { // TODO unit test for the property 'File' } + /// /// Test the property 'Files' /// @@ -72,7 +71,5 @@ public void FilesTest() { // TODO unit test for the property 'Files' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/FileTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/FileTests.cs index 761bb72a844f..7eaea9c8786f 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/FileTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/FileTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void FileInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'SourceURI' /// @@ -64,7 +62,5 @@ public void SourceURITest() { // TODO unit test for the property 'SourceURI' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/FooGetDefaultResponseTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/FooGetDefaultResponseTests.cs index 0154d528418e..563269643111 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/FooGetDefaultResponseTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/FooGetDefaultResponseTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void FooGetDefaultResponseInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'String' /// @@ -64,7 +62,5 @@ public void StringTest() { // TODO unit test for the property 'String' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/FooTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/FooTests.cs index 0b6ed52edbd4..52f87dd5b0e0 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/FooTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/FooTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void FooInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Bar' /// @@ -64,7 +62,5 @@ public void BarTest() { // TODO unit test for the property 'Bar' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/FormatTestTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/FormatTestTests.cs index 97332800e9af..fbe8039a5a30 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/FormatTestTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/FormatTestTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void FormatTestInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Integer' /// @@ -64,6 +62,7 @@ public void IntegerTest() { // TODO unit test for the property 'Integer' } + /// /// Test the property 'Int32' /// @@ -72,6 +71,16 @@ public void Int32Test() { // TODO unit test for the property 'Int32' } + + /// + /// Test the property 'UnsignedInteger' + /// + [Fact] + public void UnsignedIntegerTest() + { + // TODO unit test for the property 'UnsignedInteger' + } + /// /// Test the property 'Int64' /// @@ -80,6 +89,16 @@ public void Int64Test() { // TODO unit test for the property 'Int64' } + + /// + /// Test the property 'UnsignedLong' + /// + [Fact] + public void UnsignedLongTest() + { + // TODO unit test for the property 'UnsignedLong' + } + /// /// Test the property 'Number' /// @@ -88,6 +107,7 @@ public void NumberTest() { // TODO unit test for the property 'Number' } + /// /// Test the property 'Float' /// @@ -96,6 +116,7 @@ public void FloatTest() { // TODO unit test for the property 'Float' } + /// /// Test the property 'Double' /// @@ -104,6 +125,7 @@ public void DoubleTest() { // TODO unit test for the property 'Double' } + /// /// Test the property 'Decimal' /// @@ -112,6 +134,7 @@ public void DecimalTest() { // TODO unit test for the property 'Decimal' } + /// /// Test the property 'String' /// @@ -120,6 +143,7 @@ public void StringTest() { // TODO unit test for the property 'String' } + /// /// Test the property 'Byte' /// @@ -128,6 +152,7 @@ public void ByteTest() { // TODO unit test for the property 'Byte' } + /// /// Test the property 'Binary' /// @@ -136,6 +161,7 @@ public void BinaryTest() { // TODO unit test for the property 'Binary' } + /// /// Test the property 'Date' /// @@ -144,6 +170,7 @@ public void DateTest() { // TODO unit test for the property 'Date' } + /// /// Test the property 'DateTime' /// @@ -152,6 +179,7 @@ public void DateTimeTest() { // TODO unit test for the property 'DateTime' } + /// /// Test the property 'Uuid' /// @@ -160,6 +188,7 @@ public void UuidTest() { // TODO unit test for the property 'Uuid' } + /// /// Test the property 'Password' /// @@ -168,6 +197,7 @@ public void PasswordTest() { // TODO unit test for the property 'Password' } + /// /// Test the property 'PatternWithDigits' /// @@ -176,6 +206,7 @@ public void PatternWithDigitsTest() { // TODO unit test for the property 'PatternWithDigits' } + /// /// Test the property 'PatternWithDigitsAndDelimiter' /// @@ -185,6 +216,13 @@ public void PatternWithDigitsAndDelimiterTest() // TODO unit test for the property 'PatternWithDigitsAndDelimiter' } + /// + /// Test the property 'PatternWithBackslash' + /// + [Fact] + public void PatternWithBackslashTest() + { + // TODO unit test for the property 'PatternWithBackslash' + } } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/FruitReqTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/FruitReqTests.cs index 5ea9e3ffc1d5..771ef1ae2c5d 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/FruitReqTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/FruitReqTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void FruitReqInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Cultivar' /// @@ -64,6 +62,7 @@ public void CultivarTest() { // TODO unit test for the property 'Cultivar' } + /// /// Test the property 'Mealy' /// @@ -72,6 +71,7 @@ public void MealyTest() { // TODO unit test for the property 'Mealy' } + /// /// Test the property 'LengthCm' /// @@ -80,6 +80,7 @@ public void LengthCmTest() { // TODO unit test for the property 'LengthCm' } + /// /// Test the property 'Sweet' /// @@ -88,7 +89,5 @@ public void SweetTest() { // TODO unit test for the property 'Sweet' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/FruitTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/FruitTests.cs index 91e069bb42fa..53881a333193 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/FruitTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/FruitTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void FruitInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Color' /// @@ -64,6 +62,7 @@ public void ColorTest() { // TODO unit test for the property 'Color' } + /// /// Test the property 'Cultivar' /// @@ -72,6 +71,7 @@ public void CultivarTest() { // TODO unit test for the property 'Cultivar' } + /// /// Test the property 'Origin' /// @@ -80,6 +80,16 @@ public void OriginTest() { // TODO unit test for the property 'Origin' } + + /// + /// Test the property 'ColorCode' + /// + [Fact] + public void ColorCodeTest() + { + // TODO unit test for the property 'ColorCode' + } + /// /// Test the property 'LengthCm' /// @@ -88,7 +98,5 @@ public void LengthCmTest() { // TODO unit test for the property 'LengthCm' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/GmFruitTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/GmFruitTests.cs index 08fb0e07a1c8..6322d4e2a721 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/GmFruitTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/GmFruitTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void GmFruitInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Color' /// @@ -64,6 +62,7 @@ public void ColorTest() { // TODO unit test for the property 'Color' } + /// /// Test the property 'Cultivar' /// @@ -72,6 +71,7 @@ public void CultivarTest() { // TODO unit test for the property 'Cultivar' } + /// /// Test the property 'Origin' /// @@ -80,6 +80,16 @@ public void OriginTest() { // TODO unit test for the property 'Origin' } + + /// + /// Test the property 'ColorCode' + /// + [Fact] + public void ColorCodeTest() + { + // TODO unit test for the property 'ColorCode' + } + /// /// Test the property 'LengthCm' /// @@ -88,7 +98,5 @@ public void LengthCmTest() { // TODO unit test for the property 'LengthCm' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/GrandparentAnimalTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/GrandparentAnimalTests.cs index faa4930944be..3adc2a0573e7 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/GrandparentAnimalTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/GrandparentAnimalTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -64,6 +63,7 @@ public void ChildCatDeserializeFromParentPetTest() // TODO uncomment below to test deserialize a ChildCat from type ParentPet //Assert.IsType(JsonConvert.DeserializeObject(new ChildCat().ToJson())); } + /// /// Test deserialize a ParentPet from type GrandparentAnimal /// @@ -82,7 +82,5 @@ public void PetTypeTest() { // TODO unit test for the property 'PetType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/HasOnlyReadOnlyTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/HasOnlyReadOnlyTests.cs index 651a9f0ce30c..69abe3f9e6ad 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/HasOnlyReadOnlyTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/HasOnlyReadOnlyTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void HasOnlyReadOnlyInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Bar' /// @@ -64,6 +62,7 @@ public void BarTest() { // TODO unit test for the property 'Bar' } + /// /// Test the property 'Foo' /// @@ -72,7 +71,5 @@ public void FooTest() { // TODO unit test for the property 'Foo' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/HealthCheckResultTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/HealthCheckResultTests.cs index 857190a3334d..794fda2c2d6d 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/HealthCheckResultTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/HealthCheckResultTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void HealthCheckResultInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'NullableMessage' /// @@ -64,7 +62,5 @@ public void NullableMessageTest() { // TODO unit test for the property 'NullableMessage' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/IsoscelesTriangleTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/IsoscelesTriangleTests.cs index 755c417cc54f..ca8a058e37df 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/IsoscelesTriangleTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/IsoscelesTriangleTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void IsoscelesTriangleInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// @@ -64,6 +62,7 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } + /// /// Test the property 'TriangleType' /// @@ -72,7 +71,5 @@ public void TriangleTypeTest() { // TODO unit test for the property 'TriangleType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ListTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ListTests.cs index 2ed828d05208..d659080e89c9 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ListTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ListTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,16 +54,13 @@ public void ListInstanceTest() //Assert.IsType(instance); } - /// - /// Test the property '_123List' + /// Test the property 'Var123List' /// [Fact] - public void _123ListTest() + public void Var123ListTest() { - // TODO unit test for the property '_123List' + // TODO unit test for the property 'Var123List' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/LiteralStringClassTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/LiteralStringClassTests.cs index 74dc17b9f4a1..58dc425228ff 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/LiteralStringClassTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/LiteralStringClassTests.cs @@ -54,7 +54,6 @@ public void LiteralStringClassInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'EscapedLiteralString' /// @@ -63,6 +62,7 @@ public void EscapedLiteralStringTest() { // TODO unit test for the property 'EscapedLiteralString' } + /// /// Test the property 'UnescapedLiteralString' /// @@ -71,7 +71,5 @@ public void UnescapedLiteralStringTest() { // TODO unit test for the property 'UnescapedLiteralString' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/MammalTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/MammalTests.cs index 7b46cbf06450..3fdadd19646c 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/MammalTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/MammalTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void MammalInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'HasBaleen' /// @@ -64,6 +62,7 @@ public void HasBaleenTest() { // TODO unit test for the property 'HasBaleen' } + /// /// Test the property 'HasTeeth' /// @@ -72,6 +71,7 @@ public void HasTeethTest() { // TODO unit test for the property 'HasTeeth' } + /// /// Test the property 'ClassName' /// @@ -80,6 +80,7 @@ public void ClassNameTest() { // TODO unit test for the property 'ClassName' } + /// /// Test the property 'Type' /// @@ -88,7 +89,5 @@ public void TypeTest() { // TODO unit test for the property 'Type' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/MapTestTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/MapTestTests.cs index 20036e1c905e..e055027f15bf 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/MapTestTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/MapTestTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void MapTestInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'MapMapOfString' /// @@ -64,6 +62,7 @@ public void MapMapOfStringTest() { // TODO unit test for the property 'MapMapOfString' } + /// /// Test the property 'MapOfEnumString' /// @@ -72,6 +71,7 @@ public void MapOfEnumStringTest() { // TODO unit test for the property 'MapOfEnumString' } + /// /// Test the property 'DirectMap' /// @@ -80,6 +80,7 @@ public void DirectMapTest() { // TODO unit test for the property 'DirectMap' } + /// /// Test the property 'IndirectMap' /// @@ -88,7 +89,5 @@ public void IndirectMapTest() { // TODO unit test for the property 'IndirectMap' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/MixedPropertiesAndAdditionalPropertiesClassTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/MixedPropertiesAndAdditionalPropertiesClassTests.cs index f56cd715f45f..07c592a8a4c0 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/MixedPropertiesAndAdditionalPropertiesClassTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/MixedPropertiesAndAdditionalPropertiesClassTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,6 +54,14 @@ public void MixedPropertiesAndAdditionalPropertiesClassInstanceTest() //Assert.IsType(instance); } + /// + /// Test the property 'UuidWithPattern' + /// + [Fact] + public void UuidWithPatternTest() + { + // TODO unit test for the property 'UuidWithPattern' + } /// /// Test the property 'Uuid' @@ -64,6 +71,7 @@ public void UuidTest() { // TODO unit test for the property 'Uuid' } + /// /// Test the property 'DateTime' /// @@ -72,6 +80,7 @@ public void DateTimeTest() { // TODO unit test for the property 'DateTime' } + /// /// Test the property 'Map' /// @@ -80,7 +89,5 @@ public void MapTest() { // TODO unit test for the property 'Map' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/Model200ResponseTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/Model200ResponseTests.cs index e25478618f20..85be687d5c2b 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/Model200ResponseTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/Model200ResponseTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void Model200ResponseInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Name' /// @@ -64,6 +62,7 @@ public void NameTest() { // TODO unit test for the property 'Name' } + /// /// Test the property 'Class' /// @@ -72,7 +71,5 @@ public void ClassTest() { // TODO unit test for the property 'Class' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ModelClientTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ModelClientTests.cs index 24a9e2631586..a5f4aa1593e1 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ModelClientTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ModelClientTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,16 +54,13 @@ public void ModelClientInstanceTest() //Assert.IsType(instance); } - /// - /// Test the property '_Client' + /// Test the property 'VarClient' /// [Fact] - public void _ClientTest() + public void VarClientTest() { - // TODO unit test for the property '_Client' + // TODO unit test for the property 'VarClient' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/NameTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/NameTests.cs index c390049e66dc..fc1756b66bec 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/NameTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/NameTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,15 +54,15 @@ public void NameInstanceTest() //Assert.IsType(instance); } - /// - /// Test the property '_Name' + /// Test the property 'VarName' /// [Fact] - public void _NameTest() + public void VarNameTest() { - // TODO unit test for the property '_Name' + // TODO unit test for the property 'VarName' } + /// /// Test the property 'SnakeCase' /// @@ -72,6 +71,7 @@ public void SnakeCaseTest() { // TODO unit test for the property 'SnakeCase' } + /// /// Test the property 'Property' /// @@ -80,15 +80,14 @@ public void PropertyTest() { // TODO unit test for the property 'Property' } + /// - /// Test the property '_123Number' + /// Test the property 'Var123Number' /// [Fact] - public void _123NumberTest() + public void Var123NumberTest() { - // TODO unit test for the property '_123Number' + // TODO unit test for the property 'Var123Number' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/NullableClassTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/NullableClassTests.cs index 8f00505612a9..214795f86c27 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/NullableClassTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/NullableClassTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void NullableClassInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'IntegerProp' /// @@ -64,6 +62,7 @@ public void IntegerPropTest() { // TODO unit test for the property 'IntegerProp' } + /// /// Test the property 'NumberProp' /// @@ -72,6 +71,7 @@ public void NumberPropTest() { // TODO unit test for the property 'NumberProp' } + /// /// Test the property 'BooleanProp' /// @@ -80,6 +80,7 @@ public void BooleanPropTest() { // TODO unit test for the property 'BooleanProp' } + /// /// Test the property 'StringProp' /// @@ -88,6 +89,7 @@ public void StringPropTest() { // TODO unit test for the property 'StringProp' } + /// /// Test the property 'DateProp' /// @@ -96,6 +98,7 @@ public void DatePropTest() { // TODO unit test for the property 'DateProp' } + /// /// Test the property 'DatetimeProp' /// @@ -104,6 +107,7 @@ public void DatetimePropTest() { // TODO unit test for the property 'DatetimeProp' } + /// /// Test the property 'ArrayNullableProp' /// @@ -112,6 +116,7 @@ public void ArrayNullablePropTest() { // TODO unit test for the property 'ArrayNullableProp' } + /// /// Test the property 'ArrayAndItemsNullableProp' /// @@ -120,6 +125,7 @@ public void ArrayAndItemsNullablePropTest() { // TODO unit test for the property 'ArrayAndItemsNullableProp' } + /// /// Test the property 'ArrayItemsNullable' /// @@ -128,6 +134,7 @@ public void ArrayItemsNullableTest() { // TODO unit test for the property 'ArrayItemsNullable' } + /// /// Test the property 'ObjectNullableProp' /// @@ -136,6 +143,7 @@ public void ObjectNullablePropTest() { // TODO unit test for the property 'ObjectNullableProp' } + /// /// Test the property 'ObjectAndItemsNullableProp' /// @@ -144,6 +152,7 @@ public void ObjectAndItemsNullablePropTest() { // TODO unit test for the property 'ObjectAndItemsNullableProp' } + /// /// Test the property 'ObjectItemsNullable' /// @@ -152,7 +161,5 @@ public void ObjectItemsNullableTest() { // TODO unit test for the property 'ObjectItemsNullable' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/NullableGuidClassTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/NullableGuidClassTests.cs index 0bc0ea369188..1290072514cd 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/NullableGuidClassTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/NullableGuidClassTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void NullableGuidClassInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Uuid' /// @@ -64,7 +62,5 @@ public void UuidTest() { // TODO unit test for the property 'Uuid' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/NullableShapeTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/NullableShapeTests.cs index 5662f91d6e64..75e9c7e8fd49 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/NullableShapeTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/NullableShapeTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void NullableShapeInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// @@ -64,6 +62,7 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } + /// /// Test the property 'QuadrilateralType' /// @@ -72,7 +71,5 @@ public void QuadrilateralTypeTest() { // TODO unit test for the property 'QuadrilateralType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/NumberOnlyTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/NumberOnlyTests.cs index 3a06cb020b2a..2fb06f9afb48 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/NumberOnlyTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/NumberOnlyTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void NumberOnlyInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'JustNumber' /// @@ -64,7 +62,5 @@ public void JustNumberTest() { // TODO unit test for the property 'JustNumber' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ObjectWithDeprecatedFieldsTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ObjectWithDeprecatedFieldsTests.cs index 82f93fab48c5..e90b746d19c6 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ObjectWithDeprecatedFieldsTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ObjectWithDeprecatedFieldsTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ObjectWithDeprecatedFieldsInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Uuid' /// @@ -64,6 +62,7 @@ public void UuidTest() { // TODO unit test for the property 'Uuid' } + /// /// Test the property 'Id' /// @@ -72,6 +71,7 @@ public void IdTest() { // TODO unit test for the property 'Id' } + /// /// Test the property 'DeprecatedRef' /// @@ -80,6 +80,7 @@ public void DeprecatedRefTest() { // TODO unit test for the property 'DeprecatedRef' } + /// /// Test the property 'Bars' /// @@ -88,7 +89,5 @@ public void BarsTest() { // TODO unit test for the property 'Bars' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/OneOfStringTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/OneOfStringTests.cs index 75bd7cd9bfd0..04727e77c691 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/OneOfStringTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/OneOfStringTests.cs @@ -53,9 +53,5 @@ public void OneOfStringInstanceTest() // TODO uncomment below to test "IsType" OneOfString //Assert.IsType(instance); } - - - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/OrderTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/OrderTests.cs index cf5c561c5476..84d2828b367f 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/OrderTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/OrderTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void OrderInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Id' /// @@ -64,6 +62,7 @@ public void IdTest() { // TODO unit test for the property 'Id' } + /// /// Test the property 'PetId' /// @@ -72,6 +71,7 @@ public void PetIdTest() { // TODO unit test for the property 'PetId' } + /// /// Test the property 'Quantity' /// @@ -80,6 +80,7 @@ public void QuantityTest() { // TODO unit test for the property 'Quantity' } + /// /// Test the property 'ShipDate' /// @@ -88,6 +89,7 @@ public void ShipDateTest() { // TODO unit test for the property 'ShipDate' } + /// /// Test the property 'Status' /// @@ -96,6 +98,7 @@ public void StatusTest() { // TODO unit test for the property 'Status' } + /// /// Test the property 'Complete' /// @@ -104,7 +107,5 @@ public void CompleteTest() { // TODO unit test for the property 'Complete' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/OuterCompositeTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/OuterCompositeTests.cs index 2efda0db59c4..fd52fa2cfca7 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/OuterCompositeTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/OuterCompositeTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void OuterCompositeInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'MyNumber' /// @@ -64,6 +62,7 @@ public void MyNumberTest() { // TODO unit test for the property 'MyNumber' } + /// /// Test the property 'MyString' /// @@ -72,6 +71,7 @@ public void MyStringTest() { // TODO unit test for the property 'MyString' } + /// /// Test the property 'MyBoolean' /// @@ -80,7 +80,5 @@ public void MyBooleanTest() { // TODO unit test for the property 'MyBoolean' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumDefaultValueTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumDefaultValueTests.cs index 986fff774c46..db98c5a44ae3 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumDefaultValueTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumDefaultValueTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,9 +53,5 @@ public void OuterEnumDefaultValueInstanceTest() // TODO uncomment below to test "IsType" OuterEnumDefaultValue //Assert.IsType(instance); } - - - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerDefaultValueTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerDefaultValueTests.cs index 015d5dab945e..a4c028ea750d 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerDefaultValueTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerDefaultValueTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,9 +53,5 @@ public void OuterEnumIntegerDefaultValueInstanceTest() // TODO uncomment below to test "IsType" OuterEnumIntegerDefaultValue //Assert.IsType(instance); } - - - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerTests.cs index 385e899110a4..4d1be408011e 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,9 +53,5 @@ public void OuterEnumIntegerInstanceTest() // TODO uncomment below to test "IsType" OuterEnumInteger //Assert.IsType(instance); } - - - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumTests.cs index f47304767b9e..d4d6e96125d9 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,9 +53,5 @@ public void OuterEnumInstanceTest() // TODO uncomment below to test "IsType" OuterEnum //Assert.IsType(instance); } - - - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ParentPetTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ParentPetTests.cs index 1e17568ed331..eb9f5956b215 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ParentPetTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ParentPetTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -64,8 +63,5 @@ public void ChildCatDeserializeFromParentPetTest() // TODO uncomment below to test deserialize a ChildCat from type ParentPet //Assert.IsType(JsonConvert.DeserializeObject(new ChildCat().ToJson())); } - - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/PetTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/PetTests.cs index 154e66f8dfc0..535ab69d2aa2 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/PetTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/PetTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void PetInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Id' /// @@ -64,6 +62,7 @@ public void IdTest() { // TODO unit test for the property 'Id' } + /// /// Test the property 'Category' /// @@ -72,6 +71,7 @@ public void CategoryTest() { // TODO unit test for the property 'Category' } + /// /// Test the property 'Name' /// @@ -80,6 +80,7 @@ public void NameTest() { // TODO unit test for the property 'Name' } + /// /// Test the property 'PhotoUrls' /// @@ -88,6 +89,7 @@ public void PhotoUrlsTest() { // TODO unit test for the property 'PhotoUrls' } + /// /// Test the property 'Tags' /// @@ -96,6 +98,7 @@ public void TagsTest() { // TODO unit test for the property 'Tags' } + /// /// Test the property 'Status' /// @@ -104,7 +107,5 @@ public void StatusTest() { // TODO unit test for the property 'Status' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/PigTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/PigTests.cs index 55cf2189046b..34562dc6860f 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/PigTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/PigTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void PigInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ClassName' /// @@ -64,7 +62,5 @@ public void ClassNameTest() { // TODO unit test for the property 'ClassName' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/PolymorphicPropertyTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/PolymorphicPropertyTests.cs index eff3c6ddc9bb..a546cd2b0032 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/PolymorphicPropertyTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/PolymorphicPropertyTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,9 +53,5 @@ public void PolymorphicPropertyInstanceTest() // TODO uncomment below to test "IsType" PolymorphicProperty //Assert.IsType(instance); } - - - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/QuadrilateralInterfaceTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/QuadrilateralInterfaceTests.cs index 6eef9f4c816d..d08798b36050 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/QuadrilateralInterfaceTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/QuadrilateralInterfaceTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void QuadrilateralInterfaceInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'QuadrilateralType' /// @@ -64,7 +62,5 @@ public void QuadrilateralTypeTest() { // TODO unit test for the property 'QuadrilateralType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/QuadrilateralTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/QuadrilateralTests.cs index 26826681a478..cd996d7e0edf 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/QuadrilateralTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/QuadrilateralTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void QuadrilateralInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// @@ -64,6 +62,7 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } + /// /// Test the property 'QuadrilateralType' /// @@ -72,7 +71,5 @@ public void QuadrilateralTypeTest() { // TODO unit test for the property 'QuadrilateralType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ReadOnlyFirstTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ReadOnlyFirstTests.cs index dc3d0fad54cd..056bc2b4519c 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ReadOnlyFirstTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ReadOnlyFirstTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ReadOnlyFirstInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Bar' /// @@ -64,6 +62,7 @@ public void BarTest() { // TODO unit test for the property 'Bar' } + /// /// Test the property 'Baz' /// @@ -72,7 +71,5 @@ public void BazTest() { // TODO unit test for the property 'Baz' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ReturnTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ReturnTests.cs index c8c1d6510d2f..4779edd80792 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ReturnTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ReturnTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,16 +54,13 @@ public void ReturnInstanceTest() //Assert.IsType(instance); } - /// - /// Test the property '_Return' + /// Test the property 'VarReturn' /// [Fact] - public void _ReturnTest() + public void VarReturnTest() { - // TODO unit test for the property '_Return' + // TODO unit test for the property 'VarReturn' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ScaleneTriangleTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ScaleneTriangleTests.cs index 04cb9f1ab6b1..a7332ab47b03 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ScaleneTriangleTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ScaleneTriangleTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ScaleneTriangleInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// @@ -64,6 +62,7 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } + /// /// Test the property 'TriangleType' /// @@ -72,7 +71,5 @@ public void TriangleTypeTest() { // TODO unit test for the property 'TriangleType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ShapeInterfaceTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ShapeInterfaceTests.cs index 7bd0bc86f963..e082fb3b4faa 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ShapeInterfaceTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ShapeInterfaceTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ShapeInterfaceInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// @@ -64,7 +62,5 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ShapeOrNullTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ShapeOrNullTests.cs index d0af114157c9..b70c157800b5 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ShapeOrNullTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ShapeOrNullTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ShapeOrNullInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// @@ -64,6 +62,7 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } + /// /// Test the property 'QuadrilateralType' /// @@ -72,7 +71,5 @@ public void QuadrilateralTypeTest() { // TODO unit test for the property 'QuadrilateralType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ShapeTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ShapeTests.cs index b01bd531f857..babd94722cfb 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ShapeTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ShapeTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ShapeInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// @@ -64,6 +62,7 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } + /// /// Test the property 'QuadrilateralType' /// @@ -72,7 +71,5 @@ public void QuadrilateralTypeTest() { // TODO unit test for the property 'QuadrilateralType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/SimpleQuadrilateralTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/SimpleQuadrilateralTests.cs index 6648e9809281..24f0288bcac4 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/SimpleQuadrilateralTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/SimpleQuadrilateralTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void SimpleQuadrilateralInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// @@ -64,6 +62,7 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } + /// /// Test the property 'QuadrilateralType' /// @@ -72,7 +71,5 @@ public void QuadrilateralTypeTest() { // TODO unit test for the property 'QuadrilateralType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/SpecialModelNameTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/SpecialModelNameTests.cs index 0f0e1ff12a9e..ef8a8d50e3ee 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/SpecialModelNameTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/SpecialModelNameTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void SpecialModelNameInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'SpecialPropertyName' /// @@ -64,15 +62,14 @@ public void SpecialPropertyNameTest() { // TODO unit test for the property 'SpecialPropertyName' } + /// - /// Test the property '_SpecialModelName' + /// Test the property 'VarSpecialModelName' /// [Fact] - public void _SpecialModelNameTest() + public void VarSpecialModelNameTest() { - // TODO unit test for the property '_SpecialModelName' + // TODO unit test for the property 'VarSpecialModelName' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/TagTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/TagTests.cs index 6d56232d0a76..8f9ad604eab9 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/TagTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/TagTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void TagInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Id' /// @@ -64,6 +62,7 @@ public void IdTest() { // TODO unit test for the property 'Id' } + /// /// Test the property 'Name' /// @@ -72,7 +71,5 @@ public void NameTest() { // TODO unit test for the property 'Name' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/TestCollectionEndingWithWordListObjectTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/TestCollectionEndingWithWordListObjectTests.cs index 4def0dcda9cc..6623a04fcc40 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/TestCollectionEndingWithWordListObjectTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/TestCollectionEndingWithWordListObjectTests.cs @@ -54,7 +54,6 @@ public void TestCollectionEndingWithWordListObjectInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'TestCollectionEndingWithWordList' /// @@ -63,7 +62,5 @@ public void TestCollectionEndingWithWordListTest() { // TODO unit test for the property 'TestCollectionEndingWithWordList' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/TestCollectionEndingWithWordListTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/TestCollectionEndingWithWordListTests.cs index e9df66daf2e5..a32943a0c841 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/TestCollectionEndingWithWordListTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/TestCollectionEndingWithWordListTests.cs @@ -54,7 +54,6 @@ public void TestCollectionEndingWithWordListInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Value' /// @@ -63,7 +62,5 @@ public void ValueTest() { // TODO unit test for the property 'Value' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/TriangleInterfaceTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/TriangleInterfaceTests.cs index fba65470bee6..1750c64c4eda 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/TriangleInterfaceTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/TriangleInterfaceTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void TriangleInterfaceInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'TriangleType' /// @@ -64,7 +62,5 @@ public void TriangleTypeTest() { // TODO unit test for the property 'TriangleType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/TriangleTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/TriangleTests.cs index bdaab0b47965..0dd209f5303a 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/TriangleTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/TriangleTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void TriangleInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// @@ -64,6 +62,7 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } + /// /// Test the property 'TriangleType' /// @@ -72,7 +71,5 @@ public void TriangleTypeTest() { // TODO unit test for the property 'TriangleType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/UserTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/UserTests.cs index a7b095e4c28e..bc3cb3775de1 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/UserTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/UserTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void UserInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Id' /// @@ -64,6 +62,7 @@ public void IdTest() { // TODO unit test for the property 'Id' } + /// /// Test the property 'Username' /// @@ -72,6 +71,7 @@ public void UsernameTest() { // TODO unit test for the property 'Username' } + /// /// Test the property 'FirstName' /// @@ -80,6 +80,7 @@ public void FirstNameTest() { // TODO unit test for the property 'FirstName' } + /// /// Test the property 'LastName' /// @@ -88,6 +89,7 @@ public void LastNameTest() { // TODO unit test for the property 'LastName' } + /// /// Test the property 'Email' /// @@ -96,6 +98,7 @@ public void EmailTest() { // TODO unit test for the property 'Email' } + /// /// Test the property 'Password' /// @@ -104,6 +107,7 @@ public void PasswordTest() { // TODO unit test for the property 'Password' } + /// /// Test the property 'Phone' /// @@ -112,6 +116,7 @@ public void PhoneTest() { // TODO unit test for the property 'Phone' } + /// /// Test the property 'UserStatus' /// @@ -120,6 +125,7 @@ public void UserStatusTest() { // TODO unit test for the property 'UserStatus' } + /// /// Test the property 'ObjectWithNoDeclaredProps' /// @@ -128,6 +134,7 @@ public void ObjectWithNoDeclaredPropsTest() { // TODO unit test for the property 'ObjectWithNoDeclaredProps' } + /// /// Test the property 'ObjectWithNoDeclaredPropsNullable' /// @@ -136,6 +143,7 @@ public void ObjectWithNoDeclaredPropsNullableTest() { // TODO unit test for the property 'ObjectWithNoDeclaredPropsNullable' } + /// /// Test the property 'AnyTypeProp' /// @@ -144,6 +152,7 @@ public void AnyTypePropTest() { // TODO unit test for the property 'AnyTypeProp' } + /// /// Test the property 'AnyTypePropNullable' /// @@ -152,7 +161,5 @@ public void AnyTypePropNullableTest() { // TODO unit test for the property 'AnyTypePropNullable' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/WhaleTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/WhaleTests.cs index 09610791943c..de86c02372cd 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/WhaleTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/WhaleTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void WhaleInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'HasBaleen' /// @@ -64,6 +62,7 @@ public void HasBaleenTest() { // TODO unit test for the property 'HasBaleen' } + /// /// Test the property 'HasTeeth' /// @@ -72,6 +71,7 @@ public void HasTeethTest() { // TODO unit test for the property 'HasTeeth' } + /// /// Test the property 'ClassName' /// @@ -80,7 +80,5 @@ public void ClassNameTest() { // TODO unit test for the property 'ClassName' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ZebraTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ZebraTests.cs index f44e92131400..55e70c43e0a0 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ZebraTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ZebraTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ZebraInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Type' /// @@ -64,6 +62,7 @@ public void TypeTest() { // TODO unit test for the property 'Type' } + /// /// Test the property 'ClassName' /// @@ -72,7 +71,5 @@ public void ClassNameTest() { // TODO unit test for the property 'ClassName' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ZeroBasedEnumClassTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ZeroBasedEnumClassTests.cs index f713baf3235e..d828b6d03a7b 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ZeroBasedEnumClassTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ZeroBasedEnumClassTests.cs @@ -54,7 +54,6 @@ public void ZeroBasedEnumClassInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ZeroBasedEnum' /// @@ -63,7 +62,5 @@ public void ZeroBasedEnumTest() { // TODO unit test for the property 'ZeroBasedEnum' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ZeroBasedEnumTests.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ZeroBasedEnumTests.cs index 412297e39f71..38260add43e8 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ZeroBasedEnumTests.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools.Test/Model/ZeroBasedEnumTests.cs @@ -53,9 +53,5 @@ public void ZeroBasedEnumInstanceTest() // TODO uncomment below to test "IsType" ZeroBasedEnum //Assert.IsType(instance); } - - - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs index 5d048a005bdc..f870aa706425 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs @@ -64,5 +64,49 @@ public void FooGetTest() //var response = instance.FooGet(); //Assert.IsType(response); } + + /// + /// Test GetCountry + /// + [Fact] + public void GetCountryTest() + { + // TODO uncomment below to test the method and replace null with proper value + //string country = null; + //instance.GetCountry(country); + } + + /// + /// Test Hello + /// + [Fact] + public void HelloTest() + { + // TODO uncomment below to test the method and replace null with proper value + //var response = instance.Hello(); + //Assert.IsType>(response); + } + + /// + /// Test RolesReportGet + /// + [Fact] + public void RolesReportGetTest() + { + // TODO uncomment below to test the method and replace null with proper value + //var response = instance.RolesReportGet(); + //Assert.IsType>>(response); + } + + /// + /// Test Test + /// + [Fact] + public void TestTest() + { + // TODO uncomment below to test the method and replace null with proper value + //var response = instance.Test(); + //Assert.IsType(response); + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Api/FakeApiTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Api/FakeApiTests.cs index 994cd46d38ae..c436338550ab 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Api/FakeApiTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Api/FakeApiTests.cs @@ -84,7 +84,7 @@ public void FakeOuterBooleanSerializeTest() public void FakeOuterCompositeSerializeTest() { // TODO uncomment below to test the method and replace null with proper value - //OuterComposite outerComposite = null; + //OuterComposite? outerComposite = null; //var response = instance.FakeOuterCompositeSerialize(outerComposite); //Assert.IsType(response); } @@ -108,8 +108,9 @@ public void FakeOuterNumberSerializeTest() public void FakeOuterStringSerializeTest() { // TODO uncomment below to test the method and replace null with proper value - //string body = null; - //var response = instance.FakeOuterStringSerialize(body); + //Guid requiredStringUuid = null; + //string? body = null; + //var response = instance.FakeOuterStringSerialize(requiredStringUuid, body); //Assert.IsType(response); } @@ -124,6 +125,39 @@ public void GetArrayOfEnumsTest() //Assert.IsType>(response); } + /// + /// Test GetMixedAnyOf + /// + [Fact] + public void GetMixedAnyOfTest() + { + // TODO uncomment below to test the method and replace null with proper value + //var response = instance.GetMixedAnyOf(); + //Assert.IsType(response); + } + + /// + /// Test GetMixedOneOf + /// + [Fact] + public void GetMixedOneOfTest() + { + // TODO uncomment below to test the method and replace null with proper value + //var response = instance.GetMixedOneOf(); + //Assert.IsType(response); + } + + /// + /// Test TestAdditionalPropertiesReference + /// + [Fact] + public void TestAdditionalPropertiesReferenceTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Dictionary requestBody = null; + //instance.TestAdditionalPropertiesReference(requestBody); + } + /// /// Test TestBodyWithFileSchema /// @@ -167,20 +201,20 @@ public void TestEndpointParametersTest() { // TODO uncomment below to test the method and replace null with proper value //decimal number = null; - //double _double = null; + //double varDouble = null; //string patternWithoutDelimiter = null; - //byte[] _byte = null; + //byte[] varByte = null; //int? integer = null; //int? int32 = null; //long? int64 = null; - //float? _float = null; - //string _string = null; - //System.IO.Stream binary = null; - //DateTime? date = null; + //float? varFloat = null; + //string? varString = null; + //System.IO.Stream? binary = null; + //DateOnly? date = null; //DateTime? dateTime = null; - //string password = null; - //string callback = null; - //instance.TestEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback); + //string? password = null; + //string? callback = null; + //instance.TestEndpointParameters(number, varDouble, patternWithoutDelimiter, varByte, integer, int32, int64, varFloat, varString, binary, date, dateTime, password, callback); } /// @@ -190,14 +224,14 @@ public void TestEndpointParametersTest() public void TestEnumParametersTest() { // TODO uncomment below to test the method and replace null with proper value - //List enumHeaderStringArray = null; - //string enumHeaderString = null; - //List enumQueryStringArray = null; - //string enumQueryString = null; + //List? enumHeaderStringArray = null; + //string? enumHeaderString = null; + //List? enumQueryStringArray = null; + //string? enumQueryString = null; //int? enumQueryInteger = null; //double? enumQueryDouble = null; - //List enumFormStringArray = null; - //string enumFormString = null; + //List? enumFormStringArray = null; + //string? enumFormString = null; //instance.TestEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString); } @@ -228,6 +262,17 @@ public void TestInlineAdditionalPropertiesTest() //instance.TestInlineAdditionalProperties(requestBody); } + /// + /// Test TestInlineFreeformAdditionalProperties + /// + [Fact] + public void TestInlineFreeformAdditionalPropertiesTest() + { + // TODO uncomment below to test the method and replace null with proper value + //TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest = null; + //instance.TestInlineFreeformAdditionalProperties(testInlineFreeformAdditionalPropertiesRequest); + } + /// /// Test TestJsonFormData /// @@ -252,7 +297,22 @@ public void TestQueryParameterCollectionFormatTest() //List http = null; //List url = null; //List context = null; - //instance.TestQueryParameterCollectionFormat(pipe, ioutil, http, url, context); + //string requiredNotNullable = null; + //string requiredNullable = null; + //string? notRequiredNotNullable = null; + //string? notRequiredNullable = null; + //instance.TestQueryParameterCollectionFormat(pipe, ioutil, http, url, context, requiredNotNullable, requiredNullable, notRequiredNotNullable, notRequiredNullable); + } + + /// + /// Test TestStringMapReference + /// + [Fact] + public void TestStringMapReferenceTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Dictionary requestBody = null; + //instance.TestStringMapReference(requestBody); } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Api/PetApiTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Api/PetApiTests.cs index 673867641450..f4b42c5f70d0 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Api/PetApiTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Api/PetApiTests.cs @@ -73,7 +73,7 @@ public void DeletePetTest() { // TODO uncomment below to test the method and replace null with proper value //long petId = null; - //string apiKey = null; + //string? apiKey = null; //instance.DeletePet(petId, apiKey); } @@ -132,8 +132,8 @@ public void UpdatePetWithFormTest() { // TODO uncomment below to test the method and replace null with proper value //long petId = null; - //string name = null; - //string status = null; + //string? name = null; + //string? status = null; //instance.UpdatePetWithForm(petId, name, status); } @@ -145,8 +145,8 @@ public void UploadFileTest() { // TODO uncomment below to test the method and replace null with proper value //long petId = null; - //string additionalMetadata = null; - //System.IO.Stream file = null; + //string? additionalMetadata = null; + //System.IO.Stream? file = null; //var response = instance.UploadFile(petId, additionalMetadata, file); //Assert.IsType(response); } @@ -160,7 +160,7 @@ public void UploadFileWithRequiredFileTest() // TODO uncomment below to test the method and replace null with proper value //long petId = null; //System.IO.Stream requiredFile = null; - //string additionalMetadata = null; + //string? additionalMetadata = null; //var response = instance.UploadFileWithRequiredFile(petId, requiredFile, additionalMetadata); //Assert.IsType(response); } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ActivityOutputElementRepresentationTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ActivityOutputElementRepresentationTests.cs index f211a64884af..b4bb73592031 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ActivityOutputElementRepresentationTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ActivityOutputElementRepresentationTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ActivityOutputElementRepresentationInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Prop1' /// @@ -64,6 +62,7 @@ public void Prop1Test() { // TODO unit test for the property 'Prop1' } + /// /// Test the property 'Prop2' /// @@ -72,7 +71,5 @@ public void Prop2Test() { // TODO unit test for the property 'Prop2' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ActivityTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ActivityTests.cs index afe9e846ee94..0b9efbd5a20b 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ActivityTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ActivityTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ActivityInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ActivityOutputs' /// @@ -64,7 +62,5 @@ public void ActivityOutputsTest() { // TODO unit test for the property 'ActivityOutputs' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesClassTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesClassTests.cs index 9ab029ed0979..d766719b5bce 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesClassTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesClassTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void AdditionalPropertiesClassInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'MapProperty' /// @@ -64,6 +62,7 @@ public void MapPropertyTest() { // TODO unit test for the property 'MapProperty' } + /// /// Test the property 'MapOfMapProperty' /// @@ -72,6 +71,7 @@ public void MapOfMapPropertyTest() { // TODO unit test for the property 'MapOfMapProperty' } + /// /// Test the property 'Anytype1' /// @@ -80,6 +80,7 @@ public void Anytype1Test() { // TODO unit test for the property 'Anytype1' } + /// /// Test the property 'MapWithUndeclaredPropertiesAnytype1' /// @@ -88,6 +89,7 @@ public void MapWithUndeclaredPropertiesAnytype1Test() { // TODO unit test for the property 'MapWithUndeclaredPropertiesAnytype1' } + /// /// Test the property 'MapWithUndeclaredPropertiesAnytype2' /// @@ -96,6 +98,7 @@ public void MapWithUndeclaredPropertiesAnytype2Test() { // TODO unit test for the property 'MapWithUndeclaredPropertiesAnytype2' } + /// /// Test the property 'MapWithUndeclaredPropertiesAnytype3' /// @@ -104,6 +107,7 @@ public void MapWithUndeclaredPropertiesAnytype3Test() { // TODO unit test for the property 'MapWithUndeclaredPropertiesAnytype3' } + /// /// Test the property 'EmptyMap' /// @@ -112,6 +116,7 @@ public void EmptyMapTest() { // TODO unit test for the property 'EmptyMap' } + /// /// Test the property 'MapWithUndeclaredPropertiesString' /// @@ -120,7 +125,5 @@ public void MapWithUndeclaredPropertiesStringTest() { // TODO unit test for the property 'MapWithUndeclaredPropertiesString' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/AnimalTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/AnimalTests.cs index ced34a4faadd..0bc46ab7f479 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/AnimalTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/AnimalTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -64,6 +63,7 @@ public void CatDeserializeFromAnimalTest() // TODO uncomment below to test deserialize a Cat from type Animal //Assert.IsType(JsonConvert.DeserializeObject(new Cat().ToJson())); } + /// /// Test deserialize a Dog from type Animal /// @@ -82,6 +82,7 @@ public void ClassNameTest() { // TODO unit test for the property 'ClassName' } + /// /// Test the property 'Color' /// @@ -90,7 +91,5 @@ public void ColorTest() { // TODO unit test for the property 'Color' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ApiResponseTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ApiResponseTests.cs index 2a2e098e6082..901c6a02965e 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ApiResponseTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ApiResponseTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ApiResponseInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Code' /// @@ -64,6 +62,7 @@ public void CodeTest() { // TODO unit test for the property 'Code' } + /// /// Test the property 'Type' /// @@ -72,6 +71,7 @@ public void TypeTest() { // TODO unit test for the property 'Type' } + /// /// Test the property 'Message' /// @@ -80,7 +80,5 @@ public void MessageTest() { // TODO unit test for the property 'Message' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/AppleReqTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/AppleReqTests.cs index f945f6593685..94d06c61e236 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/AppleReqTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/AppleReqTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void AppleReqInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Cultivar' /// @@ -64,6 +62,7 @@ public void CultivarTest() { // TODO unit test for the property 'Cultivar' } + /// /// Test the property 'Mealy' /// @@ -72,7 +71,5 @@ public void MealyTest() { // TODO unit test for the property 'Mealy' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/AppleTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/AppleTests.cs index 468d60184ada..b3aa7e34f8db 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/AppleTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/AppleTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void AppleInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Cultivar' /// @@ -64,6 +62,7 @@ public void CultivarTest() { // TODO unit test for the property 'Cultivar' } + /// /// Test the property 'Origin' /// @@ -73,6 +72,13 @@ public void OriginTest() // TODO unit test for the property 'Origin' } + /// + /// Test the property 'ColorCode' + /// + [Fact] + public void ColorCodeTest() + { + // TODO unit test for the property 'ColorCode' + } } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ArrayOfArrayOfNumberOnlyTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ArrayOfArrayOfNumberOnlyTests.cs index 0b259d7d3916..d52b1938e420 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ArrayOfArrayOfNumberOnlyTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ArrayOfArrayOfNumberOnlyTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ArrayOfArrayOfNumberOnlyInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ArrayArrayNumber' /// @@ -64,7 +62,5 @@ public void ArrayArrayNumberTest() { // TODO unit test for the property 'ArrayArrayNumber' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ArrayOfNumberOnlyTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ArrayOfNumberOnlyTests.cs index 27f312ad25f5..421bfd6caeab 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ArrayOfNumberOnlyTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ArrayOfNumberOnlyTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ArrayOfNumberOnlyInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ArrayNumber' /// @@ -64,7 +62,5 @@ public void ArrayNumberTest() { // TODO unit test for the property 'ArrayNumber' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ArrayTestTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ArrayTestTests.cs index a433e8c87cf7..5028c715b988 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ArrayTestTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ArrayTestTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ArrayTestInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ArrayOfString' /// @@ -64,6 +62,7 @@ public void ArrayOfStringTest() { // TODO unit test for the property 'ArrayOfString' } + /// /// Test the property 'ArrayArrayOfInteger' /// @@ -72,6 +71,7 @@ public void ArrayArrayOfIntegerTest() { // TODO unit test for the property 'ArrayArrayOfInteger' } + /// /// Test the property 'ArrayArrayOfModel' /// @@ -80,7 +80,5 @@ public void ArrayArrayOfModelTest() { // TODO unit test for the property 'ArrayArrayOfModel' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/BananaReqTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/BananaReqTests.cs index 8a6eeb82eeea..8242ff9e7969 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/BananaReqTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/BananaReqTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void BananaReqInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'LengthCm' /// @@ -64,6 +62,7 @@ public void LengthCmTest() { // TODO unit test for the property 'LengthCm' } + /// /// Test the property 'Sweet' /// @@ -72,7 +71,5 @@ public void SweetTest() { // TODO unit test for the property 'Sweet' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/BananaTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/BananaTests.cs index 8d8cc376b038..ddcea686eee8 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/BananaTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/BananaTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void BananaInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'LengthCm' /// @@ -64,7 +62,5 @@ public void LengthCmTest() { // TODO unit test for the property 'LengthCm' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/BasquePigTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/BasquePigTests.cs index 3cdccaa75959..9cb45c006e64 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/BasquePigTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/BasquePigTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void BasquePigInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ClassName' /// @@ -64,7 +62,5 @@ public void ClassNameTest() { // TODO unit test for the property 'ClassName' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/CapitalizationTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/CapitalizationTests.cs index 185c83666fc7..9e6a400d1ed1 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/CapitalizationTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/CapitalizationTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void CapitalizationInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'SmallCamel' /// @@ -64,6 +62,7 @@ public void SmallCamelTest() { // TODO unit test for the property 'SmallCamel' } + /// /// Test the property 'CapitalCamel' /// @@ -72,6 +71,7 @@ public void CapitalCamelTest() { // TODO unit test for the property 'CapitalCamel' } + /// /// Test the property 'SmallSnake' /// @@ -80,6 +80,7 @@ public void SmallSnakeTest() { // TODO unit test for the property 'SmallSnake' } + /// /// Test the property 'CapitalSnake' /// @@ -88,6 +89,7 @@ public void CapitalSnakeTest() { // TODO unit test for the property 'CapitalSnake' } + /// /// Test the property 'SCAETHFlowPoints' /// @@ -96,6 +98,7 @@ public void SCAETHFlowPointsTest() { // TODO unit test for the property 'SCAETHFlowPoints' } + /// /// Test the property 'ATT_NAME' /// @@ -104,7 +107,5 @@ public void ATT_NAMETest() { // TODO unit test for the property 'ATT_NAME' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/CatTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/CatTests.cs index 701ba7602823..c1b10d32171b 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/CatTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/CatTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void CatInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Declawed' /// @@ -64,7 +62,5 @@ public void DeclawedTest() { // TODO unit test for the property 'Declawed' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/CategoryTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/CategoryTests.cs index 6ce48e601e47..d1ef61862440 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/CategoryTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/CategoryTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void CategoryInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Id' /// @@ -64,6 +62,7 @@ public void IdTest() { // TODO unit test for the property 'Id' } + /// /// Test the property 'Name' /// @@ -72,7 +71,5 @@ public void NameTest() { // TODO unit test for the property 'Name' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ChildCatTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ChildCatTests.cs index 68566fd8d560..b40a42cb0225 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ChildCatTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ChildCatTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ChildCatInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Name' /// @@ -64,6 +62,7 @@ public void NameTest() { // TODO unit test for the property 'Name' } + /// /// Test the property 'PetType' /// @@ -72,7 +71,5 @@ public void PetTypeTest() { // TODO unit test for the property 'PetType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ClassModelTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ClassModelTests.cs index d29472e83aaf..a09b95ab4c9c 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ClassModelTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ClassModelTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ClassModelInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Class' /// @@ -64,7 +62,5 @@ public void ClassTest() { // TODO unit test for the property 'Class' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ComplexQuadrilateralTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ComplexQuadrilateralTests.cs index b3529280c8d6..835c5b87bc6e 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ComplexQuadrilateralTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ComplexQuadrilateralTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ComplexQuadrilateralInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// @@ -64,6 +62,7 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } + /// /// Test the property 'QuadrilateralType' /// @@ -72,7 +71,5 @@ public void QuadrilateralTypeTest() { // TODO unit test for the property 'QuadrilateralType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/DanishPigTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/DanishPigTests.cs index 572d9bffa790..765496ea0ced 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/DanishPigTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/DanishPigTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void DanishPigInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ClassName' /// @@ -64,7 +62,5 @@ public void ClassNameTest() { // TODO unit test for the property 'ClassName' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/DateOnlyClassTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/DateOnlyClassTests.cs index 3bd2b54a366a..67be10782efd 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/DateOnlyClassTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/DateOnlyClassTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void DateOnlyClassInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'DateOnlyProperty' /// @@ -64,7 +62,5 @@ public void DateOnlyPropertyTest() { // TODO unit test for the property 'DateOnlyProperty' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/DeprecatedObjectTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/DeprecatedObjectTests.cs index 1da5f4011c95..be6b35dbf451 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/DeprecatedObjectTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/DeprecatedObjectTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void DeprecatedObjectInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Name' /// @@ -64,7 +62,5 @@ public void NameTest() { // TODO unit test for the property 'Name' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/DogTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/DogTests.cs index 992f93a51fd5..a00de64ef51a 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/DogTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/DogTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void DogInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Breed' /// @@ -64,7 +62,5 @@ public void BreedTest() { // TODO unit test for the property 'Breed' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/DrawingTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/DrawingTests.cs index 0709ad9eeb3b..3b1308e50513 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/DrawingTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/DrawingTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void DrawingInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'MainShape' /// @@ -64,6 +62,7 @@ public void MainShapeTest() { // TODO unit test for the property 'MainShape' } + /// /// Test the property 'ShapeOrNull' /// @@ -72,6 +71,7 @@ public void ShapeOrNullTest() { // TODO unit test for the property 'ShapeOrNull' } + /// /// Test the property 'NullableShape' /// @@ -80,6 +80,7 @@ public void NullableShapeTest() { // TODO unit test for the property 'NullableShape' } + /// /// Test the property 'Shapes' /// @@ -88,7 +89,5 @@ public void ShapesTest() { // TODO unit test for the property 'Shapes' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/EnumArraysTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/EnumArraysTests.cs index 5779ca294775..6fcfa6f448c1 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/EnumArraysTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/EnumArraysTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void EnumArraysInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'JustSymbol' /// @@ -64,6 +62,7 @@ public void JustSymbolTest() { // TODO unit test for the property 'JustSymbol' } + /// /// Test the property 'ArrayEnum' /// @@ -72,7 +71,5 @@ public void ArrayEnumTest() { // TODO unit test for the property 'ArrayEnum' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/EnumClassTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/EnumClassTests.cs index a17738c5cbc5..bb46e292a652 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/EnumClassTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/EnumClassTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,9 +53,5 @@ public void EnumClassInstanceTest() // TODO uncomment below to test "IsType" EnumClass //Assert.IsType(instance); } - - - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/EnumTestTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/EnumTestTests.cs index 4f81b845d493..3050af442410 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/EnumTestTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/EnumTestTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void EnumTestInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'EnumString' /// @@ -64,6 +62,7 @@ public void EnumStringTest() { // TODO unit test for the property 'EnumString' } + /// /// Test the property 'EnumStringRequired' /// @@ -72,6 +71,7 @@ public void EnumStringRequiredTest() { // TODO unit test for the property 'EnumStringRequired' } + /// /// Test the property 'EnumInteger' /// @@ -80,6 +80,7 @@ public void EnumIntegerTest() { // TODO unit test for the property 'EnumInteger' } + /// /// Test the property 'EnumIntegerOnly' /// @@ -88,6 +89,7 @@ public void EnumIntegerOnlyTest() { // TODO unit test for the property 'EnumIntegerOnly' } + /// /// Test the property 'EnumNumber' /// @@ -96,6 +98,7 @@ public void EnumNumberTest() { // TODO unit test for the property 'EnumNumber' } + /// /// Test the property 'OuterEnum' /// @@ -104,6 +107,7 @@ public void OuterEnumTest() { // TODO unit test for the property 'OuterEnum' } + /// /// Test the property 'OuterEnumInteger' /// @@ -112,6 +116,7 @@ public void OuterEnumIntegerTest() { // TODO unit test for the property 'OuterEnumInteger' } + /// /// Test the property 'OuterEnumDefaultValue' /// @@ -120,6 +125,7 @@ public void OuterEnumDefaultValueTest() { // TODO unit test for the property 'OuterEnumDefaultValue' } + /// /// Test the property 'OuterEnumIntegerDefaultValue' /// @@ -128,7 +134,5 @@ public void OuterEnumIntegerDefaultValueTest() { // TODO unit test for the property 'OuterEnumIntegerDefaultValue' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/EquilateralTriangleTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/EquilateralTriangleTests.cs index 4663cb667de6..71d48f7e200a 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/EquilateralTriangleTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/EquilateralTriangleTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void EquilateralTriangleInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// @@ -64,6 +62,7 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } + /// /// Test the property 'TriangleType' /// @@ -72,7 +71,5 @@ public void TriangleTypeTest() { // TODO unit test for the property 'TriangleType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/FileSchemaTestClassTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/FileSchemaTestClassTests.cs index 9f45b4fe89d5..d89ad5a5bc7b 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/FileSchemaTestClassTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/FileSchemaTestClassTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void FileSchemaTestClassInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'File' /// @@ -64,6 +62,7 @@ public void FileTest() { // TODO unit test for the property 'File' } + /// /// Test the property 'Files' /// @@ -72,7 +71,5 @@ public void FilesTest() { // TODO unit test for the property 'Files' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/FileTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/FileTests.cs index 761bb72a844f..7eaea9c8786f 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/FileTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/FileTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void FileInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'SourceURI' /// @@ -64,7 +62,5 @@ public void SourceURITest() { // TODO unit test for the property 'SourceURI' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/FooGetDefaultResponseTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/FooGetDefaultResponseTests.cs index 0154d528418e..563269643111 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/FooGetDefaultResponseTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/FooGetDefaultResponseTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void FooGetDefaultResponseInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'String' /// @@ -64,7 +62,5 @@ public void StringTest() { // TODO unit test for the property 'String' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/FooTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/FooTests.cs index 0b6ed52edbd4..52f87dd5b0e0 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/FooTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/FooTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void FooInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Bar' /// @@ -64,7 +62,5 @@ public void BarTest() { // TODO unit test for the property 'Bar' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/FormatTestTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/FormatTestTests.cs index 97332800e9af..fbe8039a5a30 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/FormatTestTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/FormatTestTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void FormatTestInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Integer' /// @@ -64,6 +62,7 @@ public void IntegerTest() { // TODO unit test for the property 'Integer' } + /// /// Test the property 'Int32' /// @@ -72,6 +71,16 @@ public void Int32Test() { // TODO unit test for the property 'Int32' } + + /// + /// Test the property 'UnsignedInteger' + /// + [Fact] + public void UnsignedIntegerTest() + { + // TODO unit test for the property 'UnsignedInteger' + } + /// /// Test the property 'Int64' /// @@ -80,6 +89,16 @@ public void Int64Test() { // TODO unit test for the property 'Int64' } + + /// + /// Test the property 'UnsignedLong' + /// + [Fact] + public void UnsignedLongTest() + { + // TODO unit test for the property 'UnsignedLong' + } + /// /// Test the property 'Number' /// @@ -88,6 +107,7 @@ public void NumberTest() { // TODO unit test for the property 'Number' } + /// /// Test the property 'Float' /// @@ -96,6 +116,7 @@ public void FloatTest() { // TODO unit test for the property 'Float' } + /// /// Test the property 'Double' /// @@ -104,6 +125,7 @@ public void DoubleTest() { // TODO unit test for the property 'Double' } + /// /// Test the property 'Decimal' /// @@ -112,6 +134,7 @@ public void DecimalTest() { // TODO unit test for the property 'Decimal' } + /// /// Test the property 'String' /// @@ -120,6 +143,7 @@ public void StringTest() { // TODO unit test for the property 'String' } + /// /// Test the property 'Byte' /// @@ -128,6 +152,7 @@ public void ByteTest() { // TODO unit test for the property 'Byte' } + /// /// Test the property 'Binary' /// @@ -136,6 +161,7 @@ public void BinaryTest() { // TODO unit test for the property 'Binary' } + /// /// Test the property 'Date' /// @@ -144,6 +170,7 @@ public void DateTest() { // TODO unit test for the property 'Date' } + /// /// Test the property 'DateTime' /// @@ -152,6 +179,7 @@ public void DateTimeTest() { // TODO unit test for the property 'DateTime' } + /// /// Test the property 'Uuid' /// @@ -160,6 +188,7 @@ public void UuidTest() { // TODO unit test for the property 'Uuid' } + /// /// Test the property 'Password' /// @@ -168,6 +197,7 @@ public void PasswordTest() { // TODO unit test for the property 'Password' } + /// /// Test the property 'PatternWithDigits' /// @@ -176,6 +206,7 @@ public void PatternWithDigitsTest() { // TODO unit test for the property 'PatternWithDigits' } + /// /// Test the property 'PatternWithDigitsAndDelimiter' /// @@ -185,6 +216,13 @@ public void PatternWithDigitsAndDelimiterTest() // TODO unit test for the property 'PatternWithDigitsAndDelimiter' } + /// + /// Test the property 'PatternWithBackslash' + /// + [Fact] + public void PatternWithBackslashTest() + { + // TODO unit test for the property 'PatternWithBackslash' + } } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/FruitReqTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/FruitReqTests.cs index 5ea9e3ffc1d5..771ef1ae2c5d 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/FruitReqTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/FruitReqTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void FruitReqInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Cultivar' /// @@ -64,6 +62,7 @@ public void CultivarTest() { // TODO unit test for the property 'Cultivar' } + /// /// Test the property 'Mealy' /// @@ -72,6 +71,7 @@ public void MealyTest() { // TODO unit test for the property 'Mealy' } + /// /// Test the property 'LengthCm' /// @@ -80,6 +80,7 @@ public void LengthCmTest() { // TODO unit test for the property 'LengthCm' } + /// /// Test the property 'Sweet' /// @@ -88,7 +89,5 @@ public void SweetTest() { // TODO unit test for the property 'Sweet' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/FruitTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/FruitTests.cs index 91e069bb42fa..53881a333193 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/FruitTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/FruitTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void FruitInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Color' /// @@ -64,6 +62,7 @@ public void ColorTest() { // TODO unit test for the property 'Color' } + /// /// Test the property 'Cultivar' /// @@ -72,6 +71,7 @@ public void CultivarTest() { // TODO unit test for the property 'Cultivar' } + /// /// Test the property 'Origin' /// @@ -80,6 +80,16 @@ public void OriginTest() { // TODO unit test for the property 'Origin' } + + /// + /// Test the property 'ColorCode' + /// + [Fact] + public void ColorCodeTest() + { + // TODO unit test for the property 'ColorCode' + } + /// /// Test the property 'LengthCm' /// @@ -88,7 +98,5 @@ public void LengthCmTest() { // TODO unit test for the property 'LengthCm' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/GmFruitTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/GmFruitTests.cs index 08fb0e07a1c8..6322d4e2a721 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/GmFruitTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/GmFruitTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void GmFruitInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Color' /// @@ -64,6 +62,7 @@ public void ColorTest() { // TODO unit test for the property 'Color' } + /// /// Test the property 'Cultivar' /// @@ -72,6 +71,7 @@ public void CultivarTest() { // TODO unit test for the property 'Cultivar' } + /// /// Test the property 'Origin' /// @@ -80,6 +80,16 @@ public void OriginTest() { // TODO unit test for the property 'Origin' } + + /// + /// Test the property 'ColorCode' + /// + [Fact] + public void ColorCodeTest() + { + // TODO unit test for the property 'ColorCode' + } + /// /// Test the property 'LengthCm' /// @@ -88,7 +98,5 @@ public void LengthCmTest() { // TODO unit test for the property 'LengthCm' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/GrandparentAnimalTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/GrandparentAnimalTests.cs index faa4930944be..3adc2a0573e7 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/GrandparentAnimalTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/GrandparentAnimalTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -64,6 +63,7 @@ public void ChildCatDeserializeFromParentPetTest() // TODO uncomment below to test deserialize a ChildCat from type ParentPet //Assert.IsType(JsonConvert.DeserializeObject(new ChildCat().ToJson())); } + /// /// Test deserialize a ParentPet from type GrandparentAnimal /// @@ -82,7 +82,5 @@ public void PetTypeTest() { // TODO unit test for the property 'PetType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/HasOnlyReadOnlyTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/HasOnlyReadOnlyTests.cs index 651a9f0ce30c..69abe3f9e6ad 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/HasOnlyReadOnlyTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/HasOnlyReadOnlyTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void HasOnlyReadOnlyInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Bar' /// @@ -64,6 +62,7 @@ public void BarTest() { // TODO unit test for the property 'Bar' } + /// /// Test the property 'Foo' /// @@ -72,7 +71,5 @@ public void FooTest() { // TODO unit test for the property 'Foo' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/HealthCheckResultTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/HealthCheckResultTests.cs index 857190a3334d..794fda2c2d6d 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/HealthCheckResultTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/HealthCheckResultTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void HealthCheckResultInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'NullableMessage' /// @@ -64,7 +62,5 @@ public void NullableMessageTest() { // TODO unit test for the property 'NullableMessage' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/IsoscelesTriangleTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/IsoscelesTriangleTests.cs index 755c417cc54f..ca8a058e37df 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/IsoscelesTriangleTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/IsoscelesTriangleTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void IsoscelesTriangleInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// @@ -64,6 +62,7 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } + /// /// Test the property 'TriangleType' /// @@ -72,7 +71,5 @@ public void TriangleTypeTest() { // TODO unit test for the property 'TriangleType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ListTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ListTests.cs index 2ed828d05208..d659080e89c9 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ListTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ListTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,16 +54,13 @@ public void ListInstanceTest() //Assert.IsType(instance); } - /// - /// Test the property '_123List' + /// Test the property 'Var123List' /// [Fact] - public void _123ListTest() + public void Var123ListTest() { - // TODO unit test for the property '_123List' + // TODO unit test for the property 'Var123List' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/LiteralStringClassTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/LiteralStringClassTests.cs index 74dc17b9f4a1..58dc425228ff 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/LiteralStringClassTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/LiteralStringClassTests.cs @@ -54,7 +54,6 @@ public void LiteralStringClassInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'EscapedLiteralString' /// @@ -63,6 +62,7 @@ public void EscapedLiteralStringTest() { // TODO unit test for the property 'EscapedLiteralString' } + /// /// Test the property 'UnescapedLiteralString' /// @@ -71,7 +71,5 @@ public void UnescapedLiteralStringTest() { // TODO unit test for the property 'UnescapedLiteralString' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/MammalTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/MammalTests.cs index 7b46cbf06450..3fdadd19646c 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/MammalTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/MammalTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void MammalInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'HasBaleen' /// @@ -64,6 +62,7 @@ public void HasBaleenTest() { // TODO unit test for the property 'HasBaleen' } + /// /// Test the property 'HasTeeth' /// @@ -72,6 +71,7 @@ public void HasTeethTest() { // TODO unit test for the property 'HasTeeth' } + /// /// Test the property 'ClassName' /// @@ -80,6 +80,7 @@ public void ClassNameTest() { // TODO unit test for the property 'ClassName' } + /// /// Test the property 'Type' /// @@ -88,7 +89,5 @@ public void TypeTest() { // TODO unit test for the property 'Type' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/MapTestTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/MapTestTests.cs index 20036e1c905e..e055027f15bf 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/MapTestTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/MapTestTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void MapTestInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'MapMapOfString' /// @@ -64,6 +62,7 @@ public void MapMapOfStringTest() { // TODO unit test for the property 'MapMapOfString' } + /// /// Test the property 'MapOfEnumString' /// @@ -72,6 +71,7 @@ public void MapOfEnumStringTest() { // TODO unit test for the property 'MapOfEnumString' } + /// /// Test the property 'DirectMap' /// @@ -80,6 +80,7 @@ public void DirectMapTest() { // TODO unit test for the property 'DirectMap' } + /// /// Test the property 'IndirectMap' /// @@ -88,7 +89,5 @@ public void IndirectMapTest() { // TODO unit test for the property 'IndirectMap' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/MixedPropertiesAndAdditionalPropertiesClassTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/MixedPropertiesAndAdditionalPropertiesClassTests.cs index f56cd715f45f..07c592a8a4c0 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/MixedPropertiesAndAdditionalPropertiesClassTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/MixedPropertiesAndAdditionalPropertiesClassTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,6 +54,14 @@ public void MixedPropertiesAndAdditionalPropertiesClassInstanceTest() //Assert.IsType(instance); } + /// + /// Test the property 'UuidWithPattern' + /// + [Fact] + public void UuidWithPatternTest() + { + // TODO unit test for the property 'UuidWithPattern' + } /// /// Test the property 'Uuid' @@ -64,6 +71,7 @@ public void UuidTest() { // TODO unit test for the property 'Uuid' } + /// /// Test the property 'DateTime' /// @@ -72,6 +80,7 @@ public void DateTimeTest() { // TODO unit test for the property 'DateTime' } + /// /// Test the property 'Map' /// @@ -80,7 +89,5 @@ public void MapTest() { // TODO unit test for the property 'Map' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/Model200ResponseTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/Model200ResponseTests.cs index e25478618f20..85be687d5c2b 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/Model200ResponseTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/Model200ResponseTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void Model200ResponseInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Name' /// @@ -64,6 +62,7 @@ public void NameTest() { // TODO unit test for the property 'Name' } + /// /// Test the property 'Class' /// @@ -72,7 +71,5 @@ public void ClassTest() { // TODO unit test for the property 'Class' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ModelClientTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ModelClientTests.cs index 24a9e2631586..a5f4aa1593e1 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ModelClientTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ModelClientTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,16 +54,13 @@ public void ModelClientInstanceTest() //Assert.IsType(instance); } - /// - /// Test the property '_Client' + /// Test the property 'VarClient' /// [Fact] - public void _ClientTest() + public void VarClientTest() { - // TODO unit test for the property '_Client' + // TODO unit test for the property 'VarClient' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/NameTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/NameTests.cs index c390049e66dc..fc1756b66bec 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/NameTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/NameTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,15 +54,15 @@ public void NameInstanceTest() //Assert.IsType(instance); } - /// - /// Test the property '_Name' + /// Test the property 'VarName' /// [Fact] - public void _NameTest() + public void VarNameTest() { - // TODO unit test for the property '_Name' + // TODO unit test for the property 'VarName' } + /// /// Test the property 'SnakeCase' /// @@ -72,6 +71,7 @@ public void SnakeCaseTest() { // TODO unit test for the property 'SnakeCase' } + /// /// Test the property 'Property' /// @@ -80,15 +80,14 @@ public void PropertyTest() { // TODO unit test for the property 'Property' } + /// - /// Test the property '_123Number' + /// Test the property 'Var123Number' /// [Fact] - public void _123NumberTest() + public void Var123NumberTest() { - // TODO unit test for the property '_123Number' + // TODO unit test for the property 'Var123Number' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/NullableClassTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/NullableClassTests.cs index 8f00505612a9..214795f86c27 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/NullableClassTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/NullableClassTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void NullableClassInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'IntegerProp' /// @@ -64,6 +62,7 @@ public void IntegerPropTest() { // TODO unit test for the property 'IntegerProp' } + /// /// Test the property 'NumberProp' /// @@ -72,6 +71,7 @@ public void NumberPropTest() { // TODO unit test for the property 'NumberProp' } + /// /// Test the property 'BooleanProp' /// @@ -80,6 +80,7 @@ public void BooleanPropTest() { // TODO unit test for the property 'BooleanProp' } + /// /// Test the property 'StringProp' /// @@ -88,6 +89,7 @@ public void StringPropTest() { // TODO unit test for the property 'StringProp' } + /// /// Test the property 'DateProp' /// @@ -96,6 +98,7 @@ public void DatePropTest() { // TODO unit test for the property 'DateProp' } + /// /// Test the property 'DatetimeProp' /// @@ -104,6 +107,7 @@ public void DatetimePropTest() { // TODO unit test for the property 'DatetimeProp' } + /// /// Test the property 'ArrayNullableProp' /// @@ -112,6 +116,7 @@ public void ArrayNullablePropTest() { // TODO unit test for the property 'ArrayNullableProp' } + /// /// Test the property 'ArrayAndItemsNullableProp' /// @@ -120,6 +125,7 @@ public void ArrayAndItemsNullablePropTest() { // TODO unit test for the property 'ArrayAndItemsNullableProp' } + /// /// Test the property 'ArrayItemsNullable' /// @@ -128,6 +134,7 @@ public void ArrayItemsNullableTest() { // TODO unit test for the property 'ArrayItemsNullable' } + /// /// Test the property 'ObjectNullableProp' /// @@ -136,6 +143,7 @@ public void ObjectNullablePropTest() { // TODO unit test for the property 'ObjectNullableProp' } + /// /// Test the property 'ObjectAndItemsNullableProp' /// @@ -144,6 +152,7 @@ public void ObjectAndItemsNullablePropTest() { // TODO unit test for the property 'ObjectAndItemsNullableProp' } + /// /// Test the property 'ObjectItemsNullable' /// @@ -152,7 +161,5 @@ public void ObjectItemsNullableTest() { // TODO unit test for the property 'ObjectItemsNullable' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/NullableGuidClassTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/NullableGuidClassTests.cs index 0bc0ea369188..1290072514cd 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/NullableGuidClassTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/NullableGuidClassTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void NullableGuidClassInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Uuid' /// @@ -64,7 +62,5 @@ public void UuidTest() { // TODO unit test for the property 'Uuid' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/NullableShapeTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/NullableShapeTests.cs index 5662f91d6e64..75e9c7e8fd49 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/NullableShapeTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/NullableShapeTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void NullableShapeInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// @@ -64,6 +62,7 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } + /// /// Test the property 'QuadrilateralType' /// @@ -72,7 +71,5 @@ public void QuadrilateralTypeTest() { // TODO unit test for the property 'QuadrilateralType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/NumberOnlyTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/NumberOnlyTests.cs index 3a06cb020b2a..2fb06f9afb48 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/NumberOnlyTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/NumberOnlyTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void NumberOnlyInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'JustNumber' /// @@ -64,7 +62,5 @@ public void JustNumberTest() { // TODO unit test for the property 'JustNumber' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ObjectWithDeprecatedFieldsTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ObjectWithDeprecatedFieldsTests.cs index 82f93fab48c5..e90b746d19c6 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ObjectWithDeprecatedFieldsTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ObjectWithDeprecatedFieldsTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ObjectWithDeprecatedFieldsInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Uuid' /// @@ -64,6 +62,7 @@ public void UuidTest() { // TODO unit test for the property 'Uuid' } + /// /// Test the property 'Id' /// @@ -72,6 +71,7 @@ public void IdTest() { // TODO unit test for the property 'Id' } + /// /// Test the property 'DeprecatedRef' /// @@ -80,6 +80,7 @@ public void DeprecatedRefTest() { // TODO unit test for the property 'DeprecatedRef' } + /// /// Test the property 'Bars' /// @@ -88,7 +89,5 @@ public void BarsTest() { // TODO unit test for the property 'Bars' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/OneOfStringTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/OneOfStringTests.cs index 75bd7cd9bfd0..04727e77c691 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/OneOfStringTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/OneOfStringTests.cs @@ -53,9 +53,5 @@ public void OneOfStringInstanceTest() // TODO uncomment below to test "IsType" OneOfString //Assert.IsType(instance); } - - - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/OrderTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/OrderTests.cs index cf5c561c5476..84d2828b367f 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/OrderTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/OrderTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void OrderInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Id' /// @@ -64,6 +62,7 @@ public void IdTest() { // TODO unit test for the property 'Id' } + /// /// Test the property 'PetId' /// @@ -72,6 +71,7 @@ public void PetIdTest() { // TODO unit test for the property 'PetId' } + /// /// Test the property 'Quantity' /// @@ -80,6 +80,7 @@ public void QuantityTest() { // TODO unit test for the property 'Quantity' } + /// /// Test the property 'ShipDate' /// @@ -88,6 +89,7 @@ public void ShipDateTest() { // TODO unit test for the property 'ShipDate' } + /// /// Test the property 'Status' /// @@ -96,6 +98,7 @@ public void StatusTest() { // TODO unit test for the property 'Status' } + /// /// Test the property 'Complete' /// @@ -104,7 +107,5 @@ public void CompleteTest() { // TODO unit test for the property 'Complete' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/OuterCompositeTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/OuterCompositeTests.cs index 2efda0db59c4..fd52fa2cfca7 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/OuterCompositeTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/OuterCompositeTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void OuterCompositeInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'MyNumber' /// @@ -64,6 +62,7 @@ public void MyNumberTest() { // TODO unit test for the property 'MyNumber' } + /// /// Test the property 'MyString' /// @@ -72,6 +71,7 @@ public void MyStringTest() { // TODO unit test for the property 'MyString' } + /// /// Test the property 'MyBoolean' /// @@ -80,7 +80,5 @@ public void MyBooleanTest() { // TODO unit test for the property 'MyBoolean' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/OuterEnumDefaultValueTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/OuterEnumDefaultValueTests.cs index 986fff774c46..db98c5a44ae3 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/OuterEnumDefaultValueTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/OuterEnumDefaultValueTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,9 +53,5 @@ public void OuterEnumDefaultValueInstanceTest() // TODO uncomment below to test "IsType" OuterEnumDefaultValue //Assert.IsType(instance); } - - - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerDefaultValueTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerDefaultValueTests.cs index 015d5dab945e..a4c028ea750d 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerDefaultValueTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerDefaultValueTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,9 +53,5 @@ public void OuterEnumIntegerDefaultValueInstanceTest() // TODO uncomment below to test "IsType" OuterEnumIntegerDefaultValue //Assert.IsType(instance); } - - - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerTests.cs index 385e899110a4..4d1be408011e 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,9 +53,5 @@ public void OuterEnumIntegerInstanceTest() // TODO uncomment below to test "IsType" OuterEnumInteger //Assert.IsType(instance); } - - - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/OuterEnumTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/OuterEnumTests.cs index f47304767b9e..d4d6e96125d9 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/OuterEnumTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/OuterEnumTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,9 +53,5 @@ public void OuterEnumInstanceTest() // TODO uncomment below to test "IsType" OuterEnum //Assert.IsType(instance); } - - - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ParentPetTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ParentPetTests.cs index 1e17568ed331..eb9f5956b215 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ParentPetTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ParentPetTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -64,8 +63,5 @@ public void ChildCatDeserializeFromParentPetTest() // TODO uncomment below to test deserialize a ChildCat from type ParentPet //Assert.IsType(JsonConvert.DeserializeObject(new ChildCat().ToJson())); } - - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/PetTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/PetTests.cs index 154e66f8dfc0..535ab69d2aa2 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/PetTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/PetTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void PetInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Id' /// @@ -64,6 +62,7 @@ public void IdTest() { // TODO unit test for the property 'Id' } + /// /// Test the property 'Category' /// @@ -72,6 +71,7 @@ public void CategoryTest() { // TODO unit test for the property 'Category' } + /// /// Test the property 'Name' /// @@ -80,6 +80,7 @@ public void NameTest() { // TODO unit test for the property 'Name' } + /// /// Test the property 'PhotoUrls' /// @@ -88,6 +89,7 @@ public void PhotoUrlsTest() { // TODO unit test for the property 'PhotoUrls' } + /// /// Test the property 'Tags' /// @@ -96,6 +98,7 @@ public void TagsTest() { // TODO unit test for the property 'Tags' } + /// /// Test the property 'Status' /// @@ -104,7 +107,5 @@ public void StatusTest() { // TODO unit test for the property 'Status' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/PigTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/PigTests.cs index 55cf2189046b..34562dc6860f 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/PigTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/PigTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void PigInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ClassName' /// @@ -64,7 +62,5 @@ public void ClassNameTest() { // TODO unit test for the property 'ClassName' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/PolymorphicPropertyTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/PolymorphicPropertyTests.cs index eff3c6ddc9bb..a546cd2b0032 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/PolymorphicPropertyTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/PolymorphicPropertyTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,9 +53,5 @@ public void PolymorphicPropertyInstanceTest() // TODO uncomment below to test "IsType" PolymorphicProperty //Assert.IsType(instance); } - - - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/QuadrilateralInterfaceTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/QuadrilateralInterfaceTests.cs index 6eef9f4c816d..d08798b36050 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/QuadrilateralInterfaceTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/QuadrilateralInterfaceTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void QuadrilateralInterfaceInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'QuadrilateralType' /// @@ -64,7 +62,5 @@ public void QuadrilateralTypeTest() { // TODO unit test for the property 'QuadrilateralType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/QuadrilateralTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/QuadrilateralTests.cs index 26826681a478..cd996d7e0edf 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/QuadrilateralTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/QuadrilateralTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void QuadrilateralInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// @@ -64,6 +62,7 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } + /// /// Test the property 'QuadrilateralType' /// @@ -72,7 +71,5 @@ public void QuadrilateralTypeTest() { // TODO unit test for the property 'QuadrilateralType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ReadOnlyFirstTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ReadOnlyFirstTests.cs index dc3d0fad54cd..056bc2b4519c 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ReadOnlyFirstTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ReadOnlyFirstTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ReadOnlyFirstInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Bar' /// @@ -64,6 +62,7 @@ public void BarTest() { // TODO unit test for the property 'Bar' } + /// /// Test the property 'Baz' /// @@ -72,7 +71,5 @@ public void BazTest() { // TODO unit test for the property 'Baz' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ReturnTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ReturnTests.cs index c8c1d6510d2f..4779edd80792 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ReturnTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ReturnTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,16 +54,13 @@ public void ReturnInstanceTest() //Assert.IsType(instance); } - /// - /// Test the property '_Return' + /// Test the property 'VarReturn' /// [Fact] - public void _ReturnTest() + public void VarReturnTest() { - // TODO unit test for the property '_Return' + // TODO unit test for the property 'VarReturn' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ScaleneTriangleTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ScaleneTriangleTests.cs index 04cb9f1ab6b1..a7332ab47b03 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ScaleneTriangleTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ScaleneTriangleTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ScaleneTriangleInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// @@ -64,6 +62,7 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } + /// /// Test the property 'TriangleType' /// @@ -72,7 +71,5 @@ public void TriangleTypeTest() { // TODO unit test for the property 'TriangleType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ShapeInterfaceTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ShapeInterfaceTests.cs index 7bd0bc86f963..e082fb3b4faa 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ShapeInterfaceTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ShapeInterfaceTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ShapeInterfaceInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// @@ -64,7 +62,5 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ShapeOrNullTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ShapeOrNullTests.cs index d0af114157c9..b70c157800b5 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ShapeOrNullTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ShapeOrNullTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ShapeOrNullInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// @@ -64,6 +62,7 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } + /// /// Test the property 'QuadrilateralType' /// @@ -72,7 +71,5 @@ public void QuadrilateralTypeTest() { // TODO unit test for the property 'QuadrilateralType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ShapeTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ShapeTests.cs index b01bd531f857..babd94722cfb 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ShapeTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ShapeTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ShapeInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// @@ -64,6 +62,7 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } + /// /// Test the property 'QuadrilateralType' /// @@ -72,7 +71,5 @@ public void QuadrilateralTypeTest() { // TODO unit test for the property 'QuadrilateralType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/SimpleQuadrilateralTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/SimpleQuadrilateralTests.cs index 6648e9809281..24f0288bcac4 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/SimpleQuadrilateralTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/SimpleQuadrilateralTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void SimpleQuadrilateralInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// @@ -64,6 +62,7 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } + /// /// Test the property 'QuadrilateralType' /// @@ -72,7 +71,5 @@ public void QuadrilateralTypeTest() { // TODO unit test for the property 'QuadrilateralType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/SpecialModelNameTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/SpecialModelNameTests.cs index 0f0e1ff12a9e..ef8a8d50e3ee 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/SpecialModelNameTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/SpecialModelNameTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void SpecialModelNameInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'SpecialPropertyName' /// @@ -64,15 +62,14 @@ public void SpecialPropertyNameTest() { // TODO unit test for the property 'SpecialPropertyName' } + /// - /// Test the property '_SpecialModelName' + /// Test the property 'VarSpecialModelName' /// [Fact] - public void _SpecialModelNameTest() + public void VarSpecialModelNameTest() { - // TODO unit test for the property '_SpecialModelName' + // TODO unit test for the property 'VarSpecialModelName' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/TagTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/TagTests.cs index 6d56232d0a76..8f9ad604eab9 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/TagTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/TagTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void TagInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Id' /// @@ -64,6 +62,7 @@ public void IdTest() { // TODO unit test for the property 'Id' } + /// /// Test the property 'Name' /// @@ -72,7 +71,5 @@ public void NameTest() { // TODO unit test for the property 'Name' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/TestCollectionEndingWithWordListObjectTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/TestCollectionEndingWithWordListObjectTests.cs index 4def0dcda9cc..6623a04fcc40 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/TestCollectionEndingWithWordListObjectTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/TestCollectionEndingWithWordListObjectTests.cs @@ -54,7 +54,6 @@ public void TestCollectionEndingWithWordListObjectInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'TestCollectionEndingWithWordList' /// @@ -63,7 +62,5 @@ public void TestCollectionEndingWithWordListTest() { // TODO unit test for the property 'TestCollectionEndingWithWordList' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/TestCollectionEndingWithWordListTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/TestCollectionEndingWithWordListTests.cs index e9df66daf2e5..a32943a0c841 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/TestCollectionEndingWithWordListTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/TestCollectionEndingWithWordListTests.cs @@ -54,7 +54,6 @@ public void TestCollectionEndingWithWordListInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Value' /// @@ -63,7 +62,5 @@ public void ValueTest() { // TODO unit test for the property 'Value' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/TriangleInterfaceTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/TriangleInterfaceTests.cs index fba65470bee6..1750c64c4eda 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/TriangleInterfaceTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/TriangleInterfaceTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void TriangleInterfaceInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'TriangleType' /// @@ -64,7 +62,5 @@ public void TriangleTypeTest() { // TODO unit test for the property 'TriangleType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/TriangleTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/TriangleTests.cs index bdaab0b47965..0dd209f5303a 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/TriangleTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/TriangleTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void TriangleInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// @@ -64,6 +62,7 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } + /// /// Test the property 'TriangleType' /// @@ -72,7 +71,5 @@ public void TriangleTypeTest() { // TODO unit test for the property 'TriangleType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/UserTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/UserTests.cs index a7b095e4c28e..bc3cb3775de1 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/UserTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/UserTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void UserInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Id' /// @@ -64,6 +62,7 @@ public void IdTest() { // TODO unit test for the property 'Id' } + /// /// Test the property 'Username' /// @@ -72,6 +71,7 @@ public void UsernameTest() { // TODO unit test for the property 'Username' } + /// /// Test the property 'FirstName' /// @@ -80,6 +80,7 @@ public void FirstNameTest() { // TODO unit test for the property 'FirstName' } + /// /// Test the property 'LastName' /// @@ -88,6 +89,7 @@ public void LastNameTest() { // TODO unit test for the property 'LastName' } + /// /// Test the property 'Email' /// @@ -96,6 +98,7 @@ public void EmailTest() { // TODO unit test for the property 'Email' } + /// /// Test the property 'Password' /// @@ -104,6 +107,7 @@ public void PasswordTest() { // TODO unit test for the property 'Password' } + /// /// Test the property 'Phone' /// @@ -112,6 +116,7 @@ public void PhoneTest() { // TODO unit test for the property 'Phone' } + /// /// Test the property 'UserStatus' /// @@ -120,6 +125,7 @@ public void UserStatusTest() { // TODO unit test for the property 'UserStatus' } + /// /// Test the property 'ObjectWithNoDeclaredProps' /// @@ -128,6 +134,7 @@ public void ObjectWithNoDeclaredPropsTest() { // TODO unit test for the property 'ObjectWithNoDeclaredProps' } + /// /// Test the property 'ObjectWithNoDeclaredPropsNullable' /// @@ -136,6 +143,7 @@ public void ObjectWithNoDeclaredPropsNullableTest() { // TODO unit test for the property 'ObjectWithNoDeclaredPropsNullable' } + /// /// Test the property 'AnyTypeProp' /// @@ -144,6 +152,7 @@ public void AnyTypePropTest() { // TODO unit test for the property 'AnyTypeProp' } + /// /// Test the property 'AnyTypePropNullable' /// @@ -152,7 +161,5 @@ public void AnyTypePropNullableTest() { // TODO unit test for the property 'AnyTypePropNullable' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/WhaleTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/WhaleTests.cs index 09610791943c..de86c02372cd 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/WhaleTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/WhaleTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void WhaleInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'HasBaleen' /// @@ -64,6 +62,7 @@ public void HasBaleenTest() { // TODO unit test for the property 'HasBaleen' } + /// /// Test the property 'HasTeeth' /// @@ -72,6 +71,7 @@ public void HasTeethTest() { // TODO unit test for the property 'HasTeeth' } + /// /// Test the property 'ClassName' /// @@ -80,7 +80,5 @@ public void ClassNameTest() { // TODO unit test for the property 'ClassName' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ZebraTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ZebraTests.cs index f44e92131400..55e70c43e0a0 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ZebraTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ZebraTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ZebraInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Type' /// @@ -64,6 +62,7 @@ public void TypeTest() { // TODO unit test for the property 'Type' } + /// /// Test the property 'ClassName' /// @@ -72,7 +71,5 @@ public void ClassNameTest() { // TODO unit test for the property 'ClassName' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ZeroBasedEnumClassTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ZeroBasedEnumClassTests.cs index f713baf3235e..d828b6d03a7b 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ZeroBasedEnumClassTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ZeroBasedEnumClassTests.cs @@ -54,7 +54,6 @@ public void ZeroBasedEnumClassInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ZeroBasedEnum' /// @@ -63,7 +62,5 @@ public void ZeroBasedEnumTest() { // TODO unit test for the property 'ZeroBasedEnum' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ZeroBasedEnumTests.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ZeroBasedEnumTests.cs index 412297e39f71..38260add43e8 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ZeroBasedEnumTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools.Test/Model/ZeroBasedEnumTests.cs @@ -53,9 +53,5 @@ public void ZeroBasedEnumInstanceTest() // TODO uncomment below to test "IsType" ZeroBasedEnum //Assert.IsType(instance); } - - - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs index 5d048a005bdc..f870aa706425 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs @@ -64,5 +64,49 @@ public void FooGetTest() //var response = instance.FooGet(); //Assert.IsType(response); } + + /// + /// Test GetCountry + /// + [Fact] + public void GetCountryTest() + { + // TODO uncomment below to test the method and replace null with proper value + //string country = null; + //instance.GetCountry(country); + } + + /// + /// Test Hello + /// + [Fact] + public void HelloTest() + { + // TODO uncomment below to test the method and replace null with proper value + //var response = instance.Hello(); + //Assert.IsType>(response); + } + + /// + /// Test RolesReportGet + /// + [Fact] + public void RolesReportGetTest() + { + // TODO uncomment below to test the method and replace null with proper value + //var response = instance.RolesReportGet(); + //Assert.IsType>>(response); + } + + /// + /// Test Test + /// + [Fact] + public void TestTest() + { + // TODO uncomment below to test the method and replace null with proper value + //var response = instance.Test(); + //Assert.IsType(response); + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Api/FakeApiTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Api/FakeApiTests.cs index 994cd46d38ae..c436338550ab 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Api/FakeApiTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Api/FakeApiTests.cs @@ -84,7 +84,7 @@ public void FakeOuterBooleanSerializeTest() public void FakeOuterCompositeSerializeTest() { // TODO uncomment below to test the method and replace null with proper value - //OuterComposite outerComposite = null; + //OuterComposite? outerComposite = null; //var response = instance.FakeOuterCompositeSerialize(outerComposite); //Assert.IsType(response); } @@ -108,8 +108,9 @@ public void FakeOuterNumberSerializeTest() public void FakeOuterStringSerializeTest() { // TODO uncomment below to test the method and replace null with proper value - //string body = null; - //var response = instance.FakeOuterStringSerialize(body); + //Guid requiredStringUuid = null; + //string? body = null; + //var response = instance.FakeOuterStringSerialize(requiredStringUuid, body); //Assert.IsType(response); } @@ -124,6 +125,39 @@ public void GetArrayOfEnumsTest() //Assert.IsType>(response); } + /// + /// Test GetMixedAnyOf + /// + [Fact] + public void GetMixedAnyOfTest() + { + // TODO uncomment below to test the method and replace null with proper value + //var response = instance.GetMixedAnyOf(); + //Assert.IsType(response); + } + + /// + /// Test GetMixedOneOf + /// + [Fact] + public void GetMixedOneOfTest() + { + // TODO uncomment below to test the method and replace null with proper value + //var response = instance.GetMixedOneOf(); + //Assert.IsType(response); + } + + /// + /// Test TestAdditionalPropertiesReference + /// + [Fact] + public void TestAdditionalPropertiesReferenceTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Dictionary requestBody = null; + //instance.TestAdditionalPropertiesReference(requestBody); + } + /// /// Test TestBodyWithFileSchema /// @@ -167,20 +201,20 @@ public void TestEndpointParametersTest() { // TODO uncomment below to test the method and replace null with proper value //decimal number = null; - //double _double = null; + //double varDouble = null; //string patternWithoutDelimiter = null; - //byte[] _byte = null; + //byte[] varByte = null; //int? integer = null; //int? int32 = null; //long? int64 = null; - //float? _float = null; - //string _string = null; - //System.IO.Stream binary = null; - //DateTime? date = null; + //float? varFloat = null; + //string? varString = null; + //System.IO.Stream? binary = null; + //DateOnly? date = null; //DateTime? dateTime = null; - //string password = null; - //string callback = null; - //instance.TestEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback); + //string? password = null; + //string? callback = null; + //instance.TestEndpointParameters(number, varDouble, patternWithoutDelimiter, varByte, integer, int32, int64, varFloat, varString, binary, date, dateTime, password, callback); } /// @@ -190,14 +224,14 @@ public void TestEndpointParametersTest() public void TestEnumParametersTest() { // TODO uncomment below to test the method and replace null with proper value - //List enumHeaderStringArray = null; - //string enumHeaderString = null; - //List enumQueryStringArray = null; - //string enumQueryString = null; + //List? enumHeaderStringArray = null; + //string? enumHeaderString = null; + //List? enumQueryStringArray = null; + //string? enumQueryString = null; //int? enumQueryInteger = null; //double? enumQueryDouble = null; - //List enumFormStringArray = null; - //string enumFormString = null; + //List? enumFormStringArray = null; + //string? enumFormString = null; //instance.TestEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString); } @@ -228,6 +262,17 @@ public void TestInlineAdditionalPropertiesTest() //instance.TestInlineAdditionalProperties(requestBody); } + /// + /// Test TestInlineFreeformAdditionalProperties + /// + [Fact] + public void TestInlineFreeformAdditionalPropertiesTest() + { + // TODO uncomment below to test the method and replace null with proper value + //TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest = null; + //instance.TestInlineFreeformAdditionalProperties(testInlineFreeformAdditionalPropertiesRequest); + } + /// /// Test TestJsonFormData /// @@ -252,7 +297,22 @@ public void TestQueryParameterCollectionFormatTest() //List http = null; //List url = null; //List context = null; - //instance.TestQueryParameterCollectionFormat(pipe, ioutil, http, url, context); + //string requiredNotNullable = null; + //string requiredNullable = null; + //string? notRequiredNotNullable = null; + //string? notRequiredNullable = null; + //instance.TestQueryParameterCollectionFormat(pipe, ioutil, http, url, context, requiredNotNullable, requiredNullable, notRequiredNotNullable, notRequiredNullable); + } + + /// + /// Test TestStringMapReference + /// + [Fact] + public void TestStringMapReferenceTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Dictionary requestBody = null; + //instance.TestStringMapReference(requestBody); } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Api/PetApiTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Api/PetApiTests.cs index 673867641450..f4b42c5f70d0 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Api/PetApiTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Api/PetApiTests.cs @@ -73,7 +73,7 @@ public void DeletePetTest() { // TODO uncomment below to test the method and replace null with proper value //long petId = null; - //string apiKey = null; + //string? apiKey = null; //instance.DeletePet(petId, apiKey); } @@ -132,8 +132,8 @@ public void UpdatePetWithFormTest() { // TODO uncomment below to test the method and replace null with proper value //long petId = null; - //string name = null; - //string status = null; + //string? name = null; + //string? status = null; //instance.UpdatePetWithForm(petId, name, status); } @@ -145,8 +145,8 @@ public void UploadFileTest() { // TODO uncomment below to test the method and replace null with proper value //long petId = null; - //string additionalMetadata = null; - //System.IO.Stream file = null; + //string? additionalMetadata = null; + //System.IO.Stream? file = null; //var response = instance.UploadFile(petId, additionalMetadata, file); //Assert.IsType(response); } @@ -160,7 +160,7 @@ public void UploadFileWithRequiredFileTest() // TODO uncomment below to test the method and replace null with proper value //long petId = null; //System.IO.Stream requiredFile = null; - //string additionalMetadata = null; + //string? additionalMetadata = null; //var response = instance.UploadFileWithRequiredFile(petId, requiredFile, additionalMetadata); //Assert.IsType(response); } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ActivityOutputElementRepresentationTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ActivityOutputElementRepresentationTests.cs index f211a64884af..b4bb73592031 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ActivityOutputElementRepresentationTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ActivityOutputElementRepresentationTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ActivityOutputElementRepresentationInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Prop1' /// @@ -64,6 +62,7 @@ public void Prop1Test() { // TODO unit test for the property 'Prop1' } + /// /// Test the property 'Prop2' /// @@ -72,7 +71,5 @@ public void Prop2Test() { // TODO unit test for the property 'Prop2' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ActivityTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ActivityTests.cs index afe9e846ee94..0b9efbd5a20b 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ActivityTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ActivityTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ActivityInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ActivityOutputs' /// @@ -64,7 +62,5 @@ public void ActivityOutputsTest() { // TODO unit test for the property 'ActivityOutputs' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesClassTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesClassTests.cs index 9ab029ed0979..d766719b5bce 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesClassTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesClassTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void AdditionalPropertiesClassInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'MapProperty' /// @@ -64,6 +62,7 @@ public void MapPropertyTest() { // TODO unit test for the property 'MapProperty' } + /// /// Test the property 'MapOfMapProperty' /// @@ -72,6 +71,7 @@ public void MapOfMapPropertyTest() { // TODO unit test for the property 'MapOfMapProperty' } + /// /// Test the property 'Anytype1' /// @@ -80,6 +80,7 @@ public void Anytype1Test() { // TODO unit test for the property 'Anytype1' } + /// /// Test the property 'MapWithUndeclaredPropertiesAnytype1' /// @@ -88,6 +89,7 @@ public void MapWithUndeclaredPropertiesAnytype1Test() { // TODO unit test for the property 'MapWithUndeclaredPropertiesAnytype1' } + /// /// Test the property 'MapWithUndeclaredPropertiesAnytype2' /// @@ -96,6 +98,7 @@ public void MapWithUndeclaredPropertiesAnytype2Test() { // TODO unit test for the property 'MapWithUndeclaredPropertiesAnytype2' } + /// /// Test the property 'MapWithUndeclaredPropertiesAnytype3' /// @@ -104,6 +107,7 @@ public void MapWithUndeclaredPropertiesAnytype3Test() { // TODO unit test for the property 'MapWithUndeclaredPropertiesAnytype3' } + /// /// Test the property 'EmptyMap' /// @@ -112,6 +116,7 @@ public void EmptyMapTest() { // TODO unit test for the property 'EmptyMap' } + /// /// Test the property 'MapWithUndeclaredPropertiesString' /// @@ -120,7 +125,5 @@ public void MapWithUndeclaredPropertiesStringTest() { // TODO unit test for the property 'MapWithUndeclaredPropertiesString' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/AnimalTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/AnimalTests.cs index ced34a4faadd..0bc46ab7f479 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/AnimalTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/AnimalTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -64,6 +63,7 @@ public void CatDeserializeFromAnimalTest() // TODO uncomment below to test deserialize a Cat from type Animal //Assert.IsType(JsonConvert.DeserializeObject(new Cat().ToJson())); } + /// /// Test deserialize a Dog from type Animal /// @@ -82,6 +82,7 @@ public void ClassNameTest() { // TODO unit test for the property 'ClassName' } + /// /// Test the property 'Color' /// @@ -90,7 +91,5 @@ public void ColorTest() { // TODO unit test for the property 'Color' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ApiResponseTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ApiResponseTests.cs index 2a2e098e6082..901c6a02965e 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ApiResponseTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ApiResponseTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ApiResponseInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Code' /// @@ -64,6 +62,7 @@ public void CodeTest() { // TODO unit test for the property 'Code' } + /// /// Test the property 'Type' /// @@ -72,6 +71,7 @@ public void TypeTest() { // TODO unit test for the property 'Type' } + /// /// Test the property 'Message' /// @@ -80,7 +80,5 @@ public void MessageTest() { // TODO unit test for the property 'Message' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/AppleReqTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/AppleReqTests.cs index f945f6593685..94d06c61e236 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/AppleReqTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/AppleReqTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void AppleReqInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Cultivar' /// @@ -64,6 +62,7 @@ public void CultivarTest() { // TODO unit test for the property 'Cultivar' } + /// /// Test the property 'Mealy' /// @@ -72,7 +71,5 @@ public void MealyTest() { // TODO unit test for the property 'Mealy' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/AppleTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/AppleTests.cs index 468d60184ada..b3aa7e34f8db 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/AppleTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/AppleTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void AppleInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Cultivar' /// @@ -64,6 +62,7 @@ public void CultivarTest() { // TODO unit test for the property 'Cultivar' } + /// /// Test the property 'Origin' /// @@ -73,6 +72,13 @@ public void OriginTest() // TODO unit test for the property 'Origin' } + /// + /// Test the property 'ColorCode' + /// + [Fact] + public void ColorCodeTest() + { + // TODO unit test for the property 'ColorCode' + } } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ArrayOfArrayOfNumberOnlyTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ArrayOfArrayOfNumberOnlyTests.cs index 0b259d7d3916..d52b1938e420 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ArrayOfArrayOfNumberOnlyTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ArrayOfArrayOfNumberOnlyTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ArrayOfArrayOfNumberOnlyInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ArrayArrayNumber' /// @@ -64,7 +62,5 @@ public void ArrayArrayNumberTest() { // TODO unit test for the property 'ArrayArrayNumber' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ArrayOfNumberOnlyTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ArrayOfNumberOnlyTests.cs index 27f312ad25f5..421bfd6caeab 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ArrayOfNumberOnlyTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ArrayOfNumberOnlyTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ArrayOfNumberOnlyInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ArrayNumber' /// @@ -64,7 +62,5 @@ public void ArrayNumberTest() { // TODO unit test for the property 'ArrayNumber' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ArrayTestTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ArrayTestTests.cs index a433e8c87cf7..5028c715b988 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ArrayTestTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ArrayTestTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ArrayTestInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ArrayOfString' /// @@ -64,6 +62,7 @@ public void ArrayOfStringTest() { // TODO unit test for the property 'ArrayOfString' } + /// /// Test the property 'ArrayArrayOfInteger' /// @@ -72,6 +71,7 @@ public void ArrayArrayOfIntegerTest() { // TODO unit test for the property 'ArrayArrayOfInteger' } + /// /// Test the property 'ArrayArrayOfModel' /// @@ -80,7 +80,5 @@ public void ArrayArrayOfModelTest() { // TODO unit test for the property 'ArrayArrayOfModel' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/BananaReqTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/BananaReqTests.cs index 8a6eeb82eeea..8242ff9e7969 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/BananaReqTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/BananaReqTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void BananaReqInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'LengthCm' /// @@ -64,6 +62,7 @@ public void LengthCmTest() { // TODO unit test for the property 'LengthCm' } + /// /// Test the property 'Sweet' /// @@ -72,7 +71,5 @@ public void SweetTest() { // TODO unit test for the property 'Sweet' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/BananaTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/BananaTests.cs index 8d8cc376b038..ddcea686eee8 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/BananaTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/BananaTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void BananaInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'LengthCm' /// @@ -64,7 +62,5 @@ public void LengthCmTest() { // TODO unit test for the property 'LengthCm' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/BasquePigTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/BasquePigTests.cs index 3cdccaa75959..9cb45c006e64 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/BasquePigTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/BasquePigTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void BasquePigInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ClassName' /// @@ -64,7 +62,5 @@ public void ClassNameTest() { // TODO unit test for the property 'ClassName' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/CapitalizationTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/CapitalizationTests.cs index 185c83666fc7..9e6a400d1ed1 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/CapitalizationTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/CapitalizationTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void CapitalizationInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'SmallCamel' /// @@ -64,6 +62,7 @@ public void SmallCamelTest() { // TODO unit test for the property 'SmallCamel' } + /// /// Test the property 'CapitalCamel' /// @@ -72,6 +71,7 @@ public void CapitalCamelTest() { // TODO unit test for the property 'CapitalCamel' } + /// /// Test the property 'SmallSnake' /// @@ -80,6 +80,7 @@ public void SmallSnakeTest() { // TODO unit test for the property 'SmallSnake' } + /// /// Test the property 'CapitalSnake' /// @@ -88,6 +89,7 @@ public void CapitalSnakeTest() { // TODO unit test for the property 'CapitalSnake' } + /// /// Test the property 'SCAETHFlowPoints' /// @@ -96,6 +98,7 @@ public void SCAETHFlowPointsTest() { // TODO unit test for the property 'SCAETHFlowPoints' } + /// /// Test the property 'ATT_NAME' /// @@ -104,7 +107,5 @@ public void ATT_NAMETest() { // TODO unit test for the property 'ATT_NAME' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/CatTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/CatTests.cs index 701ba7602823..c1b10d32171b 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/CatTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/CatTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void CatInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Declawed' /// @@ -64,7 +62,5 @@ public void DeclawedTest() { // TODO unit test for the property 'Declawed' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/CategoryTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/CategoryTests.cs index 6ce48e601e47..d1ef61862440 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/CategoryTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/CategoryTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void CategoryInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Id' /// @@ -64,6 +62,7 @@ public void IdTest() { // TODO unit test for the property 'Id' } + /// /// Test the property 'Name' /// @@ -72,7 +71,5 @@ public void NameTest() { // TODO unit test for the property 'Name' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ChildCatTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ChildCatTests.cs index 68566fd8d560..b40a42cb0225 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ChildCatTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ChildCatTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ChildCatInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Name' /// @@ -64,6 +62,7 @@ public void NameTest() { // TODO unit test for the property 'Name' } + /// /// Test the property 'PetType' /// @@ -72,7 +71,5 @@ public void PetTypeTest() { // TODO unit test for the property 'PetType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ClassModelTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ClassModelTests.cs index d29472e83aaf..a09b95ab4c9c 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ClassModelTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ClassModelTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ClassModelInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Class' /// @@ -64,7 +62,5 @@ public void ClassTest() { // TODO unit test for the property 'Class' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ComplexQuadrilateralTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ComplexQuadrilateralTests.cs index b3529280c8d6..835c5b87bc6e 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ComplexQuadrilateralTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ComplexQuadrilateralTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ComplexQuadrilateralInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// @@ -64,6 +62,7 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } + /// /// Test the property 'QuadrilateralType' /// @@ -72,7 +71,5 @@ public void QuadrilateralTypeTest() { // TODO unit test for the property 'QuadrilateralType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/DanishPigTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/DanishPigTests.cs index 572d9bffa790..765496ea0ced 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/DanishPigTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/DanishPigTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void DanishPigInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ClassName' /// @@ -64,7 +62,5 @@ public void ClassNameTest() { // TODO unit test for the property 'ClassName' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/DateOnlyClassTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/DateOnlyClassTests.cs index 3bd2b54a366a..67be10782efd 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/DateOnlyClassTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/DateOnlyClassTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void DateOnlyClassInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'DateOnlyProperty' /// @@ -64,7 +62,5 @@ public void DateOnlyPropertyTest() { // TODO unit test for the property 'DateOnlyProperty' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/DeprecatedObjectTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/DeprecatedObjectTests.cs index 1da5f4011c95..be6b35dbf451 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/DeprecatedObjectTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/DeprecatedObjectTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void DeprecatedObjectInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Name' /// @@ -64,7 +62,5 @@ public void NameTest() { // TODO unit test for the property 'Name' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/DogTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/DogTests.cs index 992f93a51fd5..a00de64ef51a 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/DogTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/DogTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void DogInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Breed' /// @@ -64,7 +62,5 @@ public void BreedTest() { // TODO unit test for the property 'Breed' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/DrawingTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/DrawingTests.cs index 0709ad9eeb3b..3b1308e50513 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/DrawingTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/DrawingTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void DrawingInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'MainShape' /// @@ -64,6 +62,7 @@ public void MainShapeTest() { // TODO unit test for the property 'MainShape' } + /// /// Test the property 'ShapeOrNull' /// @@ -72,6 +71,7 @@ public void ShapeOrNullTest() { // TODO unit test for the property 'ShapeOrNull' } + /// /// Test the property 'NullableShape' /// @@ -80,6 +80,7 @@ public void NullableShapeTest() { // TODO unit test for the property 'NullableShape' } + /// /// Test the property 'Shapes' /// @@ -88,7 +89,5 @@ public void ShapesTest() { // TODO unit test for the property 'Shapes' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/EnumArraysTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/EnumArraysTests.cs index 5779ca294775..6fcfa6f448c1 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/EnumArraysTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/EnumArraysTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void EnumArraysInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'JustSymbol' /// @@ -64,6 +62,7 @@ public void JustSymbolTest() { // TODO unit test for the property 'JustSymbol' } + /// /// Test the property 'ArrayEnum' /// @@ -72,7 +71,5 @@ public void ArrayEnumTest() { // TODO unit test for the property 'ArrayEnum' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/EnumClassTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/EnumClassTests.cs index a17738c5cbc5..bb46e292a652 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/EnumClassTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/EnumClassTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,9 +53,5 @@ public void EnumClassInstanceTest() // TODO uncomment below to test "IsType" EnumClass //Assert.IsType(instance); } - - - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/EnumTestTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/EnumTestTests.cs index 4f81b845d493..3050af442410 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/EnumTestTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/EnumTestTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void EnumTestInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'EnumString' /// @@ -64,6 +62,7 @@ public void EnumStringTest() { // TODO unit test for the property 'EnumString' } + /// /// Test the property 'EnumStringRequired' /// @@ -72,6 +71,7 @@ public void EnumStringRequiredTest() { // TODO unit test for the property 'EnumStringRequired' } + /// /// Test the property 'EnumInteger' /// @@ -80,6 +80,7 @@ public void EnumIntegerTest() { // TODO unit test for the property 'EnumInteger' } + /// /// Test the property 'EnumIntegerOnly' /// @@ -88,6 +89,7 @@ public void EnumIntegerOnlyTest() { // TODO unit test for the property 'EnumIntegerOnly' } + /// /// Test the property 'EnumNumber' /// @@ -96,6 +98,7 @@ public void EnumNumberTest() { // TODO unit test for the property 'EnumNumber' } + /// /// Test the property 'OuterEnum' /// @@ -104,6 +107,7 @@ public void OuterEnumTest() { // TODO unit test for the property 'OuterEnum' } + /// /// Test the property 'OuterEnumInteger' /// @@ -112,6 +116,7 @@ public void OuterEnumIntegerTest() { // TODO unit test for the property 'OuterEnumInteger' } + /// /// Test the property 'OuterEnumDefaultValue' /// @@ -120,6 +125,7 @@ public void OuterEnumDefaultValueTest() { // TODO unit test for the property 'OuterEnumDefaultValue' } + /// /// Test the property 'OuterEnumIntegerDefaultValue' /// @@ -128,7 +134,5 @@ public void OuterEnumIntegerDefaultValueTest() { // TODO unit test for the property 'OuterEnumIntegerDefaultValue' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/EquilateralTriangleTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/EquilateralTriangleTests.cs index 4663cb667de6..71d48f7e200a 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/EquilateralTriangleTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/EquilateralTriangleTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void EquilateralTriangleInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// @@ -64,6 +62,7 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } + /// /// Test the property 'TriangleType' /// @@ -72,7 +71,5 @@ public void TriangleTypeTest() { // TODO unit test for the property 'TriangleType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/FileSchemaTestClassTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/FileSchemaTestClassTests.cs index 9f45b4fe89d5..d89ad5a5bc7b 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/FileSchemaTestClassTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/FileSchemaTestClassTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void FileSchemaTestClassInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'File' /// @@ -64,6 +62,7 @@ public void FileTest() { // TODO unit test for the property 'File' } + /// /// Test the property 'Files' /// @@ -72,7 +71,5 @@ public void FilesTest() { // TODO unit test for the property 'Files' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/FileTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/FileTests.cs index 761bb72a844f..7eaea9c8786f 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/FileTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/FileTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void FileInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'SourceURI' /// @@ -64,7 +62,5 @@ public void SourceURITest() { // TODO unit test for the property 'SourceURI' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/FooGetDefaultResponseTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/FooGetDefaultResponseTests.cs index 0154d528418e..563269643111 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/FooGetDefaultResponseTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/FooGetDefaultResponseTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void FooGetDefaultResponseInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'String' /// @@ -64,7 +62,5 @@ public void StringTest() { // TODO unit test for the property 'String' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/FooTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/FooTests.cs index 0b6ed52edbd4..52f87dd5b0e0 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/FooTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/FooTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void FooInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Bar' /// @@ -64,7 +62,5 @@ public void BarTest() { // TODO unit test for the property 'Bar' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/FormatTestTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/FormatTestTests.cs index 97332800e9af..611393395b3e 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/FormatTestTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/FormatTestTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void FormatTestInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Integer' /// @@ -64,6 +62,7 @@ public void IntegerTest() { // TODO unit test for the property 'Integer' } + /// /// Test the property 'Int32' /// @@ -72,6 +71,61 @@ public void Int32Test() { // TODO unit test for the property 'Int32' } + + /// + /// Test the property 'Int32Range' + /// + [Fact] + public void Int32RangeTest() + { + // TODO unit test for the property 'Int32Range' + } + + /// + /// Test the property 'Int64Positive' + /// + [Fact] + public void Int64PositiveTest() + { + // TODO unit test for the property 'Int64Positive' + } + + /// + /// Test the property 'Int64Negative' + /// + [Fact] + public void Int64NegativeTest() + { + // TODO unit test for the property 'Int64Negative' + } + + /// + /// Test the property 'Int64PositiveExclusive' + /// + [Fact] + public void Int64PositiveExclusiveTest() + { + // TODO unit test for the property 'Int64PositiveExclusive' + } + + /// + /// Test the property 'Int64NegativeExclusive' + /// + [Fact] + public void Int64NegativeExclusiveTest() + { + // TODO unit test for the property 'Int64NegativeExclusive' + } + + /// + /// Test the property 'UnsignedInteger' + /// + [Fact] + public void UnsignedIntegerTest() + { + // TODO unit test for the property 'UnsignedInteger' + } + /// /// Test the property 'Int64' /// @@ -80,6 +134,16 @@ public void Int64Test() { // TODO unit test for the property 'Int64' } + + /// + /// Test the property 'UnsignedLong' + /// + [Fact] + public void UnsignedLongTest() + { + // TODO unit test for the property 'UnsignedLong' + } + /// /// Test the property 'Number' /// @@ -88,6 +152,7 @@ public void NumberTest() { // TODO unit test for the property 'Number' } + /// /// Test the property 'Float' /// @@ -96,6 +161,7 @@ public void FloatTest() { // TODO unit test for the property 'Float' } + /// /// Test the property 'Double' /// @@ -104,6 +170,7 @@ public void DoubleTest() { // TODO unit test for the property 'Double' } + /// /// Test the property 'Decimal' /// @@ -112,6 +179,7 @@ public void DecimalTest() { // TODO unit test for the property 'Decimal' } + /// /// Test the property 'String' /// @@ -120,6 +188,7 @@ public void StringTest() { // TODO unit test for the property 'String' } + /// /// Test the property 'Byte' /// @@ -128,6 +197,7 @@ public void ByteTest() { // TODO unit test for the property 'Byte' } + /// /// Test the property 'Binary' /// @@ -136,6 +206,7 @@ public void BinaryTest() { // TODO unit test for the property 'Binary' } + /// /// Test the property 'Date' /// @@ -144,6 +215,7 @@ public void DateTest() { // TODO unit test for the property 'Date' } + /// /// Test the property 'DateTime' /// @@ -152,6 +224,7 @@ public void DateTimeTest() { // TODO unit test for the property 'DateTime' } + /// /// Test the property 'Uuid' /// @@ -160,6 +233,7 @@ public void UuidTest() { // TODO unit test for the property 'Uuid' } + /// /// Test the property 'Password' /// @@ -168,6 +242,7 @@ public void PasswordTest() { // TODO unit test for the property 'Password' } + /// /// Test the property 'PatternWithDigits' /// @@ -176,6 +251,7 @@ public void PatternWithDigitsTest() { // TODO unit test for the property 'PatternWithDigits' } + /// /// Test the property 'PatternWithDigitsAndDelimiter' /// @@ -185,6 +261,13 @@ public void PatternWithDigitsAndDelimiterTest() // TODO unit test for the property 'PatternWithDigitsAndDelimiter' } + /// + /// Test the property 'PatternWithBackslash' + /// + [Fact] + public void PatternWithBackslashTest() + { + // TODO unit test for the property 'PatternWithBackslash' + } } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/FruitReqTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/FruitReqTests.cs index 5ea9e3ffc1d5..771ef1ae2c5d 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/FruitReqTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/FruitReqTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void FruitReqInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Cultivar' /// @@ -64,6 +62,7 @@ public void CultivarTest() { // TODO unit test for the property 'Cultivar' } + /// /// Test the property 'Mealy' /// @@ -72,6 +71,7 @@ public void MealyTest() { // TODO unit test for the property 'Mealy' } + /// /// Test the property 'LengthCm' /// @@ -80,6 +80,7 @@ public void LengthCmTest() { // TODO unit test for the property 'LengthCm' } + /// /// Test the property 'Sweet' /// @@ -88,7 +89,5 @@ public void SweetTest() { // TODO unit test for the property 'Sweet' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/FruitTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/FruitTests.cs index 91e069bb42fa..53881a333193 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/FruitTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/FruitTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void FruitInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Color' /// @@ -64,6 +62,7 @@ public void ColorTest() { // TODO unit test for the property 'Color' } + /// /// Test the property 'Cultivar' /// @@ -72,6 +71,7 @@ public void CultivarTest() { // TODO unit test for the property 'Cultivar' } + /// /// Test the property 'Origin' /// @@ -80,6 +80,16 @@ public void OriginTest() { // TODO unit test for the property 'Origin' } + + /// + /// Test the property 'ColorCode' + /// + [Fact] + public void ColorCodeTest() + { + // TODO unit test for the property 'ColorCode' + } + /// /// Test the property 'LengthCm' /// @@ -88,7 +98,5 @@ public void LengthCmTest() { // TODO unit test for the property 'LengthCm' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/GmFruitTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/GmFruitTests.cs index 08fb0e07a1c8..6322d4e2a721 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/GmFruitTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/GmFruitTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void GmFruitInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Color' /// @@ -64,6 +62,7 @@ public void ColorTest() { // TODO unit test for the property 'Color' } + /// /// Test the property 'Cultivar' /// @@ -72,6 +71,7 @@ public void CultivarTest() { // TODO unit test for the property 'Cultivar' } + /// /// Test the property 'Origin' /// @@ -80,6 +80,16 @@ public void OriginTest() { // TODO unit test for the property 'Origin' } + + /// + /// Test the property 'ColorCode' + /// + [Fact] + public void ColorCodeTest() + { + // TODO unit test for the property 'ColorCode' + } + /// /// Test the property 'LengthCm' /// @@ -88,7 +98,5 @@ public void LengthCmTest() { // TODO unit test for the property 'LengthCm' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/GrandparentAnimalTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/GrandparentAnimalTests.cs index faa4930944be..3adc2a0573e7 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/GrandparentAnimalTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/GrandparentAnimalTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -64,6 +63,7 @@ public void ChildCatDeserializeFromParentPetTest() // TODO uncomment below to test deserialize a ChildCat from type ParentPet //Assert.IsType(JsonConvert.DeserializeObject(new ChildCat().ToJson())); } + /// /// Test deserialize a ParentPet from type GrandparentAnimal /// @@ -82,7 +82,5 @@ public void PetTypeTest() { // TODO unit test for the property 'PetType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/HasOnlyReadOnlyTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/HasOnlyReadOnlyTests.cs index 651a9f0ce30c..69abe3f9e6ad 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/HasOnlyReadOnlyTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/HasOnlyReadOnlyTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void HasOnlyReadOnlyInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Bar' /// @@ -64,6 +62,7 @@ public void BarTest() { // TODO unit test for the property 'Bar' } + /// /// Test the property 'Foo' /// @@ -72,7 +71,5 @@ public void FooTest() { // TODO unit test for the property 'Foo' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/HealthCheckResultTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/HealthCheckResultTests.cs index 857190a3334d..794fda2c2d6d 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/HealthCheckResultTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/HealthCheckResultTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void HealthCheckResultInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'NullableMessage' /// @@ -64,7 +62,5 @@ public void NullableMessageTest() { // TODO unit test for the property 'NullableMessage' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/IsoscelesTriangleTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/IsoscelesTriangleTests.cs index 755c417cc54f..ca8a058e37df 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/IsoscelesTriangleTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/IsoscelesTriangleTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void IsoscelesTriangleInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// @@ -64,6 +62,7 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } + /// /// Test the property 'TriangleType' /// @@ -72,7 +71,5 @@ public void TriangleTypeTest() { // TODO unit test for the property 'TriangleType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ListTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ListTests.cs index 2ed828d05208..d659080e89c9 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ListTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ListTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,16 +54,13 @@ public void ListInstanceTest() //Assert.IsType(instance); } - /// - /// Test the property '_123List' + /// Test the property 'Var123List' /// [Fact] - public void _123ListTest() + public void Var123ListTest() { - // TODO unit test for the property '_123List' + // TODO unit test for the property 'Var123List' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/LiteralStringClassTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/LiteralStringClassTests.cs index 74dc17b9f4a1..58dc425228ff 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/LiteralStringClassTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/LiteralStringClassTests.cs @@ -54,7 +54,6 @@ public void LiteralStringClassInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'EscapedLiteralString' /// @@ -63,6 +62,7 @@ public void EscapedLiteralStringTest() { // TODO unit test for the property 'EscapedLiteralString' } + /// /// Test the property 'UnescapedLiteralString' /// @@ -71,7 +71,5 @@ public void UnescapedLiteralStringTest() { // TODO unit test for the property 'UnescapedLiteralString' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/MammalTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/MammalTests.cs index 7b46cbf06450..3fdadd19646c 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/MammalTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/MammalTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void MammalInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'HasBaleen' /// @@ -64,6 +62,7 @@ public void HasBaleenTest() { // TODO unit test for the property 'HasBaleen' } + /// /// Test the property 'HasTeeth' /// @@ -72,6 +71,7 @@ public void HasTeethTest() { // TODO unit test for the property 'HasTeeth' } + /// /// Test the property 'ClassName' /// @@ -80,6 +80,7 @@ public void ClassNameTest() { // TODO unit test for the property 'ClassName' } + /// /// Test the property 'Type' /// @@ -88,7 +89,5 @@ public void TypeTest() { // TODO unit test for the property 'Type' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/MapTestTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/MapTestTests.cs index 20036e1c905e..e055027f15bf 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/MapTestTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/MapTestTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void MapTestInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'MapMapOfString' /// @@ -64,6 +62,7 @@ public void MapMapOfStringTest() { // TODO unit test for the property 'MapMapOfString' } + /// /// Test the property 'MapOfEnumString' /// @@ -72,6 +71,7 @@ public void MapOfEnumStringTest() { // TODO unit test for the property 'MapOfEnumString' } + /// /// Test the property 'DirectMap' /// @@ -80,6 +80,7 @@ public void DirectMapTest() { // TODO unit test for the property 'DirectMap' } + /// /// Test the property 'IndirectMap' /// @@ -88,7 +89,5 @@ public void IndirectMapTest() { // TODO unit test for the property 'IndirectMap' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/MixedPropertiesAndAdditionalPropertiesClassTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/MixedPropertiesAndAdditionalPropertiesClassTests.cs index f56cd715f45f..07c592a8a4c0 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/MixedPropertiesAndAdditionalPropertiesClassTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/MixedPropertiesAndAdditionalPropertiesClassTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,6 +54,14 @@ public void MixedPropertiesAndAdditionalPropertiesClassInstanceTest() //Assert.IsType(instance); } + /// + /// Test the property 'UuidWithPattern' + /// + [Fact] + public void UuidWithPatternTest() + { + // TODO unit test for the property 'UuidWithPattern' + } /// /// Test the property 'Uuid' @@ -64,6 +71,7 @@ public void UuidTest() { // TODO unit test for the property 'Uuid' } + /// /// Test the property 'DateTime' /// @@ -72,6 +80,7 @@ public void DateTimeTest() { // TODO unit test for the property 'DateTime' } + /// /// Test the property 'Map' /// @@ -80,7 +89,5 @@ public void MapTest() { // TODO unit test for the property 'Map' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/Model200ResponseTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/Model200ResponseTests.cs index e25478618f20..85be687d5c2b 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/Model200ResponseTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/Model200ResponseTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void Model200ResponseInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Name' /// @@ -64,6 +62,7 @@ public void NameTest() { // TODO unit test for the property 'Name' } + /// /// Test the property 'Class' /// @@ -72,7 +71,5 @@ public void ClassTest() { // TODO unit test for the property 'Class' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ModelClientTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ModelClientTests.cs index 24a9e2631586..a5f4aa1593e1 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ModelClientTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ModelClientTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,16 +54,13 @@ public void ModelClientInstanceTest() //Assert.IsType(instance); } - /// - /// Test the property '_Client' + /// Test the property 'VarClient' /// [Fact] - public void _ClientTest() + public void VarClientTest() { - // TODO unit test for the property '_Client' + // TODO unit test for the property 'VarClient' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/NameTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/NameTests.cs index c390049e66dc..fc1756b66bec 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/NameTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/NameTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,15 +54,15 @@ public void NameInstanceTest() //Assert.IsType(instance); } - /// - /// Test the property '_Name' + /// Test the property 'VarName' /// [Fact] - public void _NameTest() + public void VarNameTest() { - // TODO unit test for the property '_Name' + // TODO unit test for the property 'VarName' } + /// /// Test the property 'SnakeCase' /// @@ -72,6 +71,7 @@ public void SnakeCaseTest() { // TODO unit test for the property 'SnakeCase' } + /// /// Test the property 'Property' /// @@ -80,15 +80,14 @@ public void PropertyTest() { // TODO unit test for the property 'Property' } + /// - /// Test the property '_123Number' + /// Test the property 'Var123Number' /// [Fact] - public void _123NumberTest() + public void Var123NumberTest() { - // TODO unit test for the property '_123Number' + // TODO unit test for the property 'Var123Number' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/NullableClassTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/NullableClassTests.cs index 8f00505612a9..214795f86c27 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/NullableClassTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/NullableClassTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void NullableClassInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'IntegerProp' /// @@ -64,6 +62,7 @@ public void IntegerPropTest() { // TODO unit test for the property 'IntegerProp' } + /// /// Test the property 'NumberProp' /// @@ -72,6 +71,7 @@ public void NumberPropTest() { // TODO unit test for the property 'NumberProp' } + /// /// Test the property 'BooleanProp' /// @@ -80,6 +80,7 @@ public void BooleanPropTest() { // TODO unit test for the property 'BooleanProp' } + /// /// Test the property 'StringProp' /// @@ -88,6 +89,7 @@ public void StringPropTest() { // TODO unit test for the property 'StringProp' } + /// /// Test the property 'DateProp' /// @@ -96,6 +98,7 @@ public void DatePropTest() { // TODO unit test for the property 'DateProp' } + /// /// Test the property 'DatetimeProp' /// @@ -104,6 +107,7 @@ public void DatetimePropTest() { // TODO unit test for the property 'DatetimeProp' } + /// /// Test the property 'ArrayNullableProp' /// @@ -112,6 +116,7 @@ public void ArrayNullablePropTest() { // TODO unit test for the property 'ArrayNullableProp' } + /// /// Test the property 'ArrayAndItemsNullableProp' /// @@ -120,6 +125,7 @@ public void ArrayAndItemsNullablePropTest() { // TODO unit test for the property 'ArrayAndItemsNullableProp' } + /// /// Test the property 'ArrayItemsNullable' /// @@ -128,6 +134,7 @@ public void ArrayItemsNullableTest() { // TODO unit test for the property 'ArrayItemsNullable' } + /// /// Test the property 'ObjectNullableProp' /// @@ -136,6 +143,7 @@ public void ObjectNullablePropTest() { // TODO unit test for the property 'ObjectNullableProp' } + /// /// Test the property 'ObjectAndItemsNullableProp' /// @@ -144,6 +152,7 @@ public void ObjectAndItemsNullablePropTest() { // TODO unit test for the property 'ObjectAndItemsNullableProp' } + /// /// Test the property 'ObjectItemsNullable' /// @@ -152,7 +161,5 @@ public void ObjectItemsNullableTest() { // TODO unit test for the property 'ObjectItemsNullable' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/NullableGuidClassTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/NullableGuidClassTests.cs index 0bc0ea369188..1290072514cd 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/NullableGuidClassTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/NullableGuidClassTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void NullableGuidClassInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Uuid' /// @@ -64,7 +62,5 @@ public void UuidTest() { // TODO unit test for the property 'Uuid' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/NullableShapeTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/NullableShapeTests.cs index 5662f91d6e64..75e9c7e8fd49 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/NullableShapeTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/NullableShapeTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void NullableShapeInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// @@ -64,6 +62,7 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } + /// /// Test the property 'QuadrilateralType' /// @@ -72,7 +71,5 @@ public void QuadrilateralTypeTest() { // TODO unit test for the property 'QuadrilateralType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/NumberOnlyTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/NumberOnlyTests.cs index 3a06cb020b2a..2fb06f9afb48 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/NumberOnlyTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/NumberOnlyTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void NumberOnlyInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'JustNumber' /// @@ -64,7 +62,5 @@ public void JustNumberTest() { // TODO unit test for the property 'JustNumber' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ObjectWithDeprecatedFieldsTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ObjectWithDeprecatedFieldsTests.cs index 82f93fab48c5..e90b746d19c6 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ObjectWithDeprecatedFieldsTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ObjectWithDeprecatedFieldsTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ObjectWithDeprecatedFieldsInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Uuid' /// @@ -64,6 +62,7 @@ public void UuidTest() { // TODO unit test for the property 'Uuid' } + /// /// Test the property 'Id' /// @@ -72,6 +71,7 @@ public void IdTest() { // TODO unit test for the property 'Id' } + /// /// Test the property 'DeprecatedRef' /// @@ -80,6 +80,7 @@ public void DeprecatedRefTest() { // TODO unit test for the property 'DeprecatedRef' } + /// /// Test the property 'Bars' /// @@ -88,7 +89,5 @@ public void BarsTest() { // TODO unit test for the property 'Bars' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/OneOfStringTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/OneOfStringTests.cs index 75bd7cd9bfd0..04727e77c691 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/OneOfStringTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/OneOfStringTests.cs @@ -53,9 +53,5 @@ public void OneOfStringInstanceTest() // TODO uncomment below to test "IsType" OneOfString //Assert.IsType(instance); } - - - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/OrderTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/OrderTests.cs index cf5c561c5476..84d2828b367f 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/OrderTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/OrderTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void OrderInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Id' /// @@ -64,6 +62,7 @@ public void IdTest() { // TODO unit test for the property 'Id' } + /// /// Test the property 'PetId' /// @@ -72,6 +71,7 @@ public void PetIdTest() { // TODO unit test for the property 'PetId' } + /// /// Test the property 'Quantity' /// @@ -80,6 +80,7 @@ public void QuantityTest() { // TODO unit test for the property 'Quantity' } + /// /// Test the property 'ShipDate' /// @@ -88,6 +89,7 @@ public void ShipDateTest() { // TODO unit test for the property 'ShipDate' } + /// /// Test the property 'Status' /// @@ -96,6 +98,7 @@ public void StatusTest() { // TODO unit test for the property 'Status' } + /// /// Test the property 'Complete' /// @@ -104,7 +107,5 @@ public void CompleteTest() { // TODO unit test for the property 'Complete' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/OuterCompositeTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/OuterCompositeTests.cs index 2efda0db59c4..fd52fa2cfca7 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/OuterCompositeTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/OuterCompositeTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void OuterCompositeInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'MyNumber' /// @@ -64,6 +62,7 @@ public void MyNumberTest() { // TODO unit test for the property 'MyNumber' } + /// /// Test the property 'MyString' /// @@ -72,6 +71,7 @@ public void MyStringTest() { // TODO unit test for the property 'MyString' } + /// /// Test the property 'MyBoolean' /// @@ -80,7 +80,5 @@ public void MyBooleanTest() { // TODO unit test for the property 'MyBoolean' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumDefaultValueTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumDefaultValueTests.cs index 986fff774c46..db98c5a44ae3 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumDefaultValueTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumDefaultValueTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,9 +53,5 @@ public void OuterEnumDefaultValueInstanceTest() // TODO uncomment below to test "IsType" OuterEnumDefaultValue //Assert.IsType(instance); } - - - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerDefaultValueTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerDefaultValueTests.cs index 015d5dab945e..a4c028ea750d 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerDefaultValueTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerDefaultValueTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,9 +53,5 @@ public void OuterEnumIntegerDefaultValueInstanceTest() // TODO uncomment below to test "IsType" OuterEnumIntegerDefaultValue //Assert.IsType(instance); } - - - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerTests.cs index 385e899110a4..4d1be408011e 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,9 +53,5 @@ public void OuterEnumIntegerInstanceTest() // TODO uncomment below to test "IsType" OuterEnumInteger //Assert.IsType(instance); } - - - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumTests.cs index f47304767b9e..d4d6e96125d9 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,9 +53,5 @@ public void OuterEnumInstanceTest() // TODO uncomment below to test "IsType" OuterEnum //Assert.IsType(instance); } - - - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ParentPetTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ParentPetTests.cs index 1e17568ed331..eb9f5956b215 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ParentPetTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ParentPetTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -64,8 +63,5 @@ public void ChildCatDeserializeFromParentPetTest() // TODO uncomment below to test deserialize a ChildCat from type ParentPet //Assert.IsType(JsonConvert.DeserializeObject(new ChildCat().ToJson())); } - - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/PetTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/PetTests.cs index 154e66f8dfc0..535ab69d2aa2 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/PetTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/PetTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void PetInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Id' /// @@ -64,6 +62,7 @@ public void IdTest() { // TODO unit test for the property 'Id' } + /// /// Test the property 'Category' /// @@ -72,6 +71,7 @@ public void CategoryTest() { // TODO unit test for the property 'Category' } + /// /// Test the property 'Name' /// @@ -80,6 +80,7 @@ public void NameTest() { // TODO unit test for the property 'Name' } + /// /// Test the property 'PhotoUrls' /// @@ -88,6 +89,7 @@ public void PhotoUrlsTest() { // TODO unit test for the property 'PhotoUrls' } + /// /// Test the property 'Tags' /// @@ -96,6 +98,7 @@ public void TagsTest() { // TODO unit test for the property 'Tags' } + /// /// Test the property 'Status' /// @@ -104,7 +107,5 @@ public void StatusTest() { // TODO unit test for the property 'Status' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/PigTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/PigTests.cs index 55cf2189046b..34562dc6860f 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/PigTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/PigTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void PigInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ClassName' /// @@ -64,7 +62,5 @@ public void ClassNameTest() { // TODO unit test for the property 'ClassName' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/PolymorphicPropertyTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/PolymorphicPropertyTests.cs index eff3c6ddc9bb..a546cd2b0032 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/PolymorphicPropertyTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/PolymorphicPropertyTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,9 +53,5 @@ public void PolymorphicPropertyInstanceTest() // TODO uncomment below to test "IsType" PolymorphicProperty //Assert.IsType(instance); } - - - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/QuadrilateralInterfaceTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/QuadrilateralInterfaceTests.cs index 6eef9f4c816d..d08798b36050 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/QuadrilateralInterfaceTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/QuadrilateralInterfaceTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void QuadrilateralInterfaceInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'QuadrilateralType' /// @@ -64,7 +62,5 @@ public void QuadrilateralTypeTest() { // TODO unit test for the property 'QuadrilateralType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/QuadrilateralTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/QuadrilateralTests.cs index 26826681a478..cd996d7e0edf 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/QuadrilateralTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/QuadrilateralTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void QuadrilateralInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// @@ -64,6 +62,7 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } + /// /// Test the property 'QuadrilateralType' /// @@ -72,7 +71,5 @@ public void QuadrilateralTypeTest() { // TODO unit test for the property 'QuadrilateralType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ReadOnlyFirstTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ReadOnlyFirstTests.cs index dc3d0fad54cd..056bc2b4519c 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ReadOnlyFirstTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ReadOnlyFirstTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ReadOnlyFirstInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Bar' /// @@ -64,6 +62,7 @@ public void BarTest() { // TODO unit test for the property 'Bar' } + /// /// Test the property 'Baz' /// @@ -72,7 +71,5 @@ public void BazTest() { // TODO unit test for the property 'Baz' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ReturnTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ReturnTests.cs index c8c1d6510d2f..d2dc7ce4a7e1 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ReturnTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ReturnTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,16 +54,40 @@ public void ReturnInstanceTest() //Assert.IsType(instance); } + /// + /// Test the property 'VarReturn' + /// + [Fact] + public void VarReturnTest() + { + // TODO unit test for the property 'VarReturn' + } /// - /// Test the property '_Return' + /// Test the property 'Lock' /// [Fact] - public void _ReturnTest() + public void LockTest() { - // TODO unit test for the property '_Return' + // TODO unit test for the property 'Lock' } - } + /// + /// Test the property 'Abstract' + /// + [Fact] + public void AbstractTest() + { + // TODO unit test for the property 'Abstract' + } + /// + /// Test the property 'Unsafe' + /// + [Fact] + public void UnsafeTest() + { + // TODO unit test for the property 'Unsafe' + } + } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ScaleneTriangleTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ScaleneTriangleTests.cs index 04cb9f1ab6b1..a7332ab47b03 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ScaleneTriangleTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ScaleneTriangleTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ScaleneTriangleInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// @@ -64,6 +62,7 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } + /// /// Test the property 'TriangleType' /// @@ -72,7 +71,5 @@ public void TriangleTypeTest() { // TODO unit test for the property 'TriangleType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ShapeInterfaceTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ShapeInterfaceTests.cs index 7bd0bc86f963..e082fb3b4faa 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ShapeInterfaceTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ShapeInterfaceTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ShapeInterfaceInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// @@ -64,7 +62,5 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ShapeOrNullTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ShapeOrNullTests.cs index d0af114157c9..b70c157800b5 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ShapeOrNullTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ShapeOrNullTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ShapeOrNullInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// @@ -64,6 +62,7 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } + /// /// Test the property 'QuadrilateralType' /// @@ -72,7 +71,5 @@ public void QuadrilateralTypeTest() { // TODO unit test for the property 'QuadrilateralType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ShapeTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ShapeTests.cs index b01bd531f857..babd94722cfb 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ShapeTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ShapeTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ShapeInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// @@ -64,6 +62,7 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } + /// /// Test the property 'QuadrilateralType' /// @@ -72,7 +71,5 @@ public void QuadrilateralTypeTest() { // TODO unit test for the property 'QuadrilateralType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/SimpleQuadrilateralTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/SimpleQuadrilateralTests.cs index 6648e9809281..24f0288bcac4 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/SimpleQuadrilateralTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/SimpleQuadrilateralTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void SimpleQuadrilateralInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// @@ -64,6 +62,7 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } + /// /// Test the property 'QuadrilateralType' /// @@ -72,7 +71,5 @@ public void QuadrilateralTypeTest() { // TODO unit test for the property 'QuadrilateralType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/SpecialModelNameTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/SpecialModelNameTests.cs index 0f0e1ff12a9e..ef8a8d50e3ee 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/SpecialModelNameTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/SpecialModelNameTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void SpecialModelNameInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'SpecialPropertyName' /// @@ -64,15 +62,14 @@ public void SpecialPropertyNameTest() { // TODO unit test for the property 'SpecialPropertyName' } + /// - /// Test the property '_SpecialModelName' + /// Test the property 'VarSpecialModelName' /// [Fact] - public void _SpecialModelNameTest() + public void VarSpecialModelNameTest() { - // TODO unit test for the property '_SpecialModelName' + // TODO unit test for the property 'VarSpecialModelName' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/TagTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/TagTests.cs index 6d56232d0a76..8f9ad604eab9 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/TagTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/TagTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void TagInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Id' /// @@ -64,6 +62,7 @@ public void IdTest() { // TODO unit test for the property 'Id' } + /// /// Test the property 'Name' /// @@ -72,7 +71,5 @@ public void NameTest() { // TODO unit test for the property 'Name' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/TestCollectionEndingWithWordListObjectTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/TestCollectionEndingWithWordListObjectTests.cs index 4def0dcda9cc..6623a04fcc40 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/TestCollectionEndingWithWordListObjectTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/TestCollectionEndingWithWordListObjectTests.cs @@ -54,7 +54,6 @@ public void TestCollectionEndingWithWordListObjectInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'TestCollectionEndingWithWordList' /// @@ -63,7 +62,5 @@ public void TestCollectionEndingWithWordListTest() { // TODO unit test for the property 'TestCollectionEndingWithWordList' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/TestCollectionEndingWithWordListTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/TestCollectionEndingWithWordListTests.cs index e9df66daf2e5..a32943a0c841 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/TestCollectionEndingWithWordListTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/TestCollectionEndingWithWordListTests.cs @@ -54,7 +54,6 @@ public void TestCollectionEndingWithWordListInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Value' /// @@ -63,7 +62,5 @@ public void ValueTest() { // TODO unit test for the property 'Value' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/TriangleInterfaceTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/TriangleInterfaceTests.cs index fba65470bee6..1750c64c4eda 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/TriangleInterfaceTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/TriangleInterfaceTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void TriangleInterfaceInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'TriangleType' /// @@ -64,7 +62,5 @@ public void TriangleTypeTest() { // TODO unit test for the property 'TriangleType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/TriangleTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/TriangleTests.cs index bdaab0b47965..0dd209f5303a 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/TriangleTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/TriangleTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void TriangleInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// @@ -64,6 +62,7 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } + /// /// Test the property 'TriangleType' /// @@ -72,7 +71,5 @@ public void TriangleTypeTest() { // TODO unit test for the property 'TriangleType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/UserTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/UserTests.cs index a7b095e4c28e..bc3cb3775de1 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/UserTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/UserTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void UserInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Id' /// @@ -64,6 +62,7 @@ public void IdTest() { // TODO unit test for the property 'Id' } + /// /// Test the property 'Username' /// @@ -72,6 +71,7 @@ public void UsernameTest() { // TODO unit test for the property 'Username' } + /// /// Test the property 'FirstName' /// @@ -80,6 +80,7 @@ public void FirstNameTest() { // TODO unit test for the property 'FirstName' } + /// /// Test the property 'LastName' /// @@ -88,6 +89,7 @@ public void LastNameTest() { // TODO unit test for the property 'LastName' } + /// /// Test the property 'Email' /// @@ -96,6 +98,7 @@ public void EmailTest() { // TODO unit test for the property 'Email' } + /// /// Test the property 'Password' /// @@ -104,6 +107,7 @@ public void PasswordTest() { // TODO unit test for the property 'Password' } + /// /// Test the property 'Phone' /// @@ -112,6 +116,7 @@ public void PhoneTest() { // TODO unit test for the property 'Phone' } + /// /// Test the property 'UserStatus' /// @@ -120,6 +125,7 @@ public void UserStatusTest() { // TODO unit test for the property 'UserStatus' } + /// /// Test the property 'ObjectWithNoDeclaredProps' /// @@ -128,6 +134,7 @@ public void ObjectWithNoDeclaredPropsTest() { // TODO unit test for the property 'ObjectWithNoDeclaredProps' } + /// /// Test the property 'ObjectWithNoDeclaredPropsNullable' /// @@ -136,6 +143,7 @@ public void ObjectWithNoDeclaredPropsNullableTest() { // TODO unit test for the property 'ObjectWithNoDeclaredPropsNullable' } + /// /// Test the property 'AnyTypeProp' /// @@ -144,6 +152,7 @@ public void AnyTypePropTest() { // TODO unit test for the property 'AnyTypeProp' } + /// /// Test the property 'AnyTypePropNullable' /// @@ -152,7 +161,5 @@ public void AnyTypePropNullableTest() { // TODO unit test for the property 'AnyTypePropNullable' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/WhaleTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/WhaleTests.cs index 09610791943c..de86c02372cd 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/WhaleTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/WhaleTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void WhaleInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'HasBaleen' /// @@ -64,6 +62,7 @@ public void HasBaleenTest() { // TODO unit test for the property 'HasBaleen' } + /// /// Test the property 'HasTeeth' /// @@ -72,6 +71,7 @@ public void HasTeethTest() { // TODO unit test for the property 'HasTeeth' } + /// /// Test the property 'ClassName' /// @@ -80,7 +80,5 @@ public void ClassNameTest() { // TODO unit test for the property 'ClassName' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ZebraTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ZebraTests.cs index f44e92131400..55e70c43e0a0 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ZebraTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ZebraTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ZebraInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Type' /// @@ -64,6 +62,7 @@ public void TypeTest() { // TODO unit test for the property 'Type' } + /// /// Test the property 'ClassName' /// @@ -72,7 +71,5 @@ public void ClassNameTest() { // TODO unit test for the property 'ClassName' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ZeroBasedEnumClassTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ZeroBasedEnumClassTests.cs index f713baf3235e..d828b6d03a7b 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ZeroBasedEnumClassTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ZeroBasedEnumClassTests.cs @@ -54,7 +54,6 @@ public void ZeroBasedEnumClassInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ZeroBasedEnum' /// @@ -63,7 +62,5 @@ public void ZeroBasedEnumTest() { // TODO unit test for the property 'ZeroBasedEnum' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ZeroBasedEnumTests.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ZeroBasedEnumTests.cs index 412297e39f71..38260add43e8 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ZeroBasedEnumTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools.Test/Model/ZeroBasedEnumTests.cs @@ -53,9 +53,5 @@ public void ZeroBasedEnumInstanceTest() // TODO uncomment below to test "IsType" ZeroBasedEnum //Assert.IsType(instance); } - - - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs index 5d048a005bdc..f870aa706425 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs @@ -64,5 +64,49 @@ public void FooGetTest() //var response = instance.FooGet(); //Assert.IsType(response); } + + /// + /// Test GetCountry + /// + [Fact] + public void GetCountryTest() + { + // TODO uncomment below to test the method and replace null with proper value + //string country = null; + //instance.GetCountry(country); + } + + /// + /// Test Hello + /// + [Fact] + public void HelloTest() + { + // TODO uncomment below to test the method and replace null with proper value + //var response = instance.Hello(); + //Assert.IsType>(response); + } + + /// + /// Test RolesReportGet + /// + [Fact] + public void RolesReportGetTest() + { + // TODO uncomment below to test the method and replace null with proper value + //var response = instance.RolesReportGet(); + //Assert.IsType>>(response); + } + + /// + /// Test Test + /// + [Fact] + public void TestTest() + { + // TODO uncomment below to test the method and replace null with proper value + //var response = instance.Test(); + //Assert.IsType(response); + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Api/FakeApiTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Api/FakeApiTests.cs index 994cd46d38ae..20dfede3f9b1 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Api/FakeApiTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Api/FakeApiTests.cs @@ -108,8 +108,9 @@ public void FakeOuterNumberSerializeTest() public void FakeOuterStringSerializeTest() { // TODO uncomment below to test the method and replace null with proper value + //Guid requiredStringUuid = null; //string body = null; - //var response = instance.FakeOuterStringSerialize(body); + //var response = instance.FakeOuterStringSerialize(requiredStringUuid, body); //Assert.IsType(response); } @@ -124,6 +125,39 @@ public void GetArrayOfEnumsTest() //Assert.IsType>(response); } + /// + /// Test GetMixedAnyOf + /// + [Fact] + public void GetMixedAnyOfTest() + { + // TODO uncomment below to test the method and replace null with proper value + //var response = instance.GetMixedAnyOf(); + //Assert.IsType(response); + } + + /// + /// Test GetMixedOneOf + /// + [Fact] + public void GetMixedOneOfTest() + { + // TODO uncomment below to test the method and replace null with proper value + //var response = instance.GetMixedOneOf(); + //Assert.IsType(response); + } + + /// + /// Test TestAdditionalPropertiesReference + /// + [Fact] + public void TestAdditionalPropertiesReferenceTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Dictionary requestBody = null; + //instance.TestAdditionalPropertiesReference(requestBody); + } + /// /// Test TestBodyWithFileSchema /// @@ -167,20 +201,20 @@ public void TestEndpointParametersTest() { // TODO uncomment below to test the method and replace null with proper value //decimal number = null; - //double _double = null; + //double varDouble = null; //string patternWithoutDelimiter = null; - //byte[] _byte = null; + //byte[] varByte = null; //int? integer = null; //int? int32 = null; //long? int64 = null; - //float? _float = null; - //string _string = null; + //float? varFloat = null; + //string varString = null; //System.IO.Stream binary = null; //DateTime? date = null; //DateTime? dateTime = null; //string password = null; //string callback = null; - //instance.TestEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback); + //instance.TestEndpointParameters(number, varDouble, patternWithoutDelimiter, varByte, integer, int32, int64, varFloat, varString, binary, date, dateTime, password, callback); } /// @@ -228,6 +262,17 @@ public void TestInlineAdditionalPropertiesTest() //instance.TestInlineAdditionalProperties(requestBody); } + /// + /// Test TestInlineFreeformAdditionalProperties + /// + [Fact] + public void TestInlineFreeformAdditionalPropertiesTest() + { + // TODO uncomment below to test the method and replace null with proper value + //TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest = null; + //instance.TestInlineFreeformAdditionalProperties(testInlineFreeformAdditionalPropertiesRequest); + } + /// /// Test TestJsonFormData /// @@ -252,7 +297,22 @@ public void TestQueryParameterCollectionFormatTest() //List http = null; //List url = null; //List context = null; - //instance.TestQueryParameterCollectionFormat(pipe, ioutil, http, url, context); + //string requiredNotNullable = null; + //string requiredNullable = null; + //string notRequiredNotNullable = null; + //string notRequiredNullable = null; + //instance.TestQueryParameterCollectionFormat(pipe, ioutil, http, url, context, requiredNotNullable, requiredNullable, notRequiredNotNullable, notRequiredNullable); + } + + /// + /// Test TestStringMapReference + /// + [Fact] + public void TestStringMapReferenceTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Dictionary requestBody = null; + //instance.TestStringMapReference(requestBody); } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ActivityOutputElementRepresentationTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ActivityOutputElementRepresentationTests.cs index f211a64884af..b4bb73592031 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ActivityOutputElementRepresentationTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ActivityOutputElementRepresentationTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ActivityOutputElementRepresentationInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Prop1' /// @@ -64,6 +62,7 @@ public void Prop1Test() { // TODO unit test for the property 'Prop1' } + /// /// Test the property 'Prop2' /// @@ -72,7 +71,5 @@ public void Prop2Test() { // TODO unit test for the property 'Prop2' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ActivityTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ActivityTests.cs index afe9e846ee94..0b9efbd5a20b 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ActivityTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ActivityTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ActivityInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ActivityOutputs' /// @@ -64,7 +62,5 @@ public void ActivityOutputsTest() { // TODO unit test for the property 'ActivityOutputs' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesClassTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesClassTests.cs index 9ab029ed0979..d766719b5bce 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesClassTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesClassTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void AdditionalPropertiesClassInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'MapProperty' /// @@ -64,6 +62,7 @@ public void MapPropertyTest() { // TODO unit test for the property 'MapProperty' } + /// /// Test the property 'MapOfMapProperty' /// @@ -72,6 +71,7 @@ public void MapOfMapPropertyTest() { // TODO unit test for the property 'MapOfMapProperty' } + /// /// Test the property 'Anytype1' /// @@ -80,6 +80,7 @@ public void Anytype1Test() { // TODO unit test for the property 'Anytype1' } + /// /// Test the property 'MapWithUndeclaredPropertiesAnytype1' /// @@ -88,6 +89,7 @@ public void MapWithUndeclaredPropertiesAnytype1Test() { // TODO unit test for the property 'MapWithUndeclaredPropertiesAnytype1' } + /// /// Test the property 'MapWithUndeclaredPropertiesAnytype2' /// @@ -96,6 +98,7 @@ public void MapWithUndeclaredPropertiesAnytype2Test() { // TODO unit test for the property 'MapWithUndeclaredPropertiesAnytype2' } + /// /// Test the property 'MapWithUndeclaredPropertiesAnytype3' /// @@ -104,6 +107,7 @@ public void MapWithUndeclaredPropertiesAnytype3Test() { // TODO unit test for the property 'MapWithUndeclaredPropertiesAnytype3' } + /// /// Test the property 'EmptyMap' /// @@ -112,6 +116,7 @@ public void EmptyMapTest() { // TODO unit test for the property 'EmptyMap' } + /// /// Test the property 'MapWithUndeclaredPropertiesString' /// @@ -120,7 +125,5 @@ public void MapWithUndeclaredPropertiesStringTest() { // TODO unit test for the property 'MapWithUndeclaredPropertiesString' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/AnimalTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/AnimalTests.cs index ced34a4faadd..0bc46ab7f479 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/AnimalTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/AnimalTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -64,6 +63,7 @@ public void CatDeserializeFromAnimalTest() // TODO uncomment below to test deserialize a Cat from type Animal //Assert.IsType(JsonConvert.DeserializeObject(new Cat().ToJson())); } + /// /// Test deserialize a Dog from type Animal /// @@ -82,6 +82,7 @@ public void ClassNameTest() { // TODO unit test for the property 'ClassName' } + /// /// Test the property 'Color' /// @@ -90,7 +91,5 @@ public void ColorTest() { // TODO unit test for the property 'Color' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ApiResponseTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ApiResponseTests.cs index 2a2e098e6082..901c6a02965e 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ApiResponseTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ApiResponseTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ApiResponseInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Code' /// @@ -64,6 +62,7 @@ public void CodeTest() { // TODO unit test for the property 'Code' } + /// /// Test the property 'Type' /// @@ -72,6 +71,7 @@ public void TypeTest() { // TODO unit test for the property 'Type' } + /// /// Test the property 'Message' /// @@ -80,7 +80,5 @@ public void MessageTest() { // TODO unit test for the property 'Message' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/AppleReqTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/AppleReqTests.cs index f945f6593685..94d06c61e236 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/AppleReqTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/AppleReqTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void AppleReqInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Cultivar' /// @@ -64,6 +62,7 @@ public void CultivarTest() { // TODO unit test for the property 'Cultivar' } + /// /// Test the property 'Mealy' /// @@ -72,7 +71,5 @@ public void MealyTest() { // TODO unit test for the property 'Mealy' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/AppleTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/AppleTests.cs index 468d60184ada..b3aa7e34f8db 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/AppleTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/AppleTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void AppleInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Cultivar' /// @@ -64,6 +62,7 @@ public void CultivarTest() { // TODO unit test for the property 'Cultivar' } + /// /// Test the property 'Origin' /// @@ -73,6 +72,13 @@ public void OriginTest() // TODO unit test for the property 'Origin' } + /// + /// Test the property 'ColorCode' + /// + [Fact] + public void ColorCodeTest() + { + // TODO unit test for the property 'ColorCode' + } } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ArrayOfArrayOfNumberOnlyTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ArrayOfArrayOfNumberOnlyTests.cs index 0b259d7d3916..d52b1938e420 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ArrayOfArrayOfNumberOnlyTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ArrayOfArrayOfNumberOnlyTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ArrayOfArrayOfNumberOnlyInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ArrayArrayNumber' /// @@ -64,7 +62,5 @@ public void ArrayArrayNumberTest() { // TODO unit test for the property 'ArrayArrayNumber' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ArrayOfNumberOnlyTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ArrayOfNumberOnlyTests.cs index 27f312ad25f5..421bfd6caeab 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ArrayOfNumberOnlyTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ArrayOfNumberOnlyTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ArrayOfNumberOnlyInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ArrayNumber' /// @@ -64,7 +62,5 @@ public void ArrayNumberTest() { // TODO unit test for the property 'ArrayNumber' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ArrayTestTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ArrayTestTests.cs index a433e8c87cf7..5028c715b988 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ArrayTestTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ArrayTestTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ArrayTestInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ArrayOfString' /// @@ -64,6 +62,7 @@ public void ArrayOfStringTest() { // TODO unit test for the property 'ArrayOfString' } + /// /// Test the property 'ArrayArrayOfInteger' /// @@ -72,6 +71,7 @@ public void ArrayArrayOfIntegerTest() { // TODO unit test for the property 'ArrayArrayOfInteger' } + /// /// Test the property 'ArrayArrayOfModel' /// @@ -80,7 +80,5 @@ public void ArrayArrayOfModelTest() { // TODO unit test for the property 'ArrayArrayOfModel' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/BananaReqTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/BananaReqTests.cs index 8a6eeb82eeea..8242ff9e7969 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/BananaReqTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/BananaReqTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void BananaReqInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'LengthCm' /// @@ -64,6 +62,7 @@ public void LengthCmTest() { // TODO unit test for the property 'LengthCm' } + /// /// Test the property 'Sweet' /// @@ -72,7 +71,5 @@ public void SweetTest() { // TODO unit test for the property 'Sweet' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/BananaTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/BananaTests.cs index 8d8cc376b038..ddcea686eee8 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/BananaTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/BananaTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void BananaInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'LengthCm' /// @@ -64,7 +62,5 @@ public void LengthCmTest() { // TODO unit test for the property 'LengthCm' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/BasquePigTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/BasquePigTests.cs index 3cdccaa75959..9cb45c006e64 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/BasquePigTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/BasquePigTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void BasquePigInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ClassName' /// @@ -64,7 +62,5 @@ public void ClassNameTest() { // TODO unit test for the property 'ClassName' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/CapitalizationTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/CapitalizationTests.cs index 185c83666fc7..9e6a400d1ed1 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/CapitalizationTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/CapitalizationTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void CapitalizationInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'SmallCamel' /// @@ -64,6 +62,7 @@ public void SmallCamelTest() { // TODO unit test for the property 'SmallCamel' } + /// /// Test the property 'CapitalCamel' /// @@ -72,6 +71,7 @@ public void CapitalCamelTest() { // TODO unit test for the property 'CapitalCamel' } + /// /// Test the property 'SmallSnake' /// @@ -80,6 +80,7 @@ public void SmallSnakeTest() { // TODO unit test for the property 'SmallSnake' } + /// /// Test the property 'CapitalSnake' /// @@ -88,6 +89,7 @@ public void CapitalSnakeTest() { // TODO unit test for the property 'CapitalSnake' } + /// /// Test the property 'SCAETHFlowPoints' /// @@ -96,6 +98,7 @@ public void SCAETHFlowPointsTest() { // TODO unit test for the property 'SCAETHFlowPoints' } + /// /// Test the property 'ATT_NAME' /// @@ -104,7 +107,5 @@ public void ATT_NAMETest() { // TODO unit test for the property 'ATT_NAME' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/CatTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/CatTests.cs index 701ba7602823..c1b10d32171b 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/CatTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/CatTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void CatInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Declawed' /// @@ -64,7 +62,5 @@ public void DeclawedTest() { // TODO unit test for the property 'Declawed' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/CategoryTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/CategoryTests.cs index 6ce48e601e47..d1ef61862440 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/CategoryTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/CategoryTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void CategoryInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Id' /// @@ -64,6 +62,7 @@ public void IdTest() { // TODO unit test for the property 'Id' } + /// /// Test the property 'Name' /// @@ -72,7 +71,5 @@ public void NameTest() { // TODO unit test for the property 'Name' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ChildCatTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ChildCatTests.cs index 68566fd8d560..b40a42cb0225 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ChildCatTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ChildCatTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ChildCatInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Name' /// @@ -64,6 +62,7 @@ public void NameTest() { // TODO unit test for the property 'Name' } + /// /// Test the property 'PetType' /// @@ -72,7 +71,5 @@ public void PetTypeTest() { // TODO unit test for the property 'PetType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ClassModelTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ClassModelTests.cs index d29472e83aaf..a09b95ab4c9c 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ClassModelTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ClassModelTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ClassModelInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Class' /// @@ -64,7 +62,5 @@ public void ClassTest() { // TODO unit test for the property 'Class' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ComplexQuadrilateralTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ComplexQuadrilateralTests.cs index b3529280c8d6..835c5b87bc6e 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ComplexQuadrilateralTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ComplexQuadrilateralTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ComplexQuadrilateralInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// @@ -64,6 +62,7 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } + /// /// Test the property 'QuadrilateralType' /// @@ -72,7 +71,5 @@ public void QuadrilateralTypeTest() { // TODO unit test for the property 'QuadrilateralType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/DanishPigTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/DanishPigTests.cs index 572d9bffa790..765496ea0ced 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/DanishPigTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/DanishPigTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void DanishPigInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ClassName' /// @@ -64,7 +62,5 @@ public void ClassNameTest() { // TODO unit test for the property 'ClassName' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/DateOnlyClassTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/DateOnlyClassTests.cs index 3bd2b54a366a..67be10782efd 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/DateOnlyClassTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/DateOnlyClassTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void DateOnlyClassInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'DateOnlyProperty' /// @@ -64,7 +62,5 @@ public void DateOnlyPropertyTest() { // TODO unit test for the property 'DateOnlyProperty' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/DeprecatedObjectTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/DeprecatedObjectTests.cs index 1da5f4011c95..be6b35dbf451 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/DeprecatedObjectTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/DeprecatedObjectTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void DeprecatedObjectInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Name' /// @@ -64,7 +62,5 @@ public void NameTest() { // TODO unit test for the property 'Name' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/DogTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/DogTests.cs index 992f93a51fd5..a00de64ef51a 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/DogTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/DogTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void DogInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Breed' /// @@ -64,7 +62,5 @@ public void BreedTest() { // TODO unit test for the property 'Breed' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/DrawingTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/DrawingTests.cs index 0709ad9eeb3b..3b1308e50513 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/DrawingTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/DrawingTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void DrawingInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'MainShape' /// @@ -64,6 +62,7 @@ public void MainShapeTest() { // TODO unit test for the property 'MainShape' } + /// /// Test the property 'ShapeOrNull' /// @@ -72,6 +71,7 @@ public void ShapeOrNullTest() { // TODO unit test for the property 'ShapeOrNull' } + /// /// Test the property 'NullableShape' /// @@ -80,6 +80,7 @@ public void NullableShapeTest() { // TODO unit test for the property 'NullableShape' } + /// /// Test the property 'Shapes' /// @@ -88,7 +89,5 @@ public void ShapesTest() { // TODO unit test for the property 'Shapes' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/EnumArraysTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/EnumArraysTests.cs index 5779ca294775..6fcfa6f448c1 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/EnumArraysTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/EnumArraysTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void EnumArraysInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'JustSymbol' /// @@ -64,6 +62,7 @@ public void JustSymbolTest() { // TODO unit test for the property 'JustSymbol' } + /// /// Test the property 'ArrayEnum' /// @@ -72,7 +71,5 @@ public void ArrayEnumTest() { // TODO unit test for the property 'ArrayEnum' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/EnumClassTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/EnumClassTests.cs index a17738c5cbc5..bb46e292a652 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/EnumClassTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/EnumClassTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,9 +53,5 @@ public void EnumClassInstanceTest() // TODO uncomment below to test "IsType" EnumClass //Assert.IsType(instance); } - - - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/EnumTestTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/EnumTestTests.cs index 4f81b845d493..3050af442410 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/EnumTestTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/EnumTestTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void EnumTestInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'EnumString' /// @@ -64,6 +62,7 @@ public void EnumStringTest() { // TODO unit test for the property 'EnumString' } + /// /// Test the property 'EnumStringRequired' /// @@ -72,6 +71,7 @@ public void EnumStringRequiredTest() { // TODO unit test for the property 'EnumStringRequired' } + /// /// Test the property 'EnumInteger' /// @@ -80,6 +80,7 @@ public void EnumIntegerTest() { // TODO unit test for the property 'EnumInteger' } + /// /// Test the property 'EnumIntegerOnly' /// @@ -88,6 +89,7 @@ public void EnumIntegerOnlyTest() { // TODO unit test for the property 'EnumIntegerOnly' } + /// /// Test the property 'EnumNumber' /// @@ -96,6 +98,7 @@ public void EnumNumberTest() { // TODO unit test for the property 'EnumNumber' } + /// /// Test the property 'OuterEnum' /// @@ -104,6 +107,7 @@ public void OuterEnumTest() { // TODO unit test for the property 'OuterEnum' } + /// /// Test the property 'OuterEnumInteger' /// @@ -112,6 +116,7 @@ public void OuterEnumIntegerTest() { // TODO unit test for the property 'OuterEnumInteger' } + /// /// Test the property 'OuterEnumDefaultValue' /// @@ -120,6 +125,7 @@ public void OuterEnumDefaultValueTest() { // TODO unit test for the property 'OuterEnumDefaultValue' } + /// /// Test the property 'OuterEnumIntegerDefaultValue' /// @@ -128,7 +134,5 @@ public void OuterEnumIntegerDefaultValueTest() { // TODO unit test for the property 'OuterEnumIntegerDefaultValue' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/EquilateralTriangleTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/EquilateralTriangleTests.cs index 4663cb667de6..71d48f7e200a 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/EquilateralTriangleTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/EquilateralTriangleTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void EquilateralTriangleInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// @@ -64,6 +62,7 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } + /// /// Test the property 'TriangleType' /// @@ -72,7 +71,5 @@ public void TriangleTypeTest() { // TODO unit test for the property 'TriangleType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/FileSchemaTestClassTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/FileSchemaTestClassTests.cs index 9f45b4fe89d5..d89ad5a5bc7b 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/FileSchemaTestClassTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/FileSchemaTestClassTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void FileSchemaTestClassInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'File' /// @@ -64,6 +62,7 @@ public void FileTest() { // TODO unit test for the property 'File' } + /// /// Test the property 'Files' /// @@ -72,7 +71,5 @@ public void FilesTest() { // TODO unit test for the property 'Files' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/FileTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/FileTests.cs index 761bb72a844f..7eaea9c8786f 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/FileTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/FileTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void FileInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'SourceURI' /// @@ -64,7 +62,5 @@ public void SourceURITest() { // TODO unit test for the property 'SourceURI' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/FooGetDefaultResponseTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/FooGetDefaultResponseTests.cs index 0154d528418e..563269643111 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/FooGetDefaultResponseTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/FooGetDefaultResponseTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void FooGetDefaultResponseInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'String' /// @@ -64,7 +62,5 @@ public void StringTest() { // TODO unit test for the property 'String' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/FooTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/FooTests.cs index 0b6ed52edbd4..52f87dd5b0e0 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/FooTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/FooTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void FooInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Bar' /// @@ -64,7 +62,5 @@ public void BarTest() { // TODO unit test for the property 'Bar' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/FormatTestTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/FormatTestTests.cs index 97332800e9af..611393395b3e 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/FormatTestTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/FormatTestTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void FormatTestInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Integer' /// @@ -64,6 +62,7 @@ public void IntegerTest() { // TODO unit test for the property 'Integer' } + /// /// Test the property 'Int32' /// @@ -72,6 +71,61 @@ public void Int32Test() { // TODO unit test for the property 'Int32' } + + /// + /// Test the property 'Int32Range' + /// + [Fact] + public void Int32RangeTest() + { + // TODO unit test for the property 'Int32Range' + } + + /// + /// Test the property 'Int64Positive' + /// + [Fact] + public void Int64PositiveTest() + { + // TODO unit test for the property 'Int64Positive' + } + + /// + /// Test the property 'Int64Negative' + /// + [Fact] + public void Int64NegativeTest() + { + // TODO unit test for the property 'Int64Negative' + } + + /// + /// Test the property 'Int64PositiveExclusive' + /// + [Fact] + public void Int64PositiveExclusiveTest() + { + // TODO unit test for the property 'Int64PositiveExclusive' + } + + /// + /// Test the property 'Int64NegativeExclusive' + /// + [Fact] + public void Int64NegativeExclusiveTest() + { + // TODO unit test for the property 'Int64NegativeExclusive' + } + + /// + /// Test the property 'UnsignedInteger' + /// + [Fact] + public void UnsignedIntegerTest() + { + // TODO unit test for the property 'UnsignedInteger' + } + /// /// Test the property 'Int64' /// @@ -80,6 +134,16 @@ public void Int64Test() { // TODO unit test for the property 'Int64' } + + /// + /// Test the property 'UnsignedLong' + /// + [Fact] + public void UnsignedLongTest() + { + // TODO unit test for the property 'UnsignedLong' + } + /// /// Test the property 'Number' /// @@ -88,6 +152,7 @@ public void NumberTest() { // TODO unit test for the property 'Number' } + /// /// Test the property 'Float' /// @@ -96,6 +161,7 @@ public void FloatTest() { // TODO unit test for the property 'Float' } + /// /// Test the property 'Double' /// @@ -104,6 +170,7 @@ public void DoubleTest() { // TODO unit test for the property 'Double' } + /// /// Test the property 'Decimal' /// @@ -112,6 +179,7 @@ public void DecimalTest() { // TODO unit test for the property 'Decimal' } + /// /// Test the property 'String' /// @@ -120,6 +188,7 @@ public void StringTest() { // TODO unit test for the property 'String' } + /// /// Test the property 'Byte' /// @@ -128,6 +197,7 @@ public void ByteTest() { // TODO unit test for the property 'Byte' } + /// /// Test the property 'Binary' /// @@ -136,6 +206,7 @@ public void BinaryTest() { // TODO unit test for the property 'Binary' } + /// /// Test the property 'Date' /// @@ -144,6 +215,7 @@ public void DateTest() { // TODO unit test for the property 'Date' } + /// /// Test the property 'DateTime' /// @@ -152,6 +224,7 @@ public void DateTimeTest() { // TODO unit test for the property 'DateTime' } + /// /// Test the property 'Uuid' /// @@ -160,6 +233,7 @@ public void UuidTest() { // TODO unit test for the property 'Uuid' } + /// /// Test the property 'Password' /// @@ -168,6 +242,7 @@ public void PasswordTest() { // TODO unit test for the property 'Password' } + /// /// Test the property 'PatternWithDigits' /// @@ -176,6 +251,7 @@ public void PatternWithDigitsTest() { // TODO unit test for the property 'PatternWithDigits' } + /// /// Test the property 'PatternWithDigitsAndDelimiter' /// @@ -185,6 +261,13 @@ public void PatternWithDigitsAndDelimiterTest() // TODO unit test for the property 'PatternWithDigitsAndDelimiter' } + /// + /// Test the property 'PatternWithBackslash' + /// + [Fact] + public void PatternWithBackslashTest() + { + // TODO unit test for the property 'PatternWithBackslash' + } } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/FruitReqTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/FruitReqTests.cs index 5ea9e3ffc1d5..771ef1ae2c5d 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/FruitReqTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/FruitReqTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void FruitReqInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Cultivar' /// @@ -64,6 +62,7 @@ public void CultivarTest() { // TODO unit test for the property 'Cultivar' } + /// /// Test the property 'Mealy' /// @@ -72,6 +71,7 @@ public void MealyTest() { // TODO unit test for the property 'Mealy' } + /// /// Test the property 'LengthCm' /// @@ -80,6 +80,7 @@ public void LengthCmTest() { // TODO unit test for the property 'LengthCm' } + /// /// Test the property 'Sweet' /// @@ -88,7 +89,5 @@ public void SweetTest() { // TODO unit test for the property 'Sweet' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/FruitTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/FruitTests.cs index 91e069bb42fa..53881a333193 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/FruitTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/FruitTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void FruitInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Color' /// @@ -64,6 +62,7 @@ public void ColorTest() { // TODO unit test for the property 'Color' } + /// /// Test the property 'Cultivar' /// @@ -72,6 +71,7 @@ public void CultivarTest() { // TODO unit test for the property 'Cultivar' } + /// /// Test the property 'Origin' /// @@ -80,6 +80,16 @@ public void OriginTest() { // TODO unit test for the property 'Origin' } + + /// + /// Test the property 'ColorCode' + /// + [Fact] + public void ColorCodeTest() + { + // TODO unit test for the property 'ColorCode' + } + /// /// Test the property 'LengthCm' /// @@ -88,7 +98,5 @@ public void LengthCmTest() { // TODO unit test for the property 'LengthCm' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/GmFruitTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/GmFruitTests.cs index 08fb0e07a1c8..6322d4e2a721 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/GmFruitTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/GmFruitTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void GmFruitInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Color' /// @@ -64,6 +62,7 @@ public void ColorTest() { // TODO unit test for the property 'Color' } + /// /// Test the property 'Cultivar' /// @@ -72,6 +71,7 @@ public void CultivarTest() { // TODO unit test for the property 'Cultivar' } + /// /// Test the property 'Origin' /// @@ -80,6 +80,16 @@ public void OriginTest() { // TODO unit test for the property 'Origin' } + + /// + /// Test the property 'ColorCode' + /// + [Fact] + public void ColorCodeTest() + { + // TODO unit test for the property 'ColorCode' + } + /// /// Test the property 'LengthCm' /// @@ -88,7 +98,5 @@ public void LengthCmTest() { // TODO unit test for the property 'LengthCm' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/GrandparentAnimalTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/GrandparentAnimalTests.cs index faa4930944be..3adc2a0573e7 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/GrandparentAnimalTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/GrandparentAnimalTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -64,6 +63,7 @@ public void ChildCatDeserializeFromParentPetTest() // TODO uncomment below to test deserialize a ChildCat from type ParentPet //Assert.IsType(JsonConvert.DeserializeObject(new ChildCat().ToJson())); } + /// /// Test deserialize a ParentPet from type GrandparentAnimal /// @@ -82,7 +82,5 @@ public void PetTypeTest() { // TODO unit test for the property 'PetType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/HasOnlyReadOnlyTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/HasOnlyReadOnlyTests.cs index 651a9f0ce30c..69abe3f9e6ad 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/HasOnlyReadOnlyTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/HasOnlyReadOnlyTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void HasOnlyReadOnlyInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Bar' /// @@ -64,6 +62,7 @@ public void BarTest() { // TODO unit test for the property 'Bar' } + /// /// Test the property 'Foo' /// @@ -72,7 +71,5 @@ public void FooTest() { // TODO unit test for the property 'Foo' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/HealthCheckResultTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/HealthCheckResultTests.cs index 857190a3334d..794fda2c2d6d 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/HealthCheckResultTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/HealthCheckResultTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void HealthCheckResultInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'NullableMessage' /// @@ -64,7 +62,5 @@ public void NullableMessageTest() { // TODO unit test for the property 'NullableMessage' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/IsoscelesTriangleTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/IsoscelesTriangleTests.cs index 755c417cc54f..ca8a058e37df 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/IsoscelesTriangleTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/IsoscelesTriangleTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void IsoscelesTriangleInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// @@ -64,6 +62,7 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } + /// /// Test the property 'TriangleType' /// @@ -72,7 +71,5 @@ public void TriangleTypeTest() { // TODO unit test for the property 'TriangleType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ListTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ListTests.cs index 2ed828d05208..d659080e89c9 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ListTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ListTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,16 +54,13 @@ public void ListInstanceTest() //Assert.IsType(instance); } - /// - /// Test the property '_123List' + /// Test the property 'Var123List' /// [Fact] - public void _123ListTest() + public void Var123ListTest() { - // TODO unit test for the property '_123List' + // TODO unit test for the property 'Var123List' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/LiteralStringClassTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/LiteralStringClassTests.cs index 74dc17b9f4a1..58dc425228ff 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/LiteralStringClassTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/LiteralStringClassTests.cs @@ -54,7 +54,6 @@ public void LiteralStringClassInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'EscapedLiteralString' /// @@ -63,6 +62,7 @@ public void EscapedLiteralStringTest() { // TODO unit test for the property 'EscapedLiteralString' } + /// /// Test the property 'UnescapedLiteralString' /// @@ -71,7 +71,5 @@ public void UnescapedLiteralStringTest() { // TODO unit test for the property 'UnescapedLiteralString' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/MammalTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/MammalTests.cs index 7b46cbf06450..3fdadd19646c 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/MammalTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/MammalTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void MammalInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'HasBaleen' /// @@ -64,6 +62,7 @@ public void HasBaleenTest() { // TODO unit test for the property 'HasBaleen' } + /// /// Test the property 'HasTeeth' /// @@ -72,6 +71,7 @@ public void HasTeethTest() { // TODO unit test for the property 'HasTeeth' } + /// /// Test the property 'ClassName' /// @@ -80,6 +80,7 @@ public void ClassNameTest() { // TODO unit test for the property 'ClassName' } + /// /// Test the property 'Type' /// @@ -88,7 +89,5 @@ public void TypeTest() { // TODO unit test for the property 'Type' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/MapTestTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/MapTestTests.cs index 20036e1c905e..e055027f15bf 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/MapTestTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/MapTestTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void MapTestInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'MapMapOfString' /// @@ -64,6 +62,7 @@ public void MapMapOfStringTest() { // TODO unit test for the property 'MapMapOfString' } + /// /// Test the property 'MapOfEnumString' /// @@ -72,6 +71,7 @@ public void MapOfEnumStringTest() { // TODO unit test for the property 'MapOfEnumString' } + /// /// Test the property 'DirectMap' /// @@ -80,6 +80,7 @@ public void DirectMapTest() { // TODO unit test for the property 'DirectMap' } + /// /// Test the property 'IndirectMap' /// @@ -88,7 +89,5 @@ public void IndirectMapTest() { // TODO unit test for the property 'IndirectMap' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/MixedPropertiesAndAdditionalPropertiesClassTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/MixedPropertiesAndAdditionalPropertiesClassTests.cs index f56cd715f45f..07c592a8a4c0 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/MixedPropertiesAndAdditionalPropertiesClassTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/MixedPropertiesAndAdditionalPropertiesClassTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,6 +54,14 @@ public void MixedPropertiesAndAdditionalPropertiesClassInstanceTest() //Assert.IsType(instance); } + /// + /// Test the property 'UuidWithPattern' + /// + [Fact] + public void UuidWithPatternTest() + { + // TODO unit test for the property 'UuidWithPattern' + } /// /// Test the property 'Uuid' @@ -64,6 +71,7 @@ public void UuidTest() { // TODO unit test for the property 'Uuid' } + /// /// Test the property 'DateTime' /// @@ -72,6 +80,7 @@ public void DateTimeTest() { // TODO unit test for the property 'DateTime' } + /// /// Test the property 'Map' /// @@ -80,7 +89,5 @@ public void MapTest() { // TODO unit test for the property 'Map' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/Model200ResponseTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/Model200ResponseTests.cs index e25478618f20..85be687d5c2b 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/Model200ResponseTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/Model200ResponseTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void Model200ResponseInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Name' /// @@ -64,6 +62,7 @@ public void NameTest() { // TODO unit test for the property 'Name' } + /// /// Test the property 'Class' /// @@ -72,7 +71,5 @@ public void ClassTest() { // TODO unit test for the property 'Class' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ModelClientTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ModelClientTests.cs index 24a9e2631586..a5f4aa1593e1 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ModelClientTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ModelClientTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,16 +54,13 @@ public void ModelClientInstanceTest() //Assert.IsType(instance); } - /// - /// Test the property '_Client' + /// Test the property 'VarClient' /// [Fact] - public void _ClientTest() + public void VarClientTest() { - // TODO unit test for the property '_Client' + // TODO unit test for the property 'VarClient' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/NameTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/NameTests.cs index c390049e66dc..fc1756b66bec 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/NameTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/NameTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,15 +54,15 @@ public void NameInstanceTest() //Assert.IsType(instance); } - /// - /// Test the property '_Name' + /// Test the property 'VarName' /// [Fact] - public void _NameTest() + public void VarNameTest() { - // TODO unit test for the property '_Name' + // TODO unit test for the property 'VarName' } + /// /// Test the property 'SnakeCase' /// @@ -72,6 +71,7 @@ public void SnakeCaseTest() { // TODO unit test for the property 'SnakeCase' } + /// /// Test the property 'Property' /// @@ -80,15 +80,14 @@ public void PropertyTest() { // TODO unit test for the property 'Property' } + /// - /// Test the property '_123Number' + /// Test the property 'Var123Number' /// [Fact] - public void _123NumberTest() + public void Var123NumberTest() { - // TODO unit test for the property '_123Number' + // TODO unit test for the property 'Var123Number' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/NullableClassTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/NullableClassTests.cs index 8f00505612a9..214795f86c27 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/NullableClassTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/NullableClassTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void NullableClassInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'IntegerProp' /// @@ -64,6 +62,7 @@ public void IntegerPropTest() { // TODO unit test for the property 'IntegerProp' } + /// /// Test the property 'NumberProp' /// @@ -72,6 +71,7 @@ public void NumberPropTest() { // TODO unit test for the property 'NumberProp' } + /// /// Test the property 'BooleanProp' /// @@ -80,6 +80,7 @@ public void BooleanPropTest() { // TODO unit test for the property 'BooleanProp' } + /// /// Test the property 'StringProp' /// @@ -88,6 +89,7 @@ public void StringPropTest() { // TODO unit test for the property 'StringProp' } + /// /// Test the property 'DateProp' /// @@ -96,6 +98,7 @@ public void DatePropTest() { // TODO unit test for the property 'DateProp' } + /// /// Test the property 'DatetimeProp' /// @@ -104,6 +107,7 @@ public void DatetimePropTest() { // TODO unit test for the property 'DatetimeProp' } + /// /// Test the property 'ArrayNullableProp' /// @@ -112,6 +116,7 @@ public void ArrayNullablePropTest() { // TODO unit test for the property 'ArrayNullableProp' } + /// /// Test the property 'ArrayAndItemsNullableProp' /// @@ -120,6 +125,7 @@ public void ArrayAndItemsNullablePropTest() { // TODO unit test for the property 'ArrayAndItemsNullableProp' } + /// /// Test the property 'ArrayItemsNullable' /// @@ -128,6 +134,7 @@ public void ArrayItemsNullableTest() { // TODO unit test for the property 'ArrayItemsNullable' } + /// /// Test the property 'ObjectNullableProp' /// @@ -136,6 +143,7 @@ public void ObjectNullablePropTest() { // TODO unit test for the property 'ObjectNullableProp' } + /// /// Test the property 'ObjectAndItemsNullableProp' /// @@ -144,6 +152,7 @@ public void ObjectAndItemsNullablePropTest() { // TODO unit test for the property 'ObjectAndItemsNullableProp' } + /// /// Test the property 'ObjectItemsNullable' /// @@ -152,7 +161,5 @@ public void ObjectItemsNullableTest() { // TODO unit test for the property 'ObjectItemsNullable' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/NullableGuidClassTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/NullableGuidClassTests.cs index 0bc0ea369188..1290072514cd 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/NullableGuidClassTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/NullableGuidClassTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void NullableGuidClassInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Uuid' /// @@ -64,7 +62,5 @@ public void UuidTest() { // TODO unit test for the property 'Uuid' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/NullableShapeTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/NullableShapeTests.cs index 5662f91d6e64..75e9c7e8fd49 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/NullableShapeTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/NullableShapeTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void NullableShapeInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// @@ -64,6 +62,7 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } + /// /// Test the property 'QuadrilateralType' /// @@ -72,7 +71,5 @@ public void QuadrilateralTypeTest() { // TODO unit test for the property 'QuadrilateralType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/NumberOnlyTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/NumberOnlyTests.cs index 3a06cb020b2a..2fb06f9afb48 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/NumberOnlyTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/NumberOnlyTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void NumberOnlyInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'JustNumber' /// @@ -64,7 +62,5 @@ public void JustNumberTest() { // TODO unit test for the property 'JustNumber' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ObjectWithDeprecatedFieldsTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ObjectWithDeprecatedFieldsTests.cs index 82f93fab48c5..e90b746d19c6 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ObjectWithDeprecatedFieldsTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ObjectWithDeprecatedFieldsTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ObjectWithDeprecatedFieldsInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Uuid' /// @@ -64,6 +62,7 @@ public void UuidTest() { // TODO unit test for the property 'Uuid' } + /// /// Test the property 'Id' /// @@ -72,6 +71,7 @@ public void IdTest() { // TODO unit test for the property 'Id' } + /// /// Test the property 'DeprecatedRef' /// @@ -80,6 +80,7 @@ public void DeprecatedRefTest() { // TODO unit test for the property 'DeprecatedRef' } + /// /// Test the property 'Bars' /// @@ -88,7 +89,5 @@ public void BarsTest() { // TODO unit test for the property 'Bars' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/OneOfStringTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/OneOfStringTests.cs index 75bd7cd9bfd0..04727e77c691 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/OneOfStringTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/OneOfStringTests.cs @@ -53,9 +53,5 @@ public void OneOfStringInstanceTest() // TODO uncomment below to test "IsType" OneOfString //Assert.IsType(instance); } - - - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/OrderTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/OrderTests.cs index cf5c561c5476..84d2828b367f 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/OrderTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/OrderTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void OrderInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Id' /// @@ -64,6 +62,7 @@ public void IdTest() { // TODO unit test for the property 'Id' } + /// /// Test the property 'PetId' /// @@ -72,6 +71,7 @@ public void PetIdTest() { // TODO unit test for the property 'PetId' } + /// /// Test the property 'Quantity' /// @@ -80,6 +80,7 @@ public void QuantityTest() { // TODO unit test for the property 'Quantity' } + /// /// Test the property 'ShipDate' /// @@ -88,6 +89,7 @@ public void ShipDateTest() { // TODO unit test for the property 'ShipDate' } + /// /// Test the property 'Status' /// @@ -96,6 +98,7 @@ public void StatusTest() { // TODO unit test for the property 'Status' } + /// /// Test the property 'Complete' /// @@ -104,7 +107,5 @@ public void CompleteTest() { // TODO unit test for the property 'Complete' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/OuterCompositeTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/OuterCompositeTests.cs index 2efda0db59c4..fd52fa2cfca7 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/OuterCompositeTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/OuterCompositeTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void OuterCompositeInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'MyNumber' /// @@ -64,6 +62,7 @@ public void MyNumberTest() { // TODO unit test for the property 'MyNumber' } + /// /// Test the property 'MyString' /// @@ -72,6 +71,7 @@ public void MyStringTest() { // TODO unit test for the property 'MyString' } + /// /// Test the property 'MyBoolean' /// @@ -80,7 +80,5 @@ public void MyBooleanTest() { // TODO unit test for the property 'MyBoolean' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/OuterEnumDefaultValueTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/OuterEnumDefaultValueTests.cs index 986fff774c46..db98c5a44ae3 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/OuterEnumDefaultValueTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/OuterEnumDefaultValueTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,9 +53,5 @@ public void OuterEnumDefaultValueInstanceTest() // TODO uncomment below to test "IsType" OuterEnumDefaultValue //Assert.IsType(instance); } - - - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerDefaultValueTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerDefaultValueTests.cs index 015d5dab945e..a4c028ea750d 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerDefaultValueTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerDefaultValueTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,9 +53,5 @@ public void OuterEnumIntegerDefaultValueInstanceTest() // TODO uncomment below to test "IsType" OuterEnumIntegerDefaultValue //Assert.IsType(instance); } - - - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerTests.cs index 385e899110a4..4d1be408011e 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,9 +53,5 @@ public void OuterEnumIntegerInstanceTest() // TODO uncomment below to test "IsType" OuterEnumInteger //Assert.IsType(instance); } - - - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/OuterEnumTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/OuterEnumTests.cs index f47304767b9e..d4d6e96125d9 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/OuterEnumTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/OuterEnumTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,9 +53,5 @@ public void OuterEnumInstanceTest() // TODO uncomment below to test "IsType" OuterEnum //Assert.IsType(instance); } - - - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ParentPetTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ParentPetTests.cs index 1e17568ed331..eb9f5956b215 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ParentPetTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ParentPetTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -64,8 +63,5 @@ public void ChildCatDeserializeFromParentPetTest() // TODO uncomment below to test deserialize a ChildCat from type ParentPet //Assert.IsType(JsonConvert.DeserializeObject(new ChildCat().ToJson())); } - - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/PetTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/PetTests.cs index 154e66f8dfc0..535ab69d2aa2 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/PetTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/PetTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void PetInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Id' /// @@ -64,6 +62,7 @@ public void IdTest() { // TODO unit test for the property 'Id' } + /// /// Test the property 'Category' /// @@ -72,6 +71,7 @@ public void CategoryTest() { // TODO unit test for the property 'Category' } + /// /// Test the property 'Name' /// @@ -80,6 +80,7 @@ public void NameTest() { // TODO unit test for the property 'Name' } + /// /// Test the property 'PhotoUrls' /// @@ -88,6 +89,7 @@ public void PhotoUrlsTest() { // TODO unit test for the property 'PhotoUrls' } + /// /// Test the property 'Tags' /// @@ -96,6 +98,7 @@ public void TagsTest() { // TODO unit test for the property 'Tags' } + /// /// Test the property 'Status' /// @@ -104,7 +107,5 @@ public void StatusTest() { // TODO unit test for the property 'Status' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/PigTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/PigTests.cs index 55cf2189046b..34562dc6860f 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/PigTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/PigTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void PigInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ClassName' /// @@ -64,7 +62,5 @@ public void ClassNameTest() { // TODO unit test for the property 'ClassName' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/PolymorphicPropertyTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/PolymorphicPropertyTests.cs index eff3c6ddc9bb..a546cd2b0032 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/PolymorphicPropertyTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/PolymorphicPropertyTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,9 +53,5 @@ public void PolymorphicPropertyInstanceTest() // TODO uncomment below to test "IsType" PolymorphicProperty //Assert.IsType(instance); } - - - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/QuadrilateralInterfaceTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/QuadrilateralInterfaceTests.cs index 6eef9f4c816d..d08798b36050 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/QuadrilateralInterfaceTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/QuadrilateralInterfaceTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void QuadrilateralInterfaceInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'QuadrilateralType' /// @@ -64,7 +62,5 @@ public void QuadrilateralTypeTest() { // TODO unit test for the property 'QuadrilateralType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/QuadrilateralTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/QuadrilateralTests.cs index 26826681a478..cd996d7e0edf 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/QuadrilateralTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/QuadrilateralTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void QuadrilateralInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// @@ -64,6 +62,7 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } + /// /// Test the property 'QuadrilateralType' /// @@ -72,7 +71,5 @@ public void QuadrilateralTypeTest() { // TODO unit test for the property 'QuadrilateralType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ReadOnlyFirstTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ReadOnlyFirstTests.cs index dc3d0fad54cd..056bc2b4519c 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ReadOnlyFirstTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ReadOnlyFirstTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ReadOnlyFirstInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Bar' /// @@ -64,6 +62,7 @@ public void BarTest() { // TODO unit test for the property 'Bar' } + /// /// Test the property 'Baz' /// @@ -72,7 +71,5 @@ public void BazTest() { // TODO unit test for the property 'Baz' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ReturnTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ReturnTests.cs index c8c1d6510d2f..d2dc7ce4a7e1 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ReturnTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ReturnTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,16 +54,40 @@ public void ReturnInstanceTest() //Assert.IsType(instance); } + /// + /// Test the property 'VarReturn' + /// + [Fact] + public void VarReturnTest() + { + // TODO unit test for the property 'VarReturn' + } /// - /// Test the property '_Return' + /// Test the property 'Lock' /// [Fact] - public void _ReturnTest() + public void LockTest() { - // TODO unit test for the property '_Return' + // TODO unit test for the property 'Lock' } - } + /// + /// Test the property 'Abstract' + /// + [Fact] + public void AbstractTest() + { + // TODO unit test for the property 'Abstract' + } + /// + /// Test the property 'Unsafe' + /// + [Fact] + public void UnsafeTest() + { + // TODO unit test for the property 'Unsafe' + } + } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ScaleneTriangleTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ScaleneTriangleTests.cs index 04cb9f1ab6b1..a7332ab47b03 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ScaleneTriangleTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ScaleneTriangleTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ScaleneTriangleInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// @@ -64,6 +62,7 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } + /// /// Test the property 'TriangleType' /// @@ -72,7 +71,5 @@ public void TriangleTypeTest() { // TODO unit test for the property 'TriangleType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ShapeInterfaceTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ShapeInterfaceTests.cs index 7bd0bc86f963..e082fb3b4faa 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ShapeInterfaceTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ShapeInterfaceTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ShapeInterfaceInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// @@ -64,7 +62,5 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ShapeOrNullTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ShapeOrNullTests.cs index d0af114157c9..b70c157800b5 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ShapeOrNullTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ShapeOrNullTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ShapeOrNullInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// @@ -64,6 +62,7 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } + /// /// Test the property 'QuadrilateralType' /// @@ -72,7 +71,5 @@ public void QuadrilateralTypeTest() { // TODO unit test for the property 'QuadrilateralType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ShapeTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ShapeTests.cs index b01bd531f857..babd94722cfb 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ShapeTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ShapeTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ShapeInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// @@ -64,6 +62,7 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } + /// /// Test the property 'QuadrilateralType' /// @@ -72,7 +71,5 @@ public void QuadrilateralTypeTest() { // TODO unit test for the property 'QuadrilateralType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/SimpleQuadrilateralTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/SimpleQuadrilateralTests.cs index 6648e9809281..24f0288bcac4 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/SimpleQuadrilateralTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/SimpleQuadrilateralTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void SimpleQuadrilateralInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// @@ -64,6 +62,7 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } + /// /// Test the property 'QuadrilateralType' /// @@ -72,7 +71,5 @@ public void QuadrilateralTypeTest() { // TODO unit test for the property 'QuadrilateralType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/SpecialModelNameTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/SpecialModelNameTests.cs index 0f0e1ff12a9e..ef8a8d50e3ee 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/SpecialModelNameTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/SpecialModelNameTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void SpecialModelNameInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'SpecialPropertyName' /// @@ -64,15 +62,14 @@ public void SpecialPropertyNameTest() { // TODO unit test for the property 'SpecialPropertyName' } + /// - /// Test the property '_SpecialModelName' + /// Test the property 'VarSpecialModelName' /// [Fact] - public void _SpecialModelNameTest() + public void VarSpecialModelNameTest() { - // TODO unit test for the property '_SpecialModelName' + // TODO unit test for the property 'VarSpecialModelName' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/TagTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/TagTests.cs index 6d56232d0a76..8f9ad604eab9 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/TagTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/TagTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void TagInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Id' /// @@ -64,6 +62,7 @@ public void IdTest() { // TODO unit test for the property 'Id' } + /// /// Test the property 'Name' /// @@ -72,7 +71,5 @@ public void NameTest() { // TODO unit test for the property 'Name' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/TestCollectionEndingWithWordListObjectTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/TestCollectionEndingWithWordListObjectTests.cs index 4def0dcda9cc..6623a04fcc40 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/TestCollectionEndingWithWordListObjectTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/TestCollectionEndingWithWordListObjectTests.cs @@ -54,7 +54,6 @@ public void TestCollectionEndingWithWordListObjectInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'TestCollectionEndingWithWordList' /// @@ -63,7 +62,5 @@ public void TestCollectionEndingWithWordListTest() { // TODO unit test for the property 'TestCollectionEndingWithWordList' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/TestCollectionEndingWithWordListTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/TestCollectionEndingWithWordListTests.cs index e9df66daf2e5..a32943a0c841 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/TestCollectionEndingWithWordListTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/TestCollectionEndingWithWordListTests.cs @@ -54,7 +54,6 @@ public void TestCollectionEndingWithWordListInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Value' /// @@ -63,7 +62,5 @@ public void ValueTest() { // TODO unit test for the property 'Value' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/TriangleInterfaceTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/TriangleInterfaceTests.cs index fba65470bee6..1750c64c4eda 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/TriangleInterfaceTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/TriangleInterfaceTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void TriangleInterfaceInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'TriangleType' /// @@ -64,7 +62,5 @@ public void TriangleTypeTest() { // TODO unit test for the property 'TriangleType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/TriangleTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/TriangleTests.cs index bdaab0b47965..0dd209f5303a 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/TriangleTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/TriangleTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void TriangleInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// @@ -64,6 +62,7 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } + /// /// Test the property 'TriangleType' /// @@ -72,7 +71,5 @@ public void TriangleTypeTest() { // TODO unit test for the property 'TriangleType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/UserTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/UserTests.cs index a7b095e4c28e..bc3cb3775de1 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/UserTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/UserTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void UserInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Id' /// @@ -64,6 +62,7 @@ public void IdTest() { // TODO unit test for the property 'Id' } + /// /// Test the property 'Username' /// @@ -72,6 +71,7 @@ public void UsernameTest() { // TODO unit test for the property 'Username' } + /// /// Test the property 'FirstName' /// @@ -80,6 +80,7 @@ public void FirstNameTest() { // TODO unit test for the property 'FirstName' } + /// /// Test the property 'LastName' /// @@ -88,6 +89,7 @@ public void LastNameTest() { // TODO unit test for the property 'LastName' } + /// /// Test the property 'Email' /// @@ -96,6 +98,7 @@ public void EmailTest() { // TODO unit test for the property 'Email' } + /// /// Test the property 'Password' /// @@ -104,6 +107,7 @@ public void PasswordTest() { // TODO unit test for the property 'Password' } + /// /// Test the property 'Phone' /// @@ -112,6 +116,7 @@ public void PhoneTest() { // TODO unit test for the property 'Phone' } + /// /// Test the property 'UserStatus' /// @@ -120,6 +125,7 @@ public void UserStatusTest() { // TODO unit test for the property 'UserStatus' } + /// /// Test the property 'ObjectWithNoDeclaredProps' /// @@ -128,6 +134,7 @@ public void ObjectWithNoDeclaredPropsTest() { // TODO unit test for the property 'ObjectWithNoDeclaredProps' } + /// /// Test the property 'ObjectWithNoDeclaredPropsNullable' /// @@ -136,6 +143,7 @@ public void ObjectWithNoDeclaredPropsNullableTest() { // TODO unit test for the property 'ObjectWithNoDeclaredPropsNullable' } + /// /// Test the property 'AnyTypeProp' /// @@ -144,6 +152,7 @@ public void AnyTypePropTest() { // TODO unit test for the property 'AnyTypeProp' } + /// /// Test the property 'AnyTypePropNullable' /// @@ -152,7 +161,5 @@ public void AnyTypePropNullableTest() { // TODO unit test for the property 'AnyTypePropNullable' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/WhaleTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/WhaleTests.cs index 09610791943c..de86c02372cd 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/WhaleTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/WhaleTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void WhaleInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'HasBaleen' /// @@ -64,6 +62,7 @@ public void HasBaleenTest() { // TODO unit test for the property 'HasBaleen' } + /// /// Test the property 'HasTeeth' /// @@ -72,6 +71,7 @@ public void HasTeethTest() { // TODO unit test for the property 'HasTeeth' } + /// /// Test the property 'ClassName' /// @@ -80,7 +80,5 @@ public void ClassNameTest() { // TODO unit test for the property 'ClassName' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ZebraTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ZebraTests.cs index f44e92131400..55e70c43e0a0 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ZebraTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ZebraTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ZebraInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Type' /// @@ -64,6 +62,7 @@ public void TypeTest() { // TODO unit test for the property 'Type' } + /// /// Test the property 'ClassName' /// @@ -72,7 +71,5 @@ public void ClassNameTest() { // TODO unit test for the property 'ClassName' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ZeroBasedEnumClassTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ZeroBasedEnumClassTests.cs index f713baf3235e..d828b6d03a7b 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ZeroBasedEnumClassTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ZeroBasedEnumClassTests.cs @@ -54,7 +54,6 @@ public void ZeroBasedEnumClassInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ZeroBasedEnum' /// @@ -63,7 +62,5 @@ public void ZeroBasedEnumTest() { // TODO unit test for the property 'ZeroBasedEnum' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ZeroBasedEnumTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ZeroBasedEnumTests.cs index 412297e39f71..38260add43e8 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ZeroBasedEnumTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools.Test/Model/ZeroBasedEnumTests.cs @@ -53,9 +53,5 @@ public void ZeroBasedEnumInstanceTest() // TODO uncomment below to test "IsType" ZeroBasedEnum //Assert.IsType(instance); } - - - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs index 5d048a005bdc..f870aa706425 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs @@ -64,5 +64,49 @@ public void FooGetTest() //var response = instance.FooGet(); //Assert.IsType(response); } + + /// + /// Test GetCountry + /// + [Fact] + public void GetCountryTest() + { + // TODO uncomment below to test the method and replace null with proper value + //string country = null; + //instance.GetCountry(country); + } + + /// + /// Test Hello + /// + [Fact] + public void HelloTest() + { + // TODO uncomment below to test the method and replace null with proper value + //var response = instance.Hello(); + //Assert.IsType>(response); + } + + /// + /// Test RolesReportGet + /// + [Fact] + public void RolesReportGetTest() + { + // TODO uncomment below to test the method and replace null with proper value + //var response = instance.RolesReportGet(); + //Assert.IsType>>(response); + } + + /// + /// Test Test + /// + [Fact] + public void TestTest() + { + // TODO uncomment below to test the method and replace null with proper value + //var response = instance.Test(); + //Assert.IsType(response); + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Api/FakeApiTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Api/FakeApiTests.cs index 994cd46d38ae..20dfede3f9b1 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Api/FakeApiTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Api/FakeApiTests.cs @@ -108,8 +108,9 @@ public void FakeOuterNumberSerializeTest() public void FakeOuterStringSerializeTest() { // TODO uncomment below to test the method and replace null with proper value + //Guid requiredStringUuid = null; //string body = null; - //var response = instance.FakeOuterStringSerialize(body); + //var response = instance.FakeOuterStringSerialize(requiredStringUuid, body); //Assert.IsType(response); } @@ -124,6 +125,39 @@ public void GetArrayOfEnumsTest() //Assert.IsType>(response); } + /// + /// Test GetMixedAnyOf + /// + [Fact] + public void GetMixedAnyOfTest() + { + // TODO uncomment below to test the method and replace null with proper value + //var response = instance.GetMixedAnyOf(); + //Assert.IsType(response); + } + + /// + /// Test GetMixedOneOf + /// + [Fact] + public void GetMixedOneOfTest() + { + // TODO uncomment below to test the method and replace null with proper value + //var response = instance.GetMixedOneOf(); + //Assert.IsType(response); + } + + /// + /// Test TestAdditionalPropertiesReference + /// + [Fact] + public void TestAdditionalPropertiesReferenceTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Dictionary requestBody = null; + //instance.TestAdditionalPropertiesReference(requestBody); + } + /// /// Test TestBodyWithFileSchema /// @@ -167,20 +201,20 @@ public void TestEndpointParametersTest() { // TODO uncomment below to test the method and replace null with proper value //decimal number = null; - //double _double = null; + //double varDouble = null; //string patternWithoutDelimiter = null; - //byte[] _byte = null; + //byte[] varByte = null; //int? integer = null; //int? int32 = null; //long? int64 = null; - //float? _float = null; - //string _string = null; + //float? varFloat = null; + //string varString = null; //System.IO.Stream binary = null; //DateTime? date = null; //DateTime? dateTime = null; //string password = null; //string callback = null; - //instance.TestEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback); + //instance.TestEndpointParameters(number, varDouble, patternWithoutDelimiter, varByte, integer, int32, int64, varFloat, varString, binary, date, dateTime, password, callback); } /// @@ -228,6 +262,17 @@ public void TestInlineAdditionalPropertiesTest() //instance.TestInlineAdditionalProperties(requestBody); } + /// + /// Test TestInlineFreeformAdditionalProperties + /// + [Fact] + public void TestInlineFreeformAdditionalPropertiesTest() + { + // TODO uncomment below to test the method and replace null with proper value + //TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest = null; + //instance.TestInlineFreeformAdditionalProperties(testInlineFreeformAdditionalPropertiesRequest); + } + /// /// Test TestJsonFormData /// @@ -252,7 +297,22 @@ public void TestQueryParameterCollectionFormatTest() //List http = null; //List url = null; //List context = null; - //instance.TestQueryParameterCollectionFormat(pipe, ioutil, http, url, context); + //string requiredNotNullable = null; + //string requiredNullable = null; + //string notRequiredNotNullable = null; + //string notRequiredNullable = null; + //instance.TestQueryParameterCollectionFormat(pipe, ioutil, http, url, context, requiredNotNullable, requiredNullable, notRequiredNotNullable, notRequiredNullable); + } + + /// + /// Test TestStringMapReference + /// + [Fact] + public void TestStringMapReferenceTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Dictionary requestBody = null; + //instance.TestStringMapReference(requestBody); } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ActivityOutputElementRepresentationTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ActivityOutputElementRepresentationTests.cs index f211a64884af..b4bb73592031 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ActivityOutputElementRepresentationTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ActivityOutputElementRepresentationTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ActivityOutputElementRepresentationInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Prop1' /// @@ -64,6 +62,7 @@ public void Prop1Test() { // TODO unit test for the property 'Prop1' } + /// /// Test the property 'Prop2' /// @@ -72,7 +71,5 @@ public void Prop2Test() { // TODO unit test for the property 'Prop2' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ActivityTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ActivityTests.cs index afe9e846ee94..0b9efbd5a20b 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ActivityTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ActivityTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ActivityInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ActivityOutputs' /// @@ -64,7 +62,5 @@ public void ActivityOutputsTest() { // TODO unit test for the property 'ActivityOutputs' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesClassTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesClassTests.cs index 9ab029ed0979..d766719b5bce 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesClassTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesClassTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void AdditionalPropertiesClassInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'MapProperty' /// @@ -64,6 +62,7 @@ public void MapPropertyTest() { // TODO unit test for the property 'MapProperty' } + /// /// Test the property 'MapOfMapProperty' /// @@ -72,6 +71,7 @@ public void MapOfMapPropertyTest() { // TODO unit test for the property 'MapOfMapProperty' } + /// /// Test the property 'Anytype1' /// @@ -80,6 +80,7 @@ public void Anytype1Test() { // TODO unit test for the property 'Anytype1' } + /// /// Test the property 'MapWithUndeclaredPropertiesAnytype1' /// @@ -88,6 +89,7 @@ public void MapWithUndeclaredPropertiesAnytype1Test() { // TODO unit test for the property 'MapWithUndeclaredPropertiesAnytype1' } + /// /// Test the property 'MapWithUndeclaredPropertiesAnytype2' /// @@ -96,6 +98,7 @@ public void MapWithUndeclaredPropertiesAnytype2Test() { // TODO unit test for the property 'MapWithUndeclaredPropertiesAnytype2' } + /// /// Test the property 'MapWithUndeclaredPropertiesAnytype3' /// @@ -104,6 +107,7 @@ public void MapWithUndeclaredPropertiesAnytype3Test() { // TODO unit test for the property 'MapWithUndeclaredPropertiesAnytype3' } + /// /// Test the property 'EmptyMap' /// @@ -112,6 +116,7 @@ public void EmptyMapTest() { // TODO unit test for the property 'EmptyMap' } + /// /// Test the property 'MapWithUndeclaredPropertiesString' /// @@ -120,7 +125,5 @@ public void MapWithUndeclaredPropertiesStringTest() { // TODO unit test for the property 'MapWithUndeclaredPropertiesString' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/AnimalTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/AnimalTests.cs index ced34a4faadd..0bc46ab7f479 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/AnimalTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/AnimalTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -64,6 +63,7 @@ public void CatDeserializeFromAnimalTest() // TODO uncomment below to test deserialize a Cat from type Animal //Assert.IsType(JsonConvert.DeserializeObject(new Cat().ToJson())); } + /// /// Test deserialize a Dog from type Animal /// @@ -82,6 +82,7 @@ public void ClassNameTest() { // TODO unit test for the property 'ClassName' } + /// /// Test the property 'Color' /// @@ -90,7 +91,5 @@ public void ColorTest() { // TODO unit test for the property 'Color' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ApiResponseTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ApiResponseTests.cs index 2a2e098e6082..901c6a02965e 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ApiResponseTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ApiResponseTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ApiResponseInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Code' /// @@ -64,6 +62,7 @@ public void CodeTest() { // TODO unit test for the property 'Code' } + /// /// Test the property 'Type' /// @@ -72,6 +71,7 @@ public void TypeTest() { // TODO unit test for the property 'Type' } + /// /// Test the property 'Message' /// @@ -80,7 +80,5 @@ public void MessageTest() { // TODO unit test for the property 'Message' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/AppleReqTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/AppleReqTests.cs index f945f6593685..94d06c61e236 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/AppleReqTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/AppleReqTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void AppleReqInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Cultivar' /// @@ -64,6 +62,7 @@ public void CultivarTest() { // TODO unit test for the property 'Cultivar' } + /// /// Test the property 'Mealy' /// @@ -72,7 +71,5 @@ public void MealyTest() { // TODO unit test for the property 'Mealy' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/AppleTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/AppleTests.cs index 468d60184ada..b3aa7e34f8db 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/AppleTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/AppleTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void AppleInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Cultivar' /// @@ -64,6 +62,7 @@ public void CultivarTest() { // TODO unit test for the property 'Cultivar' } + /// /// Test the property 'Origin' /// @@ -73,6 +72,13 @@ public void OriginTest() // TODO unit test for the property 'Origin' } + /// + /// Test the property 'ColorCode' + /// + [Fact] + public void ColorCodeTest() + { + // TODO unit test for the property 'ColorCode' + } } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ArrayOfArrayOfNumberOnlyTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ArrayOfArrayOfNumberOnlyTests.cs index 884eb8b1e080..d52b1938e420 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ArrayOfArrayOfNumberOnlyTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ArrayOfArrayOfNumberOnlyTests.cs @@ -1,10 +1,9 @@ -/* +/* * OpenAPI Petstore * * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 - * + * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -15,13 +14,12 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing ArrayOfArrayOfNumberOnly @@ -30,65 +28,39 @@ namespace Org.OpenAPITools.Test /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). /// Please update the test case below to test the model. /// - public class ArrayOfArrayOfNumberOnlyTests + public class ArrayOfArrayOfNumberOnlyTests : IDisposable { + // TODO uncomment below to declare an instance variable for ArrayOfArrayOfNumberOnly + //private ArrayOfArrayOfNumberOnly instance; + + public ArrayOfArrayOfNumberOnlyTests() + { + // TODO uncomment below to create an instance of ArrayOfArrayOfNumberOnly + //instance = new ArrayOfArrayOfNumberOnly(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + /// /// Test an instance of ArrayOfArrayOfNumberOnly /// [Fact] public void ArrayOfArrayOfNumberOnlyInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" ArrayOfArrayOfNumberOnly - //Assert.IsType (instance, "variable 'instance' is a ArrayOfArrayOfNumberOnly"); + // TODO uncomment below to test "IsType" ArrayOfArrayOfNumberOnly + //Assert.IsType(instance); } - /// /// Test the property 'ArrayArrayNumber' /// [Fact] public void ArrayArrayNumberTest() { - // 1st instance - ArrayOfArrayOfNumberOnly instance1 = new ArrayOfArrayOfNumberOnly(); - List list1 = new List(); - list1.Add(11.1m); - list1.Add(8.9m); - - List> listOfList1 = new List>(); - listOfList1.Add(list1); - - instance1.ArrayArrayNumber = listOfList1; - - // 2nd instance - ArrayOfArrayOfNumberOnly instance2 = new ArrayOfArrayOfNumberOnly(); - List list2 = new List(); - list2.Add(11.1m); - list2.Add(8.9m); - - List> listOfList2 = new List>(); - listOfList2.Add(list2); - - instance2.ArrayArrayNumber = listOfList2; - - Assert.True(instance1.Equals(instance2)); - - // add one more element to list2 - list2.Add(183.3m); - Assert.False(instance1.Equals(instance2)); - - // 3rd instance - ArrayOfArrayOfNumberOnly instance3 = new ArrayOfArrayOfNumberOnly(); - List list3 = new List(); - list3.Add(11.1m); - list3.Add(1.1m); // not the same as 8.9 - - List> listOfList3 = new List>(); - instance2.ArrayArrayNumber = listOfList3; - - Assert.False(instance1.Equals(instance3)); + // TODO unit test for the property 'ArrayArrayNumber' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ArrayOfNumberOnlyTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ArrayOfNumberOnlyTests.cs index 27f312ad25f5..421bfd6caeab 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ArrayOfNumberOnlyTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ArrayOfNumberOnlyTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ArrayOfNumberOnlyInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ArrayNumber' /// @@ -64,7 +62,5 @@ public void ArrayNumberTest() { // TODO unit test for the property 'ArrayNumber' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ArrayTestTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ArrayTestTests.cs index a433e8c87cf7..5028c715b988 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ArrayTestTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ArrayTestTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ArrayTestInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ArrayOfString' /// @@ -64,6 +62,7 @@ public void ArrayOfStringTest() { // TODO unit test for the property 'ArrayOfString' } + /// /// Test the property 'ArrayArrayOfInteger' /// @@ -72,6 +71,7 @@ public void ArrayArrayOfIntegerTest() { // TODO unit test for the property 'ArrayArrayOfInteger' } + /// /// Test the property 'ArrayArrayOfModel' /// @@ -80,7 +80,5 @@ public void ArrayArrayOfModelTest() { // TODO unit test for the property 'ArrayArrayOfModel' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/BananaReqTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/BananaReqTests.cs index 8a6eeb82eeea..8242ff9e7969 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/BananaReqTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/BananaReqTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void BananaReqInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'LengthCm' /// @@ -64,6 +62,7 @@ public void LengthCmTest() { // TODO unit test for the property 'LengthCm' } + /// /// Test the property 'Sweet' /// @@ -72,7 +71,5 @@ public void SweetTest() { // TODO unit test for the property 'Sweet' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/BananaTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/BananaTests.cs index 8d8cc376b038..ddcea686eee8 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/BananaTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/BananaTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void BananaInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'LengthCm' /// @@ -64,7 +62,5 @@ public void LengthCmTest() { // TODO unit test for the property 'LengthCm' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/BasquePigTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/BasquePigTests.cs index 3cdccaa75959..9cb45c006e64 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/BasquePigTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/BasquePigTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void BasquePigInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ClassName' /// @@ -64,7 +62,5 @@ public void ClassNameTest() { // TODO unit test for the property 'ClassName' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/CapitalizationTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/CapitalizationTests.cs index 185c83666fc7..9e6a400d1ed1 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/CapitalizationTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/CapitalizationTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void CapitalizationInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'SmallCamel' /// @@ -64,6 +62,7 @@ public void SmallCamelTest() { // TODO unit test for the property 'SmallCamel' } + /// /// Test the property 'CapitalCamel' /// @@ -72,6 +71,7 @@ public void CapitalCamelTest() { // TODO unit test for the property 'CapitalCamel' } + /// /// Test the property 'SmallSnake' /// @@ -80,6 +80,7 @@ public void SmallSnakeTest() { // TODO unit test for the property 'SmallSnake' } + /// /// Test the property 'CapitalSnake' /// @@ -88,6 +89,7 @@ public void CapitalSnakeTest() { // TODO unit test for the property 'CapitalSnake' } + /// /// Test the property 'SCAETHFlowPoints' /// @@ -96,6 +98,7 @@ public void SCAETHFlowPointsTest() { // TODO unit test for the property 'SCAETHFlowPoints' } + /// /// Test the property 'ATT_NAME' /// @@ -104,7 +107,5 @@ public void ATT_NAMETest() { // TODO unit test for the property 'ATT_NAME' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/CatTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/CatTests.cs index 701ba7602823..c1b10d32171b 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/CatTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/CatTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void CatInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Declawed' /// @@ -64,7 +62,5 @@ public void DeclawedTest() { // TODO unit test for the property 'Declawed' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/CategoryTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/CategoryTests.cs index 6ce48e601e47..d1ef61862440 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/CategoryTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/CategoryTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void CategoryInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Id' /// @@ -64,6 +62,7 @@ public void IdTest() { // TODO unit test for the property 'Id' } + /// /// Test the property 'Name' /// @@ -72,7 +71,5 @@ public void NameTest() { // TODO unit test for the property 'Name' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ChildCatTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ChildCatTests.cs index 68566fd8d560..b40a42cb0225 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ChildCatTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ChildCatTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ChildCatInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Name' /// @@ -64,6 +62,7 @@ public void NameTest() { // TODO unit test for the property 'Name' } + /// /// Test the property 'PetType' /// @@ -72,7 +71,5 @@ public void PetTypeTest() { // TODO unit test for the property 'PetType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ClassModelTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ClassModelTests.cs index d29472e83aaf..a09b95ab4c9c 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ClassModelTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ClassModelTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ClassModelInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Class' /// @@ -64,7 +62,5 @@ public void ClassTest() { // TODO unit test for the property 'Class' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ComplexQuadrilateralTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ComplexQuadrilateralTests.cs index b3529280c8d6..835c5b87bc6e 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ComplexQuadrilateralTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ComplexQuadrilateralTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ComplexQuadrilateralInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// @@ -64,6 +62,7 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } + /// /// Test the property 'QuadrilateralType' /// @@ -72,7 +71,5 @@ public void QuadrilateralTypeTest() { // TODO unit test for the property 'QuadrilateralType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/DanishPigTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/DanishPigTests.cs index 572d9bffa790..765496ea0ced 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/DanishPigTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/DanishPigTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void DanishPigInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ClassName' /// @@ -64,7 +62,5 @@ public void ClassNameTest() { // TODO unit test for the property 'ClassName' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/DateOnlyClassTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/DateOnlyClassTests.cs index 3bd2b54a366a..67be10782efd 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/DateOnlyClassTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/DateOnlyClassTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void DateOnlyClassInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'DateOnlyProperty' /// @@ -64,7 +62,5 @@ public void DateOnlyPropertyTest() { // TODO unit test for the property 'DateOnlyProperty' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/DeprecatedObjectTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/DeprecatedObjectTests.cs index 1da5f4011c95..be6b35dbf451 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/DeprecatedObjectTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/DeprecatedObjectTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void DeprecatedObjectInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Name' /// @@ -64,7 +62,5 @@ public void NameTest() { // TODO unit test for the property 'Name' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/DogTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/DogTests.cs index 992f93a51fd5..a00de64ef51a 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/DogTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/DogTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void DogInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Breed' /// @@ -64,7 +62,5 @@ public void BreedTest() { // TODO unit test for the property 'Breed' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/DrawingTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/DrawingTests.cs index 0709ad9eeb3b..3b1308e50513 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/DrawingTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/DrawingTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void DrawingInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'MainShape' /// @@ -64,6 +62,7 @@ public void MainShapeTest() { // TODO unit test for the property 'MainShape' } + /// /// Test the property 'ShapeOrNull' /// @@ -72,6 +71,7 @@ public void ShapeOrNullTest() { // TODO unit test for the property 'ShapeOrNull' } + /// /// Test the property 'NullableShape' /// @@ -80,6 +80,7 @@ public void NullableShapeTest() { // TODO unit test for the property 'NullableShape' } + /// /// Test the property 'Shapes' /// @@ -88,7 +89,5 @@ public void ShapesTest() { // TODO unit test for the property 'Shapes' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/EnumArraysTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/EnumArraysTests.cs index 5779ca294775..6fcfa6f448c1 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/EnumArraysTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/EnumArraysTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void EnumArraysInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'JustSymbol' /// @@ -64,6 +62,7 @@ public void JustSymbolTest() { // TODO unit test for the property 'JustSymbol' } + /// /// Test the property 'ArrayEnum' /// @@ -72,7 +71,5 @@ public void ArrayEnumTest() { // TODO unit test for the property 'ArrayEnum' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/EnumClassTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/EnumClassTests.cs index a17738c5cbc5..bb46e292a652 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/EnumClassTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/EnumClassTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,9 +53,5 @@ public void EnumClassInstanceTest() // TODO uncomment below to test "IsType" EnumClass //Assert.IsType(instance); } - - - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/EnumTestTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/EnumTestTests.cs index 4f81b845d493..3050af442410 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/EnumTestTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/EnumTestTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void EnumTestInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'EnumString' /// @@ -64,6 +62,7 @@ public void EnumStringTest() { // TODO unit test for the property 'EnumString' } + /// /// Test the property 'EnumStringRequired' /// @@ -72,6 +71,7 @@ public void EnumStringRequiredTest() { // TODO unit test for the property 'EnumStringRequired' } + /// /// Test the property 'EnumInteger' /// @@ -80,6 +80,7 @@ public void EnumIntegerTest() { // TODO unit test for the property 'EnumInteger' } + /// /// Test the property 'EnumIntegerOnly' /// @@ -88,6 +89,7 @@ public void EnumIntegerOnlyTest() { // TODO unit test for the property 'EnumIntegerOnly' } + /// /// Test the property 'EnumNumber' /// @@ -96,6 +98,7 @@ public void EnumNumberTest() { // TODO unit test for the property 'EnumNumber' } + /// /// Test the property 'OuterEnum' /// @@ -104,6 +107,7 @@ public void OuterEnumTest() { // TODO unit test for the property 'OuterEnum' } + /// /// Test the property 'OuterEnumInteger' /// @@ -112,6 +116,7 @@ public void OuterEnumIntegerTest() { // TODO unit test for the property 'OuterEnumInteger' } + /// /// Test the property 'OuterEnumDefaultValue' /// @@ -120,6 +125,7 @@ public void OuterEnumDefaultValueTest() { // TODO unit test for the property 'OuterEnumDefaultValue' } + /// /// Test the property 'OuterEnumIntegerDefaultValue' /// @@ -128,7 +134,5 @@ public void OuterEnumIntegerDefaultValueTest() { // TODO unit test for the property 'OuterEnumIntegerDefaultValue' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/EquilateralTriangleTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/EquilateralTriangleTests.cs index 4663cb667de6..71d48f7e200a 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/EquilateralTriangleTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/EquilateralTriangleTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void EquilateralTriangleInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// @@ -64,6 +62,7 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } + /// /// Test the property 'TriangleType' /// @@ -72,7 +71,5 @@ public void TriangleTypeTest() { // TODO unit test for the property 'TriangleType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FileSchemaTestClassTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FileSchemaTestClassTests.cs index 9f45b4fe89d5..d89ad5a5bc7b 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FileSchemaTestClassTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FileSchemaTestClassTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void FileSchemaTestClassInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'File' /// @@ -64,6 +62,7 @@ public void FileTest() { // TODO unit test for the property 'File' } + /// /// Test the property 'Files' /// @@ -72,7 +71,5 @@ public void FilesTest() { // TODO unit test for the property 'Files' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FileTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FileTests.cs index 761bb72a844f..7eaea9c8786f 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FileTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FileTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void FileInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'SourceURI' /// @@ -64,7 +62,5 @@ public void SourceURITest() { // TODO unit test for the property 'SourceURI' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FooGetDefaultResponseTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FooGetDefaultResponseTests.cs index 0154d528418e..563269643111 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FooGetDefaultResponseTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FooGetDefaultResponseTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void FooGetDefaultResponseInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'String' /// @@ -64,7 +62,5 @@ public void StringTest() { // TODO unit test for the property 'String' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FooTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FooTests.cs index 0b6ed52edbd4..52f87dd5b0e0 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FooTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FooTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void FooInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Bar' /// @@ -64,7 +62,5 @@ public void BarTest() { // TODO unit test for the property 'Bar' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FormatTestTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FormatTestTests.cs index 97332800e9af..fbe8039a5a30 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FormatTestTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FormatTestTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void FormatTestInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Integer' /// @@ -64,6 +62,7 @@ public void IntegerTest() { // TODO unit test for the property 'Integer' } + /// /// Test the property 'Int32' /// @@ -72,6 +71,16 @@ public void Int32Test() { // TODO unit test for the property 'Int32' } + + /// + /// Test the property 'UnsignedInteger' + /// + [Fact] + public void UnsignedIntegerTest() + { + // TODO unit test for the property 'UnsignedInteger' + } + /// /// Test the property 'Int64' /// @@ -80,6 +89,16 @@ public void Int64Test() { // TODO unit test for the property 'Int64' } + + /// + /// Test the property 'UnsignedLong' + /// + [Fact] + public void UnsignedLongTest() + { + // TODO unit test for the property 'UnsignedLong' + } + /// /// Test the property 'Number' /// @@ -88,6 +107,7 @@ public void NumberTest() { // TODO unit test for the property 'Number' } + /// /// Test the property 'Float' /// @@ -96,6 +116,7 @@ public void FloatTest() { // TODO unit test for the property 'Float' } + /// /// Test the property 'Double' /// @@ -104,6 +125,7 @@ public void DoubleTest() { // TODO unit test for the property 'Double' } + /// /// Test the property 'Decimal' /// @@ -112,6 +134,7 @@ public void DecimalTest() { // TODO unit test for the property 'Decimal' } + /// /// Test the property 'String' /// @@ -120,6 +143,7 @@ public void StringTest() { // TODO unit test for the property 'String' } + /// /// Test the property 'Byte' /// @@ -128,6 +152,7 @@ public void ByteTest() { // TODO unit test for the property 'Byte' } + /// /// Test the property 'Binary' /// @@ -136,6 +161,7 @@ public void BinaryTest() { // TODO unit test for the property 'Binary' } + /// /// Test the property 'Date' /// @@ -144,6 +170,7 @@ public void DateTest() { // TODO unit test for the property 'Date' } + /// /// Test the property 'DateTime' /// @@ -152,6 +179,7 @@ public void DateTimeTest() { // TODO unit test for the property 'DateTime' } + /// /// Test the property 'Uuid' /// @@ -160,6 +188,7 @@ public void UuidTest() { // TODO unit test for the property 'Uuid' } + /// /// Test the property 'Password' /// @@ -168,6 +197,7 @@ public void PasswordTest() { // TODO unit test for the property 'Password' } + /// /// Test the property 'PatternWithDigits' /// @@ -176,6 +206,7 @@ public void PatternWithDigitsTest() { // TODO unit test for the property 'PatternWithDigits' } + /// /// Test the property 'PatternWithDigitsAndDelimiter' /// @@ -185,6 +216,13 @@ public void PatternWithDigitsAndDelimiterTest() // TODO unit test for the property 'PatternWithDigitsAndDelimiter' } + /// + /// Test the property 'PatternWithBackslash' + /// + [Fact] + public void PatternWithBackslashTest() + { + // TODO unit test for the property 'PatternWithBackslash' + } } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FruitReqTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FruitReqTests.cs index 5ea9e3ffc1d5..771ef1ae2c5d 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FruitReqTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FruitReqTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void FruitReqInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Cultivar' /// @@ -64,6 +62,7 @@ public void CultivarTest() { // TODO unit test for the property 'Cultivar' } + /// /// Test the property 'Mealy' /// @@ -72,6 +71,7 @@ public void MealyTest() { // TODO unit test for the property 'Mealy' } + /// /// Test the property 'LengthCm' /// @@ -80,6 +80,7 @@ public void LengthCmTest() { // TODO unit test for the property 'LengthCm' } + /// /// Test the property 'Sweet' /// @@ -88,7 +89,5 @@ public void SweetTest() { // TODO unit test for the property 'Sweet' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FruitTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FruitTests.cs index 91e069bb42fa..53881a333193 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FruitTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FruitTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void FruitInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Color' /// @@ -64,6 +62,7 @@ public void ColorTest() { // TODO unit test for the property 'Color' } + /// /// Test the property 'Cultivar' /// @@ -72,6 +71,7 @@ public void CultivarTest() { // TODO unit test for the property 'Cultivar' } + /// /// Test the property 'Origin' /// @@ -80,6 +80,16 @@ public void OriginTest() { // TODO unit test for the property 'Origin' } + + /// + /// Test the property 'ColorCode' + /// + [Fact] + public void ColorCodeTest() + { + // TODO unit test for the property 'ColorCode' + } + /// /// Test the property 'LengthCm' /// @@ -88,7 +98,5 @@ public void LengthCmTest() { // TODO unit test for the property 'LengthCm' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/GmFruitTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/GmFruitTests.cs index 08fb0e07a1c8..6322d4e2a721 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/GmFruitTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/GmFruitTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void GmFruitInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Color' /// @@ -64,6 +62,7 @@ public void ColorTest() { // TODO unit test for the property 'Color' } + /// /// Test the property 'Cultivar' /// @@ -72,6 +71,7 @@ public void CultivarTest() { // TODO unit test for the property 'Cultivar' } + /// /// Test the property 'Origin' /// @@ -80,6 +80,16 @@ public void OriginTest() { // TODO unit test for the property 'Origin' } + + /// + /// Test the property 'ColorCode' + /// + [Fact] + public void ColorCodeTest() + { + // TODO unit test for the property 'ColorCode' + } + /// /// Test the property 'LengthCm' /// @@ -88,7 +98,5 @@ public void LengthCmTest() { // TODO unit test for the property 'LengthCm' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/GrandparentAnimalTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/GrandparentAnimalTests.cs index faa4930944be..3adc2a0573e7 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/GrandparentAnimalTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/GrandparentAnimalTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -64,6 +63,7 @@ public void ChildCatDeserializeFromParentPetTest() // TODO uncomment below to test deserialize a ChildCat from type ParentPet //Assert.IsType(JsonConvert.DeserializeObject(new ChildCat().ToJson())); } + /// /// Test deserialize a ParentPet from type GrandparentAnimal /// @@ -82,7 +82,5 @@ public void PetTypeTest() { // TODO unit test for the property 'PetType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/HasOnlyReadOnlyTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/HasOnlyReadOnlyTests.cs index 651a9f0ce30c..69abe3f9e6ad 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/HasOnlyReadOnlyTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/HasOnlyReadOnlyTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void HasOnlyReadOnlyInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Bar' /// @@ -64,6 +62,7 @@ public void BarTest() { // TODO unit test for the property 'Bar' } + /// /// Test the property 'Foo' /// @@ -72,7 +71,5 @@ public void FooTest() { // TODO unit test for the property 'Foo' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/HealthCheckResultTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/HealthCheckResultTests.cs index 857190a3334d..794fda2c2d6d 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/HealthCheckResultTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/HealthCheckResultTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void HealthCheckResultInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'NullableMessage' /// @@ -64,7 +62,5 @@ public void NullableMessageTest() { // TODO unit test for the property 'NullableMessage' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/IsoscelesTriangleTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/IsoscelesTriangleTests.cs index 755c417cc54f..ca8a058e37df 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/IsoscelesTriangleTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/IsoscelesTriangleTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void IsoscelesTriangleInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// @@ -64,6 +62,7 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } + /// /// Test the property 'TriangleType' /// @@ -72,7 +71,5 @@ public void TriangleTypeTest() { // TODO unit test for the property 'TriangleType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ListTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ListTests.cs index 2ed828d05208..d659080e89c9 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ListTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ListTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,16 +54,13 @@ public void ListInstanceTest() //Assert.IsType(instance); } - /// - /// Test the property '_123List' + /// Test the property 'Var123List' /// [Fact] - public void _123ListTest() + public void Var123ListTest() { - // TODO unit test for the property '_123List' + // TODO unit test for the property 'Var123List' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/LiteralStringClassTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/LiteralStringClassTests.cs index 74dc17b9f4a1..58dc425228ff 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/LiteralStringClassTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/LiteralStringClassTests.cs @@ -54,7 +54,6 @@ public void LiteralStringClassInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'EscapedLiteralString' /// @@ -63,6 +62,7 @@ public void EscapedLiteralStringTest() { // TODO unit test for the property 'EscapedLiteralString' } + /// /// Test the property 'UnescapedLiteralString' /// @@ -71,7 +71,5 @@ public void UnescapedLiteralStringTest() { // TODO unit test for the property 'UnescapedLiteralString' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/MammalTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/MammalTests.cs index 7b46cbf06450..3fdadd19646c 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/MammalTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/MammalTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void MammalInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'HasBaleen' /// @@ -64,6 +62,7 @@ public void HasBaleenTest() { // TODO unit test for the property 'HasBaleen' } + /// /// Test the property 'HasTeeth' /// @@ -72,6 +71,7 @@ public void HasTeethTest() { // TODO unit test for the property 'HasTeeth' } + /// /// Test the property 'ClassName' /// @@ -80,6 +80,7 @@ public void ClassNameTest() { // TODO unit test for the property 'ClassName' } + /// /// Test the property 'Type' /// @@ -88,7 +89,5 @@ public void TypeTest() { // TODO unit test for the property 'Type' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/MapTestTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/MapTestTests.cs index 20036e1c905e..e055027f15bf 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/MapTestTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/MapTestTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void MapTestInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'MapMapOfString' /// @@ -64,6 +62,7 @@ public void MapMapOfStringTest() { // TODO unit test for the property 'MapMapOfString' } + /// /// Test the property 'MapOfEnumString' /// @@ -72,6 +71,7 @@ public void MapOfEnumStringTest() { // TODO unit test for the property 'MapOfEnumString' } + /// /// Test the property 'DirectMap' /// @@ -80,6 +80,7 @@ public void DirectMapTest() { // TODO unit test for the property 'DirectMap' } + /// /// Test the property 'IndirectMap' /// @@ -88,7 +89,5 @@ public void IndirectMapTest() { // TODO unit test for the property 'IndirectMap' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/MixedPropertiesAndAdditionalPropertiesClassTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/MixedPropertiesAndAdditionalPropertiesClassTests.cs index f56cd715f45f..07c592a8a4c0 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/MixedPropertiesAndAdditionalPropertiesClassTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/MixedPropertiesAndAdditionalPropertiesClassTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,6 +54,14 @@ public void MixedPropertiesAndAdditionalPropertiesClassInstanceTest() //Assert.IsType(instance); } + /// + /// Test the property 'UuidWithPattern' + /// + [Fact] + public void UuidWithPatternTest() + { + // TODO unit test for the property 'UuidWithPattern' + } /// /// Test the property 'Uuid' @@ -64,6 +71,7 @@ public void UuidTest() { // TODO unit test for the property 'Uuid' } + /// /// Test the property 'DateTime' /// @@ -72,6 +80,7 @@ public void DateTimeTest() { // TODO unit test for the property 'DateTime' } + /// /// Test the property 'Map' /// @@ -80,7 +89,5 @@ public void MapTest() { // TODO unit test for the property 'Map' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/Model200ResponseTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/Model200ResponseTests.cs index e25478618f20..85be687d5c2b 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/Model200ResponseTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/Model200ResponseTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void Model200ResponseInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Name' /// @@ -64,6 +62,7 @@ public void NameTest() { // TODO unit test for the property 'Name' } + /// /// Test the property 'Class' /// @@ -72,7 +71,5 @@ public void ClassTest() { // TODO unit test for the property 'Class' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ModelClientTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ModelClientTests.cs index 24a9e2631586..a5f4aa1593e1 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ModelClientTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ModelClientTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,16 +54,13 @@ public void ModelClientInstanceTest() //Assert.IsType(instance); } - /// - /// Test the property '_Client' + /// Test the property 'VarClient' /// [Fact] - public void _ClientTest() + public void VarClientTest() { - // TODO unit test for the property '_Client' + // TODO unit test for the property 'VarClient' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/NameTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/NameTests.cs index c390049e66dc..fc1756b66bec 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/NameTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/NameTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,15 +54,15 @@ public void NameInstanceTest() //Assert.IsType(instance); } - /// - /// Test the property '_Name' + /// Test the property 'VarName' /// [Fact] - public void _NameTest() + public void VarNameTest() { - // TODO unit test for the property '_Name' + // TODO unit test for the property 'VarName' } + /// /// Test the property 'SnakeCase' /// @@ -72,6 +71,7 @@ public void SnakeCaseTest() { // TODO unit test for the property 'SnakeCase' } + /// /// Test the property 'Property' /// @@ -80,15 +80,14 @@ public void PropertyTest() { // TODO unit test for the property 'Property' } + /// - /// Test the property '_123Number' + /// Test the property 'Var123Number' /// [Fact] - public void _123NumberTest() + public void Var123NumberTest() { - // TODO unit test for the property '_123Number' + // TODO unit test for the property 'Var123Number' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/NullableClassTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/NullableClassTests.cs index 8f00505612a9..214795f86c27 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/NullableClassTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/NullableClassTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void NullableClassInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'IntegerProp' /// @@ -64,6 +62,7 @@ public void IntegerPropTest() { // TODO unit test for the property 'IntegerProp' } + /// /// Test the property 'NumberProp' /// @@ -72,6 +71,7 @@ public void NumberPropTest() { // TODO unit test for the property 'NumberProp' } + /// /// Test the property 'BooleanProp' /// @@ -80,6 +80,7 @@ public void BooleanPropTest() { // TODO unit test for the property 'BooleanProp' } + /// /// Test the property 'StringProp' /// @@ -88,6 +89,7 @@ public void StringPropTest() { // TODO unit test for the property 'StringProp' } + /// /// Test the property 'DateProp' /// @@ -96,6 +98,7 @@ public void DatePropTest() { // TODO unit test for the property 'DateProp' } + /// /// Test the property 'DatetimeProp' /// @@ -104,6 +107,7 @@ public void DatetimePropTest() { // TODO unit test for the property 'DatetimeProp' } + /// /// Test the property 'ArrayNullableProp' /// @@ -112,6 +116,7 @@ public void ArrayNullablePropTest() { // TODO unit test for the property 'ArrayNullableProp' } + /// /// Test the property 'ArrayAndItemsNullableProp' /// @@ -120,6 +125,7 @@ public void ArrayAndItemsNullablePropTest() { // TODO unit test for the property 'ArrayAndItemsNullableProp' } + /// /// Test the property 'ArrayItemsNullable' /// @@ -128,6 +134,7 @@ public void ArrayItemsNullableTest() { // TODO unit test for the property 'ArrayItemsNullable' } + /// /// Test the property 'ObjectNullableProp' /// @@ -136,6 +143,7 @@ public void ObjectNullablePropTest() { // TODO unit test for the property 'ObjectNullableProp' } + /// /// Test the property 'ObjectAndItemsNullableProp' /// @@ -144,6 +152,7 @@ public void ObjectAndItemsNullablePropTest() { // TODO unit test for the property 'ObjectAndItemsNullableProp' } + /// /// Test the property 'ObjectItemsNullable' /// @@ -152,7 +161,5 @@ public void ObjectItemsNullableTest() { // TODO unit test for the property 'ObjectItemsNullable' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/NullableGuidClassTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/NullableGuidClassTests.cs index 0bc0ea369188..1290072514cd 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/NullableGuidClassTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/NullableGuidClassTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void NullableGuidClassInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Uuid' /// @@ -64,7 +62,5 @@ public void UuidTest() { // TODO unit test for the property 'Uuid' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/NullableShapeTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/NullableShapeTests.cs index 5662f91d6e64..75e9c7e8fd49 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/NullableShapeTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/NullableShapeTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void NullableShapeInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// @@ -64,6 +62,7 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } + /// /// Test the property 'QuadrilateralType' /// @@ -72,7 +71,5 @@ public void QuadrilateralTypeTest() { // TODO unit test for the property 'QuadrilateralType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/NumberOnlyTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/NumberOnlyTests.cs index 3a06cb020b2a..2fb06f9afb48 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/NumberOnlyTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/NumberOnlyTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void NumberOnlyInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'JustNumber' /// @@ -64,7 +62,5 @@ public void JustNumberTest() { // TODO unit test for the property 'JustNumber' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ObjectWithDeprecatedFieldsTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ObjectWithDeprecatedFieldsTests.cs index 82f93fab48c5..e90b746d19c6 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ObjectWithDeprecatedFieldsTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ObjectWithDeprecatedFieldsTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ObjectWithDeprecatedFieldsInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Uuid' /// @@ -64,6 +62,7 @@ public void UuidTest() { // TODO unit test for the property 'Uuid' } + /// /// Test the property 'Id' /// @@ -72,6 +71,7 @@ public void IdTest() { // TODO unit test for the property 'Id' } + /// /// Test the property 'DeprecatedRef' /// @@ -80,6 +80,7 @@ public void DeprecatedRefTest() { // TODO unit test for the property 'DeprecatedRef' } + /// /// Test the property 'Bars' /// @@ -88,7 +89,5 @@ public void BarsTest() { // TODO unit test for the property 'Bars' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OneOfStringTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OneOfStringTests.cs index 75bd7cd9bfd0..04727e77c691 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OneOfStringTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OneOfStringTests.cs @@ -53,9 +53,5 @@ public void OneOfStringInstanceTest() // TODO uncomment below to test "IsType" OneOfString //Assert.IsType(instance); } - - - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OrderTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OrderTests.cs index cf5c561c5476..84d2828b367f 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OrderTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OrderTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void OrderInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Id' /// @@ -64,6 +62,7 @@ public void IdTest() { // TODO unit test for the property 'Id' } + /// /// Test the property 'PetId' /// @@ -72,6 +71,7 @@ public void PetIdTest() { // TODO unit test for the property 'PetId' } + /// /// Test the property 'Quantity' /// @@ -80,6 +80,7 @@ public void QuantityTest() { // TODO unit test for the property 'Quantity' } + /// /// Test the property 'ShipDate' /// @@ -88,6 +89,7 @@ public void ShipDateTest() { // TODO unit test for the property 'ShipDate' } + /// /// Test the property 'Status' /// @@ -96,6 +98,7 @@ public void StatusTest() { // TODO unit test for the property 'Status' } + /// /// Test the property 'Complete' /// @@ -104,7 +107,5 @@ public void CompleteTest() { // TODO unit test for the property 'Complete' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OuterCompositeTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OuterCompositeTests.cs index 2efda0db59c4..fd52fa2cfca7 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OuterCompositeTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OuterCompositeTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void OuterCompositeInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'MyNumber' /// @@ -64,6 +62,7 @@ public void MyNumberTest() { // TODO unit test for the property 'MyNumber' } + /// /// Test the property 'MyString' /// @@ -72,6 +71,7 @@ public void MyStringTest() { // TODO unit test for the property 'MyString' } + /// /// Test the property 'MyBoolean' /// @@ -80,7 +80,5 @@ public void MyBooleanTest() { // TODO unit test for the property 'MyBoolean' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumDefaultValueTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumDefaultValueTests.cs index 986fff774c46..db98c5a44ae3 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumDefaultValueTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumDefaultValueTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,9 +53,5 @@ public void OuterEnumDefaultValueInstanceTest() // TODO uncomment below to test "IsType" OuterEnumDefaultValue //Assert.IsType(instance); } - - - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerDefaultValueTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerDefaultValueTests.cs index 015d5dab945e..a4c028ea750d 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerDefaultValueTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerDefaultValueTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,9 +53,5 @@ public void OuterEnumIntegerDefaultValueInstanceTest() // TODO uncomment below to test "IsType" OuterEnumIntegerDefaultValue //Assert.IsType(instance); } - - - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerTests.cs index 385e899110a4..4d1be408011e 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,9 +53,5 @@ public void OuterEnumIntegerInstanceTest() // TODO uncomment below to test "IsType" OuterEnumInteger //Assert.IsType(instance); } - - - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumTests.cs index f47304767b9e..d4d6e96125d9 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,9 +53,5 @@ public void OuterEnumInstanceTest() // TODO uncomment below to test "IsType" OuterEnum //Assert.IsType(instance); } - - - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ParentPetTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ParentPetTests.cs index 1e17568ed331..eb9f5956b215 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ParentPetTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ParentPetTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -64,8 +63,5 @@ public void ChildCatDeserializeFromParentPetTest() // TODO uncomment below to test deserialize a ChildCat from type ParentPet //Assert.IsType(JsonConvert.DeserializeObject(new ChildCat().ToJson())); } - - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/PetTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/PetTests.cs index d514e9a043c8..535ab69d2aa2 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/PetTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/PetTests.cs @@ -1,10 +1,9 @@ -/* +/* * OpenAPI Petstore * * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 - * + * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -15,13 +14,12 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing Pet @@ -30,11 +28,21 @@ namespace Org.OpenAPITools.Test /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). /// Please update the test case below to test the model. /// - public class PetTests + public class PetTests : IDisposable { + // TODO uncomment below to declare an instance variable for Pet //private Pet instance; - private long petId = 11088; + public PetTests() + { + // TODO uncomment below to create an instance of Pet + //instance = new Pet(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } /// /// Test an instance of Pet @@ -42,11 +50,10 @@ public class PetTests [Fact] public void PetInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" Pet - //Assert.IsType (instance, "variable 'instance' is a Pet"); + // TODO uncomment below to test "IsType" Pet + //Assert.IsType(instance); } - /// /// Test the property 'Id' /// @@ -55,6 +62,7 @@ public void IdTest() { // TODO unit test for the property 'Id' } + /// /// Test the property 'Category' /// @@ -63,6 +71,7 @@ public void CategoryTest() { // TODO unit test for the property 'Category' } + /// /// Test the property 'Name' /// @@ -71,6 +80,7 @@ public void NameTest() { // TODO unit test for the property 'Name' } + /// /// Test the property 'PhotoUrls' /// @@ -79,6 +89,7 @@ public void PhotoUrlsTest() { // TODO unit test for the property 'PhotoUrls' } + /// /// Test the property 'Tags' /// @@ -87,6 +98,7 @@ public void TagsTest() { // TODO unit test for the property 'Tags' } + /// /// Test the property 'Status' /// @@ -95,109 +107,5 @@ public void StatusTest() { // TODO unit test for the property 'Status' } - - /// - /// Test serialization - /// - [Fact] - public void TestSerialization() - { - // create pet - Pet p1 = new Pet(name: "Csharp test", photoUrls: new List { "http://petstore.com/csharp_test" }); - Assert.Equal("{\"name\":\"Csharp test\",\"photoUrls\":[\"http://petstore.com/csharp_test\"]}", JsonConvert.SerializeObject(p1)); - - // test additional properties (serialization) - Pet p2 = new Pet(name: "Csharp test", photoUrls: new List { "http://petstore.com/csharp_test" }); - p2.AdditionalProperties.Add("hello", "world"); - Assert.Equal("{\"name\":\"Csharp test\",\"photoUrls\":[\"http://petstore.com/csharp_test\"],\"hello\":\"world\"}", JsonConvert.SerializeObject(p2)); - - // test additional properties (deserialization) - Pet p3 = JsonConvert.DeserializeObject("{\"name\":\"Csharp test\",\"photoUrls\":[\"http://petstore.com/csharp_test\"],\"hello\":\"world\",\"int\":123}"); - Assert.Equal("Csharp test", p3.Name); - Assert.Equal("world", p3.AdditionalProperties["hello"]); - Assert.Equal(123L, p3.AdditionalProperties["int"]); - } - - /// - /// Test Equal - /// - [Fact] - public void TestEqual() - { - // create pet - Pet p1 = new Pet(name: "Csharp test", photoUrls: new List { "http://petstore.com/csharp_test" }); - p1.Id = petId; - //p1.Name = "Csharp test"; - p1.Status = Pet.StatusEnum.Available; - // create Category object - Category category1 = new Category(); - category1.Id = 56; - category1.Name = "sample category name2"; - List photoUrls1 = new List(new String[] { "sample photoUrls" }); - // create Tag object - Tag tag1 = new Tag(); - tag1.Id = petId; - tag1.Name = "csharp sample tag name1"; - List tags1 = new List(new Tag[] { tag1 }); - p1.Tags = tags1; - p1.Category = category1; - p1.PhotoUrls = photoUrls1; - - // create pet 2 - Pet p2 = new Pet(name: "Csharp test", photoUrls: new List { "http://petstore.com/csharp_test" }); - p2.Id = petId; - p2.Name = "Csharp test"; - p2.Status = Pet.StatusEnum.Available; - // create Category object - Category category2 = new Category(); - category2.Id = 56; - category2.Name = "sample category name2"; - List photoUrls2 = new List(new String[] { "sample photoUrls" }); - // create Tag object - Tag tag2 = new Tag(); - tag2.Id = petId; - tag2.Name = "csharp sample tag name1"; - List tags2 = new List(new Tag[] { tag2 }); - p2.Tags = tags2; - p2.Category = category2; - p2.PhotoUrls = photoUrls2; - - // p1 and p2 should be equal (both object and attribute level) - Assert.True(category1.Equals(category2)); - Assert.True(tags1.SequenceEqual(tags2)); - Assert.True(p1.PhotoUrls.SequenceEqual(p2.PhotoUrls)); - - Assert.True(p1.Equals(p2)); - - // update attribute to that p1 and p2 are not equal - category2.Name = "new category name"; - Assert.False(category1.Equals(category2)); - - tags2 = new List(); - Assert.False(tags1.SequenceEqual(tags2)); - - // photoUrls has not changed so it should be equal - Assert.True(p1.PhotoUrls.SequenceEqual(p2.PhotoUrls)); - - Assert.False(p1.Equals(p2)); - } - - - /// - /// Test Pet deserialization - /// - [Fact] - public void TestDeserialization() - { - // properly deserialized, no exception - Pet p2 = JsonConvert.DeserializeObject("{\n \"name\": \"csharp test 2\",\n \"photoUrls\": [\"http://petstore.com/csharp_test\", \"http://petstore.com/csharp_test2\"]\n}"); - // comment out below as the result (json string) is OS dependent. - //Assert.Equal("{\n \"name\": \"csharp test 2\",\n \"photoUrls\": [\n \"http://petstore.com/csharp_test\",\n \"http://petstore.com/csharp_test2\"\n ]\n}", p2.ToJson()); - - // Missing `name` to cause exceptions in deserialization - Assert.Throws(() => JsonConvert.DeserializeObject("{\n \"Something\": \"csharp test 2\",\n \"photoUrls\": [\"http://petstore.com/csharp_test\", \"http://petstore.com/csharp_test2\"]\n}")); - } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/PigTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/PigTests.cs index 55cf2189046b..34562dc6860f 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/PigTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/PigTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void PigInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ClassName' /// @@ -64,7 +62,5 @@ public void ClassNameTest() { // TODO unit test for the property 'ClassName' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/PolymorphicPropertyTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/PolymorphicPropertyTests.cs index eff3c6ddc9bb..a546cd2b0032 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/PolymorphicPropertyTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/PolymorphicPropertyTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,9 +53,5 @@ public void PolymorphicPropertyInstanceTest() // TODO uncomment below to test "IsType" PolymorphicProperty //Assert.IsType(instance); } - - - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/QuadrilateralInterfaceTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/QuadrilateralInterfaceTests.cs index 6eef9f4c816d..d08798b36050 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/QuadrilateralInterfaceTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/QuadrilateralInterfaceTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void QuadrilateralInterfaceInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'QuadrilateralType' /// @@ -64,7 +62,5 @@ public void QuadrilateralTypeTest() { // TODO unit test for the property 'QuadrilateralType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/QuadrilateralTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/QuadrilateralTests.cs index 26826681a478..cd996d7e0edf 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/QuadrilateralTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/QuadrilateralTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void QuadrilateralInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// @@ -64,6 +62,7 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } + /// /// Test the property 'QuadrilateralType' /// @@ -72,7 +71,5 @@ public void QuadrilateralTypeTest() { // TODO unit test for the property 'QuadrilateralType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ReadOnlyFirstTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ReadOnlyFirstTests.cs index dc3d0fad54cd..056bc2b4519c 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ReadOnlyFirstTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ReadOnlyFirstTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ReadOnlyFirstInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Bar' /// @@ -64,6 +62,7 @@ public void BarTest() { // TODO unit test for the property 'Bar' } + /// /// Test the property 'Baz' /// @@ -72,7 +71,5 @@ public void BazTest() { // TODO unit test for the property 'Baz' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ReturnTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ReturnTests.cs index c8c1d6510d2f..4779edd80792 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ReturnTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ReturnTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,16 +54,13 @@ public void ReturnInstanceTest() //Assert.IsType(instance); } - /// - /// Test the property '_Return' + /// Test the property 'VarReturn' /// [Fact] - public void _ReturnTest() + public void VarReturnTest() { - // TODO unit test for the property '_Return' + // TODO unit test for the property 'VarReturn' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ScaleneTriangleTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ScaleneTriangleTests.cs index 04cb9f1ab6b1..a7332ab47b03 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ScaleneTriangleTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ScaleneTriangleTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ScaleneTriangleInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// @@ -64,6 +62,7 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } + /// /// Test the property 'TriangleType' /// @@ -72,7 +71,5 @@ public void TriangleTypeTest() { // TODO unit test for the property 'TriangleType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ShapeInterfaceTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ShapeInterfaceTests.cs index 7bd0bc86f963..e082fb3b4faa 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ShapeInterfaceTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ShapeInterfaceTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ShapeInterfaceInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// @@ -64,7 +62,5 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ShapeOrNullTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ShapeOrNullTests.cs index d0af114157c9..b70c157800b5 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ShapeOrNullTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ShapeOrNullTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ShapeOrNullInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// @@ -64,6 +62,7 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } + /// /// Test the property 'QuadrilateralType' /// @@ -72,7 +71,5 @@ public void QuadrilateralTypeTest() { // TODO unit test for the property 'QuadrilateralType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ShapeTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ShapeTests.cs index b01bd531f857..babd94722cfb 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ShapeTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ShapeTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ShapeInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// @@ -64,6 +62,7 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } + /// /// Test the property 'QuadrilateralType' /// @@ -72,7 +71,5 @@ public void QuadrilateralTypeTest() { // TODO unit test for the property 'QuadrilateralType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/SimpleQuadrilateralTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/SimpleQuadrilateralTests.cs index 6648e9809281..24f0288bcac4 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/SimpleQuadrilateralTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/SimpleQuadrilateralTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void SimpleQuadrilateralInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// @@ -64,6 +62,7 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } + /// /// Test the property 'QuadrilateralType' /// @@ -72,7 +71,5 @@ public void QuadrilateralTypeTest() { // TODO unit test for the property 'QuadrilateralType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/SpecialModelNameTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/SpecialModelNameTests.cs index 520c1c8a6d51..ef8a8d50e3ee 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/SpecialModelNameTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/SpecialModelNameTests.cs @@ -1,10 +1,9 @@ -/* +/* * OpenAPI Petstore * * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 - * + * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -15,13 +14,12 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test +namespace Org.OpenAPITools.Test.Model { /// /// Class for testing SpecialModelName @@ -30,16 +28,30 @@ namespace Org.OpenAPITools.Test /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). /// Please update the test case below to test the model. /// - public class SpecialModelNameTests + public class SpecialModelNameTests : IDisposable { + // TODO uncomment below to declare an instance variable for SpecialModelName + //private SpecialModelName instance; + + public SpecialModelNameTests() + { + // TODO uncomment below to create an instance of SpecialModelName + //instance = new SpecialModelName(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + /// /// Test an instance of SpecialModelName /// [Fact] public void SpecialModelNameInstanceTest() { - // TODO uncomment below to test "IsInstanceOfType" SpecialModelName - //Assert.IsType (instance, "variable 'instance' is a SpecialModelName"); + // TODO uncomment below to test "IsType" SpecialModelName + //Assert.IsType(instance); } /// @@ -48,13 +60,16 @@ public void SpecialModelNameInstanceTest() [Fact] public void SpecialPropertyNameTest() { - SpecialModelName s = new SpecialModelName(); - s.SpecialPropertyName = 123L; - Assert.Equal("{\"$special[property.name]\":123}", JsonConvert.SerializeObject(s)); - // comment out the following as the result is OS-dependent - //Assert.Equal("{\"id\":123}", s.ToJson()); + // TODO unit test for the property 'SpecialPropertyName' } + /// + /// Test the property 'VarSpecialModelName' + /// + [Fact] + public void VarSpecialModelNameTest() + { + // TODO unit test for the property 'VarSpecialModelName' + } } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/TagTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/TagTests.cs index 6d56232d0a76..8f9ad604eab9 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/TagTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/TagTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void TagInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Id' /// @@ -64,6 +62,7 @@ public void IdTest() { // TODO unit test for the property 'Id' } + /// /// Test the property 'Name' /// @@ -72,7 +71,5 @@ public void NameTest() { // TODO unit test for the property 'Name' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/TestCollectionEndingWithWordListObjectTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/TestCollectionEndingWithWordListObjectTests.cs index 4def0dcda9cc..6623a04fcc40 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/TestCollectionEndingWithWordListObjectTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/TestCollectionEndingWithWordListObjectTests.cs @@ -54,7 +54,6 @@ public void TestCollectionEndingWithWordListObjectInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'TestCollectionEndingWithWordList' /// @@ -63,7 +62,5 @@ public void TestCollectionEndingWithWordListTest() { // TODO unit test for the property 'TestCollectionEndingWithWordList' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/TestCollectionEndingWithWordListTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/TestCollectionEndingWithWordListTests.cs index e9df66daf2e5..a32943a0c841 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/TestCollectionEndingWithWordListTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/TestCollectionEndingWithWordListTests.cs @@ -54,7 +54,6 @@ public void TestCollectionEndingWithWordListInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Value' /// @@ -63,7 +62,5 @@ public void ValueTest() { // TODO unit test for the property 'Value' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/TriangleInterfaceTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/TriangleInterfaceTests.cs index fba65470bee6..1750c64c4eda 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/TriangleInterfaceTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/TriangleInterfaceTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void TriangleInterfaceInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'TriangleType' /// @@ -64,7 +62,5 @@ public void TriangleTypeTest() { // TODO unit test for the property 'TriangleType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/TriangleTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/TriangleTests.cs index bdaab0b47965..0dd209f5303a 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/TriangleTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/TriangleTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void TriangleInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// @@ -64,6 +62,7 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } + /// /// Test the property 'TriangleType' /// @@ -72,7 +71,5 @@ public void TriangleTypeTest() { // TODO unit test for the property 'TriangleType' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/UserTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/UserTests.cs index a7b095e4c28e..bc3cb3775de1 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/UserTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/UserTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void UserInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Id' /// @@ -64,6 +62,7 @@ public void IdTest() { // TODO unit test for the property 'Id' } + /// /// Test the property 'Username' /// @@ -72,6 +71,7 @@ public void UsernameTest() { // TODO unit test for the property 'Username' } + /// /// Test the property 'FirstName' /// @@ -80,6 +80,7 @@ public void FirstNameTest() { // TODO unit test for the property 'FirstName' } + /// /// Test the property 'LastName' /// @@ -88,6 +89,7 @@ public void LastNameTest() { // TODO unit test for the property 'LastName' } + /// /// Test the property 'Email' /// @@ -96,6 +98,7 @@ public void EmailTest() { // TODO unit test for the property 'Email' } + /// /// Test the property 'Password' /// @@ -104,6 +107,7 @@ public void PasswordTest() { // TODO unit test for the property 'Password' } + /// /// Test the property 'Phone' /// @@ -112,6 +116,7 @@ public void PhoneTest() { // TODO unit test for the property 'Phone' } + /// /// Test the property 'UserStatus' /// @@ -120,6 +125,7 @@ public void UserStatusTest() { // TODO unit test for the property 'UserStatus' } + /// /// Test the property 'ObjectWithNoDeclaredProps' /// @@ -128,6 +134,7 @@ public void ObjectWithNoDeclaredPropsTest() { // TODO unit test for the property 'ObjectWithNoDeclaredProps' } + /// /// Test the property 'ObjectWithNoDeclaredPropsNullable' /// @@ -136,6 +143,7 @@ public void ObjectWithNoDeclaredPropsNullableTest() { // TODO unit test for the property 'ObjectWithNoDeclaredPropsNullable' } + /// /// Test the property 'AnyTypeProp' /// @@ -144,6 +152,7 @@ public void AnyTypePropTest() { // TODO unit test for the property 'AnyTypeProp' } + /// /// Test the property 'AnyTypePropNullable' /// @@ -152,7 +161,5 @@ public void AnyTypePropNullableTest() { // TODO unit test for the property 'AnyTypePropNullable' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/WhaleTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/WhaleTests.cs index 09610791943c..de86c02372cd 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/WhaleTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/WhaleTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void WhaleInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'HasBaleen' /// @@ -64,6 +62,7 @@ public void HasBaleenTest() { // TODO unit test for the property 'HasBaleen' } + /// /// Test the property 'HasTeeth' /// @@ -72,6 +71,7 @@ public void HasTeethTest() { // TODO unit test for the property 'HasTeeth' } + /// /// Test the property 'ClassName' /// @@ -80,7 +80,5 @@ public void ClassNameTest() { // TODO unit test for the property 'ClassName' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ZebraTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ZebraTests.cs index f44e92131400..55e70c43e0a0 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ZebraTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ZebraTests.cs @@ -14,7 +14,6 @@ using System.Linq; using System.IO; using System.Collections.Generic; -using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -55,7 +54,6 @@ public void ZebraInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Type' /// @@ -64,6 +62,7 @@ public void TypeTest() { // TODO unit test for the property 'Type' } + /// /// Test the property 'ClassName' /// @@ -72,7 +71,5 @@ public void ClassNameTest() { // TODO unit test for the property 'ClassName' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ZeroBasedEnumClassTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ZeroBasedEnumClassTests.cs index f713baf3235e..d828b6d03a7b 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ZeroBasedEnumClassTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ZeroBasedEnumClassTests.cs @@ -54,7 +54,6 @@ public void ZeroBasedEnumClassInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ZeroBasedEnum' /// @@ -63,7 +62,5 @@ public void ZeroBasedEnumTest() { // TODO unit test for the property 'ZeroBasedEnum' } - } - } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ZeroBasedEnumTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ZeroBasedEnumTests.cs index 412297e39f71..38260add43e8 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ZeroBasedEnumTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ZeroBasedEnumTests.cs @@ -53,9 +53,5 @@ public void ZeroBasedEnumInstanceTest() // TODO uncomment below to test "IsType" ZeroBasedEnum //Assert.IsType(instance); } - - - } - } diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs index 389c61984c11..a2d248067b4b 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs @@ -74,5 +74,38 @@ public void GetCountryTest() //string country = null; //instance.GetCountry(country); } + + /// + /// Test Hello + /// + [Test] + public void HelloTest() + { + // TODO uncomment below to test the method and replace null with proper value + //var response = instance.Hello(); + //Assert.IsType>(response); + } + + /// + /// Test RolesReportGet + /// + [Test] + public void RolesReportGetTest() + { + // TODO uncomment below to test the method and replace null with proper value + //var response = instance.RolesReportGet(); + //Assert.IsType>>(response); + } + + /// + /// Test Test + /// + [Test] + public void TestTest() + { + // TODO uncomment below to test the method and replace null with proper value + //var response = instance.Test(); + //Assert.IsType(response); + } } } diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Api/FakeApiTests.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Api/FakeApiTests.cs index 99c071961eba..46e35a082941 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Api/FakeApiTests.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Api/FakeApiTests.cs @@ -124,6 +124,39 @@ public void GetArrayOfEnumsTest() //Assert.IsType>(response); } + /// + /// Test GetMixedAnyOf + /// + [Test] + public void GetMixedAnyOfTest() + { + // TODO uncomment below to test the method and replace null with proper value + //var response = instance.GetMixedAnyOf(); + //Assert.IsType(response); + } + + /// + /// Test GetMixedOneOf + /// + [Test] + public void GetMixedOneOfTest() + { + // TODO uncomment below to test the method and replace null with proper value + //var response = instance.GetMixedOneOf(); + //Assert.IsType(response); + } + + /// + /// Test TestAdditionalPropertiesReference + /// + [Test] + public void TestAdditionalPropertiesReferenceTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Dictionary requestBody = null; + //instance.TestAdditionalPropertiesReference(requestBody); + } + /// /// Test TestBodyWithFileSchema /// @@ -167,20 +200,20 @@ public void TestEndpointParametersTest() { // TODO uncomment below to test the method and replace null with proper value //decimal number = null; - //double _double = null; + //double varDouble = null; //string patternWithoutDelimiter = null; - //byte[] _byte = null; + //byte[] varByte = null; //int? integer = null; //int? int32 = null; //long? int64 = null; - //float? _float = null; - //string _string = null; + //float? varFloat = null; + //string varString = null; //System.IO.Stream binary = null; //DateTime? date = null; //DateTime? dateTime = null; //string password = null; //string callback = null; - //instance.TestEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback); + //instance.TestEndpointParameters(number, varDouble, patternWithoutDelimiter, varByte, integer, int32, int64, varFloat, varString, binary, date, dateTime, password, callback); } /// @@ -228,6 +261,17 @@ public void TestInlineAdditionalPropertiesTest() //instance.TestInlineAdditionalProperties(requestBody); } + /// + /// Test TestInlineFreeformAdditionalProperties + /// + [Test] + public void TestInlineFreeformAdditionalPropertiesTest() + { + // TODO uncomment below to test the method and replace null with proper value + //TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest = null; + //instance.TestInlineFreeformAdditionalProperties(testInlineFreeformAdditionalPropertiesRequest); + } + /// /// Test TestJsonFormData /// @@ -252,7 +296,22 @@ public void TestQueryParameterCollectionFormatTest() //List http = null; //List url = null; //List context = null; - //instance.TestQueryParameterCollectionFormat(pipe, ioutil, http, url, context); + //string requiredNotNullable = null; + //string requiredNullable = null; + //string notRequiredNotNullable = null; + //string notRequiredNullable = null; + //instance.TestQueryParameterCollectionFormat(pipe, ioutil, http, url, context, requiredNotNullable, requiredNullable, notRequiredNotNullable, notRequiredNullable); + } + + /// + /// Test TestStringMapReference + /// + [Test] + public void TestStringMapReferenceTest() + { + // TODO uncomment below to test the method and replace null with proper value + //Dictionary requestBody = null; + //instance.TestStringMapReference(requestBody); } } } diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ActivityOutputElementRepresentationTests.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ActivityOutputElementRepresentationTests.cs index 2cbfde17b036..7e14952b1f09 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ActivityOutputElementRepresentationTests.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ActivityOutputElementRepresentationTests.cs @@ -54,7 +54,6 @@ public void ActivityOutputElementRepresentationInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Prop1' /// diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ActivityTests.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ActivityTests.cs index deeed412e658..75a6701b2ba8 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ActivityTests.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ActivityTests.cs @@ -54,7 +54,6 @@ public void ActivityInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ActivityOutputs' /// diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesClassTests.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesClassTests.cs index 5a474328dec8..d09bb6cada29 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesClassTests.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesClassTests.cs @@ -54,7 +54,6 @@ public void AdditionalPropertiesClassInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'MapProperty' /// diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/AnimalTests.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/AnimalTests.cs index f4224abd70fb..fadee192d35e 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/AnimalTests.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/AnimalTests.cs @@ -54,25 +54,6 @@ public void AnimalInstanceTest() //Assert.IsType(instance); } - /// - /// Test deserialize a Cat from type Animal - /// - [Test] - public void CatDeserializeFromAnimalTest() - { - // TODO uncomment below to test deserialize a Cat from type Animal - //Assert.IsType(JsonConvert.DeserializeObject(new Cat().ToJson())); - } - /// - /// Test deserialize a Dog from type Animal - /// - [Test] - public void DogDeserializeFromAnimalTest() - { - // TODO uncomment below to test deserialize a Dog from type Animal - //Assert.IsType(JsonConvert.DeserializeObject(new Dog().ToJson())); - } - /// /// Test the property 'ClassName' /// diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ApiResponseTests.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ApiResponseTests.cs index 9562b8029bce..23c0543b93e3 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ApiResponseTests.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ApiResponseTests.cs @@ -54,7 +54,6 @@ public void ApiResponseInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Code' /// diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/AppleReqTests.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/AppleReqTests.cs index 26ba6e79e242..db62874989c2 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/AppleReqTests.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/AppleReqTests.cs @@ -54,7 +54,6 @@ public void AppleReqInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Cultivar' /// diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/AppleTests.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/AppleTests.cs index 0c5ba63b2cf3..ea5ffa9cda0e 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/AppleTests.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/AppleTests.cs @@ -54,7 +54,6 @@ public void AppleInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Cultivar' /// @@ -71,5 +70,13 @@ public void OriginTest() { // TODO unit test for the property 'Origin' } + /// + /// Test the property 'ColorCode' + /// + [Test] + public void ColorCodeTest() + { + // TODO unit test for the property 'ColorCode' + } } } diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ArrayOfArrayOfNumberOnlyTests.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ArrayOfArrayOfNumberOnlyTests.cs index 5800f457b150..cdf37cadcf1c 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ArrayOfArrayOfNumberOnlyTests.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ArrayOfArrayOfNumberOnlyTests.cs @@ -54,7 +54,6 @@ public void ArrayOfArrayOfNumberOnlyInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ArrayArrayNumber' /// diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ArrayOfNumberOnlyTests.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ArrayOfNumberOnlyTests.cs index 4cdbd60a826d..5c2ab148530b 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ArrayOfNumberOnlyTests.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ArrayOfNumberOnlyTests.cs @@ -54,7 +54,6 @@ public void ArrayOfNumberOnlyInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ArrayNumber' /// diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ArrayTestTests.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ArrayTestTests.cs index c274c6ab67c8..7473d238ec24 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ArrayTestTests.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ArrayTestTests.cs @@ -54,7 +54,6 @@ public void ArrayTestInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ArrayOfString' /// diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/BananaReqTests.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/BananaReqTests.cs index 058d71226a29..abafe9371863 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/BananaReqTests.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/BananaReqTests.cs @@ -54,7 +54,6 @@ public void BananaReqInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'LengthCm' /// diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/BananaTests.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/BananaTests.cs index d5112b7a47a9..b936145a0b24 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/BananaTests.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/BananaTests.cs @@ -54,7 +54,6 @@ public void BananaInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'LengthCm' /// diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/BasquePigTests.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/BasquePigTests.cs index 2cb313e243d6..7ef93137f13e 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/BasquePigTests.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/BasquePigTests.cs @@ -54,7 +54,6 @@ public void BasquePigInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ClassName' /// diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/CapitalizationTests.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/CapitalizationTests.cs index 5d7c929f9ef9..3afd67afae68 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/CapitalizationTests.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/CapitalizationTests.cs @@ -54,7 +54,6 @@ public void CapitalizationInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'SmallCamel' /// diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/CatTests.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/CatTests.cs index 67ceac905886..b709de533d35 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/CatTests.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/CatTests.cs @@ -54,7 +54,6 @@ public void CatInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Declawed' /// diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/CategoryTests.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/CategoryTests.cs index a8ffd8b5dfdd..f0ab15add541 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/CategoryTests.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/CategoryTests.cs @@ -54,7 +54,6 @@ public void CategoryInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Id' /// diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ChildCatTests.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ChildCatTests.cs index cd37ee5fddf1..458e532b937f 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ChildCatTests.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ChildCatTests.cs @@ -54,7 +54,6 @@ public void ChildCatInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Name' /// diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ClassModelTests.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ClassModelTests.cs index 0ff535c000f8..dc00d2ae80a5 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ClassModelTests.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ClassModelTests.cs @@ -54,7 +54,6 @@ public void ClassModelInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Class' /// diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ComplexQuadrilateralTests.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ComplexQuadrilateralTests.cs index b0238f3f2abc..8dccdccac0fd 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ComplexQuadrilateralTests.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ComplexQuadrilateralTests.cs @@ -54,7 +54,6 @@ public void ComplexQuadrilateralInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/DanishPigTests.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/DanishPigTests.cs index cd9cf8f5429f..e84b9be519a3 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/DanishPigTests.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/DanishPigTests.cs @@ -54,7 +54,6 @@ public void DanishPigInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ClassName' /// diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/DateOnlyClassTests.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/DateOnlyClassTests.cs index 5a39eded7627..ead2c0175715 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/DateOnlyClassTests.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/DateOnlyClassTests.cs @@ -54,7 +54,6 @@ public void DateOnlyClassInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'DateOnlyProperty' /// diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/DeprecatedObjectTests.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/DeprecatedObjectTests.cs index 422afdae10cc..d9b8e7ae664c 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/DeprecatedObjectTests.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/DeprecatedObjectTests.cs @@ -54,7 +54,6 @@ public void DeprecatedObjectInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Name' /// diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/DogTests.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/DogTests.cs index ef33138673ec..a7412ff531b8 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/DogTests.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/DogTests.cs @@ -54,7 +54,6 @@ public void DogInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Breed' /// diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/DrawingTests.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/DrawingTests.cs index e0d787fff17f..45994f1e103e 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/DrawingTests.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/DrawingTests.cs @@ -54,7 +54,6 @@ public void DrawingInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'MainShape' /// diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/EnumArraysTests.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/EnumArraysTests.cs index caa95abbb230..b36e8a58de86 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/EnumArraysTests.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/EnumArraysTests.cs @@ -54,7 +54,6 @@ public void EnumArraysInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'JustSymbol' /// diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/EnumClassTests.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/EnumClassTests.cs index a273865be5ef..14e84229e7c8 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/EnumClassTests.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/EnumClassTests.cs @@ -54,6 +54,5 @@ public void EnumClassInstanceTest() //Assert.IsType(instance); } - } } diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/EnumTestTests.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/EnumTestTests.cs index 7ae3a87006f7..00c44cf8cade 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/EnumTestTests.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/EnumTestTests.cs @@ -54,7 +54,6 @@ public void EnumTestInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'EnumString' /// diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/EquilateralTriangleTests.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/EquilateralTriangleTests.cs index 7530ad8087c3..476a35149613 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/EquilateralTriangleTests.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/EquilateralTriangleTests.cs @@ -54,7 +54,6 @@ public void EquilateralTriangleInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FileSchemaTestClassTests.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FileSchemaTestClassTests.cs index 971b8adbc9f8..5945ecda108a 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FileSchemaTestClassTests.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FileSchemaTestClassTests.cs @@ -54,7 +54,6 @@ public void FileSchemaTestClassInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'File' /// diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FileTests.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FileTests.cs index 27d417cf409f..5e11cf65baa7 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FileTests.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FileTests.cs @@ -54,7 +54,6 @@ public void FileInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'SourceURI' /// diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FooGetDefaultResponseTests.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FooGetDefaultResponseTests.cs index 6c2350cd28c4..bbb4db0c793a 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FooGetDefaultResponseTests.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FooGetDefaultResponseTests.cs @@ -54,7 +54,6 @@ public void FooGetDefaultResponseInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'String' /// diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FooTests.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FooTests.cs index fb264e72f612..3c8ff499b828 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FooTests.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FooTests.cs @@ -54,7 +54,6 @@ public void FooInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Bar' /// diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FormatTestTests.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FormatTestTests.cs index 2d797f8b1a3a..eab83470a061 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FormatTestTests.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FormatTestTests.cs @@ -54,7 +54,6 @@ public void FormatTestInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Integer' /// @@ -72,6 +71,54 @@ public void Int32Test() // TODO unit test for the property 'Int32' } /// + /// Test the property 'Int32Range' + /// + [Test] + public void Int32RangeTest() + { + // TODO unit test for the property 'Int32Range' + } + /// + /// Test the property 'Int64Positive' + /// + [Test] + public void Int64PositiveTest() + { + // TODO unit test for the property 'Int64Positive' + } + /// + /// Test the property 'Int64Negative' + /// + [Test] + public void Int64NegativeTest() + { + // TODO unit test for the property 'Int64Negative' + } + /// + /// Test the property 'Int64PositiveExclusive' + /// + [Test] + public void Int64PositiveExclusiveTest() + { + // TODO unit test for the property 'Int64PositiveExclusive' + } + /// + /// Test the property 'Int64NegativeExclusive' + /// + [Test] + public void Int64NegativeExclusiveTest() + { + // TODO unit test for the property 'Int64NegativeExclusive' + } + /// + /// Test the property 'UnsignedInteger' + /// + [Test] + public void UnsignedIntegerTest() + { + // TODO unit test for the property 'UnsignedInteger' + } + /// /// Test the property 'Int64' /// [Test] @@ -80,6 +127,14 @@ public void Int64Test() // TODO unit test for the property 'Int64' } /// + /// Test the property 'UnsignedLong' + /// + [Test] + public void UnsignedLongTest() + { + // TODO unit test for the property 'UnsignedLong' + } + /// /// Test the property 'Number' /// [Test] @@ -183,5 +238,13 @@ public void PatternWithDigitsAndDelimiterTest() { // TODO unit test for the property 'PatternWithDigitsAndDelimiter' } + /// + /// Test the property 'PatternWithBackslash' + /// + [Test] + public void PatternWithBackslashTest() + { + // TODO unit test for the property 'PatternWithBackslash' + } } } diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FruitReqTests.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FruitReqTests.cs index 216f6e9ed234..13b4d7752fa4 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FruitReqTests.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FruitReqTests.cs @@ -54,7 +54,6 @@ public void FruitReqInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Cultivar' /// diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FruitTests.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FruitTests.cs index 35c0fd5df7ef..81898604c01d 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FruitTests.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FruitTests.cs @@ -54,7 +54,6 @@ public void FruitInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Color' /// @@ -80,6 +79,14 @@ public void OriginTest() // TODO unit test for the property 'Origin' } /// + /// Test the property 'ColorCode' + /// + [Test] + public void ColorCodeTest() + { + // TODO unit test for the property 'ColorCode' + } + /// /// Test the property 'LengthCm' /// [Test] diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/GmFruitTests.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/GmFruitTests.cs index 34dbc9d271f5..975afc4bf0b3 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/GmFruitTests.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/GmFruitTests.cs @@ -54,7 +54,6 @@ public void GmFruitInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Color' /// @@ -80,6 +79,14 @@ public void OriginTest() // TODO unit test for the property 'Origin' } /// + /// Test the property 'ColorCode' + /// + [Test] + public void ColorCodeTest() + { + // TODO unit test for the property 'ColorCode' + } + /// /// Test the property 'LengthCm' /// [Test] diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/GrandparentAnimalTests.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/GrandparentAnimalTests.cs index c66e6d56f66f..718bfd764f8d 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/GrandparentAnimalTests.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/GrandparentAnimalTests.cs @@ -54,25 +54,6 @@ public void GrandparentAnimalInstanceTest() //Assert.IsType(instance); } - /// - /// Test deserialize a ChildCat from type ParentPet - /// - [Test] - public void ChildCatDeserializeFromParentPetTest() - { - // TODO uncomment below to test deserialize a ChildCat from type ParentPet - //Assert.IsType(JsonConvert.DeserializeObject(new ChildCat().ToJson())); - } - /// - /// Test deserialize a ParentPet from type GrandparentAnimal - /// - [Test] - public void ParentPetDeserializeFromGrandparentAnimalTest() - { - // TODO uncomment below to test deserialize a ParentPet from type GrandparentAnimal - //Assert.IsType(JsonConvert.DeserializeObject(new ParentPet().ToJson())); - } - /// /// Test the property 'PetType' /// diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/HasOnlyReadOnlyTests.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/HasOnlyReadOnlyTests.cs index 2dd8cc591f86..c8b5fcbc5d1c 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/HasOnlyReadOnlyTests.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/HasOnlyReadOnlyTests.cs @@ -54,7 +54,6 @@ public void HasOnlyReadOnlyInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Bar' /// diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/HealthCheckResultTests.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/HealthCheckResultTests.cs index 80ebb93e08ec..57f6163648c7 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/HealthCheckResultTests.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/HealthCheckResultTests.cs @@ -54,7 +54,6 @@ public void HealthCheckResultInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'NullableMessage' /// diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/IsoscelesTriangleTests.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/IsoscelesTriangleTests.cs index b7ba1a6794d3..bffee41a6861 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/IsoscelesTriangleTests.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/IsoscelesTriangleTests.cs @@ -54,7 +54,6 @@ public void IsoscelesTriangleInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ListTests.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ListTests.cs index d4b921008ff9..eb3ea496b2a4 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ListTests.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ListTests.cs @@ -54,14 +54,13 @@ public void ListInstanceTest() //Assert.IsType(instance); } - /// - /// Test the property '_123List' + /// Test the property 'Var123List' /// [Test] - public void _123ListTest() + public void Var123ListTest() { - // TODO unit test for the property '_123List' + // TODO unit test for the property 'Var123List' } } } diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/MammalTests.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/MammalTests.cs index 17eb2fb79b67..941d5e9c8681 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/MammalTests.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/MammalTests.cs @@ -54,7 +54,6 @@ public void MammalInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'HasBaleen' /// diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/MapTestTests.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/MapTestTests.cs index b76e755c8159..4e42b203b8c3 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/MapTestTests.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/MapTestTests.cs @@ -54,7 +54,6 @@ public void MapTestInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'MapMapOfString' /// diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/MixedPropertiesAndAdditionalPropertiesClassTests.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/MixedPropertiesAndAdditionalPropertiesClassTests.cs index 42ea53f9da34..b08b25cbad50 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/MixedPropertiesAndAdditionalPropertiesClassTests.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/MixedPropertiesAndAdditionalPropertiesClassTests.cs @@ -54,7 +54,6 @@ public void MixedPropertiesAndAdditionalPropertiesClassInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'UuidWithPattern' /// diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/Model200ResponseTests.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/Model200ResponseTests.cs index ef14ea7ce6fd..36c4aba37575 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/Model200ResponseTests.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/Model200ResponseTests.cs @@ -54,7 +54,6 @@ public void Model200ResponseInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Name' /// diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ModelClientTests.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ModelClientTests.cs index 16393b85aaf7..5f3737789e91 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ModelClientTests.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ModelClientTests.cs @@ -54,14 +54,13 @@ public void ModelClientInstanceTest() //Assert.IsType(instance); } - /// - /// Test the property '_Client' + /// Test the property 'VarClient' /// [Test] - public void _ClientTest() + public void VarClientTest() { - // TODO unit test for the property '_Client' + // TODO unit test for the property 'VarClient' } } } diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/NameTests.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/NameTests.cs index 7131673e7bff..07338800c4e2 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/NameTests.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/NameTests.cs @@ -54,14 +54,13 @@ public void NameInstanceTest() //Assert.IsType(instance); } - /// - /// Test the property '_Name' + /// Test the property 'VarName' /// [Test] - public void _NameTest() + public void VarNameTest() { - // TODO unit test for the property '_Name' + // TODO unit test for the property 'VarName' } /// /// Test the property 'SnakeCase' @@ -80,12 +79,12 @@ public void PropertyTest() // TODO unit test for the property 'Property' } /// - /// Test the property '_123Number' + /// Test the property 'Var123Number' /// [Test] - public void _123NumberTest() + public void Var123NumberTest() { - // TODO unit test for the property '_123Number' + // TODO unit test for the property 'Var123Number' } } } diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/NullableClassTests.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/NullableClassTests.cs index 029631e76714..b97ac1b4f6e8 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/NullableClassTests.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/NullableClassTests.cs @@ -54,7 +54,6 @@ public void NullableClassInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'IntegerProp' /// diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/NullableGuidClassTests.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/NullableGuidClassTests.cs index c6835470618e..6ed6c2d71b0c 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/NullableGuidClassTests.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/NullableGuidClassTests.cs @@ -54,7 +54,6 @@ public void NullableGuidClassInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Uuid' /// diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/NullableShapeTests.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/NullableShapeTests.cs index 278ebdb2d8a6..83d8461fb9ef 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/NullableShapeTests.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/NullableShapeTests.cs @@ -54,7 +54,6 @@ public void NullableShapeInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/NumberOnlyTests.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/NumberOnlyTests.cs index cbead7232a93..434811c0cad7 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/NumberOnlyTests.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/NumberOnlyTests.cs @@ -54,7 +54,6 @@ public void NumberOnlyInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'JustNumber' /// diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ObjectWithDeprecatedFieldsTests.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ObjectWithDeprecatedFieldsTests.cs index d3b17323263b..180fd30a9524 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ObjectWithDeprecatedFieldsTests.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ObjectWithDeprecatedFieldsTests.cs @@ -54,7 +54,6 @@ public void ObjectWithDeprecatedFieldsInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Uuid' /// diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OrderTests.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OrderTests.cs index 683d422a3f4e..de2d1817dc16 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OrderTests.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OrderTests.cs @@ -54,7 +54,6 @@ public void OrderInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Id' /// diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OuterCompositeTests.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OuterCompositeTests.cs index 39c7730a0f21..90bc3199343a 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OuterCompositeTests.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OuterCompositeTests.cs @@ -54,7 +54,6 @@ public void OuterCompositeInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'MyNumber' /// diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumDefaultValueTests.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumDefaultValueTests.cs index 6376c2584763..51c1e164f628 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumDefaultValueTests.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumDefaultValueTests.cs @@ -54,6 +54,5 @@ public void OuterEnumDefaultValueInstanceTest() //Assert.IsType(instance); } - } } diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerDefaultValueTests.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerDefaultValueTests.cs index b8fd4b863dc5..a135cc74fe30 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerDefaultValueTests.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerDefaultValueTests.cs @@ -54,6 +54,5 @@ public void OuterEnumIntegerDefaultValueInstanceTest() //Assert.IsType(instance); } - } } diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerTests.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerTests.cs index 3cfb128a9e2d..fd40632410c1 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerTests.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerTests.cs @@ -54,6 +54,5 @@ public void OuterEnumIntegerInstanceTest() //Assert.IsType(instance); } - } } diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumTests.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumTests.cs index a13bfd83401d..4c89cf4af7bc 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumTests.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumTests.cs @@ -54,6 +54,5 @@ public void OuterEnumInstanceTest() //Assert.IsType(instance); } - } } diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ParentPetTests.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ParentPetTests.cs index 1f16980516ba..3dee3a6db078 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ParentPetTests.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ParentPetTests.cs @@ -54,15 +54,5 @@ public void ParentPetInstanceTest() //Assert.IsType(instance); } - /// - /// Test deserialize a ChildCat from type ParentPet - /// - [Test] - public void ChildCatDeserializeFromParentPetTest() - { - // TODO uncomment below to test deserialize a ChildCat from type ParentPet - //Assert.IsType(JsonConvert.DeserializeObject(new ChildCat().ToJson())); - } - } } diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/PetTests.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/PetTests.cs index 7b7fff9cf81d..6dced5375d2b 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/PetTests.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/PetTests.cs @@ -54,7 +54,6 @@ public void PetInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Id' /// diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/PigTests.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/PigTests.cs index a18f7330cef9..a53943c4aa9d 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/PigTests.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/PigTests.cs @@ -54,7 +54,6 @@ public void PigInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ClassName' /// diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/PolymorphicPropertyTests.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/PolymorphicPropertyTests.cs index 435a70afe615..dfc19c47ec04 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/PolymorphicPropertyTests.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/PolymorphicPropertyTests.cs @@ -54,6 +54,5 @@ public void PolymorphicPropertyInstanceTest() //Assert.IsType(instance); } - } } diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/QuadrilateralInterfaceTests.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/QuadrilateralInterfaceTests.cs index 079fc1054269..ac60d5663fe2 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/QuadrilateralInterfaceTests.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/QuadrilateralInterfaceTests.cs @@ -54,7 +54,6 @@ public void QuadrilateralInterfaceInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'QuadrilateralType' /// diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/QuadrilateralTests.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/QuadrilateralTests.cs index cc2f53d3d68f..7990229346a2 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/QuadrilateralTests.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/QuadrilateralTests.cs @@ -54,7 +54,6 @@ public void QuadrilateralInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ReadOnlyFirstTests.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ReadOnlyFirstTests.cs index 1d73a2e93e0d..bc9eeb65eec7 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ReadOnlyFirstTests.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ReadOnlyFirstTests.cs @@ -54,7 +54,6 @@ public void ReadOnlyFirstInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Bar' /// diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ReturnTests.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ReturnTests.cs index 1ad460b5392a..f1748f05e10a 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ReturnTests.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ReturnTests.cs @@ -54,14 +54,37 @@ public void ReturnInstanceTest() //Assert.IsType(instance); } - /// - /// Test the property '_Return' + /// Test the property 'VarReturn' + /// + [Test] + public void VarReturnTest() + { + // TODO unit test for the property 'VarReturn' + } + /// + /// Test the property 'Lock' + /// + [Test] + public void LockTest() + { + // TODO unit test for the property 'Lock' + } + /// + /// Test the property 'Abstract' + /// + [Test] + public void AbstractTest() + { + // TODO unit test for the property 'Abstract' + } + /// + /// Test the property 'Unsafe' /// [Test] - public void _ReturnTest() + public void UnsafeTest() { - // TODO unit test for the property '_Return' + // TODO unit test for the property 'Unsafe' } } } diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ScaleneTriangleTests.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ScaleneTriangleTests.cs index 4eef3141e21e..ac5d899fd842 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ScaleneTriangleTests.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ScaleneTriangleTests.cs @@ -54,7 +54,6 @@ public void ScaleneTriangleInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ShapeInterfaceTests.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ShapeInterfaceTests.cs index d0e787e2a987..96b522ced600 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ShapeInterfaceTests.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ShapeInterfaceTests.cs @@ -54,7 +54,6 @@ public void ShapeInterfaceInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ShapeOrNullTests.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ShapeOrNullTests.cs index 5bfd6b024fc3..4d3ca96d500b 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ShapeOrNullTests.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ShapeOrNullTests.cs @@ -54,7 +54,6 @@ public void ShapeOrNullInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ShapeTests.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ShapeTests.cs index 0a00f468ec06..1a9f4df14a66 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ShapeTests.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ShapeTests.cs @@ -54,7 +54,6 @@ public void ShapeInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/SimpleQuadrilateralTests.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/SimpleQuadrilateralTests.cs index 0477e530d9f9..36a37fcdd467 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/SimpleQuadrilateralTests.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/SimpleQuadrilateralTests.cs @@ -54,7 +54,6 @@ public void SimpleQuadrilateralInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/SpecialModelNameTests.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/SpecialModelNameTests.cs index 1f3dc8271521..b257655bb836 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/SpecialModelNameTests.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/SpecialModelNameTests.cs @@ -54,7 +54,6 @@ public void SpecialModelNameInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'SpecialPropertyName' /// @@ -64,12 +63,12 @@ public void SpecialPropertyNameTest() // TODO unit test for the property 'SpecialPropertyName' } /// - /// Test the property '_SpecialModelName' + /// Test the property 'VarSpecialModelName' /// [Test] - public void _SpecialModelNameTest() + public void VarSpecialModelNameTest() { - // TODO unit test for the property '_SpecialModelName' + // TODO unit test for the property 'VarSpecialModelName' } } } diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/TagTests.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/TagTests.cs index e956f3b15a28..298360e74c1b 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/TagTests.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/TagTests.cs @@ -54,7 +54,6 @@ public void TagInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Id' /// diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/TriangleInterfaceTests.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/TriangleInterfaceTests.cs index 73b7803a431a..80893ccd4753 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/TriangleInterfaceTests.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/TriangleInterfaceTests.cs @@ -54,7 +54,6 @@ public void TriangleInterfaceInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'TriangleType' /// diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/TriangleTests.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/TriangleTests.cs index f2ca943e59b0..ad5920f76f17 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/TriangleTests.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/TriangleTests.cs @@ -54,7 +54,6 @@ public void TriangleInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'ShapeType' /// diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/UserTests.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/UserTests.cs index 1859aad97fee..fd4761ceedd3 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/UserTests.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/UserTests.cs @@ -54,7 +54,6 @@ public void UserInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Id' /// diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/WhaleTests.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/WhaleTests.cs index 2be2a2dd8cc8..8969d639a503 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/WhaleTests.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/WhaleTests.cs @@ -54,7 +54,6 @@ public void WhaleInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'HasBaleen' /// diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ZebraTests.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ZebraTests.cs index ff81e57c0b56..3925fa58c582 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ZebraTests.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ZebraTests.cs @@ -54,7 +54,6 @@ public void ZebraInstanceTest() //Assert.IsType(instance); } - /// /// Test the property 'Type' /// diff --git a/samples/client/petstore/go/go-petstore/test/api_another_fake_test.go b/samples/client/petstore/go/go-petstore/test/api_another_fake_test.go index bf60a1c855b2..fd02baffd860 100644 --- a/samples/client/petstore/go/go-petstore/test/api_another_fake_test.go +++ b/samples/client/petstore/go/go-petstore/test/api_another_fake_test.go @@ -1,7 +1,7 @@ /* OpenAPI Petstore -Testing AnotherFakeApiService +Testing AnotherFakeAPIService */ @@ -10,28 +10,28 @@ Testing AnotherFakeApiService package petstore import ( - "context" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" - "testing" - openapiclient "./openapi" + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" ) -func Test_petstore_AnotherFakeApiService(t *testing.T) { +func Test_petstore_AnotherFakeAPIService(t *testing.T) { - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) - t.Run("Test AnotherFakeApiService Call123TestSpecialTags", func(t *testing.T) { + t.Run("Test AnotherFakeAPIService Call123TestSpecialTags", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.AnotherFakeApi.Call123TestSpecialTags(context.Background()).Execute() + resp, httpRes, err := apiClient.AnotherFakeAPI.Call123TestSpecialTags(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) - }) + }) } diff --git a/samples/client/petstore/go/go-petstore/test/api_fake_classname_tags123_test.go b/samples/client/petstore/go/go-petstore/test/api_fake_classname_tags123_test.go index 963e4a42da7f..fc40229c2b6f 100644 --- a/samples/client/petstore/go/go-petstore/test/api_fake_classname_tags123_test.go +++ b/samples/client/petstore/go/go-petstore/test/api_fake_classname_tags123_test.go @@ -1,7 +1,7 @@ /* OpenAPI Petstore -Testing FakeClassnameTags123ApiService +Testing FakeClassnameTags123APIService */ @@ -10,28 +10,28 @@ Testing FakeClassnameTags123ApiService package petstore import ( - "context" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" - "testing" - openapiclient "./openapi" + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" ) -func Test_petstore_FakeClassnameTags123ApiService(t *testing.T) { +func Test_petstore_FakeClassnameTags123APIService(t *testing.T) { - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) - t.Run("Test FakeClassnameTags123ApiService TestClassname", func(t *testing.T) { + t.Run("Test FakeClassnameTags123APIService TestClassname", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.FakeClassnameTags123Api.TestClassname(context.Background()).Execute() + resp, httpRes, err := apiClient.FakeClassnameTags123API.TestClassname(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) - }) + }) } diff --git a/samples/client/petstore/go/go-petstore/test/api_fake_test.go b/samples/client/petstore/go/go-petstore/test/api_fake_test.go index 40e1635c3205..091ed519f891 100644 --- a/samples/client/petstore/go/go-petstore/test/api_fake_test.go +++ b/samples/client/petstore/go/go-petstore/test/api_fake_test.go @@ -1,7 +1,7 @@ /* OpenAPI Petstore -Testing FakeApiService +Testing FakeAPIService */ @@ -10,184 +10,175 @@ Testing FakeApiService package petstore import ( - "context" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" - "testing" - openapiclient "./openapi" + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" ) -func Test_petstore_FakeApiService(t *testing.T) { +func Test_petstore_FakeAPIService(t *testing.T) { - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) - t.Run("Test FakeApiService CreateXmlItem", func(t *testing.T) { + t.Run("Test FakeAPIService CreateXmlItem", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.FakeApi.CreateXmlItem(context.Background()).Execute() + httpRes, err := apiClient.FakeAPI.CreateXmlItem(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) - }) + }) - t.Run("Test FakeApiService FakeOuterBooleanSerialize", func(t *testing.T) { + t.Run("Test FakeAPIService FakeOuterBooleanSerialize", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.FakeApi.FakeOuterBooleanSerialize(context.Background()).Execute() + resp, httpRes, err := apiClient.FakeAPI.FakeOuterBooleanSerialize(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) - }) + }) - t.Run("Test FakeApiService FakeOuterCompositeSerialize", func(t *testing.T) { + t.Run("Test FakeAPIService FakeOuterCompositeSerialize", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.FakeApi.FakeOuterCompositeSerialize(context.Background()).Execute() + resp, httpRes, err := apiClient.FakeAPI.FakeOuterCompositeSerialize(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) - }) + }) - t.Run("Test FakeApiService FakeOuterNumberSerialize", func(t *testing.T) { + t.Run("Test FakeAPIService FakeOuterNumberSerialize", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.FakeApi.FakeOuterNumberSerialize(context.Background()).Execute() + resp, httpRes, err := apiClient.FakeAPI.FakeOuterNumberSerialize(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) - }) + }) - t.Run("Test FakeApiService FakeOuterStringSerialize", func(t *testing.T) { + t.Run("Test FakeAPIService FakeOuterStringSerialize", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.FakeApi.FakeOuterStringSerialize(context.Background()).Execute() + resp, httpRes, err := apiClient.FakeAPI.FakeOuterStringSerialize(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) - }) + }) - t.Run("Test FakeApiService TestBodyWithFileSchema", func(t *testing.T) { + t.Run("Test FakeAPIService TestBodyWithFileSchema", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.FakeApi.TestBodyWithFileSchema(context.Background()).Execute() + httpRes, err := apiClient.FakeAPI.TestBodyWithFileSchema(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) - }) + }) - t.Run("Test FakeApiService TestBodyWithQueryParams", func(t *testing.T) { + t.Run("Test FakeAPIService TestBodyWithQueryParams", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.FakeApi.TestBodyWithQueryParams(context.Background()).Execute() + httpRes, err := apiClient.FakeAPI.TestBodyWithQueryParams(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) - }) + }) - t.Run("Test FakeApiService TestClientModel", func(t *testing.T) { + t.Run("Test FakeAPIService TestClientModel", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.FakeApi.TestClientModel(context.Background()).Execute() + resp, httpRes, err := apiClient.FakeAPI.TestClientModel(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) - }) + }) - t.Run("Test FakeApiService TestEndpointParameters", func(t *testing.T) { + t.Run("Test FakeAPIService TestEndpointParameters", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.FakeApi.TestEndpointParameters(context.Background()).Execute() + httpRes, err := apiClient.FakeAPI.TestEndpointParameters(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) - }) + }) - t.Run("Test FakeApiService TestEnumParameters", func(t *testing.T) { + t.Run("Test FakeAPIService TestEnumParameters", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.FakeApi.TestEnumParameters(context.Background()).Execute() + httpRes, err := apiClient.FakeAPI.TestEnumParameters(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) - }) + }) - t.Run("Test FakeApiService TestGroupParameters", func(t *testing.T) { + t.Run("Test FakeAPIService TestGroupParameters", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.FakeApi.TestGroupParameters(context.Background()).Execute() + httpRes, err := apiClient.FakeAPI.TestGroupParameters(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) - }) + }) - t.Run("Test FakeApiService TestInlineAdditionalProperties", func(t *testing.T) { + t.Run("Test FakeAPIService TestInlineAdditionalProperties", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.FakeApi.TestInlineAdditionalProperties(context.Background()).Execute() + httpRes, err := apiClient.FakeAPI.TestInlineAdditionalProperties(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) - }) + }) - t.Run("Test FakeApiService TestJsonFormData", func(t *testing.T) { + t.Run("Test FakeAPIService TestJsonFormData", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.FakeApi.TestJsonFormData(context.Background()).Execute() + httpRes, err := apiClient.FakeAPI.TestJsonFormData(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) - }) + }) - t.Run("Test FakeApiService TestQueryParameterCollectionFormat", func(t *testing.T) { + t.Run("Test FakeAPIService TestQueryParameterCollectionFormat", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.FakeApi.TestQueryParameterCollectionFormat(context.Background()).Execute() + httpRes, err := apiClient.FakeAPI.TestQueryParameterCollectionFormat(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) - }) + }) } diff --git a/samples/client/petstore/go/go-petstore/test/api_pet_test.go b/samples/client/petstore/go/go-petstore/test/api_pet_test.go index 94d4d0fa7fd0..61919dcd91a4 100644 --- a/samples/client/petstore/go/go-petstore/test/api_pet_test.go +++ b/samples/client/petstore/go/go-petstore/test/api_pet_test.go @@ -1,7 +1,7 @@ /* OpenAPI Petstore -Testing PetApiService +Testing PetAPIService */ @@ -10,134 +10,130 @@ Testing PetApiService package petstore import ( - "context" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" - "testing" - openapiclient "./openapi" + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" ) -func Test_petstore_PetApiService(t *testing.T) { +func Test_petstore_PetAPIService(t *testing.T) { - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) - t.Run("Test PetApiService AddPet", func(t *testing.T) { + t.Run("Test PetAPIService AddPet", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.PetApi.AddPet(context.Background()).Execute() + httpRes, err := apiClient.PetAPI.AddPet(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) - }) + }) - t.Run("Test PetApiService DeletePet", func(t *testing.T) { + t.Run("Test PetAPIService DeletePet", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - var petId int64 + var petId int64 - resp, httpRes, err := apiClient.PetApi.DeletePet(context.Background(), petId).Execute() + httpRes, err := apiClient.PetAPI.DeletePet(context.Background(), petId).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) - }) + }) - t.Run("Test PetApiService FindPetsByStatus", func(t *testing.T) { + t.Run("Test PetAPIService FindPetsByStatus", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.PetApi.FindPetsByStatus(context.Background()).Execute() + resp, httpRes, err := apiClient.PetAPI.FindPetsByStatus(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) - }) + }) - t.Run("Test PetApiService FindPetsByTags", func(t *testing.T) { + t.Run("Test PetAPIService FindPetsByTags", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.PetApi.FindPetsByTags(context.Background()).Execute() + resp, httpRes, err := apiClient.PetAPI.FindPetsByTags(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) - }) + }) - t.Run("Test PetApiService GetPetById", func(t *testing.T) { + t.Run("Test PetAPIService GetPetById", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - var petId int64 + var petId int64 - resp, httpRes, err := apiClient.PetApi.GetPetById(context.Background(), petId).Execute() + resp, httpRes, err := apiClient.PetAPI.GetPetById(context.Background(), petId).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) - }) + }) - t.Run("Test PetApiService UpdatePet", func(t *testing.T) { + t.Run("Test PetAPIService UpdatePet", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.PetApi.UpdatePet(context.Background()).Execute() + httpRes, err := apiClient.PetAPI.UpdatePet(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) - }) + }) - t.Run("Test PetApiService UpdatePetWithForm", func(t *testing.T) { + t.Run("Test PetAPIService UpdatePetWithForm", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - var petId int64 + var petId int64 - resp, httpRes, err := apiClient.PetApi.UpdatePetWithForm(context.Background(), petId).Execute() + httpRes, err := apiClient.PetAPI.UpdatePetWithForm(context.Background(), petId).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) - }) + }) - t.Run("Test PetApiService UploadFile", func(t *testing.T) { + t.Run("Test PetAPIService UploadFile", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - var petId int64 + var petId int64 - resp, httpRes, err := apiClient.PetApi.UploadFile(context.Background(), petId).Execute() + resp, httpRes, err := apiClient.PetAPI.UploadFile(context.Background(), petId).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) - }) + }) - t.Run("Test PetApiService UploadFileWithRequiredFile", func(t *testing.T) { + t.Run("Test PetAPIService UploadFileWithRequiredFile", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - var petId int64 + var petId int64 - resp, httpRes, err := apiClient.PetApi.UploadFileWithRequiredFile(context.Background(), petId).Execute() + resp, httpRes, err := apiClient.PetAPI.UploadFileWithRequiredFile(context.Background(), petId).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) - }) + }) } diff --git a/samples/client/petstore/go/go-petstore/test/api_store_test.go b/samples/client/petstore/go/go-petstore/test/api_store_test.go index 48c1db2eb5ca..f9d2c0f61743 100644 --- a/samples/client/petstore/go/go-petstore/test/api_store_test.go +++ b/samples/client/petstore/go/go-petstore/test/api_store_test.go @@ -1,7 +1,7 @@ /* OpenAPI Petstore -Testing StoreApiService +Testing StoreAPIService */ @@ -10,68 +10,67 @@ Testing StoreApiService package petstore import ( - "context" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" - "testing" - openapiclient "./openapi" + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" ) -func Test_petstore_StoreApiService(t *testing.T) { +func Test_petstore_StoreAPIService(t *testing.T) { - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) - t.Run("Test StoreApiService DeleteOrder", func(t *testing.T) { + t.Run("Test StoreAPIService DeleteOrder", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - var orderId string + var orderId string - resp, httpRes, err := apiClient.StoreApi.DeleteOrder(context.Background(), orderId).Execute() + httpRes, err := apiClient.StoreAPI.DeleteOrder(context.Background(), orderId).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) - }) + }) - t.Run("Test StoreApiService GetInventory", func(t *testing.T) { + t.Run("Test StoreAPIService GetInventory", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.StoreApi.GetInventory(context.Background()).Execute() + resp, httpRes, err := apiClient.StoreAPI.GetInventory(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) - }) + }) - t.Run("Test StoreApiService GetOrderById", func(t *testing.T) { + t.Run("Test StoreAPIService GetOrderById", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - var orderId int64 + var orderId int64 - resp, httpRes, err := apiClient.StoreApi.GetOrderById(context.Background(), orderId).Execute() + resp, httpRes, err := apiClient.StoreAPI.GetOrderById(context.Background(), orderId).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) - }) + }) - t.Run("Test StoreApiService PlaceOrder", func(t *testing.T) { + t.Run("Test StoreAPIService PlaceOrder", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.StoreApi.PlaceOrder(context.Background()).Execute() + resp, httpRes, err := apiClient.StoreAPI.PlaceOrder(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) - }) + }) } diff --git a/samples/client/petstore/go/go-petstore/test/api_user_test.go b/samples/client/petstore/go/go-petstore/test/api_user_test.go index 072179b4869e..b261758f43e9 100644 --- a/samples/client/petstore/go/go-petstore/test/api_user_test.go +++ b/samples/client/petstore/go/go-petstore/test/api_user_test.go @@ -1,7 +1,7 @@ /* OpenAPI Petstore -Testing UserApiService +Testing UserAPIService */ @@ -10,118 +10,112 @@ Testing UserApiService package petstore import ( - "context" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" - "testing" - openapiclient "./openapi" + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" ) -func Test_petstore_UserApiService(t *testing.T) { +func Test_petstore_UserAPIService(t *testing.T) { - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) - t.Run("Test UserApiService CreateUser", func(t *testing.T) { + t.Run("Test UserAPIService CreateUser", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.UserApi.CreateUser(context.Background()).Execute() + httpRes, err := apiClient.UserAPI.CreateUser(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) - }) + }) - t.Run("Test UserApiService CreateUsersWithArrayInput", func(t *testing.T) { + t.Run("Test UserAPIService CreateUsersWithArrayInput", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.UserApi.CreateUsersWithArrayInput(context.Background()).Execute() + httpRes, err := apiClient.UserAPI.CreateUsersWithArrayInput(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) - }) + }) - t.Run("Test UserApiService CreateUsersWithListInput", func(t *testing.T) { + t.Run("Test UserAPIService CreateUsersWithListInput", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.UserApi.CreateUsersWithListInput(context.Background()).Execute() + httpRes, err := apiClient.UserAPI.CreateUsersWithListInput(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) - }) + }) - t.Run("Test UserApiService DeleteUser", func(t *testing.T) { + t.Run("Test UserAPIService DeleteUser", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - var username string + var username string - resp, httpRes, err := apiClient.UserApi.DeleteUser(context.Background(), username).Execute() + httpRes, err := apiClient.UserAPI.DeleteUser(context.Background(), username).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) - }) + }) - t.Run("Test UserApiService GetUserByName", func(t *testing.T) { + t.Run("Test UserAPIService GetUserByName", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - var username string + var username string - resp, httpRes, err := apiClient.UserApi.GetUserByName(context.Background(), username).Execute() + resp, httpRes, err := apiClient.UserAPI.GetUserByName(context.Background(), username).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) - }) + }) - t.Run("Test UserApiService LoginUser", func(t *testing.T) { + t.Run("Test UserAPIService LoginUser", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.UserApi.LoginUser(context.Background()).Execute() + resp, httpRes, err := apiClient.UserAPI.LoginUser(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) - }) + }) - t.Run("Test UserApiService LogoutUser", func(t *testing.T) { + t.Run("Test UserAPIService LogoutUser", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.UserApi.LogoutUser(context.Background()).Execute() + httpRes, err := apiClient.UserAPI.LogoutUser(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) - }) + }) - t.Run("Test UserApiService UpdateUser", func(t *testing.T) { + t.Run("Test UserAPIService UpdateUser", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - var username string + var username string - resp, httpRes, err := apiClient.UserApi.UpdateUser(context.Background(), username).Execute() + httpRes, err := apiClient.UserAPI.UpdateUser(context.Background(), username).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) - }) + }) } diff --git a/samples/client/petstore/java-micronaut-client/src/test/groovy/org/openapitools/api/AnotherFakeApiSpec.groovy b/samples/client/petstore/java-micronaut-client/src/test/groovy/org/openapitools/api/AnotherFakeApiSpec.groovy index a4a79ed3c06f..3c961e311619 100644 --- a/samples/client/petstore/java-micronaut-client/src/test/groovy/org/openapitools/api/AnotherFakeApiSpec.groovy +++ b/samples/client/petstore/java-micronaut-client/src/test/groovy/org/openapitools/api/AnotherFakeApiSpec.groovy @@ -1,14 +1,17 @@ package org.openapitools.api import org.openapitools.model.ModelClient +import java.util.UUID import io.micronaut.test.extensions.spock.annotation.MicronautTest import spock.lang.Specification import jakarta.inject.Inject -import reactor.core.publisher.Mono +import spock.lang.Ignore +import java.util.Arrays import java.util.ArrayList import java.util.HashMap import java.util.List import java.util.Map +import java.util.HashSet /** @@ -26,13 +29,16 @@ class AnotherFakeApiSpec extends Specification { * * To test special tags and operation ID starting with number */ - void "call123testSpecialTags() test"() { + @Ignore("Not Implemented") + void 'call123testSpecialTags() test'() { given: - ModelClient _body = null - // ModelClient response = api.call123testSpecialTags(_body).block() - // Mono asyncResponse = api.call123testSpecialTags(_body) + UUID uuidTest = null + ModelClient _body = new ModelClient() - expect: + when: + ModelClient body = api.call123testSpecialTags(uuidTest, _body).block() + + then: true // TODO: test validations } diff --git a/samples/client/petstore/java-micronaut-client/src/test/groovy/org/openapitools/api/FakeApiSpec.groovy b/samples/client/petstore/java-micronaut-client/src/test/groovy/org/openapitools/api/FakeApiSpec.groovy index b3b45c1e5559..911711d6fdd8 100644 --- a/samples/client/petstore/java-micronaut-client/src/test/groovy/org/openapitools/api/FakeApiSpec.groovy +++ b/samples/client/petstore/java-micronaut-client/src/test/groovy/org/openapitools/api/FakeApiSpec.groovy @@ -4,19 +4,21 @@ import java.math.BigDecimal import java.io.File import org.openapitools.model.FileSchemaTestClass import java.time.LocalDate -import java.time.LocalDateTime import org.openapitools.model.ModelClient +import java.time.OffsetDateTime import org.openapitools.model.OuterComposite import org.openapitools.model.User import org.openapitools.model.XmlItem import io.micronaut.test.extensions.spock.annotation.MicronautTest import spock.lang.Specification import jakarta.inject.Inject -import reactor.core.publisher.Mono +import spock.lang.Ignore +import java.util.Arrays import java.util.ArrayList import java.util.HashMap import java.util.List import java.util.Map +import java.util.HashSet /** @@ -34,13 +36,15 @@ class FakeApiSpec extends Specification { * * this route creates an XmlItem */ - void "createXmlItem() test"() { + @Ignore("Not Implemented") + void 'createXmlItem() test'() { given: - XmlItem xmlItem = null - // api.createXmlItem(xmlItem).block() - // Mono asyncResponse = api.createXmlItem(xmlItem) + XmlItem xmlItem = new XmlItem() - expect: + when: + api.createXmlItem(xmlItem).block() + + then: true // TODO: test validations } @@ -51,13 +55,15 @@ class FakeApiSpec extends Specification { * * Test serialization of outer boolean types */ - void "fakeOuterBooleanSerialize() test"() { + @Ignore("Not Implemented") + void 'fakeOuterBooleanSerialize() test'() { given: - Boolean _body = null - // Boolean response = api.fakeOuterBooleanSerialize(_body).block() - // Mono asyncResponse = api.fakeOuterBooleanSerialize(_body) + Boolean _body = false + + when: + Boolean body = api.fakeOuterBooleanSerialize(_body).block() - expect: + then: true // TODO: test validations } @@ -68,13 +74,15 @@ class FakeApiSpec extends Specification { * * Test serialization of object with outer number type */ - void "fakeOuterCompositeSerialize() test"() { + @Ignore("Not Implemented") + void 'fakeOuterCompositeSerialize() test'() { given: - OuterComposite _body = null - // OuterComposite response = api.fakeOuterCompositeSerialize(_body).block() - // Mono asyncResponse = api.fakeOuterCompositeSerialize(_body) + OuterComposite _body = new OuterComposite() - expect: + when: + OuterComposite body = api.fakeOuterCompositeSerialize(_body).block() + + then: true // TODO: test validations } @@ -85,13 +93,15 @@ class FakeApiSpec extends Specification { * * Test serialization of outer number types */ - void "fakeOuterNumberSerialize() test"() { + @Ignore("Not Implemented") + void 'fakeOuterNumberSerialize() test'() { given: - BigDecimal _body = null - // BigDecimal response = api.fakeOuterNumberSerialize(_body).block() - // Mono asyncResponse = api.fakeOuterNumberSerialize(_body) + BigDecimal _body = new BigDecimal(78) + + when: + BigDecimal body = api.fakeOuterNumberSerialize(_body).block() - expect: + then: true // TODO: test validations } @@ -102,13 +112,15 @@ class FakeApiSpec extends Specification { * * Test serialization of outer string types */ - void "fakeOuterStringSerialize() test"() { + @Ignore("Not Implemented") + void 'fakeOuterStringSerialize() test'() { given: - String _body = null - // String response = api.fakeOuterStringSerialize(_body).block() - // Mono asyncResponse = api.fakeOuterStringSerialize(_body) + String _body = 'example' - expect: + when: + String body = api.fakeOuterStringSerialize(_body).block() + + then: true // TODO: test validations } @@ -119,13 +131,15 @@ class FakeApiSpec extends Specification { * * For this test, the body for this request much reference a schema named `File`. */ - void "testBodyWithFileSchema() test"() { + @Ignore("Not Implemented") + void 'testBodyWithFileSchema() test'() { given: - FileSchemaTestClass _body = null - // api.testBodyWithFileSchema(_body).block() - // Mono asyncResponse = api.testBodyWithFileSchema(_body) + FileSchemaTestClass _body = new FileSchemaTestClass() + + when: + api.testBodyWithFileSchema(_body).block() - expect: + then: true // TODO: test validations } @@ -134,14 +148,16 @@ class FakeApiSpec extends Specification { /** * */ - void "testBodyWithQueryParams() test"() { + @Ignore("Not Implemented") + void 'testBodyWithQueryParams() test'() { given: - String query = null - User _body = null - // api.testBodyWithQueryParams(query, _body).block() - // Mono asyncResponse = api.testBodyWithQueryParams(query, _body) + String query = 'example' + User _body = new User() - expect: + when: + api.testBodyWithQueryParams(query, _body).block() + + then: true // TODO: test validations } @@ -152,13 +168,15 @@ class FakeApiSpec extends Specification { * * To test \"client\" model */ - void "testClientModel() test"() { + @Ignore("Not Implemented") + void 'testClientModel() test'() { given: - ModelClient _body = null - // ModelClient response = api.testClientModel(_body).block() - // Mono asyncResponse = api.testClientModel(_body) + ModelClient _body = new ModelClient() + + when: + ModelClient body = api.testClientModel(_body).block() - expect: + then: true // TODO: test validations } @@ -169,26 +187,28 @@ class FakeApiSpec extends Specification { * * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 */ - void "testEndpointParameters() test"() { + @Ignore("Not Implemented") + void 'testEndpointParameters() test'() { given: - BigDecimal number = null - Double _double = null - String patternWithoutDelimiter = null + BigDecimal number = new BigDecimal(78) + Double _double = 3.4D + String patternWithoutDelimiter = 'example' byte[] _byte = null - Integer integer = null - Integer int32 = null - Long int64 = null - Float _float = null - String string = null + Integer integer = 56 + Integer int32 = 56 + Long int64 = 56L + Float _float = 3.4F + String string = 'example' File binary = null - LocalDate date = null - LocalDateTime dateTime = null - String password = null - String paramCallback = null - // api.testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback).block() - // Mono asyncResponse = api.testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback) - - expect: + LocalDate date = LocalDate.of(2001, 2, 3) + OffsetDateTime dateTime = OffsetDateTime.of(2001, 2, 3, 12, 0, 0, 0, java.time.ZoneOffset.of("+02:00")) + String password = 'example' + String paramCallback = 'example' + + when: + api.testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback).block() + + then: true // TODO: test validations } @@ -199,20 +219,22 @@ class FakeApiSpec extends Specification { * * To test enum parameters */ - void "testEnumParameters() test"() { + @Ignore("Not Implemented") + void 'testEnumParameters() test'() { given: - List enumHeaderStringArray = null - String enumHeaderString = null - List enumQueryStringArray = null - String enumQueryString = null - Integer enumQueryInteger = null - Double enumQueryDouble = null - List enumFormStringArray = null - String enumFormString = null - // api.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString).block() - // Mono asyncResponse = api.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString) - - expect: + List enumHeaderStringArray = ['$'] + String enumHeaderString = '-efg' + List enumQueryStringArray = ['$'] + String enumQueryString = '-efg' + Integer enumQueryInteger = 56 + Double enumQueryDouble = 3.4D + List enumFormStringArray = ['$'] + String enumFormString = '-efg' + + when: + api.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString).block() + + then: true // TODO: test validations } @@ -223,18 +245,20 @@ class FakeApiSpec extends Specification { * * Fake endpoint to test group parameters (optional) */ - void "testGroupParameters() test"() { + @Ignore("Not Implemented") + void 'testGroupParameters() test'() { given: - Integer requiredStringGroup = null - Boolean requiredBooleanGroup = null - Long requiredInt64Group = null - Integer stringGroup = null - Boolean booleanGroup = null - Long int64Group = null - // api.testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group).block() - // Mono asyncResponse = api.testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group) - - expect: + Integer requiredStringGroup = 56 + Boolean requiredBooleanGroup = false + Long requiredInt64Group = 56L + Integer stringGroup = 56 + Boolean booleanGroup = false + Long int64Group = 56L + + when: + api.testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group).block() + + then: true // TODO: test validations } @@ -243,13 +267,15 @@ class FakeApiSpec extends Specification { /** * test inline additionalProperties */ - void "testInlineAdditionalProperties() test"() { + @Ignore("Not Implemented") + void 'testInlineAdditionalProperties() test'() { given: - Map param = null - // api.testInlineAdditionalProperties(param).block() - // Mono asyncResponse = api.testInlineAdditionalProperties(param) + Map param = [:] - expect: + when: + api.testInlineAdditionalProperties(param).block() + + then: true // TODO: test validations } @@ -258,14 +284,16 @@ class FakeApiSpec extends Specification { /** * test json serialization of form data */ - void "testJsonFormData() test"() { + @Ignore("Not Implemented") + void 'testJsonFormData() test'() { given: - String param = null - String param2 = null - // api.testJsonFormData(param, param2).block() - // Mono asyncResponse = api.testJsonFormData(param, param2) + String param = 'example' + String param2 = 'example' + + when: + api.testJsonFormData(param, param2).block() - expect: + then: true // TODO: test validations } @@ -276,17 +304,19 @@ class FakeApiSpec extends Specification { * * To test the collection format in query parameters */ - void "testQueryParameterCollectionFormat() test"() { + @Ignore("Not Implemented") + void 'testQueryParameterCollectionFormat() test'() { given: - List pipe = null - List ioutil = null - List http = null - List url = null - List context = null - // api.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context).block() - // Mono asyncResponse = api.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context) - - expect: + List pipe = ['example'] + List ioutil = ['example'] + List http = ['example'] + List url = ['example'] + List context = ['example'] + + when: + api.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context).block() + + then: true // TODO: test validations } diff --git a/samples/client/petstore/java-micronaut-client/src/test/groovy/org/openapitools/api/FakeClassnameTags123ApiSpec.groovy b/samples/client/petstore/java-micronaut-client/src/test/groovy/org/openapitools/api/FakeClassnameTags123ApiSpec.groovy index a1ed9f1bff70..2825aa46537a 100644 --- a/samples/client/petstore/java-micronaut-client/src/test/groovy/org/openapitools/api/FakeClassnameTags123ApiSpec.groovy +++ b/samples/client/petstore/java-micronaut-client/src/test/groovy/org/openapitools/api/FakeClassnameTags123ApiSpec.groovy @@ -4,11 +4,13 @@ import org.openapitools.model.ModelClient import io.micronaut.test.extensions.spock.annotation.MicronautTest import spock.lang.Specification import jakarta.inject.Inject -import reactor.core.publisher.Mono +import spock.lang.Ignore +import java.util.Arrays import java.util.ArrayList import java.util.HashMap import java.util.List import java.util.Map +import java.util.HashSet /** @@ -26,13 +28,15 @@ class FakeClassnameTags123ApiSpec extends Specification { * * To test class name in snake case */ - void "testClassname() test"() { + @Ignore("Not Implemented") + void 'testClassname() test'() { given: - ModelClient _body = null - // ModelClient response = api.testClassname(_body).block() - // Mono asyncResponse = api.testClassname(_body) + ModelClient _body = new ModelClient() - expect: + when: + ModelClient body = api.testClassname(_body).block() + + then: true // TODO: test validations } diff --git a/samples/client/petstore/java-micronaut-client/src/test/groovy/org/openapitools/api/PetApiSpec.groovy b/samples/client/petstore/java-micronaut-client/src/test/groovy/org/openapitools/api/PetApiSpec.groovy index 36e9a218c37d..9006cd4c3eef 100644 --- a/samples/client/petstore/java-micronaut-client/src/test/groovy/org/openapitools/api/PetApiSpec.groovy +++ b/samples/client/petstore/java-micronaut-client/src/test/groovy/org/openapitools/api/PetApiSpec.groovy @@ -1,16 +1,19 @@ package org.openapitools.api -import io.micronaut.http.HttpStatus -import io.micronaut.http.client.exceptions.HttpClientResponseException -import org.openapitools.model.Category -import org.openapitools.model.Tag - - +import java.io.File +import org.openapitools.model.ModelApiResponse import org.openapitools.model.Pet +import java.util.Set import io.micronaut.test.extensions.spock.annotation.MicronautTest -import spock.lang.Ignore import spock.lang.Specification import jakarta.inject.Inject +import spock.lang.Ignore +import java.util.Arrays +import java.util.ArrayList +import java.util.HashMap +import java.util.List +import java.util.Map +import java.util.HashSet /** @@ -22,240 +25,171 @@ class PetApiSpec extends Specification { @Inject PetApi api + /** - * Find pet by ID - * Returns a pet when ID < 10. + * Add a new pet to the store */ - void "getPetById() test"() { + @Ignore("Not Implemented") + void 'addPet() test'() { given: - Long petId = 5L - Pet response = api.getPetById(petId).block() + Pet _body = new Pet() - expect: - response != null - response.getId() == petId - response.getName() != null + when: + api.addPet(_body).block() + + then: + true + // TODO: test validations } + /** - * ID > 10 or nonintegers will simulate API error conditions + * Deletes a pet */ - void "getPetById() error test"() { + @Ignore("Not Implemented") + void 'deletePet() test'() { given: - Long petId = -11L + Long petId = 56L + String apiKey = 'example' when: - api.getPetById(petId).block() + api.deletePet(petId, apiKey).block() then: - var e = thrown(HttpClientResponseException.class) - e.getMessage().contains("Pet not found") - e.getStatus() == HttpStatus.NOT_FOUND - } - - void "add and get pet test"() { - given: - Pet pet = new Pet() - .id(1002L) - .name("Bob") - .status(Pet.StatusEnum.AVAILABLE) - .category(new Category().id(0L).name("string")) - .photoUrls(["string"].toSet()) - .tags([new Tag().id(0L).name("string")]) - - api.addPet(pet).block() - Pet received = api.getPetById(pet.getId()).block() - - expect: - received != null - pet == received + true + // TODO: test validations } + /** * Finds Pets by status + * * Multiple status values can be provided with comma separated strings */ - @Ignore("Issue reported in https://github.com/micronaut-projects/micronaut-jackson-xml/issues/175") - void "findPetsByStatus() test"() { + @Ignore("Not Implemented") + void 'findPetsByStatus() test'() { given: - Pet pet = new Pet() - .id(1005L) - .name("Tom") - .status(Pet.StatusEnum.AVAILABLE) - .category(new Category().id(105L).name("Cat category")) - .photoUrls([].toSet()) - .tags([new Tag().id(1L).name("meowing"), new Tag().id(2L).name("purring")]) - - Pet pet2 = new Pet().id(1007L).name("Bob").status(Pet.StatusEnum.AVAILABLE) - Pet pet3 = new Pet().id(1008L).name("Unnamed").status(Pet.StatusEnum.SOLD) - .category(new Category().id(6L).name("Young dog category")) - .tags(new ArrayList<>()).photoUrls([].toSet()) + List status = ['available'] when: - api.addPet(pet).block() - api.addPet(pet2).block() - api.addPet(pet3).block() - - List available = api.findPetsByStatus(["available"]).block() - List sold = api.findPetsByStatus(["sold"]).block() - // The description says that it needs to be comma separated, but the actual format is multi - List both = api.findPetsByStatus(["available,sold"]).block() + List body = api.findPetsByStatus(status).block() then: - // Available pets - available != null - and: "The first pet should be present and match the added pet" - Pet receivedPet = available.stream().filter(p -> p.getId() == pet.getId()).findFirst().orElse(null) - receivedPet != null - pet == receivedPet - and: "The second added pet should be present in the available pets" - available.stream().anyMatch(p -> p.getId() == pet2.getId() && p.getName() == pet2.getName()) - and: "The third pet was sold and should not be present in available pets" - available.stream().allMatch(p -> p.getId() != pet3.getId()) - - // Sold pets - and: "The third added pet should be present in the sold pets" - sold.stream().anyMatch(p -> p.getId() == pet3.getId() && p.getName() == pet3.getName()) - and: "The first pet was sold and should not be present in available pets" - sold.stream().allMatch(p -> p.getId() != pet.getId()) - and: "The second pet was sold and should not be present in available pets" - sold.stream().allMatch(p -> p.getId() != pet2.getId()) - - // Both pets - // The formatting of query needs to be correct for this one - and: "The third pet should be present in all the pets and match the added pet" - Pet receivedPet3 = both.stream().filter(p -> p.getId() == pet3.getId()).findFirst().orElse(null) - receivedPet3 != null - pet3 == receivedPet3 - and: "The second added pet should be present in the all pets" - both.stream().anyMatch(p -> p.getId() == pet2.getId() && p.getName() == pet2.getName()) - and: "The first added pet should be present in the all pets" - both.stream().anyMatch(p -> p.getId() == pet.getId() && p.getName() == pet.getName()) + true + // TODO: test validations } - void "delete non-existing pet error test"() { + + /** + * Finds Pets by tags + * + * Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. + */ + @Ignore("Not Implemented") + void 'findPetsByTags() test'() { + given: + Set tags = [].asSet() + when: - api.deletePet(-1L, "special-key").block() + Set body = api.findPetsByTags(tags).block() then: - var e = thrown(HttpClientResponseException.class) - e.getMessage() == "Not Found" + true + // TODO: test validations } - void "add and delete pet test"() { + + /** + * Find pet by ID + * + * Returns a single pet + */ + @Ignore("Not Implemented") + void 'getPetById() test'() { given: - List status = ["available"] - - List initialPets = api.findPetsByStatus(status).block() - - when: - Pet pet1 = new Pet().id(101L).name("Bob").status(Pet.StatusEnum.AVAILABLE) - Pet pet2 = new Pet().id(103L).name("Rat").status(Pet.StatusEnum.AVAILABLE) - api.addPet(pet1).block() - api.addPet(pet2).block() - - List pets = api.findPetsByStatus(status).block() - - then: "The 2 pets should have been added correctly" - pets != null - pets.size() - initialPets.size() == 2 - pets.stream().anyMatch(p -> p.getId() == pet1.getId() && p.getName() == pet1.getName()) - pets.stream().anyMatch(p -> p.getId() == pet2.getId() && p.getName() == pet2.getName()) + Long petId = 56L when: - api.deletePet(pet1.getId(), "special-key").block() - api.deletePet(pet2.getId(), "special-key").block() + Pet body = api.getPetById(petId).block() - List finalPets = api.findPetsByStatus(status).block() - - then: "The 2 pets should have been deleted" - finalPets != null - pets.size() - finalPets.size() == 2 - finalPets.stream().allMatch(p -> p.getId() != pet1.getId()) - finalPets.stream().allMatch(p -> p.getId() != pet2.getId()) + then: + true + // TODO: test validations } + /** * Update an existing pet */ - void "updatePet() test"() { + @Ignore("Not Implemented") + void 'updatePet() test'() { given: - Pet pet = new Pet().id(1L).name("Jazz") + Pet _body = new Pet() when: - api.updatePet(pet).block() + api.updatePet(_body).block() - then: "The pet should be available and match the updates" - Pet received = api.getPetById(1L).block() - pet.getId() == received.getId() - pet.getName() == received.getName() + then: + true + // TODO: test validations } - + /** * Updates a pet in the store with form data */ - void "updatePetWithForm() test"() { + @Ignore("Not Implemented") + void 'updatePetWithForm() test'() { given: - Long petId = 2L - String name = "Jack the Bull" - String status = "sold" + Long petId = 56L + String name = 'example' + String status = 'example' when: api.updatePetWithForm(petId, name, status).block() then: - Pet pet = api.getPetById(2L).block() - petId == pet.getId() - name == pet.getName() - status == pet.getStatus().toString() + true + // TODO: test validations } - + /** * uploads an image */ - void "upload file test"() throws IOException { + @Ignore("Not Implemented") + void 'uploadFile() test'() { given: - Long petId = 2L - String additionalMetadata = "a test file" - - File file = new File("hello.txt") - BufferedWriter writer = new BufferedWriter(new FileWriter(file)) - writer.write("Hello world!") - writer.close() + Long petId = 56L + String additionalMetadata = 'example' + File _file = null when: - api.uploadFile(petId, additionalMetadata, new File(file.getAbsolutePath())) + ModelApiResponse body = api.uploadFile(petId, additionalMetadata, _file).block() then: - notThrown() + true + // TODO: test validations } - @Ignore("Issue reported in https://github.com/micronaut-projects/micronaut-jackson-xml/issues/175") - void "findPetByTags() test"() { + + /** + * uploads an image (required) + */ + @Ignore("Not Implemented") + void 'uploadFileWithRequiredFile() test'() { given: - Tag tag = new Tag().name("cute").id(2L) - - Pet pet1 = new Pet().id(2000L).name("Conor").category(new Category().name("cats").id(10L)) - .photoUrls([].toSet()).tags([tag]) - Pet pet2 = new Pet().id(2001L).name("Mike").category(new Category().name("dogs").id(10L)) - .photoUrls([].toSet()).tags([tag]) + Long petId = 56L + File requiredFile = null + String additionalMetadata = 'example' when: - api.addPet(pet1).block() - api.addPet(pet2).block() + ModelApiResponse body = api.uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata).block() - then: "The 2 pets should be successfully found with the given tag" - Set pets = api.findPetsByTags([tag.getName()].toSet()).block() - - pets.stream().allMatch(p -> p.getTags().contains(tag)) - - Pet receivedPet1 = pets.stream().filter(p -> p.getId() == pet1.getId()).findFirst().orElse(null) - Pet receivedPet2 = pets.stream().filter(p -> p.getId() == pet2.getId()).findFirst().orElse(null) - receivedPet1 != null - receivedPet2 != null - pet1 == receivedPet1 - pet2 == receivedPet2 + then: + true + // TODO: test validations } + + } diff --git a/samples/client/petstore/java-micronaut-client/src/test/groovy/org/openapitools/api/StoreApiSpec.groovy b/samples/client/petstore/java-micronaut-client/src/test/groovy/org/openapitools/api/StoreApiSpec.groovy index cdeb7c148541..1826c791507c 100644 --- a/samples/client/petstore/java-micronaut-client/src/test/groovy/org/openapitools/api/StoreApiSpec.groovy +++ b/samples/client/petstore/java-micronaut-client/src/test/groovy/org/openapitools/api/StoreApiSpec.groovy @@ -1,79 +1,99 @@ package org.openapitools.api -import io.micronaut.http.client.exceptions.HttpClientResponseException import org.openapitools.model.Order import io.micronaut.test.extensions.spock.annotation.MicronautTest -import spock.lang.Ignore import spock.lang.Specification import jakarta.inject.Inject -import java.time.LocalDateTime +import spock.lang.Ignore +import java.util.Arrays +import java.util.ArrayList +import java.util.HashMap +import java.util.List +import java.util.Map +import java.util.HashSet /** * API tests for StoreApi */ @MicronautTest -public class StoreApiSpec extends Specification { +class StoreApiSpec extends Specification { @Inject StoreApi api + /** - * Place an order for a pet + * Delete purchase order by ID + * + * For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors */ - @Ignore("The test fails because the produces is specified as */* instead of a specific value") - void "placeOrder() test"() { + @Ignore("Not Implemented") + void 'deleteOrder() test'() { given: - Order order = new Order().id(1L).shipDate(LocalDateTime.MIN).complete(true) - .petId(5L).quantity(1).status(Order.StatusEnum.DELIVERED) + String orderId = 'example' when: - Order response = api.placeOrder(order).block() + api.deleteOrder(orderId).block() then: - order == response + true + // TODO: test validations } + /** * Returns pet inventories by status + * * Returns a map of status codes to quantities */ - void "getInventory() test"() { + @Ignore("Not Implemented") + void 'getInventory() test'() { + given: + when: - Map response = api.getInventory().block() + Map body = api.getInventory().block() then: - response != null + true + // TODO: test validations } + /** * Find purchase order by ID + * * For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions */ - void "getOrderById() test"() { + @Ignore("Not Implemented") + void 'getOrderById() test'() { + given: + Long orderId = 56L + when: - Long orderId = 4L - Order response = api.getOrderById(orderId).block() + Order body = api.getOrderById(orderId).block() then: - response != null - orderId == response.getId() + true + // TODO: test validations } - + /** - * Delete purchase order by ID - * - * For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors + * Place an order for a pet */ - void "deleteOrder() not existing order error test"() { + @Ignore("Not Implemented") + void 'placeOrder() test'() { given: - String orderId = "1001" + Order _body = new Order() when: - api.deleteOrder(orderId).block() + Order body = api.placeOrder(_body).block() then: - thrown(HttpClientResponseException) + true + // TODO: test validations } + + } diff --git a/samples/client/petstore/java-micronaut-client/src/test/groovy/org/openapitools/api/UserApiSpec.groovy b/samples/client/petstore/java-micronaut-client/src/test/groovy/org/openapitools/api/UserApiSpec.groovy index 81e8400577e2..428bdc815395 100644 --- a/samples/client/petstore/java-micronaut-client/src/test/groovy/org/openapitools/api/UserApiSpec.groovy +++ b/samples/client/petstore/java-micronaut-client/src/test/groovy/org/openapitools/api/UserApiSpec.groovy @@ -1,14 +1,17 @@ package org.openapitools.api +import java.time.OffsetDateTime import org.openapitools.model.User import io.micronaut.test.extensions.spock.annotation.MicronautTest import spock.lang.Specification import jakarta.inject.Inject -import reactor.core.publisher.Mono +import spock.lang.Ignore +import java.util.Arrays import java.util.ArrayList import java.util.HashMap import java.util.List import java.util.Map +import java.util.HashSet /** @@ -26,13 +29,15 @@ class UserApiSpec extends Specification { * * This can only be done by the logged in user. */ - void "createUser() test"() { + @Ignore("Not Implemented") + void 'createUser() test'() { given: - User _body = null - // api.createUser(_body).block() - // Mono asyncResponse = api.createUser(_body) + User _body = new User() - expect: + when: + api.createUser(_body).block() + + then: true // TODO: test validations } @@ -41,13 +46,15 @@ class UserApiSpec extends Specification { /** * Creates list of users with given input array */ - void "createUsersWithArrayInput() test"() { + @Ignore("Not Implemented") + void 'createUsersWithArrayInput() test'() { given: - List _body = null - // api.createUsersWithArrayInput(_body).block() - // Mono asyncResponse = api.createUsersWithArrayInput(_body) + List<@Valid User> _body = [] + + when: + api.createUsersWithArrayInput(_body).block() - expect: + then: true // TODO: test validations } @@ -56,13 +63,15 @@ class UserApiSpec extends Specification { /** * Creates list of users with given input array */ - void "createUsersWithListInput() test"() { + @Ignore("Not Implemented") + void 'createUsersWithListInput() test'() { given: - List _body = null - // api.createUsersWithListInput(_body).block() - // Mono asyncResponse = api.createUsersWithListInput(_body) + List<@Valid User> _body = [] - expect: + when: + api.createUsersWithListInput(_body).block() + + then: true // TODO: test validations } @@ -73,13 +82,15 @@ class UserApiSpec extends Specification { * * This can only be done by the logged in user. */ - void "deleteUser() test"() { + @Ignore("Not Implemented") + void 'deleteUser() test'() { given: - String username = null - // api.deleteUser(username).block() - // Mono asyncResponse = api.deleteUser(username) + String username = 'example' + + when: + api.deleteUser(username).block() - expect: + then: true // TODO: test validations } @@ -88,13 +99,15 @@ class UserApiSpec extends Specification { /** * Get user by user name */ - void "getUserByName() test"() { + @Ignore("Not Implemented") + void 'getUserByName() test'() { given: - String username = null - // User response = api.getUserByName(username).block() - // Mono asyncResponse = api.getUserByName(username) + String username = 'example' - expect: + when: + User body = api.getUserByName(username).block() + + then: true // TODO: test validations } @@ -103,14 +116,16 @@ class UserApiSpec extends Specification { /** * Logs user into the system */ - void "loginUser() test"() { + @Ignore("Not Implemented") + void 'loginUser() test'() { given: - String username = null - String password = null - // String response = api.loginUser(username, password).block() - // Mono asyncResponse = api.loginUser(username, password) + String username = 'example' + String password = 'example' + + when: + String body = api.loginUser(username, password).block() - expect: + then: true // TODO: test validations } @@ -119,12 +134,14 @@ class UserApiSpec extends Specification { /** * Logs out current logged in user session */ - void "logoutUser() test"() { + @Ignore("Not Implemented") + void 'logoutUser() test'() { given: - // api.logoutUser().block() - // Mono asyncResponse = api.logoutUser() - expect: + when: + api.logoutUser().block() + + then: true // TODO: test validations } @@ -135,14 +152,16 @@ class UserApiSpec extends Specification { * * This can only be done by the logged in user. */ - void "updateUser() test"() { + @Ignore("Not Implemented") + void 'updateUser() test'() { given: - String username = null - User _body = null - // api.updateUser(username, _body).block() - // Mono asyncResponse = api.updateUser(username, _body) + String username = 'example' + User _body = new User() + + when: + api.updateUser(username, _body).block() - expect: + then: true // TODO: test validations } diff --git a/samples/client/petstore/java-micronaut-client/src/test/groovy/org/openapitools/model/ArrayOfArrayOfNumberOnlySpec.groovy b/samples/client/petstore/java-micronaut-client/src/test/groovy/org/openapitools/model/ArrayOfArrayOfNumberOnlySpec.groovy index e8bddaf16f1e..ce887b71992d 100644 --- a/samples/client/petstore/java-micronaut-client/src/test/groovy/org/openapitools/model/ArrayOfArrayOfNumberOnlySpec.groovy +++ b/samples/client/petstore/java-micronaut-client/src/test/groovy/org/openapitools/model/ArrayOfArrayOfNumberOnlySpec.groovy @@ -2,6 +2,7 @@ package org.openapitools.model import java.math.BigDecimal import java.util.ArrayList +import java.util.Arrays import java.util.List import io.micronaut.test.extensions.spock.annotation.MicronautTest import spock.lang.Specification diff --git a/samples/client/petstore/java-micronaut-client/src/test/groovy/org/openapitools/model/ArrayOfNumberOnlySpec.groovy b/samples/client/petstore/java-micronaut-client/src/test/groovy/org/openapitools/model/ArrayOfNumberOnlySpec.groovy index eedf098a6933..ee35be8b5944 100644 --- a/samples/client/petstore/java-micronaut-client/src/test/groovy/org/openapitools/model/ArrayOfNumberOnlySpec.groovy +++ b/samples/client/petstore/java-micronaut-client/src/test/groovy/org/openapitools/model/ArrayOfNumberOnlySpec.groovy @@ -2,6 +2,7 @@ package org.openapitools.model import java.math.BigDecimal import java.util.ArrayList +import java.util.Arrays import java.util.List import io.micronaut.test.extensions.spock.annotation.MicronautTest import spock.lang.Specification diff --git a/samples/client/petstore/java-micronaut-client/src/test/groovy/org/openapitools/model/ArrayTestSpec.groovy b/samples/client/petstore/java-micronaut-client/src/test/groovy/org/openapitools/model/ArrayTestSpec.groovy index 0ef861b80480..bb779bc75bd2 100644 --- a/samples/client/petstore/java-micronaut-client/src/test/groovy/org/openapitools/model/ArrayTestSpec.groovy +++ b/samples/client/petstore/java-micronaut-client/src/test/groovy/org/openapitools/model/ArrayTestSpec.groovy @@ -1,6 +1,7 @@ package org.openapitools.model import java.util.ArrayList +import java.util.Arrays import java.util.List import org.openapitools.model.ReadOnlyFirst import io.micronaut.test.extensions.spock.annotation.MicronautTest diff --git a/samples/client/petstore/java-micronaut-client/src/test/groovy/org/openapitools/model/EnumArraysSpec.groovy b/samples/client/petstore/java-micronaut-client/src/test/groovy/org/openapitools/model/EnumArraysSpec.groovy index 63d236094b24..e6d372036c02 100644 --- a/samples/client/petstore/java-micronaut-client/src/test/groovy/org/openapitools/model/EnumArraysSpec.groovy +++ b/samples/client/petstore/java-micronaut-client/src/test/groovy/org/openapitools/model/EnumArraysSpec.groovy @@ -1,6 +1,7 @@ package org.openapitools.model import java.util.ArrayList +import java.util.Arrays import java.util.List import io.micronaut.test.extensions.spock.annotation.MicronautTest import spock.lang.Specification diff --git a/samples/client/petstore/java-micronaut-client/src/test/groovy/org/openapitools/model/FileSchemaTestClassSpec.groovy b/samples/client/petstore/java-micronaut-client/src/test/groovy/org/openapitools/model/FileSchemaTestClassSpec.groovy index 61edd2ec705a..1613af734b4f 100644 --- a/samples/client/petstore/java-micronaut-client/src/test/groovy/org/openapitools/model/FileSchemaTestClassSpec.groovy +++ b/samples/client/petstore/java-micronaut-client/src/test/groovy/org/openapitools/model/FileSchemaTestClassSpec.groovy @@ -1,6 +1,7 @@ package org.openapitools.model import java.util.ArrayList +import java.util.Arrays import java.util.List import org.openapitools.model.ModelFile import io.micronaut.test.extensions.spock.annotation.MicronautTest diff --git a/samples/client/petstore/java-micronaut-client/src/test/groovy/org/openapitools/model/MapTestSpec.groovy b/samples/client/petstore/java-micronaut-client/src/test/groovy/org/openapitools/model/MapTestSpec.groovy index 3b3a8bf99a99..5eba7615bb59 100644 --- a/samples/client/petstore/java-micronaut-client/src/test/groovy/org/openapitools/model/MapTestSpec.groovy +++ b/samples/client/petstore/java-micronaut-client/src/test/groovy/org/openapitools/model/MapTestSpec.groovy @@ -1,7 +1,6 @@ package org.openapitools.model import java.util.HashMap -import java.util.List import java.util.Map import io.micronaut.test.extensions.spock.annotation.MicronautTest import spock.lang.Specification diff --git a/samples/client/petstore/java-micronaut-client/src/test/groovy/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClassSpec.groovy b/samples/client/petstore/java-micronaut-client/src/test/groovy/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClassSpec.groovy index e168e7761aa8..0d8da1b16998 100644 --- a/samples/client/petstore/java-micronaut-client/src/test/groovy/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClassSpec.groovy +++ b/samples/client/petstore/java-micronaut-client/src/test/groovy/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClassSpec.groovy @@ -2,7 +2,6 @@ package org.openapitools.model import java.time.OffsetDateTime import java.util.HashMap -import java.util.List import java.util.Map import java.util.UUID import org.openapitools.model.Animal diff --git a/samples/client/petstore/java-micronaut-client/src/test/groovy/org/openapitools/model/PetSpec.groovy b/samples/client/petstore/java-micronaut-client/src/test/groovy/org/openapitools/model/PetSpec.groovy index fdcc482b95b1..60b6a8cee25a 100644 --- a/samples/client/petstore/java-micronaut-client/src/test/groovy/org/openapitools/model/PetSpec.groovy +++ b/samples/client/petstore/java-micronaut-client/src/test/groovy/org/openapitools/model/PetSpec.groovy @@ -2,6 +2,7 @@ package org.openapitools.model import com.fasterxml.jackson.databind.annotation.JsonDeserialize import java.util.ArrayList +import java.util.Arrays import java.util.LinkedHashSet import java.util.List import java.util.Set diff --git a/samples/client/petstore/java-micronaut-client/src/test/groovy/org/openapitools/model/TypeHolderDefaultSpec.groovy b/samples/client/petstore/java-micronaut-client/src/test/groovy/org/openapitools/model/TypeHolderDefaultSpec.groovy index 5bd42fd8305d..92e9abf304ba 100644 --- a/samples/client/petstore/java-micronaut-client/src/test/groovy/org/openapitools/model/TypeHolderDefaultSpec.groovy +++ b/samples/client/petstore/java-micronaut-client/src/test/groovy/org/openapitools/model/TypeHolderDefaultSpec.groovy @@ -2,6 +2,7 @@ package org.openapitools.model import java.math.BigDecimal import java.util.ArrayList +import java.util.Arrays import java.util.List import io.micronaut.test.extensions.spock.annotation.MicronautTest import spock.lang.Specification diff --git a/samples/client/petstore/java-micronaut-client/src/test/groovy/org/openapitools/model/TypeHolderExampleSpec.groovy b/samples/client/petstore/java-micronaut-client/src/test/groovy/org/openapitools/model/TypeHolderExampleSpec.groovy index efbe456a02d8..2126b8d59dc4 100644 --- a/samples/client/petstore/java-micronaut-client/src/test/groovy/org/openapitools/model/TypeHolderExampleSpec.groovy +++ b/samples/client/petstore/java-micronaut-client/src/test/groovy/org/openapitools/model/TypeHolderExampleSpec.groovy @@ -2,6 +2,7 @@ package org.openapitools.model import java.math.BigDecimal import java.util.ArrayList +import java.util.Arrays import java.util.List import io.micronaut.test.extensions.spock.annotation.MicronautTest import spock.lang.Specification diff --git a/samples/client/petstore/java-micronaut-client/src/test/groovy/org/openapitools/model/XmlItemSpec.groovy b/samples/client/petstore/java-micronaut-client/src/test/groovy/org/openapitools/model/XmlItemSpec.groovy index 47d4aace76fc..6d3617f04ec1 100644 --- a/samples/client/petstore/java-micronaut-client/src/test/groovy/org/openapitools/model/XmlItemSpec.groovy +++ b/samples/client/petstore/java-micronaut-client/src/test/groovy/org/openapitools/model/XmlItemSpec.groovy @@ -2,6 +2,7 @@ package org.openapitools.model import java.math.BigDecimal import java.util.ArrayList +import java.util.Arrays import java.util.List import io.micronaut.test.extensions.spock.annotation.MicronautTest import spock.lang.Specification diff --git a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java index fa2ead534850..0cdff5754f80 100644 --- a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java +++ b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java @@ -15,10 +15,12 @@ import org.openapitools.client.ApiException; import org.openapitools.client.model.Client; -import org.junit.jupiter.api.Test; -import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; +import java.time.LocalDate; +import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.HashMap; import java.util.List; @@ -42,8 +44,8 @@ public class AnotherFakeApiTest { */ @Test public void call123testSpecialTagsTest() throws ApiException { - Client body = null; - Client response = api.call123testSpecialTags(body); + Client client = null; + Client response = api.call123testSpecialTags(client); // TODO: test validations } diff --git a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/api/DefaultApiTest.java b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/api/DefaultApiTest.java index a057e1c6ebb7..d22511f3029f 100644 --- a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/api/DefaultApiTest.java +++ b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/api/DefaultApiTest.java @@ -15,9 +15,9 @@ import org.openapitools.client.ApiException; import org.openapitools.client.model.FooGetDefaultResponse; -import org.junit.jupiter.api.Test; -import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; import java.time.LocalDate; import java.time.OffsetDateTime; diff --git a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/api/FakeApiTest.java b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/api/FakeApiTest.java index dbc0cceb6ebf..d334084203c5 100644 --- a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/api/FakeApiTest.java +++ b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/api/FakeApiTest.java @@ -15,8 +15,10 @@ import org.openapitools.client.ApiException; import java.math.BigDecimal; +import org.openapitools.client.model.ChildWithNullable; import org.openapitools.client.model.Client; import org.openapitools.client.model.EnumClass; +import org.openapitools.client.model.FakeBigDecimalMap200Response; import java.io.File; import org.openapitools.client.model.FileSchemaTestClass; import org.openapitools.client.model.HealthCheckResult; @@ -25,10 +27,11 @@ import org.openapitools.client.model.OuterComposite; import org.openapitools.client.model.OuterObjectWithEnumProperty; import org.openapitools.client.model.Pet; +import org.openapitools.client.model.TestInlineFreeformAdditionalPropertiesRequest; import org.openapitools.client.model.User; -import org.junit.jupiter.api.Test; -import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; import java.time.LocalDate; import java.time.OffsetDateTime; @@ -45,6 +48,18 @@ public class FakeApiTest { private final FakeApi api = new FakeApi(); + /** + * for Java apache and Java native, test toUrlQueryString for maps with BegDecimal keys + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void fakeBigDecimalMapTest() throws ApiException { + FakeBigDecimalMap200Response response = api.fakeBigDecimalMap(); + + // TODO: test validations + } /** * Health check endpoint * @@ -137,6 +152,21 @@ public void fakePropertyEnumIntegerSerializeTest() throws ApiException { // TODO: test validations } + /** + * test referenced additionalProperties + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void testAdditionalPropertiesReferenceTest() throws ApiException { + Map requestBody = null; + api.testAdditionalPropertiesReference(requestBody); + + // TODO: test validations + } /** * For this test, the body has to be a binary file. * @@ -276,6 +306,21 @@ public void testInlineAdditionalPropertiesTest() throws ApiException { // TODO: test validations } + /** + * test inline free-form additionalProperties + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void testInlineFreeformAdditionalPropertiesTest() throws ApiException { + TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest = null; + api.testInlineFreeformAdditionalProperties(testInlineFreeformAdditionalPropertiesRequest); + + // TODO: test validations + } /** * test json serialization of form data * @@ -292,6 +337,21 @@ public void testJsonFormDataTest() throws ApiException { // TODO: test validations } + /** + * test nullable parent property + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void testNullableTest() throws ApiException { + ChildWithNullable childWithNullable = null; + api.testNullable(childWithNullable); + + // TODO: test validations + } /** * To test the collection format in query parameters * @@ -309,6 +369,21 @@ public void testQueryParameterCollectionFormatTest() throws ApiException { Map language = null; api.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, allowEmpty, language); + // TODO: test validations + } + /** + * test referenced string map + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void testStringMapReferenceTest() throws ApiException { + Map requestBody = null; + api.testStringMapReference(requestBody); + // TODO: test validations } } diff --git a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/api/FakeClassnameTags123ApiTest.java b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/api/FakeClassnameTags123ApiTest.java index 125162d60cad..cd20d79e6a16 100644 --- a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/api/FakeClassnameTags123ApiTest.java +++ b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/api/FakeClassnameTags123ApiTest.java @@ -15,10 +15,12 @@ import org.openapitools.client.ApiException; import org.openapitools.client.model.Client; -import org.junit.jupiter.api.Test; -import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; +import java.time.LocalDate; +import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.HashMap; import java.util.List; @@ -42,8 +44,8 @@ public class FakeClassnameTags123ApiTest { */ @Test public void testClassnameTest() throws ApiException { - Client body = null; - Client response = api.testClassname(body); + Client client = null; + Client response = api.testClassname(client); // TODO: test validations } diff --git a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/api/PetApiTest.java b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/api/PetApiTest.java index 50c24acbfad1..cd15a7890913 100644 --- a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/api/PetApiTest.java +++ b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/api/PetApiTest.java @@ -18,10 +18,12 @@ import org.openapitools.client.model.ModelApiResponse; import org.openapitools.client.model.Pet; import java.util.Set; -import org.junit.jupiter.api.Test; -import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; +import java.time.LocalDate; +import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.HashMap; import java.util.List; @@ -38,19 +40,23 @@ public class PetApiTest { /** * Add a new pet to the store * + * + * * @throws ApiException * if the Api call fails */ @Test public void addPetTest() throws ApiException { - Pet body = null; - api.addPet(body); + Pet pet = null; + api.addPet(pet); // TODO: test validations } /** * Deletes a pet * + * + * * @throws ApiException * if the Api call fails */ @@ -110,19 +116,23 @@ public void getPetByIdTest() throws ApiException { /** * Update an existing pet * + * + * * @throws ApiException * if the Api call fails */ @Test public void updatePetTest() throws ApiException { - Pet body = null; - api.updatePet(body); + Pet pet = null; + api.updatePet(pet); // TODO: test validations } /** * Updates a pet in the store with form data * + * + * * @throws ApiException * if the Api call fails */ @@ -138,6 +148,8 @@ public void updatePetWithFormTest() throws ApiException { /** * uploads an image * + * + * * @throws ApiException * if the Api call fails */ @@ -145,14 +157,16 @@ public void updatePetWithFormTest() throws ApiException { public void uploadFileTest() throws ApiException { Long petId = null; String additionalMetadata = null; - File file = null; - ModelApiResponse response = api.uploadFile(petId, additionalMetadata, file); + File _file = null; + ModelApiResponse response = api.uploadFile(petId, additionalMetadata, _file); // TODO: test validations } /** * uploads an image (required) * + * + * * @throws ApiException * if the Api call fails */ diff --git a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/api/StoreApiTest.java b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/api/StoreApiTest.java index 5abd4f0bc887..f692876cd8fd 100644 --- a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/api/StoreApiTest.java +++ b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/api/StoreApiTest.java @@ -15,10 +15,12 @@ import org.openapitools.client.ApiException; import org.openapitools.client.model.Order; -import org.junit.jupiter.api.Test; -import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; +import java.time.LocalDate; +import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.HashMap; import java.util.List; @@ -79,13 +81,15 @@ public void getOrderByIdTest() throws ApiException { /** * Place an order for a pet * + * + * * @throws ApiException * if the Api call fails */ @Test public void placeOrderTest() throws ApiException { - Order body = null; - Order response = api.placeOrder(body); + Order order = null; + Order response = api.placeOrder(order); // TODO: test validations } diff --git a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/api/UserApiTest.java b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/api/UserApiTest.java index 325d33fcc691..fe1ba4496411 100644 --- a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/api/UserApiTest.java +++ b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/api/UserApiTest.java @@ -14,11 +14,14 @@ package org.openapitools.client.api; import org.openapitools.client.ApiException; +import java.time.OffsetDateTime; import org.openapitools.client.model.User; -import org.junit.jupiter.api.Test; -import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; +import java.time.LocalDate; +import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.HashMap; import java.util.List; @@ -42,34 +45,38 @@ public class UserApiTest { */ @Test public void createUserTest() throws ApiException { - User body = null; - api.createUser(body); + User user = null; + api.createUser(user); // TODO: test validations } /** * Creates list of users with given input array * + * + * * @throws ApiException * if the Api call fails */ @Test public void createUsersWithArrayInputTest() throws ApiException { - List body = null; - api.createUsersWithArrayInput(body); + List user = null; + api.createUsersWithArrayInput(user); // TODO: test validations } /** * Creates list of users with given input array * + * + * * @throws ApiException * if the Api call fails */ @Test public void createUsersWithListInputTest() throws ApiException { - List body = null; - api.createUsersWithListInput(body); + List user = null; + api.createUsersWithListInput(user); // TODO: test validations } @@ -91,6 +98,8 @@ public void deleteUserTest() throws ApiException { /** * Get user by user name * + * + * * @throws ApiException * if the Api call fails */ @@ -104,6 +113,8 @@ public void getUserByNameTest() throws ApiException { /** * Logs user into the system * + * + * * @throws ApiException * if the Api call fails */ @@ -118,6 +129,8 @@ public void loginUserTest() throws ApiException { /** * Logs out current logged in user session * + * + * * @throws ApiException * if the Api call fails */ @@ -138,8 +151,8 @@ public void logoutUserTest() throws ApiException { @Test public void updateUserTest() throws ApiException { String username = null; - User body = null; - api.updateUser(username, body); + User user = null; + api.updateUser(username, user); // TODO: test validations } diff --git a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/AdditionalPropertiesClassTest.java b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/AdditionalPropertiesClassTest.java index 11d4d7313ac2..6bdecfe07c92 100644 --- a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/AdditionalPropertiesClassTest.java +++ b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/AdditionalPropertiesClassTest.java @@ -18,115 +18,40 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import java.math.BigDecimal; import java.util.HashMap; -import java.util.List; import java.util.Map; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for AdditionalPropertiesClass */ -public class AdditionalPropertiesClassTest { +class AdditionalPropertiesClassTest { private final AdditionalPropertiesClass model = new AdditionalPropertiesClass(); /** * Model tests for AdditionalPropertiesClass */ @Test - public void testAdditionalPropertiesClass() { + void testAdditionalPropertiesClass() { // TODO: test AdditionalPropertiesClass } /** - * Test the property 'mapString' - */ - @Test - public void mapStringTest() { - // TODO: test mapString - } - - /** - * Test the property 'mapNumber' - */ - @Test - public void mapNumberTest() { - // TODO: test mapNumber - } - - /** - * Test the property 'mapInteger' - */ - @Test - public void mapIntegerTest() { - // TODO: test mapInteger - } - - /** - * Test the property 'mapBoolean' - */ - @Test - public void mapBooleanTest() { - // TODO: test mapBoolean - } - - /** - * Test the property 'mapArrayInteger' - */ - @Test - public void mapArrayIntegerTest() { - // TODO: test mapArrayInteger - } - - /** - * Test the property 'mapArrayAnytype' - */ - @Test - public void mapArrayAnytypeTest() { - // TODO: test mapArrayAnytype - } - - /** - * Test the property 'mapMapString' - */ - @Test - public void mapMapStringTest() { - // TODO: test mapMapString - } - - /** - * Test the property 'mapMapAnytype' - */ - @Test - public void mapMapAnytypeTest() { - // TODO: test mapMapAnytype - } - - /** - * Test the property 'anytype1' - */ - @Test - public void anytype1Test() { - // TODO: test anytype1 - } - - /** - * Test the property 'anytype2' + * Test the property 'mapProperty' */ @Test - public void anytype2Test() { - // TODO: test anytype2 + void mapPropertyTest() { + // TODO: test mapProperty } /** - * Test the property 'anytype3' + * Test the property 'mapOfMapProperty' */ @Test - public void anytype3Test() { - // TODO: test anytype3 + void mapOfMapPropertyTest() { + // TODO: test mapOfMapProperty } } diff --git a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/AllOfWithSingleRefTest.java b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/AllOfWithSingleRefTest.java index 8c231167d612..f4b06d323d63 100644 --- a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/AllOfWithSingleRefTest.java +++ b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/AllOfWithSingleRefTest.java @@ -23,18 +23,17 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for AllOfWithSingleRef */ -public class AllOfWithSingleRefTest { +class AllOfWithSingleRefTest { private final AllOfWithSingleRef model = new AllOfWithSingleRef(); /** * Model tests for AllOfWithSingleRef */ @Test - public void testAllOfWithSingleRef() { + void testAllOfWithSingleRef() { // TODO: test AllOfWithSingleRef } @@ -42,7 +41,7 @@ public void testAllOfWithSingleRef() { * Test the property 'username' */ @Test - public void usernameTest() { + void usernameTest() { // TODO: test username } @@ -50,7 +49,7 @@ public void usernameTest() { * Test the property 'singleRefType' */ @Test - public void singleRefTypeTest() { + void singleRefTypeTest() { // TODO: test singleRefType } diff --git a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/AnimalTest.java b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/AnimalTest.java index 2b04312bbebe..24776d3cb515 100644 --- a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/AnimalTest.java +++ b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/AnimalTest.java @@ -21,25 +21,21 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import org.openapitools.client.model.BigCat; -import org.openapitools.client.model.Cat; -import org.openapitools.client.model.Dog; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Animal */ -public class AnimalTest { +class AnimalTest { private final Animal model = new Animal(); /** * Model tests for Animal */ @Test - public void testAnimal() { + void testAnimal() { // TODO: test Animal } @@ -47,7 +43,7 @@ public void testAnimal() { * Test the property 'className' */ @Test - public void classNameTest() { + void classNameTest() { // TODO: test className } @@ -55,7 +51,7 @@ public void classNameTest() { * Test the property 'color' */ @Test - public void colorTest() { + void colorTest() { // TODO: test color } diff --git a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnlyTest.java b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnlyTest.java index 7d6ca2902ab5..6bbe877044db 100644 --- a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnlyTest.java +++ b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnlyTest.java @@ -20,23 +20,23 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.math.BigDecimal; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for ArrayOfArrayOfNumberOnly */ -public class ArrayOfArrayOfNumberOnlyTest { +class ArrayOfArrayOfNumberOnlyTest { private final ArrayOfArrayOfNumberOnly model = new ArrayOfArrayOfNumberOnly(); /** * Model tests for ArrayOfArrayOfNumberOnly */ @Test - public void testArrayOfArrayOfNumberOnly() { + void testArrayOfArrayOfNumberOnly() { // TODO: test ArrayOfArrayOfNumberOnly } @@ -44,7 +44,7 @@ public void testArrayOfArrayOfNumberOnly() { * Test the property 'arrayArrayNumber' */ @Test - public void arrayArrayNumberTest() { + void arrayArrayNumberTest() { // TODO: test arrayArrayNumber } diff --git a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/ArrayOfNumberOnlyTest.java b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/ArrayOfNumberOnlyTest.java index 1db82cbdea33..eaf908bb1ab7 100644 --- a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/ArrayOfNumberOnlyTest.java +++ b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/ArrayOfNumberOnlyTest.java @@ -20,23 +20,23 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.math.BigDecimal; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for ArrayOfNumberOnly */ -public class ArrayOfNumberOnlyTest { +class ArrayOfNumberOnlyTest { private final ArrayOfNumberOnly model = new ArrayOfNumberOnly(); /** * Model tests for ArrayOfNumberOnly */ @Test - public void testArrayOfNumberOnly() { + void testArrayOfNumberOnly() { // TODO: test ArrayOfNumberOnly } @@ -44,7 +44,7 @@ public void testArrayOfNumberOnly() { * Test the property 'arrayNumber' */ @Test - public void arrayNumberTest() { + void arrayNumberTest() { // TODO: test arrayNumber } diff --git a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/ArrayTestTest.java b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/ArrayTestTest.java index 4a3a3cc839af..99c6bcf53601 100644 --- a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/ArrayTestTest.java +++ b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/ArrayTestTest.java @@ -19,24 +19,24 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.ReadOnlyFirst; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for ArrayTest */ -public class ArrayTestTest { +class ArrayTestTest { private final ArrayTest model = new ArrayTest(); /** * Model tests for ArrayTest */ @Test - public void testArrayTest() { + void testArrayTest() { // TODO: test ArrayTest } @@ -44,7 +44,7 @@ public void testArrayTest() { * Test the property 'arrayOfString' */ @Test - public void arrayOfStringTest() { + void arrayOfStringTest() { // TODO: test arrayOfString } @@ -52,7 +52,7 @@ public void arrayOfStringTest() { * Test the property 'arrayArrayOfInteger' */ @Test - public void arrayArrayOfIntegerTest() { + void arrayArrayOfIntegerTest() { // TODO: test arrayArrayOfInteger } @@ -60,7 +60,7 @@ public void arrayArrayOfIntegerTest() { * Test the property 'arrayArrayOfModel' */ @Test - public void arrayArrayOfModelTest() { + void arrayArrayOfModelTest() { // TODO: test arrayArrayOfModel } diff --git a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/CapitalizationTest.java b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/CapitalizationTest.java index 1f133e4142e4..a0217acd1f20 100644 --- a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/CapitalizationTest.java +++ b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/CapitalizationTest.java @@ -22,18 +22,17 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Capitalization */ -public class CapitalizationTest { +class CapitalizationTest { private final Capitalization model = new Capitalization(); /** * Model tests for Capitalization */ @Test - public void testCapitalization() { + void testCapitalization() { // TODO: test Capitalization } @@ -41,7 +40,7 @@ public void testCapitalization() { * Test the property 'smallCamel' */ @Test - public void smallCamelTest() { + void smallCamelTest() { // TODO: test smallCamel } @@ -49,7 +48,7 @@ public void smallCamelTest() { * Test the property 'capitalCamel' */ @Test - public void capitalCamelTest() { + void capitalCamelTest() { // TODO: test capitalCamel } @@ -57,7 +56,7 @@ public void capitalCamelTest() { * Test the property 'smallSnake' */ @Test - public void smallSnakeTest() { + void smallSnakeTest() { // TODO: test smallSnake } @@ -65,7 +64,7 @@ public void smallSnakeTest() { * Test the property 'capitalSnake' */ @Test - public void capitalSnakeTest() { + void capitalSnakeTest() { // TODO: test capitalSnake } @@ -73,7 +72,7 @@ public void capitalSnakeTest() { * Test the property 'scAETHFlowPoints' */ @Test - public void scAETHFlowPointsTest() { + void scAETHFlowPointsTest() { // TODO: test scAETHFlowPoints } @@ -81,7 +80,7 @@ public void scAETHFlowPointsTest() { * Test the property 'ATT_NAME' */ @Test - public void ATT_NAMETest() { + void ATT_NAMETest() { // TODO: test ATT_NAME } diff --git a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/CatTest.java b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/CatTest.java index 50037f54841e..1b389a075be0 100644 --- a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/CatTest.java +++ b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/CatTest.java @@ -22,23 +22,21 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import org.openapitools.client.model.Animal; -import org.openapitools.client.model.BigCat; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Cat */ -public class CatTest { +class CatTest { private final Cat model = new Cat(); /** * Model tests for Cat */ @Test - public void testCat() { + void testCat() { // TODO: test Cat } @@ -46,7 +44,7 @@ public void testCat() { * Test the property 'className' */ @Test - public void classNameTest() { + void classNameTest() { // TODO: test className } @@ -54,7 +52,7 @@ public void classNameTest() { * Test the property 'color' */ @Test - public void colorTest() { + void colorTest() { // TODO: test color } @@ -62,7 +60,7 @@ public void colorTest() { * Test the property 'declawed' */ @Test - public void declawedTest() { + void declawedTest() { // TODO: test declawed } diff --git a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/CategoryTest.java b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/CategoryTest.java index 84df0f1e24da..22fcbd7f3ccb 100644 --- a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/CategoryTest.java +++ b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/CategoryTest.java @@ -22,18 +22,17 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Category */ -public class CategoryTest { +class CategoryTest { private final Category model = new Category(); /** * Model tests for Category */ @Test - public void testCategory() { + void testCategory() { // TODO: test Category } @@ -41,7 +40,7 @@ public void testCategory() { * Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } @@ -49,7 +48,7 @@ public void idTest() { * Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } diff --git a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/ChildWithNullableTest.java b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/ChildWithNullableTest.java index a109c6f71758..a89d26497bc3 100644 --- a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/ChildWithNullableTest.java +++ b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/ChildWithNullableTest.java @@ -30,14 +30,14 @@ /** * Model tests for ChildWithNullable */ -public class ChildWithNullableTest { +class ChildWithNullableTest { private final ChildWithNullable model = new ChildWithNullable(); /** * Model tests for ChildWithNullable */ @Test - public void testChildWithNullable() { + void testChildWithNullable() { // TODO: test ChildWithNullable } @@ -45,7 +45,7 @@ public void testChildWithNullable() { * Test the property 'type' */ @Test - public void typeTest() { + void typeTest() { // TODO: test type } @@ -53,7 +53,7 @@ public void typeTest() { * Test the property 'nullableProperty' */ @Test - public void nullablePropertyTest() { + void nullablePropertyTest() { // TODO: test nullableProperty } @@ -61,7 +61,7 @@ public void nullablePropertyTest() { * Test the property 'otherProperty' */ @Test - public void otherPropertyTest() { + void otherPropertyTest() { // TODO: test otherProperty } diff --git a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/ClassModelTest.java b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/ClassModelTest.java index 0efd2b037523..6ef5c744fbcb 100644 --- a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/ClassModelTest.java +++ b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/ClassModelTest.java @@ -22,18 +22,17 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for ClassModel */ -public class ClassModelTest { +class ClassModelTest { private final ClassModel model = new ClassModel(); /** * Model tests for ClassModel */ @Test - public void testClassModel() { + void testClassModel() { // TODO: test ClassModel } @@ -41,7 +40,7 @@ public void testClassModel() { * Test the property 'propertyClass' */ @Test - public void propertyClassTest() { + void propertyClassTest() { // TODO: test propertyClass } diff --git a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/ClientTest.java b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/ClientTest.java index 9fee039a47a4..8028f11bc2b9 100644 --- a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/ClientTest.java +++ b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/ClientTest.java @@ -22,18 +22,17 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Client */ -public class ClientTest { +class ClientTest { private final Client model = new Client(); /** * Model tests for Client */ @Test - public void testClient() { + void testClient() { // TODO: test Client } @@ -41,7 +40,7 @@ public void testClient() { * Test the property 'client' */ @Test - public void clientTest() { + void clientTest() { // TODO: test client } diff --git a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/DeprecatedObjectTest.java b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/DeprecatedObjectTest.java index 06d586403935..b04c2097b209 100644 --- a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/DeprecatedObjectTest.java +++ b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/DeprecatedObjectTest.java @@ -22,18 +22,17 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for DeprecatedObject */ -public class DeprecatedObjectTest { +class DeprecatedObjectTest { private final DeprecatedObject model = new DeprecatedObject(); /** * Model tests for DeprecatedObject */ @Test - public void testDeprecatedObject() { + void testDeprecatedObject() { // TODO: test DeprecatedObject } @@ -41,7 +40,7 @@ public void testDeprecatedObject() { * Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } diff --git a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/DogTest.java b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/DogTest.java index 0f9f43fd3cac..b2a12ab4c5e0 100644 --- a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/DogTest.java +++ b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/DogTest.java @@ -26,18 +26,17 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Dog */ -public class DogTest { +class DogTest { private final Dog model = new Dog(); /** * Model tests for Dog */ @Test - public void testDog() { + void testDog() { // TODO: test Dog } @@ -45,7 +44,7 @@ public void testDog() { * Test the property 'className' */ @Test - public void classNameTest() { + void classNameTest() { // TODO: test className } @@ -53,7 +52,7 @@ public void classNameTest() { * Test the property 'color' */ @Test - public void colorTest() { + void colorTest() { // TODO: test color } @@ -61,7 +60,7 @@ public void colorTest() { * Test the property 'breed' */ @Test - public void breedTest() { + void breedTest() { // TODO: test breed } diff --git a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/EnumArraysTest.java b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/EnumArraysTest.java index bd426ae14b51..4a755b0d4425 100644 --- a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/EnumArraysTest.java +++ b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/EnumArraysTest.java @@ -19,23 +19,23 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for EnumArrays */ -public class EnumArraysTest { +class EnumArraysTest { private final EnumArrays model = new EnumArrays(); /** * Model tests for EnumArrays */ @Test - public void testEnumArrays() { + void testEnumArrays() { // TODO: test EnumArrays } @@ -43,7 +43,7 @@ public void testEnumArrays() { * Test the property 'justSymbol' */ @Test - public void justSymbolTest() { + void justSymbolTest() { // TODO: test justSymbol } @@ -51,7 +51,7 @@ public void justSymbolTest() { * Test the property 'arrayEnum' */ @Test - public void arrayEnumTest() { + void arrayEnumTest() { // TODO: test arrayEnum } diff --git a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/EnumClassTest.java b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/EnumClassTest.java index 19518a5f665b..48aa1a737fce 100644 --- a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/EnumClassTest.java +++ b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/EnumClassTest.java @@ -17,16 +17,15 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for EnumClass */ -public class EnumClassTest { +class EnumClassTest { /** * Model tests for EnumClass */ @Test - public void testEnumClass() { + void testEnumClass() { // TODO: test EnumClass } diff --git a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/EnumTestTest.java b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/EnumTestTest.java index 223a3d674bb2..1e65944cbdc9 100644 --- a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/EnumTestTest.java +++ b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/EnumTestTest.java @@ -19,22 +19,28 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import org.openapitools.client.model.OuterEnum; +import org.openapitools.client.model.OuterEnumDefaultValue; +import org.openapitools.client.model.OuterEnumInteger; +import org.openapitools.client.model.OuterEnumIntegerDefaultValue; +import org.openapitools.jackson.nullable.JsonNullable; +import com.fasterxml.jackson.annotation.JsonIgnore; +import org.openapitools.jackson.nullable.JsonNullable; +import java.util.NoSuchElementException; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for EnumTest */ -public class EnumTestTest { +class EnumTestTest { private final EnumTest model = new EnumTest(); /** * Model tests for EnumTest */ @Test - public void testEnumTest() { + void testEnumTest() { // TODO: test EnumTest } @@ -42,7 +48,7 @@ public void testEnumTest() { * Test the property 'enumString' */ @Test - public void enumStringTest() { + void enumStringTest() { // TODO: test enumString } @@ -50,7 +56,7 @@ public void enumStringTest() { * Test the property 'enumStringRequired' */ @Test - public void enumStringRequiredTest() { + void enumStringRequiredTest() { // TODO: test enumStringRequired } @@ -58,7 +64,7 @@ public void enumStringRequiredTest() { * Test the property 'enumInteger' */ @Test - public void enumIntegerTest() { + void enumIntegerTest() { // TODO: test enumInteger } @@ -66,7 +72,7 @@ public void enumIntegerTest() { * Test the property 'enumNumber' */ @Test - public void enumNumberTest() { + void enumNumberTest() { // TODO: test enumNumber } @@ -74,8 +80,32 @@ public void enumNumberTest() { * Test the property 'outerEnum' */ @Test - public void outerEnumTest() { + void outerEnumTest() { // TODO: test outerEnum } + /** + * Test the property 'outerEnumInteger' + */ + @Test + void outerEnumIntegerTest() { + // TODO: test outerEnumInteger + } + + /** + * Test the property 'outerEnumDefaultValue' + */ + @Test + void outerEnumDefaultValueTest() { + // TODO: test outerEnumDefaultValue + } + + /** + * Test the property 'outerEnumIntegerDefaultValue' + */ + @Test + void outerEnumIntegerDefaultValueTest() { + // TODO: test outerEnumIntegerDefaultValue + } + } diff --git a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/FakeBigDecimalMap200ResponseTest.java b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/FakeBigDecimalMap200ResponseTest.java index 1792f6169d92..3250ad91974c 100644 --- a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/FakeBigDecimalMap200ResponseTest.java +++ b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/FakeBigDecimalMap200ResponseTest.java @@ -28,14 +28,14 @@ /** * Model tests for FakeBigDecimalMap200Response */ -public class FakeBigDecimalMap200ResponseTest { +class FakeBigDecimalMap200ResponseTest { private final FakeBigDecimalMap200Response model = new FakeBigDecimalMap200Response(); /** * Model tests for FakeBigDecimalMap200Response */ @Test - public void testFakeBigDecimalMap200Response() { + void testFakeBigDecimalMap200Response() { // TODO: test FakeBigDecimalMap200Response } @@ -43,7 +43,7 @@ public void testFakeBigDecimalMap200Response() { * Test the property 'someId' */ @Test - public void someIdTest() { + void someIdTest() { // TODO: test someId } @@ -51,7 +51,7 @@ public void someIdTest() { * Test the property 'someMap' */ @Test - public void someMapTest() { + void someMapTest() { // TODO: test someMap } diff --git a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/FileSchemaTestClassTest.java b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/FileSchemaTestClassTest.java index 53b20d7bdd31..0048cb2c7497 100644 --- a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/FileSchemaTestClassTest.java +++ b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/FileSchemaTestClassTest.java @@ -19,24 +19,24 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.ModelFile; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for FileSchemaTestClass */ -public class FileSchemaTestClassTest { +class FileSchemaTestClassTest { private final FileSchemaTestClass model = new FileSchemaTestClass(); /** * Model tests for FileSchemaTestClass */ @Test - public void testFileSchemaTestClass() { + void testFileSchemaTestClass() { // TODO: test FileSchemaTestClass } @@ -44,7 +44,7 @@ public void testFileSchemaTestClass() { * Test the property '_file' */ @Test - public void _fileTest() { + void _fileTest() { // TODO: test _file } @@ -52,7 +52,7 @@ public void _fileTest() { * Test the property 'files' */ @Test - public void filesTest() { + void filesTest() { // TODO: test files } diff --git a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/FooGetDefaultResponseTest.java b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/FooGetDefaultResponseTest.java index 85c3e9a29e77..81bc69c9a7b4 100644 --- a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/FooGetDefaultResponseTest.java +++ b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/FooGetDefaultResponseTest.java @@ -23,18 +23,17 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for FooGetDefaultResponse */ -public class FooGetDefaultResponseTest { +class FooGetDefaultResponseTest { private final FooGetDefaultResponse model = new FooGetDefaultResponse(); /** * Model tests for FooGetDefaultResponse */ @Test - public void testFooGetDefaultResponse() { + void testFooGetDefaultResponse() { // TODO: test FooGetDefaultResponse } @@ -42,7 +41,7 @@ public void testFooGetDefaultResponse() { * Test the property 'string' */ @Test - public void stringTest() { + void stringTest() { // TODO: test string } diff --git a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/FooTest.java b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/FooTest.java index b1825eb48eb9..a9e2c8c126e1 100644 --- a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/FooTest.java +++ b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/FooTest.java @@ -22,18 +22,17 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Foo */ -public class FooTest { +class FooTest { private final Foo model = new Foo(); /** * Model tests for Foo */ @Test - public void testFoo() { + void testFoo() { // TODO: test Foo } @@ -41,7 +40,7 @@ public void testFoo() { * Test the property 'bar' */ @Test - public void barTest() { + void barTest() { // TODO: test bar } diff --git a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/FormatTestTest.java b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/FormatTestTest.java index ceaa76fef091..38a39e1c0ca1 100644 --- a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/FormatTestTest.java +++ b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/FormatTestTest.java @@ -27,18 +27,17 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for FormatTest */ -public class FormatTestTest { +class FormatTestTest { private final FormatTest model = new FormatTest(); /** * Model tests for FormatTest */ @Test - public void testFormatTest() { + void testFormatTest() { // TODO: test FormatTest } @@ -46,7 +45,7 @@ public void testFormatTest() { * Test the property 'integer' */ @Test - public void integerTest() { + void integerTest() { // TODO: test integer } @@ -54,7 +53,7 @@ public void integerTest() { * Test the property 'int32' */ @Test - public void int32Test() { + void int32Test() { // TODO: test int32 } @@ -62,7 +61,7 @@ public void int32Test() { * Test the property 'int64' */ @Test - public void int64Test() { + void int64Test() { // TODO: test int64 } @@ -70,7 +69,7 @@ public void int64Test() { * Test the property 'number' */ @Test - public void numberTest() { + void numberTest() { // TODO: test number } @@ -78,7 +77,7 @@ public void numberTest() { * Test the property '_float' */ @Test - public void _floatTest() { + void _floatTest() { // TODO: test _float } @@ -86,15 +85,23 @@ public void _floatTest() { * Test the property '_double' */ @Test - public void _doubleTest() { + void _doubleTest() { // TODO: test _double } + /** + * Test the property 'decimal' + */ + @Test + void decimalTest() { + // TODO: test decimal + } + /** * Test the property 'string' */ @Test - public void stringTest() { + void stringTest() { // TODO: test string } @@ -102,7 +109,7 @@ public void stringTest() { * Test the property '_byte' */ @Test - public void _byteTest() { + void _byteTest() { // TODO: test _byte } @@ -110,7 +117,7 @@ public void _byteTest() { * Test the property 'binary' */ @Test - public void binaryTest() { + void binaryTest() { // TODO: test binary } @@ -118,7 +125,7 @@ public void binaryTest() { * Test the property 'date' */ @Test - public void dateTest() { + void dateTest() { // TODO: test date } @@ -126,7 +133,7 @@ public void dateTest() { * Test the property 'dateTime' */ @Test - public void dateTimeTest() { + void dateTimeTest() { // TODO: test dateTime } @@ -134,7 +141,7 @@ public void dateTimeTest() { * Test the property 'uuid' */ @Test - public void uuidTest() { + void uuidTest() { // TODO: test uuid } @@ -142,16 +149,24 @@ public void uuidTest() { * Test the property 'password' */ @Test - public void passwordTest() { + void passwordTest() { // TODO: test password } /** - * Test the property 'bigDecimal' + * Test the property 'patternWithDigits' + */ + @Test + void patternWithDigitsTest() { + // TODO: test patternWithDigits + } + + /** + * Test the property 'patternWithDigitsAndDelimiter' */ @Test - public void bigDecimalTest() { - // TODO: test bigDecimal + void patternWithDigitsAndDelimiterTest() { + // TODO: test patternWithDigitsAndDelimiter } } diff --git a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/HasOnlyReadOnlyTest.java b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/HasOnlyReadOnlyTest.java index 9a76d3c9534f..908f0aff6ed7 100644 --- a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/HasOnlyReadOnlyTest.java +++ b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/HasOnlyReadOnlyTest.java @@ -22,18 +22,17 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for HasOnlyReadOnly */ -public class HasOnlyReadOnlyTest { +class HasOnlyReadOnlyTest { private final HasOnlyReadOnly model = new HasOnlyReadOnly(); /** * Model tests for HasOnlyReadOnly */ @Test - public void testHasOnlyReadOnly() { + void testHasOnlyReadOnly() { // TODO: test HasOnlyReadOnly } @@ -41,7 +40,7 @@ public void testHasOnlyReadOnly() { * Test the property 'bar' */ @Test - public void barTest() { + void barTest() { // TODO: test bar } @@ -49,7 +48,7 @@ public void barTest() { * Test the property 'foo' */ @Test - public void fooTest() { + void fooTest() { // TODO: test foo } diff --git a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/HealthCheckResultTest.java b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/HealthCheckResultTest.java index d627568b70c9..0f45c2fcd5ba 100644 --- a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/HealthCheckResultTest.java +++ b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/HealthCheckResultTest.java @@ -26,18 +26,17 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for HealthCheckResult */ -public class HealthCheckResultTest { +class HealthCheckResultTest { private final HealthCheckResult model = new HealthCheckResult(); /** * Model tests for HealthCheckResult */ @Test - public void testHealthCheckResult() { + void testHealthCheckResult() { // TODO: test HealthCheckResult } @@ -45,7 +44,7 @@ public void testHealthCheckResult() { * Test the property 'nullableMessage' */ @Test - public void nullableMessageTest() { + void nullableMessageTest() { // TODO: test nullableMessage } diff --git a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/MapTestTest.java b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/MapTestTest.java index c85527e8536a..3752c5ba31fd 100644 --- a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/MapTestTest.java +++ b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/MapTestTest.java @@ -24,18 +24,17 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for MapTest */ -public class MapTestTest { +class MapTestTest { private final MapTest model = new MapTest(); /** * Model tests for MapTest */ @Test - public void testMapTest() { + void testMapTest() { // TODO: test MapTest } @@ -43,7 +42,7 @@ public void testMapTest() { * Test the property 'mapMapOfString' */ @Test - public void mapMapOfStringTest() { + void mapMapOfStringTest() { // TODO: test mapMapOfString } @@ -51,7 +50,7 @@ public void mapMapOfStringTest() { * Test the property 'mapOfEnumString' */ @Test - public void mapOfEnumStringTest() { + void mapOfEnumStringTest() { // TODO: test mapOfEnumString } @@ -59,7 +58,7 @@ public void mapOfEnumStringTest() { * Test the property 'directMap' */ @Test - public void directMapTest() { + void directMapTest() { // TODO: test directMap } @@ -67,7 +66,7 @@ public void directMapTest() { * Test the property 'indirectMap' */ @Test - public void indirectMapTest() { + void indirectMapTest() { // TODO: test indirectMap } diff --git a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClassTest.java b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClassTest.java index c5f70f4c8f0c..0f47e193af8d 100644 --- a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClassTest.java +++ b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClassTest.java @@ -27,18 +27,17 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for MixedPropertiesAndAdditionalPropertiesClass */ -public class MixedPropertiesAndAdditionalPropertiesClassTest { +class MixedPropertiesAndAdditionalPropertiesClassTest { private final MixedPropertiesAndAdditionalPropertiesClass model = new MixedPropertiesAndAdditionalPropertiesClass(); /** * Model tests for MixedPropertiesAndAdditionalPropertiesClass */ @Test - public void testMixedPropertiesAndAdditionalPropertiesClass() { + void testMixedPropertiesAndAdditionalPropertiesClass() { // TODO: test MixedPropertiesAndAdditionalPropertiesClass } @@ -46,7 +45,7 @@ public void testMixedPropertiesAndAdditionalPropertiesClass() { * Test the property 'uuid' */ @Test - public void uuidTest() { + void uuidTest() { // TODO: test uuid } @@ -54,7 +53,7 @@ public void uuidTest() { * Test the property 'dateTime' */ @Test - public void dateTimeTest() { + void dateTimeTest() { // TODO: test dateTime } @@ -62,7 +61,7 @@ public void dateTimeTest() { * Test the property 'map' */ @Test - public void mapTest() { + void mapTest() { // TODO: test map } diff --git a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/Model200ResponseTest.java b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/Model200ResponseTest.java index 0952e6472d04..5743b70142b8 100644 --- a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/Model200ResponseTest.java +++ b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/Model200ResponseTest.java @@ -22,18 +22,17 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Model200Response */ -public class Model200ResponseTest { +class Model200ResponseTest { private final Model200Response model = new Model200Response(); /** * Model tests for Model200Response */ @Test - public void testModel200Response() { + void testModel200Response() { // TODO: test Model200Response } @@ -41,7 +40,7 @@ public void testModel200Response() { * Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } @@ -49,7 +48,7 @@ public void nameTest() { * Test the property 'propertyClass' */ @Test - public void propertyClassTest() { + void propertyClassTest() { // TODO: test propertyClass } diff --git a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java index d57f86800479..436e4abd59e3 100644 --- a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java +++ b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java @@ -22,18 +22,17 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for ModelApiResponse */ -public class ModelApiResponseTest { +class ModelApiResponseTest { private final ModelApiResponse model = new ModelApiResponse(); /** * Model tests for ModelApiResponse */ @Test - public void testModelApiResponse() { + void testModelApiResponse() { // TODO: test ModelApiResponse } @@ -41,7 +40,7 @@ public void testModelApiResponse() { * Test the property 'code' */ @Test - public void codeTest() { + void codeTest() { // TODO: test code } @@ -49,7 +48,7 @@ public void codeTest() { * Test the property 'type' */ @Test - public void typeTest() { + void typeTest() { // TODO: test type } @@ -57,7 +56,7 @@ public void typeTest() { * Test the property 'message' */ @Test - public void messageTest() { + void messageTest() { // TODO: test message } diff --git a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/ModelFileTest.java b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/ModelFileTest.java index 4b2d71052119..f128d7b9ac2e 100644 --- a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/ModelFileTest.java +++ b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/ModelFileTest.java @@ -22,18 +22,17 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for ModelFile */ -public class ModelFileTest { +class ModelFileTest { private final ModelFile model = new ModelFile(); /** * Model tests for ModelFile */ @Test - public void testModelFile() { + void testModelFile() { // TODO: test ModelFile } @@ -41,7 +40,7 @@ public void testModelFile() { * Test the property 'sourceURI' */ @Test - public void sourceURITest() { + void sourceURITest() { // TODO: test sourceURI } diff --git a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/ModelListTest.java b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/ModelListTest.java index f39c6a118e39..92273f48d239 100644 --- a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/ModelListTest.java +++ b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/ModelListTest.java @@ -22,18 +22,17 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for ModelList */ -public class ModelListTest { +class ModelListTest { private final ModelList model = new ModelList(); /** * Model tests for ModelList */ @Test - public void testModelList() { + void testModelList() { // TODO: test ModelList } @@ -41,7 +40,7 @@ public void testModelList() { * Test the property '_123list' */ @Test - public void _123listTest() { + void _123listTest() { // TODO: test _123list } diff --git a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/ModelReturnTest.java b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/ModelReturnTest.java index a6968d2b87e8..1c5337654cd4 100644 --- a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/ModelReturnTest.java +++ b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/ModelReturnTest.java @@ -22,18 +22,17 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for ModelReturn */ -public class ModelReturnTest { +class ModelReturnTest { private final ModelReturn model = new ModelReturn(); /** * Model tests for ModelReturn */ @Test - public void testModelReturn() { + void testModelReturn() { // TODO: test ModelReturn } @@ -41,7 +40,7 @@ public void testModelReturn() { * Test the property '_return' */ @Test - public void _returnTest() { + void _returnTest() { // TODO: test _return } diff --git a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/NameTest.java b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/NameTest.java index 39ff782a3ea4..1a6aa18fa20d 100644 --- a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/NameTest.java +++ b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/NameTest.java @@ -22,18 +22,17 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Name */ -public class NameTest { +class NameTest { private final Name model = new Name(); /** * Model tests for Name */ @Test - public void testName() { + void testName() { // TODO: test Name } @@ -41,7 +40,7 @@ public void testName() { * Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } @@ -49,7 +48,7 @@ public void nameTest() { * Test the property 'snakeCase' */ @Test - public void snakeCaseTest() { + void snakeCaseTest() { // TODO: test snakeCase } @@ -57,7 +56,7 @@ public void snakeCaseTest() { * Test the property 'property' */ @Test - public void propertyTest() { + void propertyTest() { // TODO: test property } @@ -65,7 +64,7 @@ public void propertyTest() { * Test the property '_123number' */ @Test - public void _123numberTest() { + void _123numberTest() { // TODO: test _123number } diff --git a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/NullableClassTest.java b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/NullableClassTest.java index 86e5a4e72498..d960ef76e5c3 100644 --- a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/NullableClassTest.java +++ b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/NullableClassTest.java @@ -22,6 +22,7 @@ import java.time.LocalDate; import java.time.OffsetDateTime; import java.util.ArrayList; +import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; @@ -33,18 +34,17 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for NullableClass */ -public class NullableClassTest { +class NullableClassTest { private final NullableClass model = new NullableClass(); /** * Model tests for NullableClass */ @Test - public void testNullableClass() { + void testNullableClass() { // TODO: test NullableClass } @@ -52,7 +52,7 @@ public void testNullableClass() { * Test the property 'integerProp' */ @Test - public void integerPropTest() { + void integerPropTest() { // TODO: test integerProp } @@ -60,7 +60,7 @@ public void integerPropTest() { * Test the property 'numberProp' */ @Test - public void numberPropTest() { + void numberPropTest() { // TODO: test numberProp } @@ -68,7 +68,7 @@ public void numberPropTest() { * Test the property 'booleanProp' */ @Test - public void booleanPropTest() { + void booleanPropTest() { // TODO: test booleanProp } @@ -76,7 +76,7 @@ public void booleanPropTest() { * Test the property 'stringProp' */ @Test - public void stringPropTest() { + void stringPropTest() { // TODO: test stringProp } @@ -84,7 +84,7 @@ public void stringPropTest() { * Test the property 'dateProp' */ @Test - public void datePropTest() { + void datePropTest() { // TODO: test dateProp } @@ -92,7 +92,7 @@ public void datePropTest() { * Test the property 'datetimeProp' */ @Test - public void datetimePropTest() { + void datetimePropTest() { // TODO: test datetimeProp } @@ -100,7 +100,7 @@ public void datetimePropTest() { * Test the property 'arrayNullableProp' */ @Test - public void arrayNullablePropTest() { + void arrayNullablePropTest() { // TODO: test arrayNullableProp } @@ -108,7 +108,7 @@ public void arrayNullablePropTest() { * Test the property 'arrayAndItemsNullableProp' */ @Test - public void arrayAndItemsNullablePropTest() { + void arrayAndItemsNullablePropTest() { // TODO: test arrayAndItemsNullableProp } @@ -116,7 +116,7 @@ public void arrayAndItemsNullablePropTest() { * Test the property 'arrayItemsNullable' */ @Test - public void arrayItemsNullableTest() { + void arrayItemsNullableTest() { // TODO: test arrayItemsNullable } @@ -124,7 +124,7 @@ public void arrayItemsNullableTest() { * Test the property 'objectNullableProp' */ @Test - public void objectNullablePropTest() { + void objectNullablePropTest() { // TODO: test objectNullableProp } @@ -132,7 +132,7 @@ public void objectNullablePropTest() { * Test the property 'objectAndItemsNullableProp' */ @Test - public void objectAndItemsNullablePropTest() { + void objectAndItemsNullablePropTest() { // TODO: test objectAndItemsNullableProp } @@ -140,7 +140,7 @@ public void objectAndItemsNullablePropTest() { * Test the property 'objectItemsNullable' */ @Test - public void objectItemsNullableTest() { + void objectItemsNullableTest() { // TODO: test objectItemsNullable } diff --git a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/NumberOnlyTest.java b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/NumberOnlyTest.java index 88a5503ccf97..8623386a5e95 100644 --- a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/NumberOnlyTest.java +++ b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/NumberOnlyTest.java @@ -23,18 +23,17 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for NumberOnly */ -public class NumberOnlyTest { +class NumberOnlyTest { private final NumberOnly model = new NumberOnly(); /** * Model tests for NumberOnly */ @Test - public void testNumberOnly() { + void testNumberOnly() { // TODO: test NumberOnly } @@ -42,7 +41,7 @@ public void testNumberOnly() { * Test the property 'justNumber' */ @Test - public void justNumberTest() { + void justNumberTest() { // TODO: test justNumber } diff --git a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/ObjectWithDeprecatedFieldsTest.java b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/ObjectWithDeprecatedFieldsTest.java index 72978f65097d..aa755cf8cb48 100644 --- a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/ObjectWithDeprecatedFieldsTest.java +++ b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/ObjectWithDeprecatedFieldsTest.java @@ -20,24 +20,24 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.math.BigDecimal; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.DeprecatedObject; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for ObjectWithDeprecatedFields */ -public class ObjectWithDeprecatedFieldsTest { +class ObjectWithDeprecatedFieldsTest { private final ObjectWithDeprecatedFields model = new ObjectWithDeprecatedFields(); /** * Model tests for ObjectWithDeprecatedFields */ @Test - public void testObjectWithDeprecatedFields() { + void testObjectWithDeprecatedFields() { // TODO: test ObjectWithDeprecatedFields } @@ -45,7 +45,7 @@ public void testObjectWithDeprecatedFields() { * Test the property 'uuid' */ @Test - public void uuidTest() { + void uuidTest() { // TODO: test uuid } @@ -53,7 +53,7 @@ public void uuidTest() { * Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } @@ -61,7 +61,7 @@ public void idTest() { * Test the property 'deprecatedRef' */ @Test - public void deprecatedRefTest() { + void deprecatedRefTest() { // TODO: test deprecatedRef } @@ -69,7 +69,7 @@ public void deprecatedRefTest() { * Test the property 'bars' */ @Test - public void barsTest() { + void barsTest() { // TODO: test bars } diff --git a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/OrderTest.java b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/OrderTest.java index 17f411d1ede9..670c2535646b 100644 --- a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/OrderTest.java +++ b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/OrderTest.java @@ -23,18 +23,17 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Order */ -public class OrderTest { +class OrderTest { private final Order model = new Order(); /** * Model tests for Order */ @Test - public void testOrder() { + void testOrder() { // TODO: test Order } @@ -42,7 +41,7 @@ public void testOrder() { * Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } @@ -50,7 +49,7 @@ public void idTest() { * Test the property 'petId' */ @Test - public void petIdTest() { + void petIdTest() { // TODO: test petId } @@ -58,7 +57,7 @@ public void petIdTest() { * Test the property 'quantity' */ @Test - public void quantityTest() { + void quantityTest() { // TODO: test quantity } @@ -66,7 +65,7 @@ public void quantityTest() { * Test the property 'shipDate' */ @Test - public void shipDateTest() { + void shipDateTest() { // TODO: test shipDate } @@ -74,7 +73,7 @@ public void shipDateTest() { * Test the property 'status' */ @Test - public void statusTest() { + void statusTest() { // TODO: test status } @@ -82,7 +81,7 @@ public void statusTest() { * Test the property 'complete' */ @Test - public void completeTest() { + void completeTest() { // TODO: test complete } diff --git a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/OuterCompositeTest.java b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/OuterCompositeTest.java index 11d7eeac3b75..870a977da944 100644 --- a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/OuterCompositeTest.java +++ b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/OuterCompositeTest.java @@ -23,18 +23,17 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for OuterComposite */ -public class OuterCompositeTest { +class OuterCompositeTest { private final OuterComposite model = new OuterComposite(); /** * Model tests for OuterComposite */ @Test - public void testOuterComposite() { + void testOuterComposite() { // TODO: test OuterComposite } @@ -42,7 +41,7 @@ public void testOuterComposite() { * Test the property 'myNumber' */ @Test - public void myNumberTest() { + void myNumberTest() { // TODO: test myNumber } @@ -50,7 +49,7 @@ public void myNumberTest() { * Test the property 'myString' */ @Test - public void myStringTest() { + void myStringTest() { // TODO: test myString } @@ -58,7 +57,7 @@ public void myStringTest() { * Test the property 'myBoolean' */ @Test - public void myBooleanTest() { + void myBooleanTest() { // TODO: test myBoolean } diff --git a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/OuterEnumDefaultValueTest.java b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/OuterEnumDefaultValueTest.java index db6de4ebd34c..d818b23c7d53 100644 --- a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/OuterEnumDefaultValueTest.java +++ b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/OuterEnumDefaultValueTest.java @@ -17,16 +17,15 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for OuterEnumDefaultValue */ -public class OuterEnumDefaultValueTest { +class OuterEnumDefaultValueTest { /** * Model tests for OuterEnumDefaultValue */ @Test - public void testOuterEnumDefaultValue() { + void testOuterEnumDefaultValue() { // TODO: test OuterEnumDefaultValue } diff --git a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/OuterEnumIntegerDefaultValueTest.java b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/OuterEnumIntegerDefaultValueTest.java index 44b97d47c2eb..1d7b3338bca2 100644 --- a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/OuterEnumIntegerDefaultValueTest.java +++ b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/OuterEnumIntegerDefaultValueTest.java @@ -17,16 +17,15 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for OuterEnumIntegerDefaultValue */ -public class OuterEnumIntegerDefaultValueTest { +class OuterEnumIntegerDefaultValueTest { /** * Model tests for OuterEnumIntegerDefaultValue */ @Test - public void testOuterEnumIntegerDefaultValue() { + void testOuterEnumIntegerDefaultValue() { // TODO: test OuterEnumIntegerDefaultValue } diff --git a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/OuterEnumIntegerTest.java b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/OuterEnumIntegerTest.java index 908c8ce7e21a..cacda46a76f4 100644 --- a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/OuterEnumIntegerTest.java +++ b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/OuterEnumIntegerTest.java @@ -17,16 +17,15 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for OuterEnumInteger */ -public class OuterEnumIntegerTest { +class OuterEnumIntegerTest { /** * Model tests for OuterEnumInteger */ @Test - public void testOuterEnumInteger() { + void testOuterEnumInteger() { // TODO: test OuterEnumInteger } diff --git a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/OuterEnumTest.java b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/OuterEnumTest.java index f7293142020a..0333ee657a0f 100644 --- a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/OuterEnumTest.java +++ b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/OuterEnumTest.java @@ -17,16 +17,15 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for OuterEnum */ -public class OuterEnumTest { +class OuterEnumTest { /** * Model tests for OuterEnum */ @Test - public void testOuterEnum() { + void testOuterEnum() { // TODO: test OuterEnum } diff --git a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/OuterObjectWithEnumPropertyTest.java b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/OuterObjectWithEnumPropertyTest.java index 579a7f62fa76..ac7169192a50 100644 --- a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/OuterObjectWithEnumPropertyTest.java +++ b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/OuterObjectWithEnumPropertyTest.java @@ -23,18 +23,17 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for OuterObjectWithEnumProperty */ -public class OuterObjectWithEnumPropertyTest { +class OuterObjectWithEnumPropertyTest { private final OuterObjectWithEnumProperty model = new OuterObjectWithEnumProperty(); /** * Model tests for OuterObjectWithEnumProperty */ @Test - public void testOuterObjectWithEnumProperty() { + void testOuterObjectWithEnumProperty() { // TODO: test OuterObjectWithEnumProperty } @@ -42,7 +41,7 @@ public void testOuterObjectWithEnumProperty() { * Test the property 'value' */ @Test - public void valueTest() { + void valueTest() { // TODO: test value } diff --git a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/ParentWithNullableTest.java b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/ParentWithNullableTest.java index 828d360428ed..2e4de5618065 100644 --- a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/ParentWithNullableTest.java +++ b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/ParentWithNullableTest.java @@ -32,14 +32,14 @@ /** * Model tests for ParentWithNullable */ -public class ParentWithNullableTest { +class ParentWithNullableTest { private final ParentWithNullable model = new ParentWithNullable(); /** * Model tests for ParentWithNullable */ @Test - public void testParentWithNullable() { + void testParentWithNullable() { // TODO: test ParentWithNullable } @@ -47,7 +47,7 @@ public void testParentWithNullable() { * Test the property 'type' */ @Test - public void typeTest() { + void typeTest() { // TODO: test type } @@ -55,7 +55,7 @@ public void typeTest() { * Test the property 'nullableProperty' */ @Test - public void nullablePropertyTest() { + void nullablePropertyTest() { // TODO: test nullableProperty } diff --git a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/PetTest.java b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/PetTest.java index a10e870d0fdc..2e4303f1e4b5 100644 --- a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/PetTest.java +++ b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/PetTest.java @@ -20,6 +20,7 @@ import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import java.util.ArrayList; +import java.util.Arrays; import java.util.LinkedHashSet; import java.util.List; import java.util.Set; @@ -29,18 +30,17 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Pet */ -public class PetTest { +class PetTest { private final Pet model = new Pet(); /** * Model tests for Pet */ @Test - public void testPet() { + void testPet() { // TODO: test Pet } @@ -48,7 +48,7 @@ public void testPet() { * Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } @@ -56,7 +56,7 @@ public void idTest() { * Test the property 'category' */ @Test - public void categoryTest() { + void categoryTest() { // TODO: test category } @@ -64,7 +64,7 @@ public void categoryTest() { * Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } @@ -72,7 +72,7 @@ public void nameTest() { * Test the property 'photoUrls' */ @Test - public void photoUrlsTest() { + void photoUrlsTest() { // TODO: test photoUrls } @@ -80,7 +80,7 @@ public void photoUrlsTest() { * Test the property 'tags' */ @Test - public void tagsTest() { + void tagsTest() { // TODO: test tags } @@ -88,7 +88,7 @@ public void tagsTest() { * Test the property 'status' */ @Test - public void statusTest() { + void statusTest() { // TODO: test status } diff --git a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/ReadOnlyFirstTest.java b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/ReadOnlyFirstTest.java index 11ab8eaf4fe1..c56da4290fa9 100644 --- a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/ReadOnlyFirstTest.java +++ b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/ReadOnlyFirstTest.java @@ -22,18 +22,17 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for ReadOnlyFirst */ -public class ReadOnlyFirstTest { +class ReadOnlyFirstTest { private final ReadOnlyFirst model = new ReadOnlyFirst(); /** * Model tests for ReadOnlyFirst */ @Test - public void testReadOnlyFirst() { + void testReadOnlyFirst() { // TODO: test ReadOnlyFirst } @@ -41,7 +40,7 @@ public void testReadOnlyFirst() { * Test the property 'bar' */ @Test - public void barTest() { + void barTest() { // TODO: test bar } @@ -49,7 +48,7 @@ public void barTest() { * Test the property 'baz' */ @Test - public void bazTest() { + void bazTest() { // TODO: test baz } diff --git a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/SingleRefTypeTest.java b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/SingleRefTypeTest.java index 7db38f4f3382..476e4ca161b4 100644 --- a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/SingleRefTypeTest.java +++ b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/SingleRefTypeTest.java @@ -17,16 +17,15 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for SingleRefType */ -public class SingleRefTypeTest { +class SingleRefTypeTest { /** * Model tests for SingleRefType */ @Test - public void testSingleRefType() { + void testSingleRefType() { // TODO: test SingleRefType } diff --git a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/SpecialModelNameTest.java b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/SpecialModelNameTest.java index c5d7ce076d6e..9501cf722d66 100644 --- a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/SpecialModelNameTest.java +++ b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/SpecialModelNameTest.java @@ -22,18 +22,17 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for SpecialModelName */ -public class SpecialModelNameTest { +class SpecialModelNameTest { private final SpecialModelName model = new SpecialModelName(); /** * Model tests for SpecialModelName */ @Test - public void testSpecialModelName() { + void testSpecialModelName() { // TODO: test SpecialModelName } @@ -41,7 +40,7 @@ public void testSpecialModelName() { * Test the property '$specialPropertyName' */ @Test - public void $specialPropertyNameTest() { + void $specialPropertyNameTest() { // TODO: test $specialPropertyName } diff --git a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/TagTest.java b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/TagTest.java index 382a573036b9..dc9cf9742efa 100644 --- a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/TagTest.java +++ b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/TagTest.java @@ -22,18 +22,17 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Tag */ -public class TagTest { +class TagTest { private final Tag model = new Tag(); /** * Model tests for Tag */ @Test - public void testTag() { + void testTag() { // TODO: test Tag } @@ -41,7 +40,7 @@ public void testTag() { * Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } @@ -49,7 +48,7 @@ public void idTest() { * Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } diff --git a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequestTest.java b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequestTest.java index 8e5a4ba75d27..edb986ca550f 100644 --- a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequestTest.java +++ b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequestTest.java @@ -27,14 +27,14 @@ /** * Model tests for TestInlineFreeformAdditionalPropertiesRequest */ -public class TestInlineFreeformAdditionalPropertiesRequestTest { +class TestInlineFreeformAdditionalPropertiesRequestTest { private final TestInlineFreeformAdditionalPropertiesRequest model = new TestInlineFreeformAdditionalPropertiesRequest(); /** * Model tests for TestInlineFreeformAdditionalPropertiesRequest */ @Test - public void testTestInlineFreeformAdditionalPropertiesRequest() { + void testTestInlineFreeformAdditionalPropertiesRequest() { // TODO: test TestInlineFreeformAdditionalPropertiesRequest } @@ -42,7 +42,7 @@ public void testTestInlineFreeformAdditionalPropertiesRequest() { * Test the property 'someProperty' */ @Test - public void somePropertyTest() { + void somePropertyTest() { // TODO: test someProperty } diff --git a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/UserTest.java b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/UserTest.java index eccfbf5e1263..69d274133b97 100644 --- a/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/UserTest.java +++ b/samples/client/petstore/java/apache-httpclient/src/test/java/org/openapitools/client/model/UserTest.java @@ -22,18 +22,17 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for User */ -public class UserTest { +class UserTest { private final User model = new User(); /** * Model tests for User */ @Test - public void testUser() { + void testUser() { // TODO: test User } @@ -41,7 +40,7 @@ public void testUser() { * Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } @@ -49,7 +48,7 @@ public void idTest() { * Test the property 'username' */ @Test - public void usernameTest() { + void usernameTest() { // TODO: test username } @@ -57,7 +56,7 @@ public void usernameTest() { * Test the property 'firstName' */ @Test - public void firstNameTest() { + void firstNameTest() { // TODO: test firstName } @@ -65,7 +64,7 @@ public void firstNameTest() { * Test the property 'lastName' */ @Test - public void lastNameTest() { + void lastNameTest() { // TODO: test lastName } @@ -73,7 +72,7 @@ public void lastNameTest() { * Test the property 'email' */ @Test - public void emailTest() { + void emailTest() { // TODO: test email } @@ -81,7 +80,7 @@ public void emailTest() { * Test the property 'password' */ @Test - public void passwordTest() { + void passwordTest() { // TODO: test password } @@ -89,7 +88,7 @@ public void passwordTest() { * Test the property 'phone' */ @Test - public void phoneTest() { + void phoneTest() { // TODO: test phone } @@ -97,7 +96,7 @@ public void phoneTest() { * Test the property 'userStatus' */ @Test - public void userStatusTest() { + void userStatusTest() { // TODO: test userStatus } diff --git a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java index aea3adacc3ca..6bdae10d6d09 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java +++ b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java @@ -2,9 +2,12 @@ import org.openapitools.client.ApiClient; import org.openapitools.client.model.Client; +import java.util.UUID; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.BeforeEach; +import java.time.LocalDate; +import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.HashMap; import java.util.List; @@ -30,8 +33,9 @@ public void setup() { */ @Test void call123testSpecialTagsTest() { + UUID uuidTest = null; Client body = null; - // Client response = api.call123testSpecialTags(body); + // Client response = api.call123testSpecialTags(uuidTest, body); // TODO: test validations } diff --git a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/api/FakeApiTest.java b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/api/FakeApiTest.java index 58d6563e94bc..79de82a049d1 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/api/FakeApiTest.java +++ b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/api/FakeApiTest.java @@ -5,6 +5,8 @@ import org.openapitools.client.model.Client; import java.io.File; import org.openapitools.client.model.FileSchemaTestClass; +import java.time.LocalDate; +import java.time.OffsetDateTime; import org.openapitools.client.model.OuterComposite; import org.openapitools.client.model.User; import org.openapitools.client.model.XmlItem; diff --git a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/api/FakeClassnameTags123ApiTest.java b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/api/FakeClassnameTags123ApiTest.java index e2986af71eed..d43fb55f6ca8 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/api/FakeClassnameTags123ApiTest.java +++ b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/api/FakeClassnameTags123ApiTest.java @@ -5,6 +5,8 @@ import org.junit.jupiter.api.Test; import org.junit.jupiter.api.BeforeEach; +import java.time.LocalDate; +import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.HashMap; import java.util.List; diff --git a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/api/PetApiTest.java b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/api/PetApiTest.java index f839f4d68f31..b8ee78a0ff67 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/api/PetApiTest.java +++ b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/api/PetApiTest.java @@ -8,6 +8,8 @@ import org.junit.jupiter.api.Test; import org.junit.jupiter.api.BeforeEach; +import java.time.LocalDate; +import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.HashMap; import java.util.List; diff --git a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/api/StoreApiTest.java b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/api/StoreApiTest.java index 8ceab0a33154..ba35ab22d1ed 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/api/StoreApiTest.java +++ b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/api/StoreApiTest.java @@ -5,6 +5,8 @@ import org.junit.jupiter.api.Test; import org.junit.jupiter.api.BeforeEach; +import java.time.LocalDate; +import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.HashMap; import java.util.List; diff --git a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/api/UserApiTest.java b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/api/UserApiTest.java index 9e4ff6cc17f9..c8a0c8b5f74f 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/api/UserApiTest.java +++ b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/api/UserApiTest.java @@ -1,10 +1,13 @@ package org.openapitools.client.api; import org.openapitools.client.ApiClient; +import java.time.OffsetDateTime; import org.openapitools.client.model.User; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.BeforeEach; +import java.time.LocalDate; +import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.HashMap; import java.util.List; diff --git a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/AdditionalPropertiesAnyTypeTest.java b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/AdditionalPropertiesAnyTypeTest.java index 488179591e5a..64e8449a192a 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/AdditionalPropertiesAnyTypeTest.java +++ b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/AdditionalPropertiesAnyTypeTest.java @@ -24,7 +24,6 @@ import java.util.Map; import org.junit.jupiter.api.Test; - /** * Model tests for AdditionalPropertiesAnyType */ diff --git a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/AdditionalPropertiesArrayTest.java b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/AdditionalPropertiesArrayTest.java index 4a77e8b04610..e1e673fc86d4 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/AdditionalPropertiesArrayTest.java +++ b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/AdditionalPropertiesArrayTest.java @@ -25,7 +25,6 @@ import java.util.Map; import org.junit.jupiter.api.Test; - /** * Model tests for AdditionalPropertiesArray */ diff --git a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/AdditionalPropertiesBooleanTest.java b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/AdditionalPropertiesBooleanTest.java index 9a54e75aa257..8fb8a5a2f5ac 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/AdditionalPropertiesBooleanTest.java +++ b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/AdditionalPropertiesBooleanTest.java @@ -24,7 +24,6 @@ import java.util.Map; import org.junit.jupiter.api.Test; - /** * Model tests for AdditionalPropertiesBoolean */ diff --git a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/AdditionalPropertiesClassTest.java b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/AdditionalPropertiesClassTest.java index 59f6bd24c55f..4ce4e271179a 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/AdditionalPropertiesClassTest.java +++ b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/AdditionalPropertiesClassTest.java @@ -26,7 +26,6 @@ import java.util.Map; import org.junit.jupiter.api.Test; - /** * Model tests for AdditionalPropertiesClass */ diff --git a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/AdditionalPropertiesIntegerTest.java b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/AdditionalPropertiesIntegerTest.java index f7c270286d03..31ea9cf86a7e 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/AdditionalPropertiesIntegerTest.java +++ b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/AdditionalPropertiesIntegerTest.java @@ -24,7 +24,6 @@ import java.util.Map; import org.junit.jupiter.api.Test; - /** * Model tests for AdditionalPropertiesInteger */ diff --git a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/AdditionalPropertiesNumberTest.java b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/AdditionalPropertiesNumberTest.java index d8becbe8f049..89d618dbe4d8 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/AdditionalPropertiesNumberTest.java +++ b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/AdditionalPropertiesNumberTest.java @@ -25,7 +25,6 @@ import java.util.Map; import org.junit.jupiter.api.Test; - /** * Model tests for AdditionalPropertiesNumber */ diff --git a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/AdditionalPropertiesObjectTest.java b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/AdditionalPropertiesObjectTest.java index 80db912a75f5..a4c35cf26823 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/AdditionalPropertiesObjectTest.java +++ b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/AdditionalPropertiesObjectTest.java @@ -24,7 +24,6 @@ import java.util.Map; import org.junit.jupiter.api.Test; - /** * Model tests for AdditionalPropertiesObject */ diff --git a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/AdditionalPropertiesStringTest.java b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/AdditionalPropertiesStringTest.java index 9968da354555..0821076d3e04 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/AdditionalPropertiesStringTest.java +++ b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/AdditionalPropertiesStringTest.java @@ -24,7 +24,6 @@ import java.util.Map; import org.junit.jupiter.api.Test; - /** * Model tests for AdditionalPropertiesString */ diff --git a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/AnimalTest.java b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/AnimalTest.java index c8b84dd4f314..0e12dca08a54 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/AnimalTest.java +++ b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/AnimalTest.java @@ -13,6 +13,7 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -22,12 +23,8 @@ import com.fasterxml.jackson.annotation.JsonValue; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import org.openapitools.client.model.BigCat; -import org.openapitools.client.model.Cat; -import org.openapitools.client.model.Dog; import org.junit.jupiter.api.Test; - /** * Model tests for Animal */ diff --git a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnlyTest.java b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnlyTest.java index e07106af8ff0..8fb845167060 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnlyTest.java +++ b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnlyTest.java @@ -22,10 +22,10 @@ import io.swagger.annotations.ApiModelProperty; import java.math.BigDecimal; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.junit.jupiter.api.Test; - /** * Model tests for ArrayOfArrayOfNumberOnly */ diff --git a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/ArrayOfNumberOnlyTest.java b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/ArrayOfNumberOnlyTest.java index 0957f3f4adc8..a3a8112b3382 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/ArrayOfNumberOnlyTest.java +++ b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/ArrayOfNumberOnlyTest.java @@ -22,10 +22,10 @@ import io.swagger.annotations.ApiModelProperty; import java.math.BigDecimal; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.junit.jupiter.api.Test; - /** * Model tests for ArrayOfNumberOnly */ diff --git a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/ArrayTestTest.java b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/ArrayTestTest.java index 74b0886d6adf..78050a152419 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/ArrayTestTest.java +++ b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/ArrayTestTest.java @@ -21,11 +21,11 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.ReadOnlyFirst; import org.junit.jupiter.api.Test; - /** * Model tests for ArrayTest */ diff --git a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/BigCatTest.java b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/BigCatTest.java index dbad7adea665..e8c08b390658 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/BigCatTest.java +++ b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/BigCatTest.java @@ -21,6 +21,8 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import org.openapitools.client.model.Cat; import org.junit.jupiter.api.Test; diff --git a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/CapitalizationTest.java b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/CapitalizationTest.java index d91e81773ffa..1e286f867e9f 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/CapitalizationTest.java +++ b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/CapitalizationTest.java @@ -22,7 +22,6 @@ import io.swagger.annotations.ApiModelProperty; import org.junit.jupiter.api.Test; - /** * Model tests for Capitalization */ diff --git a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/CatTest.java b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/CatTest.java index f8f63d1f2eba..323e43b02010 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/CatTest.java +++ b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/CatTest.java @@ -13,6 +13,7 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -23,11 +24,8 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.client.model.Animal; -import org.openapitools.client.model.BigCat; -import org.openapitools.client.model.CatAllOf; import org.junit.jupiter.api.Test; - /** * Model tests for Cat */ diff --git a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/CategoryTest.java b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/CategoryTest.java index 22583f947c3c..700fca4db7c8 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/CategoryTest.java +++ b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/CategoryTest.java @@ -22,7 +22,6 @@ import io.swagger.annotations.ApiModelProperty; import org.junit.jupiter.api.Test; - /** * Model tests for Category */ diff --git a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/ClassModelTest.java b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/ClassModelTest.java index 44d9611e0dca..35fbe51c874b 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/ClassModelTest.java +++ b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/ClassModelTest.java @@ -22,7 +22,6 @@ import io.swagger.annotations.ApiModelProperty; import org.junit.jupiter.api.Test; - /** * Model tests for ClassModel */ diff --git a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/ClientTest.java b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/ClientTest.java index ff12463d5cfd..de3ad6b03983 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/ClientTest.java +++ b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/ClientTest.java @@ -22,7 +22,6 @@ import io.swagger.annotations.ApiModelProperty; import org.junit.jupiter.api.Test; - /** * Model tests for Client */ diff --git a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/DogTest.java b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/DogTest.java index 705a04293775..2bbf63c7005a 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/DogTest.java +++ b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/DogTest.java @@ -13,6 +13,7 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -23,10 +24,8 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.client.model.Animal; -import org.openapitools.client.model.DogAllOf; import org.junit.jupiter.api.Test; - /** * Model tests for Dog */ diff --git a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/EnumArraysTest.java b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/EnumArraysTest.java index 1ed1044bac94..55cbd82db3a3 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/EnumArraysTest.java +++ b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/EnumArraysTest.java @@ -21,10 +21,10 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.junit.jupiter.api.Test; - /** * Model tests for EnumArrays */ diff --git a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/EnumClassTest.java b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/EnumClassTest.java index 55b946a9f7cb..077e71e41b87 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/EnumClassTest.java +++ b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/EnumClassTest.java @@ -15,7 +15,6 @@ import org.junit.jupiter.api.Test; - /** * Model tests for EnumClass */ diff --git a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/EnumTestTest.java b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/EnumTestTest.java index c22b632038ad..bd946a66cfe1 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/EnumTestTest.java +++ b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/EnumTestTest.java @@ -23,7 +23,6 @@ import org.openapitools.client.model.OuterEnum; import org.junit.jupiter.api.Test; - /** * Model tests for EnumTest */ diff --git a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/FileSchemaTestClassTest.java b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/FileSchemaTestClassTest.java index dc539f345541..2fa038d44630 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/FileSchemaTestClassTest.java +++ b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/FileSchemaTestClassTest.java @@ -20,11 +20,12 @@ import com.fasterxml.jackson.annotation.JsonValue; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.File; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.junit.jupiter.api.Test; - /** * Model tests for FileSchemaTestClass */ diff --git a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/FileTest.java b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/FileTest.java index 90e2b5eb78ed..1b95daca6f7a 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/FileTest.java +++ b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/FileTest.java @@ -22,7 +22,6 @@ import io.swagger.annotations.ApiModelProperty; import org.junit.jupiter.api.Test; - /** * Model tests for File */ diff --git a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/FormatTestTest.java b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/FormatTestTest.java index 0243341bd206..fec8c6ed4d51 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/FormatTestTest.java +++ b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/FormatTestTest.java @@ -22,10 +22,11 @@ import io.swagger.annotations.ApiModelProperty; import java.io.File; import java.math.BigDecimal; +import java.time.LocalDate; +import java.time.OffsetDateTime; import java.util.UUID; import org.junit.jupiter.api.Test; - /** * Model tests for FormatTest */ diff --git a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/HasOnlyReadOnlyTest.java b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/HasOnlyReadOnlyTest.java index 224c1ad22b06..b9f71e7ea78b 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/HasOnlyReadOnlyTest.java +++ b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/HasOnlyReadOnlyTest.java @@ -22,7 +22,6 @@ import io.swagger.annotations.ApiModelProperty; import org.junit.jupiter.api.Test; - /** * Model tests for HasOnlyReadOnly */ diff --git a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/MapTestTest.java b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/MapTestTest.java index 21187f975100..74ccbfc0bf59 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/MapTestTest.java +++ b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/MapTestTest.java @@ -21,11 +21,9 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.util.HashMap; -import java.util.List; import java.util.Map; import org.junit.jupiter.api.Test; - /** * Model tests for MapTest */ diff --git a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClassTest.java b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClassTest.java index c2bfb3ce9ef5..735980323bfb 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClassTest.java +++ b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClassTest.java @@ -20,14 +20,13 @@ import com.fasterxml.jackson.annotation.JsonValue; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.time.OffsetDateTime; import java.util.HashMap; -import java.util.List; import java.util.Map; import java.util.UUID; import org.openapitools.client.model.Animal; import org.junit.jupiter.api.Test; - /** * Model tests for MixedPropertiesAndAdditionalPropertiesClass */ diff --git a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/Model200ResponseTest.java b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/Model200ResponseTest.java index 0a0f7aa7554a..584b66d70a9e 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/Model200ResponseTest.java +++ b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/Model200ResponseTest.java @@ -22,7 +22,6 @@ import io.swagger.annotations.ApiModelProperty; import org.junit.jupiter.api.Test; - /** * Model tests for Model200Response */ diff --git a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java index 9c746af8be0c..81aba2612c85 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java +++ b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java @@ -22,7 +22,6 @@ import io.swagger.annotations.ApiModelProperty; import org.junit.jupiter.api.Test; - /** * Model tests for ModelApiResponse */ diff --git a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/ModelListTest.java b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/ModelListTest.java index e2c3bb9a1016..443287dbc6ed 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/ModelListTest.java +++ b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/ModelListTest.java @@ -22,7 +22,6 @@ import io.swagger.annotations.ApiModelProperty; import org.junit.jupiter.api.Test; - /** * Model tests for ModelList */ diff --git a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/ModelReturnTest.java b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/ModelReturnTest.java index e1bddc25f2d0..f87768dc5f6a 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/ModelReturnTest.java +++ b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/ModelReturnTest.java @@ -22,7 +22,6 @@ import io.swagger.annotations.ApiModelProperty; import org.junit.jupiter.api.Test; - /** * Model tests for ModelReturn */ diff --git a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/NameTest.java b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/NameTest.java index 13ae33a2084c..af0113ad31e9 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/NameTest.java +++ b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/NameTest.java @@ -22,7 +22,6 @@ import io.swagger.annotations.ApiModelProperty; import org.junit.jupiter.api.Test; - /** * Model tests for Name */ diff --git a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/NumberOnlyTest.java b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/NumberOnlyTest.java index 4a600363e15a..dc42b4ded282 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/NumberOnlyTest.java +++ b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/NumberOnlyTest.java @@ -23,7 +23,6 @@ import java.math.BigDecimal; import org.junit.jupiter.api.Test; - /** * Model tests for NumberOnly */ diff --git a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/OrderTest.java b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/OrderTest.java index a63dbf7be9ed..650c09009e54 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/OrderTest.java +++ b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/OrderTest.java @@ -20,9 +20,9 @@ import com.fasterxml.jackson.annotation.JsonValue; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.time.OffsetDateTime; import org.junit.jupiter.api.Test; - /** * Model tests for Order */ diff --git a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/OuterCompositeTest.java b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/OuterCompositeTest.java index c42f4fd0478e..9c9c724367e0 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/OuterCompositeTest.java +++ b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/OuterCompositeTest.java @@ -23,7 +23,6 @@ import java.math.BigDecimal; import org.junit.jupiter.api.Test; - /** * Model tests for OuterComposite */ diff --git a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/OuterEnumTest.java b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/OuterEnumTest.java index fd8833deb8bf..a4dd97dde159 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/OuterEnumTest.java +++ b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/OuterEnumTest.java @@ -15,7 +15,6 @@ import org.junit.jupiter.api.Test; - /** * Model tests for OuterEnum */ diff --git a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/PetTest.java b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/PetTest.java index f7276f8e317a..3615ffe1c442 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/PetTest.java +++ b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/PetTest.java @@ -18,9 +18,11 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; +import java.util.Arrays; import java.util.LinkedHashSet; import java.util.List; import java.util.Set; @@ -28,7 +30,6 @@ import org.openapitools.client.model.Tag; import org.junit.jupiter.api.Test; - /** * Model tests for Pet */ diff --git a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/ReadOnlyFirstTest.java b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/ReadOnlyFirstTest.java index a8dd8e927226..dec1339c96d2 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/ReadOnlyFirstTest.java +++ b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/ReadOnlyFirstTest.java @@ -22,7 +22,6 @@ import io.swagger.annotations.ApiModelProperty; import org.junit.jupiter.api.Test; - /** * Model tests for ReadOnlyFirst */ diff --git a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/SpecialModelNameTest.java b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/SpecialModelNameTest.java index 028705916ee4..0ef3b0e23eda 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/SpecialModelNameTest.java +++ b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/SpecialModelNameTest.java @@ -22,7 +22,6 @@ import io.swagger.annotations.ApiModelProperty; import org.junit.jupiter.api.Test; - /** * Model tests for SpecialModelName */ diff --git a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/TagTest.java b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/TagTest.java index 174a9319f89a..8eb56ea16250 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/TagTest.java +++ b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/TagTest.java @@ -22,7 +22,6 @@ import io.swagger.annotations.ApiModelProperty; import org.junit.jupiter.api.Test; - /** * Model tests for Tag */ diff --git a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/TypeHolderDefaultTest.java b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/TypeHolderDefaultTest.java index f425fc23a78d..10d3ffc63596 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/TypeHolderDefaultTest.java +++ b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/TypeHolderDefaultTest.java @@ -22,10 +22,10 @@ import io.swagger.annotations.ApiModelProperty; import java.math.BigDecimal; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.junit.jupiter.api.Test; - /** * Model tests for TypeHolderDefault */ diff --git a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/TypeHolderExampleTest.java b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/TypeHolderExampleTest.java index 3c67b8b650f9..a71996830e46 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/TypeHolderExampleTest.java +++ b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/TypeHolderExampleTest.java @@ -22,10 +22,10 @@ import io.swagger.annotations.ApiModelProperty; import java.math.BigDecimal; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.junit.jupiter.api.Test; - /** * Model tests for TypeHolderExample */ diff --git a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/UserTest.java b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/UserTest.java index f01cfceed72f..91ea5f1ce933 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/UserTest.java +++ b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/UserTest.java @@ -22,7 +22,6 @@ import io.swagger.annotations.ApiModelProperty; import org.junit.jupiter.api.Test; - /** * Model tests for User */ diff --git a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/XmlItemTest.java b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/XmlItemTest.java index 6649fefb8858..6bd25356292d 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/XmlItemTest.java +++ b/samples/client/petstore/java/feign-no-nullable/src/test/java/org/openapitools/client/model/XmlItemTest.java @@ -22,10 +22,10 @@ import io.swagger.annotations.ApiModelProperty; import java.math.BigDecimal; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.junit.jupiter.api.Test; - /** * Model tests for XmlItem */ diff --git a/samples/client/petstore/java/feign/src/test/java/org/openapitools/client/api/FakeApiTest.java b/samples/client/petstore/java/feign/src/test/java/org/openapitools/client/api/FakeApiTest.java index 0a6fc5e70825..a6b835636094 100644 --- a/samples/client/petstore/java/feign/src/test/java/org/openapitools/client/api/FakeApiTest.java +++ b/samples/client/petstore/java/feign/src/test/java/org/openapitools/client/api/FakeApiTest.java @@ -14,6 +14,7 @@ import org.openapitools.client.model.OuterComposite; import org.openapitools.client.model.OuterObjectWithEnumProperty; import org.openapitools.client.model.Pet; +import org.openapitools.client.model.TestInlineFreeformAdditionalPropertiesRequest; import org.openapitools.client.model.User; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.BeforeEach; @@ -168,6 +169,20 @@ void fakePropertyEnumIntegerSerializeTest() { } + /** + * test referenced additionalProperties + * + * + */ + @Test + void testAdditionalPropertiesReferenceTest() { + Map requestBody = null; + // api.testAdditionalPropertiesReference(requestBody); + + // TODO: test validations + } + + /** * * @@ -369,6 +384,20 @@ void testInlineAdditionalPropertiesTest() { } + /** + * test inline free-form additionalProperties + * + * + */ + @Test + void testInlineFreeformAdditionalPropertiesTest() { + TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest = null; + // api.testInlineFreeformAdditionalProperties(testInlineFreeformAdditionalPropertiesRequest); + + // TODO: test validations + } + + /** * test json serialization of form data * @@ -440,4 +469,18 @@ void testQueryParameterCollectionFormatTestQueryMap() { // TODO: test validations } + /** + * test referenced string map + * + * + */ + @Test + void testStringMapReferenceTest() { + Map requestBody = null; + // api.testStringMapReference(requestBody); + + // TODO: test validations + } + + } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java index 2b9189db2644..043be2088a1a 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java @@ -16,6 +16,7 @@ import org.openapitools.client.*; import org.openapitools.client.auth.*; import org.openapitools.client.model.Client; +import java.util.UUID; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; @@ -42,8 +43,9 @@ public class AnotherFakeApiTest { */ @Test public void call123testSpecialTagsTest() throws ApiException { + //UUID uuidTest = null; //Client body = null; - //Client response = api.call123testSpecialTags(body); + //Client response = api.call123testSpecialTags(uuidTest, body); // TODO: test validations } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/AdditionalPropertiesAnyTypeTest.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/AdditionalPropertiesAnyTypeTest.java index a3b40ded6ba9..c695dec76bcd 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/AdditionalPropertiesAnyTypeTest.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/AdditionalPropertiesAnyTypeTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/AdditionalPropertiesArrayTest.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/AdditionalPropertiesArrayTest.java index 143f76aa688e..45a618548598 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/AdditionalPropertiesArrayTest.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/AdditionalPropertiesArrayTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import java.util.List; import org.junit.jupiter.api.Assertions; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/AdditionalPropertiesBooleanTest.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/AdditionalPropertiesBooleanTest.java index 1efe7af503c2..5f13488c4666 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/AdditionalPropertiesBooleanTest.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/AdditionalPropertiesBooleanTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/AdditionalPropertiesClassTest.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/AdditionalPropertiesClassTest.java index 92ee1996fcad..c80eeb7d94ff 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/AdditionalPropertiesClassTest.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/AdditionalPropertiesClassTest.java @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.math.BigDecimal; +import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/AdditionalPropertiesIntegerTest.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/AdditionalPropertiesIntegerTest.java index 63a9b6bf0d36..2a805723e40e 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/AdditionalPropertiesIntegerTest.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/AdditionalPropertiesIntegerTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/AdditionalPropertiesNumberTest.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/AdditionalPropertiesNumberTest.java index ebd3df96b58e..3c49d09266b6 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/AdditionalPropertiesNumberTest.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/AdditionalPropertiesNumberTest.java @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.math.BigDecimal; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/AdditionalPropertiesObjectTest.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/AdditionalPropertiesObjectTest.java index 9a66483bb7f5..88a49489044c 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/AdditionalPropertiesObjectTest.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/AdditionalPropertiesObjectTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import java.util.Map; import org.junit.jupiter.api.Assertions; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/AdditionalPropertiesStringTest.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/AdditionalPropertiesStringTest.java index e041ad439e84..986f68752145 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/AdditionalPropertiesStringTest.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/AdditionalPropertiesStringTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/AnimalTest.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/AnimalTest.java index f8a7e5a8a238..8135b9b319d8 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/AnimalTest.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/AnimalTest.java @@ -21,9 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import org.openapitools.client.model.BigCat; -import org.openapitools.client.model.Cat; -import org.openapitools.client.model.Dog; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnlyTest.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnlyTest.java index 90360a009299..3755829c9440 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnlyTest.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnlyTest.java @@ -20,6 +20,7 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.math.BigDecimal; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.junit.jupiter.api.Assertions; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/ArrayOfNumberOnlyTest.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/ArrayOfNumberOnlyTest.java index 8a3cf3499c5c..ab7e1740ca1f 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/ArrayOfNumberOnlyTest.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/ArrayOfNumberOnlyTest.java @@ -20,6 +20,7 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.math.BigDecimal; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.junit.jupiter.api.Assertions; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/ArrayTestTest.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/ArrayTestTest.java index 38576d0e5549..06487a1277e9 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/ArrayTestTest.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/ArrayTestTest.java @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.ReadOnlyFirst; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/BigCatTest.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/BigCatTest.java index ec47e3041f8f..045ccb0a5634 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/BigCatTest.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/BigCatTest.java @@ -21,6 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.openapitools.client.model.Cat; import org.junit.jupiter.api.Assertions; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/CapitalizationTest.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/CapitalizationTest.java index 91de07ebb31c..61e2705665e9 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/CapitalizationTest.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/CapitalizationTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/CatTest.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/CatTest.java index 7d78e2006a65..44211823e084 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/CatTest.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/CatTest.java @@ -21,8 +21,8 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.openapitools.client.model.Animal; -import org.openapitools.client.model.BigCat; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/CategoryTest.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/CategoryTest.java index 2a0d0925184f..eec4493e93e1 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/CategoryTest.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/CategoryTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/ClassModelTest.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/ClassModelTest.java index 9acb93988032..4885e656ca45 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/ClassModelTest.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/ClassModelTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/ClientTest.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/ClientTest.java index 93e64697cbe8..31b3cea2211e 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/ClientTest.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/ClientTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/DogTest.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/DogTest.java index ca4e7f1a4318..ed5671f13565 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/DogTest.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/DogTest.java @@ -21,6 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.openapitools.client.model.Animal; import org.junit.jupiter.api.Assertions; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/EnumArraysTest.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/EnumArraysTest.java index 0ebeeae1b90b..597c60bc8552 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/EnumArraysTest.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/EnumArraysTest.java @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.junit.jupiter.api.Assertions; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/EnumTestTest.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/EnumTestTest.java index c5eaa9cbbae2..2d4998dca4ab 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/EnumTestTest.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/EnumTestTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.openapitools.client.model.OuterEnum; import org.junit.jupiter.api.Assertions; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/FileSchemaTestClassTest.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/FileSchemaTestClassTest.java index ca53f2710093..65b2f87ca4ff 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/FileSchemaTestClassTest.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/FileSchemaTestClassTest.java @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.ModelFile; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/FormatTestTest.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/FormatTestTest.java index fa653ea0e558..9209a14fb18a 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/FormatTestTest.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/FormatTestTest.java @@ -22,6 +22,7 @@ import java.math.BigDecimal; import java.time.LocalDate; import java.time.LocalDateTime; +import java.util.Arrays; import java.util.UUID; import org.junit.jupiter.api.Assertions; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/HasOnlyReadOnlyTest.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/HasOnlyReadOnlyTest.java index a692eed31917..11e0bbe44d1a 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/HasOnlyReadOnlyTest.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/HasOnlyReadOnlyTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/MapTestTest.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/MapTestTest.java index 394bf4686bcb..50911103f2ca 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/MapTestTest.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/MapTestTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import java.util.HashMap; import java.util.Map; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClassTest.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClassTest.java index 695e74c05c5e..0e795bcdb638 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClassTest.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClassTest.java @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.time.LocalDateTime; +import java.util.Arrays; import java.util.HashMap; import java.util.Map; import java.util.UUID; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/Model200ResponseTest.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/Model200ResponseTest.java index 285f5b025745..801d94e0118d 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/Model200ResponseTest.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/Model200ResponseTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java index 6285dc269862..4c2dd601ddbf 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/ModelFileTest.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/ModelFileTest.java index fe9ae2553223..2313cc948c0b 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/ModelFileTest.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/ModelFileTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/ModelListTest.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/ModelListTest.java index ec7f17d1af01..5644a525efc7 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/ModelListTest.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/ModelListTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/ModelReturnTest.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/ModelReturnTest.java index 6b8041eab6b2..19dde4952627 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/ModelReturnTest.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/ModelReturnTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/NameTest.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/NameTest.java index 5d5d3f7a36fd..aead3c674dbb 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/NameTest.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/NameTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/NumberOnlyTest.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/NumberOnlyTest.java index 15b10302575f..c73a53c6ee56 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/NumberOnlyTest.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/NumberOnlyTest.java @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.math.BigDecimal; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/OrderTest.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/OrderTest.java index 5160102d04fb..229b88516d32 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/OrderTest.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/OrderTest.java @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.time.LocalDateTime; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/OuterCompositeTest.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/OuterCompositeTest.java index 9498ef7e68a4..d454f2e1aa12 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/OuterCompositeTest.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/OuterCompositeTest.java @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.math.BigDecimal; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/PetTest.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/PetTest.java index d78aba7b3bb3..71a9ec445594 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/PetTest.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/PetTest.java @@ -20,6 +20,7 @@ import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import java.util.ArrayList; +import java.util.Arrays; import java.util.LinkedHashSet; import java.util.List; import java.util.Set; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/ReadOnlyFirstTest.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/ReadOnlyFirstTest.java index d77e0b2a92dc..689d39696231 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/ReadOnlyFirstTest.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/ReadOnlyFirstTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/SpecialModelNameTest.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/SpecialModelNameTest.java index 4c097adf496c..cac2d6e266bc 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/SpecialModelNameTest.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/SpecialModelNameTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/TagTest.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/TagTest.java index db8d746a636e..a8ccab7ac1b7 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/TagTest.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/TagTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/TypeHolderDefaultTest.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/TypeHolderDefaultTest.java index 564737ef3e6f..6427636e2d26 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/TypeHolderDefaultTest.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/TypeHolderDefaultTest.java @@ -20,6 +20,7 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.math.BigDecimal; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.junit.jupiter.api.Assertions; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/TypeHolderExampleTest.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/TypeHolderExampleTest.java index 6bdecdc942d3..384e0165b39e 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/TypeHolderExampleTest.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/TypeHolderExampleTest.java @@ -20,6 +20,7 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.math.BigDecimal; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.junit.jupiter.api.Assertions; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/UserTest.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/UserTest.java index 5854974e6f6c..67dfd4c02fcb 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/UserTest.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/UserTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/XmlItemTest.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/XmlItemTest.java index 95f103a547ff..33c3f0c1d971 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/XmlItemTest.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/test/java/org/openapitools/client/model/XmlItemTest.java @@ -20,6 +20,7 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.math.BigDecimal; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.junit.jupiter.api.Assertions; diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/api/FakeApiTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/api/FakeApiTest.java index 33689726ebff..ecd93961a822 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/api/FakeApiTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/api/FakeApiTest.java @@ -13,7 +13,8 @@ package org.openapitools.client.api; -import org.openapitools.client.ApiException; +import org.openapitools.client.*; +import org.openapitools.client.auth.*; import java.math.BigDecimal; import org.openapitools.client.model.Client; import java.io.File; @@ -23,8 +24,10 @@ import org.openapitools.client.model.OuterComposite; import org.openapitools.client.model.User; import org.openapitools.client.model.XmlItem; -import org.junit.jupiter.api.Test; + +import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; import java.util.ArrayList; import java.util.HashMap; @@ -34,258 +37,222 @@ /** * API tests for FakeApi */ -@Disabled public class FakeApiTest { private final FakeApi api = new FakeApi(); - /** * creates an XmlItem * * this route creates an XmlItem * - * @throws ApiException - * if the Api call fails + * @throws ApiException if the Api call fails */ @Test public void createXmlItemTest() throws ApiException { - XmlItem xmlItem = null; - api.createXmlItem(xmlItem); + //XmlItem xmlItem = null; + //api.createXmlItem(xmlItem); // TODO: test validations } - + /** - * - * * Test serialization of outer boolean types * - * @throws ApiException - * if the Api call fails + * @throws ApiException if the Api call fails */ @Test public void fakeOuterBooleanSerializeTest() throws ApiException { - Boolean body = null; - Boolean response = api.fakeOuterBooleanSerialize(body); + //Boolean body = null; + //Boolean response = api.fakeOuterBooleanSerialize(body); // TODO: test validations } - + /** - * - * * Test serialization of object with outer number type * - * @throws ApiException - * if the Api call fails + * @throws ApiException if the Api call fails */ @Test public void fakeOuterCompositeSerializeTest() throws ApiException { - OuterComposite body = null; - OuterComposite response = api.fakeOuterCompositeSerialize(body); + //OuterComposite body = null; + //OuterComposite response = api.fakeOuterCompositeSerialize(body); // TODO: test validations } - + /** - * - * * Test serialization of outer number types * - * @throws ApiException - * if the Api call fails + * @throws ApiException if the Api call fails */ @Test public void fakeOuterNumberSerializeTest() throws ApiException { - BigDecimal body = null; - BigDecimal response = api.fakeOuterNumberSerialize(body); + //BigDecimal body = null; + //BigDecimal response = api.fakeOuterNumberSerialize(body); // TODO: test validations } - + /** - * - * * Test serialization of outer string types * - * @throws ApiException - * if the Api call fails + * @throws ApiException if the Api call fails */ @Test public void fakeOuterStringSerializeTest() throws ApiException { - String body = null; - String response = api.fakeOuterStringSerialize(body); + //String body = null; + //String response = api.fakeOuterStringSerialize(body); // TODO: test validations } - + /** - * - * * For this test, the body for this request much reference a schema named `File`. * - * @throws ApiException - * if the Api call fails + * @throws ApiException if the Api call fails */ @Test public void testBodyWithFileSchemaTest() throws ApiException { - FileSchemaTestClass body = null; - api.testBodyWithFileSchema(body); + //FileSchemaTestClass body = null; + //api.testBodyWithFileSchema(body); // TODO: test validations } - + /** - * - * - * - * - * @throws ApiException - * if the Api call fails + * @throws ApiException if the Api call fails */ @Test public void testBodyWithQueryParamsTest() throws ApiException { - String query = null; - User body = null; - api.testBodyWithQueryParams(query, body); + //String query = null; + //User body = null; + //api.testBodyWithQueryParams(query, body); // TODO: test validations } - + /** * To test \"client\" model * * To test \"client\" model * - * @throws ApiException - * if the Api call fails + * @throws ApiException if the Api call fails */ @Test public void testClientModelTest() throws ApiException { - Client body = null; - Client response = api.testClientModel(body); + //Client body = null; + //Client response = api.testClientModel(body); // TODO: test validations } - + /** - * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 + * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 * - * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 + * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 * - * @throws ApiException - * if the Api call fails + * @throws ApiException if the Api call fails */ @Test public void testEndpointParametersTest() throws ApiException { - BigDecimal number = null; - Double _double = null; - String patternWithoutDelimiter = null; - byte[] _byte = null; - Integer integer = null; - Integer int32 = null; - Long int64 = null; - Float _float = null; - String string = null; - File binary = null; - LocalDate date = null; - OffsetDateTime dateTime = null; - String password = null; - String paramCallback = null; - api.testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback); + //BigDecimal number = null; + //Double _double = null; + //String patternWithoutDelimiter = null; + //byte[] _byte = null; + //Integer integer = null; + //Integer int32 = null; + //Long int64 = null; + //Float _float = null; + //String string = null; + //File binary = null; + //LocalDate date = null; + //OffsetDateTime dateTime = null; + //String password = null; + //String paramCallback = null; + //api.testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback); // TODO: test validations } - + /** * To test enum parameters * * To test enum parameters * - * @throws ApiException - * if the Api call fails + * @throws ApiException if the Api call fails */ @Test public void testEnumParametersTest() throws ApiException { - List enumHeaderStringArray = null; - String enumHeaderString = null; - List enumQueryStringArray = null; - String enumQueryString = null; - Integer enumQueryInteger = null; - Double enumQueryDouble = null; - List enumFormStringArray = null; - String enumFormString = null; - api.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString); + //List enumHeaderStringArray = null; + //String enumHeaderString = null; + //List enumQueryStringArray = null; + //String enumQueryString = null; + //Integer enumQueryInteger = null; + //Double enumQueryDouble = null; + //List enumFormStringArray = null; + //String enumFormString = null; + //api.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString); // TODO: test validations } - + /** * Fake endpoint to test group parameters (optional) * * Fake endpoint to test group parameters (optional) * - * @throws ApiException - * if the Api call fails + * @throws ApiException if the Api call fails */ @Test public void testGroupParametersTest() throws ApiException { - Integer requiredStringGroup = null; - Boolean requiredBooleanGroup = null; - Long requiredInt64Group = null; - Integer stringGroup = null; - Boolean booleanGroup = null; - Long int64Group = null; - api.testGroupParameters() - .requiredStringGroup(requiredStringGroup) - .requiredBooleanGroup(requiredBooleanGroup) - .requiredInt64Group(requiredInt64Group) - .stringGroup(stringGroup) - .booleanGroup(booleanGroup) - .int64Group(int64Group) - .execute(); + //Integer requiredStringGroup = null; + //Boolean requiredBooleanGroup = null; + //Long requiredInt64Group = null; + //Integer stringGroup = null; + //Boolean booleanGroup = null; + //Long int64Group = null; + //api.testGroupParameters() + // .requiredStringGroup(requiredStringGroup) + // .requiredBooleanGroup(requiredBooleanGroup) + // .requiredInt64Group(requiredInt64Group) + // .stringGroup(stringGroup) + // .booleanGroup(booleanGroup) + // .int64Group(int64Group) + // .execute(); // TODO: test validations } - + /** * test inline additionalProperties * - * - * - * @throws ApiException - * if the Api call fails + * @throws ApiException if the Api call fails */ @Test public void testInlineAdditionalPropertiesTest() throws ApiException { - Map param = null; - api.testInlineAdditionalProperties(param); + //Map param = null; + //api.testInlineAdditionalProperties(param); // TODO: test validations } - + /** * test json serialization of form data * - * - * - * @throws ApiException - * if the Api call fails + * @throws ApiException if the Api call fails */ @Test public void testJsonFormDataTest() throws ApiException { - String param = null; - String param2 = null; - api.testJsonFormData(param, param2); + //String param = null; + //String param2 = null; + //api.testJsonFormData(param, param2); // TODO: test validations } - + /** - * - * * To test the collection format in query parameters * - * @throws ApiException - * if the Api call fails + * @throws ApiException if the Api call fails */ @Test public void testQueryParameterCollectionFormatTest() throws ApiException { - List pipe = null; - List ioutil = null; - List http = null; - List url = null; - List context = null; - api.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context); + //List pipe = null; + //List ioutil = null; + //List http = null; + //List url = null; + //List context = null; + //api.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context); // TODO: test validations } - + } diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/api/FakeClassnameTags123ApiTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/api/FakeClassnameTags123ApiTest.java index 506fbd74b25a..fdf6c4c637b5 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/api/FakeClassnameTags123ApiTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/api/FakeClassnameTags123ApiTest.java @@ -13,10 +13,13 @@ package org.openapitools.client.api; -import org.openapitools.client.ApiException; +import org.openapitools.client.*; +import org.openapitools.client.auth.*; import org.openapitools.client.model.Client; -import org.junit.jupiter.api.Test; + +import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; import java.util.ArrayList; import java.util.HashMap; @@ -26,25 +29,22 @@ /** * API tests for FakeClassnameTags123Api */ -@Disabled public class FakeClassnameTags123ApiTest { private final FakeClassnameTags123Api api = new FakeClassnameTags123Api(); - /** * To test class name in snake case * * To test class name in snake case * - * @throws ApiException - * if the Api call fails + * @throws ApiException if the Api call fails */ @Test public void testClassnameTest() throws ApiException { - Client body = null; - Client response = api.testClassname(body); + //Client body = null; + //Client response = api.testClassname(body); // TODO: test validations } - + } diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/api/PetApiTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/api/PetApiTest.java index 7a253d8d5a6c..490cf38aa0a2 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/api/PetApiTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/api/PetApiTest.java @@ -3,7 +3,7 @@ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -13,22 +13,21 @@ package org.openapitools.client.api; -import static org.junit.jupiter.api.Assertions.*; +import org.openapitools.client.*; +import org.openapitools.client.auth.*; +import java.io.File; +import org.openapitools.client.model.ModelApiResponse; +import org.openapitools.client.model.Pet; +import java.util.Set; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; -import org.openapitools.client.ApiClient; -import org.openapitools.client.ApiException; -import org.openapitools.client.Configuration; -import org.openapitools.client.auth.ApiKeyAuth; -import org.openapitools.client.model.Category; -import org.openapitools.client.model.Pet; -import org.openapitools.client.model.Tag; -import java.io.File; -import java.util.Arrays; -import java.util.HashSet; +import java.util.ArrayList; +import java.util.HashMap; import java.util.List; -import java.util.Set; +import java.util.Map; /** * API tests for PetApi @@ -36,8 +35,6 @@ public class PetApiTest { private final PetApi api = new PetApi(); - private final long petId = 5638l; - /** * Add a new pet to the store @@ -46,61 +43,9 @@ public class PetApiTest { */ @Test public void addPetTest() throws ApiException { - // add pet - Pet body = new Pet(); - body.setId(petId); - body.setName("jersey2 java8 pet"); - Category category = new Category(); - category.setId(petId); - category.setName("jersey2 java8 category"); - body.setCategory(category); - body.setStatus(Pet.StatusEnum.AVAILABLE); - body.setPhotoUrls(new HashSet<>(Arrays.asList("A", "B", "C"))); - Tag tag = new Tag(); - tag.setId(petId); - tag.setName("jersey2 java8 tag"); - body.setTags(Arrays.asList(tag)); - - api.addPet(body); - - //get pet by ID - Pet result = api.getPetById(petId); - assertEquals(result.getId(), body.getId()); - assertEquals(result.getCategory(), category); - assertEquals(result.getName(), body.getName()); - assertEquals(result.getPhotoUrls(), body.getPhotoUrls()); - assertEquals(result.getStatus(), body.getStatus()); - assertEquals(result.getTags(), body.getTags()); - - // update pet - api.updatePetWithForm(petId, "jersey2 java8 pet 2", "sold"); - - //get pet by ID - Pet result2 = api.getPetById(petId); - assertEquals(result2.getId(), body.getId()); - assertEquals(result2.getCategory(), category); - assertEquals(result2.getName(), "jersey2 java8 pet 2"); - assertEquals(result2.getPhotoUrls(), body.getPhotoUrls()); - assertEquals(result2.getStatus(), Pet.StatusEnum.SOLD); - assertEquals(result2.getTags(), body.getTags()); - - // delete pet - api.deletePet(petId, "empty api key"); - - try { - Pet result3 = api.getPetById(petId); - assertEquals(false, true); - } catch (ApiException e) { -// System.err.println("Exception when calling PetApi#getPetById"); -// System.err.println("Status code: " + e.getCode()); -// System.err.println("Reason: " + e.getResponseBody()); -// System.err.println("Response headers: " + e.getResponseHeaders()); - - assertEquals(e.getCode(), 404); - assertEquals(e.getResponseBody(), "{\"code\":1,\"type\":\"error\",\"message\":\"Pet not found\"}"); - - } - + //Pet body = null; + //api.addPet(body); + // TODO: test validations } /** @@ -110,70 +55,52 @@ public void addPetTest() throws ApiException { */ @Test public void deletePetTest() throws ApiException { - Long petId = null; - String apiKey = null; - // TODO: test validations + //Long petId = null; + //String apiKey = null; //api.deletePet(petId, apiKey); + // TODO: test validations } /** * Finds Pets by status - *

+ * * Multiple status values can be provided with comma separated strings * * @throws ApiException if the Api call fails */ @Test public void findPetsByStatusTest() throws ApiException { - List status = null; + //List status = null; //List response = api.findPetsByStatus(status); // TODO: test validations } /** * Finds Pets by tags - *

+ * * Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. * * @throws ApiException if the Api call fails */ @Test public void findPetsByTagsTest() throws ApiException { - Set tags = null; + //Set tags = null; //Set response = api.findPetsByTags(tags); // TODO: test validations } /** * Find pet by ID - *

+ * * Returns a single pet * * @throws ApiException if the Api call fails */ @Test public void getPetByIdTest() throws ApiException { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); - - // Configure API key authorization: api_key - ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key"); - api_key.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //api_key.setApiKeyPrefix("Token"); - - PetApi apiInstance = new PetApi(defaultClient); - Long petId = 56L; // Long | ID of pet to return - try { - Pet result = apiInstance.getPetById(petId); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling PetApi#getPetById"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - } - + //Long petId = null; + //Pet response = api.getPetById(petId); + // TODO: test validations } /** @@ -183,7 +110,7 @@ public void getPetByIdTest() throws ApiException { */ @Test public void updatePetTest() throws ApiException { - Pet body = null; + //Pet body = null; //api.updatePet(body); // TODO: test validations } @@ -195,9 +122,9 @@ public void updatePetTest() throws ApiException { */ @Test public void updatePetWithFormTest() throws ApiException { - Long petId = null; - String name = null; - String status = null; + //Long petId = null; + //String name = null; + //String status = null; //api.updatePetWithForm(petId, name, status); // TODO: test validations } @@ -209,10 +136,10 @@ public void updatePetWithFormTest() throws ApiException { */ @Test public void uploadFileTest() throws ApiException { - Long petId = null; - String additionalMetadata = null; - File file = null; - //ModelApiResponse response = api.uploadFile(petId, additionalMetadata, file); + //Long petId = null; + //String additionalMetadata = null; + //File _file = null; + //ModelApiResponse response = api.uploadFile(petId, additionalMetadata, _file); // TODO: test validations } @@ -223,9 +150,9 @@ public void uploadFileTest() throws ApiException { */ @Test public void uploadFileWithRequiredFileTest() throws ApiException { - Long petId = null; - File requiredFile = null; - String additionalMetadata = null; + //Long petId = null; + //File requiredFile = null; + //String additionalMetadata = null; //ModelApiResponse response = api.uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata); // TODO: test validations } diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/api/StoreApiTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/api/StoreApiTest.java index db5d1415a4e7..49e5d0ddbb13 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/api/StoreApiTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/api/StoreApiTest.java @@ -13,10 +13,13 @@ package org.openapitools.client.api; -import org.openapitools.client.ApiException; +import org.openapitools.client.*; +import org.openapitools.client.auth.*; import org.openapitools.client.model.Order; -import org.junit.jupiter.api.Test; + +import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; import java.util.ArrayList; import java.util.HashMap; @@ -26,69 +29,61 @@ /** * API tests for StoreApi */ -@Disabled public class StoreApiTest { private final StoreApi api = new StoreApi(); - /** * Delete purchase order by ID * * For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors * - * @throws ApiException - * if the Api call fails + * @throws ApiException if the Api call fails */ @Test public void deleteOrderTest() throws ApiException { - String orderId = null; - api.deleteOrder(orderId); + //String orderId = null; + //api.deleteOrder(orderId); // TODO: test validations } - + /** * Returns pet inventories by status * * Returns a map of status codes to quantities * - * @throws ApiException - * if the Api call fails + * @throws ApiException if the Api call fails */ @Test public void getInventoryTest() throws ApiException { - Map response = api.getInventory(); + //Map response = api.getInventory(); // TODO: test validations } - + /** * Find purchase order by ID * * For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions * - * @throws ApiException - * if the Api call fails + * @throws ApiException if the Api call fails */ @Test public void getOrderByIdTest() throws ApiException { - Long orderId = null; - Order response = api.getOrderById(orderId); + //Long orderId = null; + //Order response = api.getOrderById(orderId); // TODO: test validations } - + /** * Place an order for a pet * - * - * - * @throws ApiException - * if the Api call fails + * @throws ApiException if the Api call fails */ @Test public void placeOrderTest() throws ApiException { - Order body = null; - Order response = api.placeOrder(body); + //Order body = null; + //Order response = api.placeOrder(body); // TODO: test validations } - + } diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/api/UserApiTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/api/UserApiTest.java index b63e4f889121..b47b060fbe77 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/api/UserApiTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/api/UserApiTest.java @@ -13,10 +13,14 @@ package org.openapitools.client.api; -import org.openapitools.client.ApiException; +import org.openapitools.client.*; +import org.openapitools.client.auth.*; +import java.time.OffsetDateTime; import org.openapitools.client.model.User; -import org.junit.jupiter.api.Test; + +import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; import java.util.ArrayList; import java.util.HashMap; @@ -26,131 +30,111 @@ /** * API tests for UserApi */ -@Disabled public class UserApiTest { private final UserApi api = new UserApi(); - /** * Create user * * This can only be done by the logged in user. * - * @throws ApiException - * if the Api call fails + * @throws ApiException if the Api call fails */ @Test public void createUserTest() throws ApiException { - User body = null; - api.createUser(body); + //User body = null; + //api.createUser(body); // TODO: test validations } - + /** * Creates list of users with given input array * - * - * - * @throws ApiException - * if the Api call fails + * @throws ApiException if the Api call fails */ @Test public void createUsersWithArrayInputTest() throws ApiException { - List body = null; - api.createUsersWithArrayInput(body); + //List body = null; + //api.createUsersWithArrayInput(body); // TODO: test validations } - + /** * Creates list of users with given input array * - * - * - * @throws ApiException - * if the Api call fails + * @throws ApiException if the Api call fails */ @Test public void createUsersWithListInputTest() throws ApiException { - List body = null; - api.createUsersWithListInput(body); + //List body = null; + //api.createUsersWithListInput(body); // TODO: test validations } - + /** * Delete user * * This can only be done by the logged in user. * - * @throws ApiException - * if the Api call fails + * @throws ApiException if the Api call fails */ @Test public void deleteUserTest() throws ApiException { - String username = null; - api.deleteUser(username); + //String username = null; + //api.deleteUser(username); // TODO: test validations } - + /** * Get user by user name * - * - * - * @throws ApiException - * if the Api call fails + * @throws ApiException if the Api call fails */ @Test public void getUserByNameTest() throws ApiException { - String username = null; - User response = api.getUserByName(username); + //String username = null; + //User response = api.getUserByName(username); // TODO: test validations } - + /** * Logs user into the system * - * - * - * @throws ApiException - * if the Api call fails + * @throws ApiException if the Api call fails */ @Test public void loginUserTest() throws ApiException { - String username = null; - String password = null; - String response = api.loginUser(username, password); + //String username = null; + //String password = null; + //String response = api.loginUser(username, password); // TODO: test validations } - + /** * Logs out current logged in user session * - * - * - * @throws ApiException - * if the Api call fails + * @throws ApiException if the Api call fails */ @Test public void logoutUserTest() throws ApiException { - api.logoutUser(); + //api.logoutUser(); // TODO: test validations } - + /** * Updated user * * This can only be done by the logged in user. * - * @throws ApiException - * if the Api call fails + * @throws ApiException if the Api call fails */ @Test public void updateUserTest() throws ApiException { - String username = null; - User body = null; - api.updateUser(username, body); + //String username = null; + //User body = null; + //api.updateUser(username, body); // TODO: test validations } - + } diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AdditionalPropertiesAnyTypeTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AdditionalPropertiesAnyTypeTest.java index a3b40ded6ba9..c695dec76bcd 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AdditionalPropertiesAnyTypeTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AdditionalPropertiesAnyTypeTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AdditionalPropertiesArrayTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AdditionalPropertiesArrayTest.java index 143f76aa688e..45a618548598 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AdditionalPropertiesArrayTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AdditionalPropertiesArrayTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import java.util.List; import org.junit.jupiter.api.Assertions; diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AdditionalPropertiesBooleanTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AdditionalPropertiesBooleanTest.java index 1efe7af503c2..5f13488c4666 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AdditionalPropertiesBooleanTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AdditionalPropertiesBooleanTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AdditionalPropertiesClassTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AdditionalPropertiesClassTest.java index 92ee1996fcad..c80eeb7d94ff 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AdditionalPropertiesClassTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AdditionalPropertiesClassTest.java @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.math.BigDecimal; +import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AdditionalPropertiesIntegerTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AdditionalPropertiesIntegerTest.java index 63a9b6bf0d36..2a805723e40e 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AdditionalPropertiesIntegerTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AdditionalPropertiesIntegerTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AdditionalPropertiesNumberTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AdditionalPropertiesNumberTest.java index ebd3df96b58e..3c49d09266b6 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AdditionalPropertiesNumberTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AdditionalPropertiesNumberTest.java @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.math.BigDecimal; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AdditionalPropertiesObjectTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AdditionalPropertiesObjectTest.java index 9a66483bb7f5..88a49489044c 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AdditionalPropertiesObjectTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AdditionalPropertiesObjectTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import java.util.Map; import org.junit.jupiter.api.Assertions; diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AdditionalPropertiesStringTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AdditionalPropertiesStringTest.java index e041ad439e84..986f68752145 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AdditionalPropertiesStringTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AdditionalPropertiesStringTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AnimalTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AnimalTest.java index f8a7e5a8a238..8135b9b319d8 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AnimalTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AnimalTest.java @@ -21,9 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import org.openapitools.client.model.BigCat; -import org.openapitools.client.model.Cat; -import org.openapitools.client.model.Dog; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnlyTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnlyTest.java index 90360a009299..3755829c9440 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnlyTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnlyTest.java @@ -20,6 +20,7 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.math.BigDecimal; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.junit.jupiter.api.Assertions; diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ArrayOfNumberOnlyTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ArrayOfNumberOnlyTest.java index 8a3cf3499c5c..ab7e1740ca1f 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ArrayOfNumberOnlyTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ArrayOfNumberOnlyTest.java @@ -20,6 +20,7 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.math.BigDecimal; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.junit.jupiter.api.Assertions; diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ArrayTestTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ArrayTestTest.java index 38576d0e5549..06487a1277e9 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ArrayTestTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ArrayTestTest.java @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.ReadOnlyFirst; diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/BigCatTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/BigCatTest.java index ec47e3041f8f..045ccb0a5634 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/BigCatTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/BigCatTest.java @@ -21,6 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.openapitools.client.model.Cat; import org.junit.jupiter.api.Assertions; diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/CapitalizationTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/CapitalizationTest.java index 91de07ebb31c..61e2705665e9 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/CapitalizationTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/CapitalizationTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/CatTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/CatTest.java index 7d78e2006a65..44211823e084 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/CatTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/CatTest.java @@ -21,8 +21,8 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.openapitools.client.model.Animal; -import org.openapitools.client.model.BigCat; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/CategoryTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/CategoryTest.java index 2a0d0925184f..eec4493e93e1 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/CategoryTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/CategoryTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ClassModelTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ClassModelTest.java index 9acb93988032..4885e656ca45 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ClassModelTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ClassModelTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ClientTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ClientTest.java index 93e64697cbe8..31b3cea2211e 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ClientTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ClientTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/DogTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/DogTest.java index ca4e7f1a4318..ed5671f13565 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/DogTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/DogTest.java @@ -21,6 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.openapitools.client.model.Animal; import org.junit.jupiter.api.Assertions; diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/EnumArraysTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/EnumArraysTest.java index 0ebeeae1b90b..597c60bc8552 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/EnumArraysTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/EnumArraysTest.java @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.junit.jupiter.api.Assertions; diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/EnumTestTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/EnumTestTest.java index c5eaa9cbbae2..2d4998dca4ab 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/EnumTestTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/EnumTestTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.openapitools.client.model.OuterEnum; import org.junit.jupiter.api.Assertions; diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/FileSchemaTestClassTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/FileSchemaTestClassTest.java index ca53f2710093..65b2f87ca4ff 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/FileSchemaTestClassTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/FileSchemaTestClassTest.java @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.ModelFile; diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/FormatTestTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/FormatTestTest.java index 548386b3db54..0681e5ac5b6f 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/FormatTestTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/FormatTestTest.java @@ -22,6 +22,7 @@ import java.math.BigDecimal; import java.time.LocalDate; import java.time.OffsetDateTime; +import java.util.Arrays; import java.util.UUID; import org.junit.jupiter.api.Assertions; diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/HasOnlyReadOnlyTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/HasOnlyReadOnlyTest.java index a692eed31917..11e0bbe44d1a 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/HasOnlyReadOnlyTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/HasOnlyReadOnlyTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/MapTestTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/MapTestTest.java index 394bf4686bcb..50911103f2ca 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/MapTestTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/MapTestTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import java.util.HashMap; import java.util.Map; diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClassTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClassTest.java index a95a4cd36b36..26fdc39a31a9 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClassTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClassTest.java @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.time.OffsetDateTime; +import java.util.Arrays; import java.util.HashMap; import java.util.Map; import java.util.UUID; diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/Model200ResponseTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/Model200ResponseTest.java index 285f5b025745..801d94e0118d 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/Model200ResponseTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/Model200ResponseTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java index 6285dc269862..4c2dd601ddbf 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ModelFileTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ModelFileTest.java index fe9ae2553223..2313cc948c0b 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ModelFileTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ModelFileTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ModelListTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ModelListTest.java index ec7f17d1af01..5644a525efc7 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ModelListTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ModelListTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ModelReturnTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ModelReturnTest.java index 6b8041eab6b2..19dde4952627 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ModelReturnTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ModelReturnTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/NameTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/NameTest.java index 5d5d3f7a36fd..aead3c674dbb 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/NameTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/NameTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/NumberOnlyTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/NumberOnlyTest.java index 15b10302575f..c73a53c6ee56 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/NumberOnlyTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/NumberOnlyTest.java @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.math.BigDecimal; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/OrderTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/OrderTest.java index 4ea6d2150bd8..bb5fb7cad80b 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/OrderTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/OrderTest.java @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.time.OffsetDateTime; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/OuterCompositeTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/OuterCompositeTest.java index 9498ef7e68a4..d454f2e1aa12 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/OuterCompositeTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/OuterCompositeTest.java @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.math.BigDecimal; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/PetTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/PetTest.java index d78aba7b3bb3..71a9ec445594 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/PetTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/PetTest.java @@ -20,6 +20,7 @@ import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import java.util.ArrayList; +import java.util.Arrays; import java.util.LinkedHashSet; import java.util.List; import java.util.Set; diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ReadOnlyFirstTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ReadOnlyFirstTest.java index d77e0b2a92dc..689d39696231 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ReadOnlyFirstTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ReadOnlyFirstTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/SpecialModelNameTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/SpecialModelNameTest.java index 4c097adf496c..cac2d6e266bc 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/SpecialModelNameTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/SpecialModelNameTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/TagTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/TagTest.java index db8d746a636e..a8ccab7ac1b7 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/TagTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/TagTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/TypeHolderDefaultTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/TypeHolderDefaultTest.java index 564737ef3e6f..6427636e2d26 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/TypeHolderDefaultTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/TypeHolderDefaultTest.java @@ -20,6 +20,7 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.math.BigDecimal; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.junit.jupiter.api.Assertions; diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/TypeHolderExampleTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/TypeHolderExampleTest.java index 6bdecdc942d3..384e0165b39e 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/TypeHolderExampleTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/TypeHolderExampleTest.java @@ -20,6 +20,7 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.math.BigDecimal; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.junit.jupiter.api.Assertions; diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/UserTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/UserTest.java index 5854974e6f6c..67dfd4c02fcb 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/UserTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/UserTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/XmlItemTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/XmlItemTest.java index 95f103a547ff..33c3f0c1d971 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/XmlItemTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/XmlItemTest.java @@ -20,6 +20,7 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.math.BigDecimal; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.junit.jupiter.api.Assertions; diff --git a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java index 746794d96876..99615ffcb349 100644 --- a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java +++ b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java @@ -26,6 +26,9 @@ import java.util.List; import java.util.Map; +import jakarta.validation.constraints.*; +import jakarta.validation.Valid; + /** * API tests for AnotherFakeApi */ diff --git a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/api/DefaultApiTest.java b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/api/DefaultApiTest.java index 82afa3637f86..e40dae3ab5aa 100644 --- a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/api/DefaultApiTest.java +++ b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/api/DefaultApiTest.java @@ -26,6 +26,9 @@ import java.util.List; import java.util.Map; +import jakarta.validation.constraints.*; +import jakarta.validation.Valid; + /** * API tests for DefaultApi */ diff --git a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/api/FakeApiTest.java b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/api/FakeApiTest.java index 99ec8629a504..11fc3ed11ccc 100644 --- a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/api/FakeApiTest.java +++ b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/api/FakeApiTest.java @@ -24,6 +24,7 @@ import java.time.OffsetDateTime; import org.openapitools.client.model.OuterComposite; import org.openapitools.client.model.OuterEnum; +import org.openapitools.client.model.TestInlineFreeformAdditionalPropertiesRequest; import org.openapitools.client.model.User; import org.junit.jupiter.api.Assertions; @@ -35,6 +36,9 @@ import java.util.List; import java.util.Map; +import jakarta.validation.constraints.*; +import jakarta.validation.Valid; + /** * API tests for FakeApi */ @@ -112,6 +116,32 @@ public void getArrayOfEnumsTest() throws ApiException { // TODO: test validations } + /** + * Array of string + * + * @throws ApiException if the Api call fails + */ + @Test + public void postArrayOfStringTest() throws ApiException { + //List<@Pattern(regexp = "[A-Z0-9]+")String> requestBody = null; + //api.postArrayOfString(requestBody); + // TODO: test validations + } + + /** + * test referenced additionalProperties + * + * + * + * @throws ApiException if the Api call fails + */ + @Test + public void testAdditionalPropertiesReferenceTest() throws ApiException { + //Map requestBody = null; + //api.testAdditionalPropertiesReference(requestBody); + // TODO: test validations + } + /** * For this test, the body for this request much reference a schema named `File`. * @@ -237,6 +267,20 @@ public void testInlineAdditionalPropertiesTest() throws ApiException { // TODO: test validations } + /** + * test inline free-form additionalProperties + * + * + * + * @throws ApiException if the Api call fails + */ + @Test + public void testInlineFreeformAdditionalPropertiesTest() throws ApiException { + //TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest = null; + //api.testInlineFreeformAdditionalProperties(testInlineFreeformAdditionalPropertiesRequest); + // TODO: test validations + } + /** * test json serialization of form data * @@ -268,4 +312,18 @@ public void testQueryParameterCollectionFormatTest() throws ApiException { // TODO: test validations } + /** + * test referenced string map + * + * + * + * @throws ApiException if the Api call fails + */ + @Test + public void testStringMapReferenceTest() throws ApiException { + //Map requestBody = null; + //api.testStringMapReference(requestBody); + // TODO: test validations + } + } diff --git a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/api/FakeClassnameTags123ApiTest.java b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/api/FakeClassnameTags123ApiTest.java index 92a40d23900a..a153c995236e 100644 --- a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/api/FakeClassnameTags123ApiTest.java +++ b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/api/FakeClassnameTags123ApiTest.java @@ -26,6 +26,9 @@ import java.util.List; import java.util.Map; +import jakarta.validation.constraints.*; +import jakarta.validation.Valid; + /** * API tests for FakeClassnameTags123Api */ diff --git a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/api/PetApiTest.java b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/api/PetApiTest.java index 9c61bba29e36..0ad6098e431b 100644 --- a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/api/PetApiTest.java +++ b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/api/PetApiTest.java @@ -16,18 +16,20 @@ import org.openapitools.client.*; import org.openapitools.client.auth.*; import java.io.File; -import org.openapitools.client.model.*; +import org.openapitools.client.model.ModelApiResponse; +import org.openapitools.client.model.Pet; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; -import java.util.Arrays; import java.util.ArrayList; -import java.util.Map; import java.util.HashMap; -import java.util.HashSet; import java.util.List; +import java.util.Map; + +import jakarta.validation.constraints.*; +import jakarta.validation.Valid; /** * API tests for PetApi @@ -35,7 +37,6 @@ public class PetApiTest { private final PetApi api = new PetApi(); - private final long petId = 5638l; /** * Add a new pet to the store @@ -46,60 +47,9 @@ public class PetApiTest { */ @Test public void addPetTest() throws ApiException { - // add pet - Pet body = new Pet(); - body.setId(petId); - body.setName("jersey2 java8 pet"); - Category category = new Category(); - category.setId(petId); - category.setName("jersey2 java8 category"); - body.setCategory(category); - body.setStatus(Pet.StatusEnum.AVAILABLE); - body.setPhotoUrls(Arrays.asList("A", "B", "C")); - Tag tag = new Tag(); - tag.setId(petId); - tag.setName("jersey2 java8 tag"); - body.setTags(Arrays.asList(tag)); - - api.addPet(body); - - //get pet by ID - Pet result = api.getPetById(petId); - Assertions.assertEquals(result.getId(), body.getId()); - Assertions.assertEquals(result.getCategory(), category); - Assertions.assertEquals(result.getName(), body.getName()); - Assertions.assertEquals(result.getPhotoUrls(), body.getPhotoUrls()); - Assertions.assertEquals(result.getStatus(), body.getStatus()); - Assertions.assertEquals(result.getTags(), body.getTags()); - - // update pet - api.updatePetWithForm(petId, "jersey2 java8 pet 2", "sold"); - - //get pet by ID - Pet result2 = api.getPetById(petId); - Assertions.assertEquals(result2.getId(), body.getId()); - Assertions.assertEquals(result2.getCategory(), category); - Assertions.assertEquals(result2.getName(), "jersey2 java8 pet 2"); - Assertions.assertEquals(result2.getPhotoUrls(), body.getPhotoUrls()); - Assertions.assertEquals(result2.getStatus(), Pet.StatusEnum.SOLD); - Assertions.assertEquals(result2.getTags(), body.getTags()); - - // delete pet - api.deletePet(petId, "empty api key"); - - try { - Pet result3 = api.getPetById(petId); - Assertions.assertEquals(false, true); - } catch (ApiException e) { -// System.err.println("Exception when calling PetApi#getPetById"); -// System.err.println("Status code: " + e.getCode()); -// System.err.println("Reason: " + e.getResponseBody()); -// System.err.println("Response headers: " + e.getResponseHeaders()); - - Assertions.assertEquals(e.getCode(), 404); - Assertions.assertEquals(e.getResponseBody(), "{\"code\":1,\"type\":\"error\",\"message\":\"Pet not found\"}"); - - } + //Pet pet = null; + //api.addPet(pet); + // TODO: test validations } /** diff --git a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/api/StoreApiTest.java b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/api/StoreApiTest.java index f609a3701644..41032998e5e6 100644 --- a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/api/StoreApiTest.java +++ b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/api/StoreApiTest.java @@ -26,6 +26,9 @@ import java.util.List; import java.util.Map; +import jakarta.validation.constraints.*; +import jakarta.validation.Valid; + /** * API tests for StoreApi */ diff --git a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/api/UserApiTest.java b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/api/UserApiTest.java index 358763cb9be0..95f1ea71a769 100644 --- a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/api/UserApiTest.java +++ b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/api/UserApiTest.java @@ -27,6 +27,9 @@ import java.util.List; import java.util.Map; +import jakarta.validation.constraints.*; +import jakarta.validation.Valid; + /** * API tests for UserApi */ @@ -57,7 +60,7 @@ public void createUserTest() throws ApiException { */ @Test public void createUsersWithArrayInputTest() throws ApiException { - //List user = null; + //List<@Valid User> user = null; //api.createUsersWithArrayInput(user); // TODO: test validations } @@ -71,7 +74,7 @@ public void createUsersWithArrayInputTest() throws ApiException { */ @Test public void createUsersWithListInputTest() throws ApiException { - //List user = null; + //List<@Valid User> user = null; //api.createUsersWithListInput(user); // TODO: test validations } diff --git a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/AdditionalPropertiesClassTest.java b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/AdditionalPropertiesClassTest.java index 96ca356053e7..2a249063c483 100644 --- a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/AdditionalPropertiesClassTest.java +++ b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/AdditionalPropertiesClassTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; diff --git a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/AnimalTest.java b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/AnimalTest.java index e523f4a9fd4a..8135b9b319d8 100644 --- a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/AnimalTest.java +++ b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/AnimalTest.java @@ -21,8 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import org.openapitools.client.model.Cat; -import org.openapitools.client.model.Dog; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/AppleReqTest.java b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/AppleReqTest.java index a17b2d982d68..255c18af0208 100644 --- a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/AppleReqTest.java +++ b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/AppleReqTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/AppleTest.java b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/AppleTest.java index de0184496f26..a9f1abda1fe3 100644 --- a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/AppleTest.java +++ b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/AppleTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnlyTest.java b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnlyTest.java index 90360a009299..3755829c9440 100644 --- a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnlyTest.java +++ b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnlyTest.java @@ -20,6 +20,7 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.math.BigDecimal; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.junit.jupiter.api.Assertions; diff --git a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/ArrayOfNumberOnlyTest.java b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/ArrayOfNumberOnlyTest.java index 8a3cf3499c5c..ab7e1740ca1f 100644 --- a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/ArrayOfNumberOnlyTest.java +++ b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/ArrayOfNumberOnlyTest.java @@ -20,6 +20,7 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.math.BigDecimal; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.junit.jupiter.api.Assertions; diff --git a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/ArrayTestTest.java b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/ArrayTestTest.java index 38576d0e5549..06487a1277e9 100644 --- a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/ArrayTestTest.java +++ b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/ArrayTestTest.java @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.ReadOnlyFirst; diff --git a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/BananaReqTest.java b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/BananaReqTest.java index ecbc17bdd263..d7594d8f67cf 100644 --- a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/BananaReqTest.java +++ b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/BananaReqTest.java @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.math.BigDecimal; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/BananaTest.java b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/BananaTest.java index 58902c6471cb..5575ed148738 100644 --- a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/BananaTest.java +++ b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/BananaTest.java @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.math.BigDecimal; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/BasquePigTest.java b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/BasquePigTest.java index 0355c02c8b39..78bb892b8195 100644 --- a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/BasquePigTest.java +++ b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/BasquePigTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/CapitalizationTest.java b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/CapitalizationTest.java index 91de07ebb31c..61e2705665e9 100644 --- a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/CapitalizationTest.java +++ b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/CapitalizationTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/CatTest.java b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/CatTest.java index f8c9d60979fe..664dc2853bf0 100644 --- a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/CatTest.java +++ b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/CatTest.java @@ -21,6 +21,8 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import java.util.Map; import org.openapitools.client.model.Animal; import org.junit.jupiter.api.Assertions; diff --git a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/CategoryTest.java b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/CategoryTest.java index 2a0d0925184f..eec4493e93e1 100644 --- a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/CategoryTest.java +++ b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/CategoryTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/ChildCatTest.java b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/ChildCatTest.java index 81996faf1273..615695be8c30 100644 --- a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/ChildCatTest.java +++ b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/ChildCatTest.java @@ -21,6 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.openapitools.client.model.ParentPet; import java.util.Set; import java.util.HashSet; diff --git a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/ClassModelTest.java b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/ClassModelTest.java index 9acb93988032..4885e656ca45 100644 --- a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/ClassModelTest.java +++ b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/ClassModelTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/ClientTest.java b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/ClientTest.java index 93e64697cbe8..31b3cea2211e 100644 --- a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/ClientTest.java +++ b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/ClientTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/ComplexQuadrilateralTest.java b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/ComplexQuadrilateralTest.java index 8254ea35f22d..1f419de8e640 100644 --- a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/ComplexQuadrilateralTest.java +++ b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/ComplexQuadrilateralTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/DanishPigTest.java b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/DanishPigTest.java index 28ef5f915609..89599e0219ec 100644 --- a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/DanishPigTest.java +++ b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/DanishPigTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/DeprecatedObjectTest.java b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/DeprecatedObjectTest.java index 1c29f39febe3..e25102a3f419 100644 --- a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/DeprecatedObjectTest.java +++ b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/DeprecatedObjectTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/DogTest.java b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/DogTest.java index ca4e7f1a4318..ed5671f13565 100644 --- a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/DogTest.java +++ b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/DogTest.java @@ -21,6 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.openapitools.client.model.Animal; import org.junit.jupiter.api.Assertions; diff --git a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/DrawingTest.java b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/DrawingTest.java index 5b6a83cb79b0..a6de37e30bb2 100644 --- a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/DrawingTest.java +++ b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/DrawingTest.java @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.Fruit; import org.openapitools.client.model.NullableShape; diff --git a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/EnumArraysTest.java b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/EnumArraysTest.java index 0ebeeae1b90b..597c60bc8552 100644 --- a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/EnumArraysTest.java +++ b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/EnumArraysTest.java @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.junit.jupiter.api.Assertions; diff --git a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/EnumTestTest.java b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/EnumTestTest.java index a952c89a90df..ebf9681a1b77 100644 --- a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/EnumTestTest.java +++ b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/EnumTestTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.openapitools.client.model.OuterEnum; import org.openapitools.client.model.OuterEnumDefaultValue; import org.openapitools.client.model.OuterEnumInteger; diff --git a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/EquilateralTriangleTest.java b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/EquilateralTriangleTest.java index bd21dcb29ab5..dcd09121b7c4 100644 --- a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/EquilateralTriangleTest.java +++ b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/EquilateralTriangleTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/FileSchemaTestClassTest.java b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/FileSchemaTestClassTest.java index ca53f2710093..65b2f87ca4ff 100644 --- a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/FileSchemaTestClassTest.java +++ b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/FileSchemaTestClassTest.java @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.ModelFile; diff --git a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/FooGetDefaultResponseTest.java b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/FooGetDefaultResponseTest.java index 2256d31c4c4e..dba3cf5a96ee 100644 --- a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/FooGetDefaultResponseTest.java +++ b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/FooGetDefaultResponseTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.openapitools.client.model.Foo; import org.junit.jupiter.api.Assertions; diff --git a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/FooTest.java b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/FooTest.java index 4fccb22c43e6..daf4288c2281 100644 --- a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/FooTest.java +++ b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/FooTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/FormatTestTest.java b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/FormatTestTest.java index 2d044fae746b..849839b1ec44 100644 --- a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/FormatTestTest.java +++ b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/FormatTestTest.java @@ -22,6 +22,7 @@ import java.math.BigDecimal; import java.time.LocalDate; import java.time.OffsetDateTime; +import java.util.Arrays; import java.util.UUID; import org.junit.jupiter.api.Assertions; diff --git a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/FruitReqTest.java b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/FruitReqTest.java index 4e9156870024..3ab12cdc46df 100644 --- a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/FruitReqTest.java +++ b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/FruitReqTest.java @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.math.BigDecimal; +import java.util.Arrays; import org.openapitools.client.model.AppleReq; import org.openapitools.client.model.BananaReq; diff --git a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/FruitTest.java b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/FruitTest.java index b051e07441fb..55ed641d9899 100644 --- a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/FruitTest.java +++ b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/FruitTest.java @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.math.BigDecimal; +import java.util.Arrays; import org.openapitools.client.model.Apple; import org.openapitools.client.model.Banana; diff --git a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/GmFruitTest.java b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/GmFruitTest.java index 7f18ebef24ef..39d5826b8f8a 100644 --- a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/GmFruitTest.java +++ b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/GmFruitTest.java @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.math.BigDecimal; +import java.util.Arrays; import org.openapitools.client.model.Apple; import org.openapitools.client.model.Banana; diff --git a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/GrandparentAnimalTest.java b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/GrandparentAnimalTest.java index c0c66f99e5af..a1e3637ce19b 100644 --- a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/GrandparentAnimalTest.java +++ b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/GrandparentAnimalTest.java @@ -21,8 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import org.openapitools.client.model.ChildCat; -import org.openapitools.client.model.ParentPet; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/HasOnlyReadOnlyTest.java b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/HasOnlyReadOnlyTest.java index a692eed31917..11e0bbe44d1a 100644 --- a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/HasOnlyReadOnlyTest.java +++ b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/HasOnlyReadOnlyTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/HealthCheckResultTest.java b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/HealthCheckResultTest.java index d2ea838a307f..6f46c2f5202b 100644 --- a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/HealthCheckResultTest.java +++ b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/HealthCheckResultTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.openapitools.jackson.nullable.JsonNullable; import com.fasterxml.jackson.annotation.JsonIgnore; import org.openapitools.jackson.nullable.JsonNullable; diff --git a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/IsoscelesTriangleTest.java b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/IsoscelesTriangleTest.java index 558785c5f0bf..88fdcd0292c6 100644 --- a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/IsoscelesTriangleTest.java +++ b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/IsoscelesTriangleTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/MammalTest.java b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/MammalTest.java index 99a348ca642b..8bafe09601bd 100644 --- a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/MammalTest.java +++ b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/MammalTest.java @@ -21,7 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import org.openapitools.client.JSON; +import java.util.Arrays; import org.openapitools.client.model.Pig; import org.openapitools.client.model.Whale; import org.openapitools.client.model.Zebra; @@ -40,31 +40,8 @@ public class MammalTest { * Model tests for Mammal */ @Test - public void testMammal() throws Exception { - Mammal m = new Mammal(); - Zebra z = new Zebra(); - z.setType(Zebra.TypeEnum.MOUNTAIN); - z.setClassName("zebra"); - m.setActualInstance(z); - Assertions.assertEquals(JSON.getDefault().getMapper().writeValueAsString(m), "{\"type\":\"mountain\",\"className\":\"zebra\"}"); - } - - /** - * Model tests for getActualInstanceRecursively - */ - @Test - public void testGetActualInstanceRecursively() throws Exception { - Mammal m = new Mammal(); - Pig p = new Pig(); - DanishPig dp = new DanishPig(); - dp.setClassName("danish_pig"); - p.setActualInstance(dp); - m.setActualInstance(p); - Assertions.assertTrue(m.getActualInstanceRecursively() instanceof DanishPig); - - Pig p2 = new Pig(); - m.setActualInstance(p2); - Assertions.assertEquals(m.getActualInstanceRecursively(), null); + public void testMammal() { + // TODO: test Mammal } /** @@ -99,33 +76,4 @@ public void typeTest() { // TODO: test type } - /** - * Test code sample - */ - @Test - public void codeSampleTest() { - Mammal exampleMammal = new Mammal(); - - // create a new Pig - Pig examplePig = new Pig(); - // set Mammal to Pig - exampleMammal.setActualInstance(examplePig); - // to get back the Pig set earlier - Pig testPig = (Pig) exampleMammal.getActualInstance(); - - // create a new Whale - Whale exampleWhale = new Whale(); - // set Mammal to Whale - exampleMammal.setActualInstance(exampleWhale); - // to get back the Whale set earlier - Whale testWhale = (Whale) exampleMammal.getActualInstance(); - - // create a new Zebra - Zebra exampleZebra = new Zebra(); - // set Mammal to Zebra - exampleMammal.setActualInstance(exampleZebra); - // to get back the Zebra set earlier - Zebra testZebra = (Zebra) exampleMammal.getActualInstance(); - } - } diff --git a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/MapTestTest.java b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/MapTestTest.java index 394bf4686bcb..50911103f2ca 100644 --- a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/MapTestTest.java +++ b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/MapTestTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import java.util.HashMap; import java.util.Map; diff --git a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClassTest.java b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClassTest.java index a95a4cd36b36..26fdc39a31a9 100644 --- a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClassTest.java +++ b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClassTest.java @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.time.OffsetDateTime; +import java.util.Arrays; import java.util.HashMap; import java.util.Map; import java.util.UUID; diff --git a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/Model200ResponseTest.java b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/Model200ResponseTest.java index 285f5b025745..801d94e0118d 100644 --- a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/Model200ResponseTest.java +++ b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/Model200ResponseTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java index 6285dc269862..4c2dd601ddbf 100644 --- a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java +++ b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/ModelFileTest.java b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/ModelFileTest.java index fe9ae2553223..2313cc948c0b 100644 --- a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/ModelFileTest.java +++ b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/ModelFileTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/ModelListTest.java b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/ModelListTest.java index ec7f17d1af01..5644a525efc7 100644 --- a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/ModelListTest.java +++ b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/ModelListTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/ModelReturnTest.java b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/ModelReturnTest.java index 6b8041eab6b2..19dde4952627 100644 --- a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/ModelReturnTest.java +++ b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/ModelReturnTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/NameTest.java b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/NameTest.java index 5d5d3f7a36fd..aead3c674dbb 100644 --- a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/NameTest.java +++ b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/NameTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/NullableClassTest.java b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/NullableClassTest.java index 8a9cc24beddb..c7b10f31fa4d 100644 --- a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/NullableClassTest.java +++ b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/NullableClassTest.java @@ -22,6 +22,7 @@ import java.time.LocalDate; import java.time.OffsetDateTime; import java.util.ArrayList; +import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; diff --git a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/NullableShapeTest.java b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/NullableShapeTest.java index 456530223e0c..d3d15bb32998 100644 --- a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/NullableShapeTest.java +++ b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/NullableShapeTest.java @@ -21,6 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.openapitools.client.model.Quadrilateral; import org.openapitools.client.model.Triangle; diff --git a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/NumberOnlyTest.java b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/NumberOnlyTest.java index 15b10302575f..c73a53c6ee56 100644 --- a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/NumberOnlyTest.java +++ b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/NumberOnlyTest.java @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.math.BigDecimal; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/ObjectWithDeprecatedFieldsTest.java b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/ObjectWithDeprecatedFieldsTest.java index eda3c6ce1713..ac165aac24ba 100644 --- a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/ObjectWithDeprecatedFieldsTest.java +++ b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/ObjectWithDeprecatedFieldsTest.java @@ -20,6 +20,7 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.math.BigDecimal; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.DeprecatedObject; diff --git a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/OrderTest.java b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/OrderTest.java index 4ea6d2150bd8..bb5fb7cad80b 100644 --- a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/OrderTest.java +++ b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/OrderTest.java @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.time.OffsetDateTime; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/OuterCompositeTest.java b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/OuterCompositeTest.java index 9498ef7e68a4..d454f2e1aa12 100644 --- a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/OuterCompositeTest.java +++ b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/OuterCompositeTest.java @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.math.BigDecimal; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/ParentPetTest.java b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/ParentPetTest.java index 2118c7e7e0a3..189d147a7ac5 100644 --- a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/ParentPetTest.java +++ b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/ParentPetTest.java @@ -21,7 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import org.openapitools.client.model.ChildCat; +import java.util.Arrays; import org.openapitools.client.model.GrandparentAnimal; import org.junit.jupiter.api.Assertions; diff --git a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/PetTest.java b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/PetTest.java index 8788ba632e13..0d391f65eb02 100644 --- a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/PetTest.java +++ b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/PetTest.java @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.Category; import org.openapitools.client.model.Tag; diff --git a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/PigTest.java b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/PigTest.java index 8c406dd5f8ec..513f98b74a6c 100644 --- a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/PigTest.java +++ b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/PigTest.java @@ -21,6 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.openapitools.client.model.BasquePig; import org.openapitools.client.model.DanishPig; diff --git a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/QuadrilateralInterfaceTest.java b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/QuadrilateralInterfaceTest.java index 2d1e5ac485a3..ac2f1f660c2d 100644 --- a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/QuadrilateralInterfaceTest.java +++ b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/QuadrilateralInterfaceTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/QuadrilateralTest.java b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/QuadrilateralTest.java index 3418bc98b2e6..df83443c7d63 100644 --- a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/QuadrilateralTest.java +++ b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/QuadrilateralTest.java @@ -21,6 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.openapitools.client.model.ComplexQuadrilateral; import org.openapitools.client.model.SimpleQuadrilateral; diff --git a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/ReadOnlyFirstTest.java b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/ReadOnlyFirstTest.java index d77e0b2a92dc..689d39696231 100644 --- a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/ReadOnlyFirstTest.java +++ b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/ReadOnlyFirstTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/ScaleneTriangleTest.java b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/ScaleneTriangleTest.java index c81f25ce59ef..4f7a833530f1 100644 --- a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/ScaleneTriangleTest.java +++ b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/ScaleneTriangleTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/ShapeInterfaceTest.java b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/ShapeInterfaceTest.java index 90b3b66ca3e6..a89c83e5a846 100644 --- a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/ShapeInterfaceTest.java +++ b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/ShapeInterfaceTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/ShapeOrNullTest.java b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/ShapeOrNullTest.java index fd27ed4d0f5b..23a7c3946bda 100644 --- a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/ShapeOrNullTest.java +++ b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/ShapeOrNullTest.java @@ -21,6 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.openapitools.client.model.Quadrilateral; import org.openapitools.client.model.Triangle; diff --git a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/ShapeTest.java b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/ShapeTest.java index 02f81ec2a47b..398f1d5bb311 100644 --- a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/ShapeTest.java +++ b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/ShapeTest.java @@ -21,6 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.openapitools.client.model.Quadrilateral; import org.openapitools.client.model.Triangle; diff --git a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/SimpleQuadrilateralTest.java b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/SimpleQuadrilateralTest.java index 5481ac5a2721..3222305a7c9b 100644 --- a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/SimpleQuadrilateralTest.java +++ b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/SimpleQuadrilateralTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/SpecialModelNameTest.java b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/SpecialModelNameTest.java index 3f0262f4a404..5cc8f2fe8d4a 100644 --- a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/SpecialModelNameTest.java +++ b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/SpecialModelNameTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/TagTest.java b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/TagTest.java index db8d746a636e..a8ccab7ac1b7 100644 --- a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/TagTest.java +++ b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/TagTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/TriangleInterfaceTest.java b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/TriangleInterfaceTest.java index 50c8c459a1b3..303e04f15985 100644 --- a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/TriangleInterfaceTest.java +++ b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/TriangleInterfaceTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/TriangleTest.java b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/TriangleTest.java index 99c3655633f8..e11692c5c390 100644 --- a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/TriangleTest.java +++ b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/TriangleTest.java @@ -21,6 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.openapitools.client.model.EquilateralTriangle; import org.openapitools.client.model.IsoscelesTriangle; import org.openapitools.client.model.ScaleneTriangle; diff --git a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/UserTest.java b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/UserTest.java index 7c56d205f7ef..6931e60e46c9 100644 --- a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/UserTest.java +++ b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/UserTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.openapitools.jackson.nullable.JsonNullable; import com.fasterxml.jackson.annotation.JsonIgnore; import org.openapitools.jackson.nullable.JsonNullable; diff --git a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/WhaleTest.java b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/WhaleTest.java index 66075dad5b7b..a4fb7ce4009b 100644 --- a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/WhaleTest.java +++ b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/WhaleTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/ZebraTest.java b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/ZebraTest.java index 509747319772..7780a07a9ec1 100644 --- a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/ZebraTest.java +++ b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/ZebraTest.java @@ -13,19 +13,12 @@ package org.openapitools.client.model; -import com.fasterxml.jackson.databind.type.MapType; -import com.fasterxml.jackson.databind.type.TypeFactory; -import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; - -import java.util.HashMap; -import java.util.Map; - -import org.openapitools.client.JSON; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; @@ -42,29 +35,7 @@ public class ZebraTest { */ @Test public void testZebra() { - Zebra z = new Zebra(); - z.setClassName("zebra"); - Map m = new HashMap<>(); - z.putAdditionalProperty("key1", "value1"); - z.putAdditionalProperty("key2", 12321); - z.setType(Zebra.TypeEnum.MOUNTAIN); - - JSON j = new JSON(); - try { - // serialize - Assertions.assertEquals(j.getMapper().writeValueAsString(z), "{\"type\":\"mountain\",\"className\":\"zebra\",\"key1\":\"value1\",\"key2\":12321}"); - - // deserialize - String zebraJson = "{\"type\":\"mountain\",\"className\":\"zebra\",\"key1\":\"value1\",\"key2\":12321}"; - Zebra zebraFromJson = j.getMapper().readValue(zebraJson, Zebra.class); - Assertions.assertEquals(zebraFromJson.getType(), Zebra.TypeEnum.MOUNTAIN); - Assertions.assertEquals(zebraFromJson.getClassName(), "zebra"); - Assertions.assertEquals(zebraFromJson.getAdditionalProperties().size(), 2); - Assertions.assertEquals(zebraFromJson.getAdditionalProperty("key1"), "value1"); - Assertions.assertEquals(zebraFromJson.getAdditionalProperty("key2"), 12321); - } catch (Exception ex) { - Assertions.assertEquals(true, false); // exception shouldn't be thrown - } + // TODO: test Zebra } /** @@ -72,22 +43,7 @@ public void testZebra() { */ @Test public void typeTest() { - String zebraJson = "{\"type\":\"mountain\",\"className\":\"zebra\",\"key1\":\"value1\",\"key2\":12321}"; - - JSON j = new JSON(); - TypeFactory typeFactory = j.getMapper().getTypeFactory(); - MapType mapType = typeFactory.constructMapType(HashMap.class, String.class, Object.class); - try { - HashMap map = j.getMapper().readValue(zebraJson, mapType); - Assertions.assertEquals(map.get("type"), "mountain"); - - Map result = - j.getMapper().readValue(zebraJson, new TypeReference>() {}); - - Assertions.assertEquals(result.get("type"), "mountain"); - } catch (Exception ex) { - Assertions.assertEquals(true, false); // exception shouldn't be thrown - } + // TODO: test type } /** diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/test/java/org/openapitools/client/api/PetApiTest.java b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/test/java/org/openapitools/client/api/PetApiTest.java index 797c05009b01..10e6a3f86060 100644 --- a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/test/java/org/openapitools/client/api/PetApiTest.java +++ b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/test/java/org/openapitools/client/api/PetApiTest.java @@ -1,6 +1,6 @@ /** * OpenAPI Petstore - * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 * @@ -16,6 +16,7 @@ import java.io.File; import org.openapitools.client.model.ModelApiResponse; import org.openapitools.client.model.Pet; +import java.util.Set; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Assertions; @@ -58,7 +59,7 @@ public void setup() throws MalformedURLException { public void addPetTest() { // TODO: test validations Pet pet = null; - //Pet response = api.addPet(pet); + //api.addPet(pet); //Assertions.assertNotNull(response); @@ -112,8 +113,8 @@ public void findPetsByStatusTest() { @Test public void findPetsByTagsTest() { // TODO: test validations - List tags = null; - //List response = api.findPetsByTags(tags); + Set tags = null; + //Set response = api.findPetsByTags(tags); //Assertions.assertNotNull(response); @@ -149,7 +150,7 @@ public void getPetByIdTest() { public void updatePetTest() { // TODO: test validations Pet pet = null; - //Pet response = api.updatePet(pet); + //api.updatePet(pet); //Assertions.assertNotNull(response); @@ -195,4 +196,24 @@ public void uploadFileTest() { } + /** + * uploads an image (required) + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void uploadFileWithRequiredFileTest() { + // TODO: test validations + Long petId = null; + org.apache.cxf.jaxrs.ext.multipart.Attachment requiredFile = null; + String additionalMetadata = null; + //ModelApiResponse response = api.uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata); + //Assertions.assertNotNull(response); + + + } + } diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/test/java/org/openapitools/client/api/StoreApiTest.java b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/test/java/org/openapitools/client/api/StoreApiTest.java index 0dd56e5a8edd..c3a8070cd90a 100644 --- a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/test/java/org/openapitools/client/api/StoreApiTest.java +++ b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/test/java/org/openapitools/client/api/StoreApiTest.java @@ -1,6 +1,6 @@ /** * OpenAPI Petstore - * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 * diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/test/java/org/openapitools/client/api/UserApiTest.java b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/test/java/org/openapitools/client/api/UserApiTest.java index 97dbcb65a746..6ef4b8d13f03 100644 --- a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/test/java/org/openapitools/client/api/UserApiTest.java +++ b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/test/java/org/openapitools/client/api/UserApiTest.java @@ -1,6 +1,6 @@ /** * OpenAPI Petstore - * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 * diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0/src/test/java/org/openapitools/client/api/PetApiTest.java b/samples/client/petstore/java/microprofile-rest-client-3.0/src/test/java/org/openapitools/client/api/PetApiTest.java index 797c05009b01..10e6a3f86060 100644 --- a/samples/client/petstore/java/microprofile-rest-client-3.0/src/test/java/org/openapitools/client/api/PetApiTest.java +++ b/samples/client/petstore/java/microprofile-rest-client-3.0/src/test/java/org/openapitools/client/api/PetApiTest.java @@ -1,6 +1,6 @@ /** * OpenAPI Petstore - * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 * @@ -16,6 +16,7 @@ import java.io.File; import org.openapitools.client.model.ModelApiResponse; import org.openapitools.client.model.Pet; +import java.util.Set; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Assertions; @@ -58,7 +59,7 @@ public void setup() throws MalformedURLException { public void addPetTest() { // TODO: test validations Pet pet = null; - //Pet response = api.addPet(pet); + //api.addPet(pet); //Assertions.assertNotNull(response); @@ -112,8 +113,8 @@ public void findPetsByStatusTest() { @Test public void findPetsByTagsTest() { // TODO: test validations - List tags = null; - //List response = api.findPetsByTags(tags); + Set tags = null; + //Set response = api.findPetsByTags(tags); //Assertions.assertNotNull(response); @@ -149,7 +150,7 @@ public void getPetByIdTest() { public void updatePetTest() { // TODO: test validations Pet pet = null; - //Pet response = api.updatePet(pet); + //api.updatePet(pet); //Assertions.assertNotNull(response); @@ -195,4 +196,24 @@ public void uploadFileTest() { } + /** + * uploads an image (required) + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void uploadFileWithRequiredFileTest() { + // TODO: test validations + Long petId = null; + org.apache.cxf.jaxrs.ext.multipart.Attachment requiredFile = null; + String additionalMetadata = null; + //ModelApiResponse response = api.uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata); + //Assertions.assertNotNull(response); + + + } + } diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0/src/test/java/org/openapitools/client/api/StoreApiTest.java b/samples/client/petstore/java/microprofile-rest-client-3.0/src/test/java/org/openapitools/client/api/StoreApiTest.java index 0dd56e5a8edd..c3a8070cd90a 100644 --- a/samples/client/petstore/java/microprofile-rest-client-3.0/src/test/java/org/openapitools/client/api/StoreApiTest.java +++ b/samples/client/petstore/java/microprofile-rest-client-3.0/src/test/java/org/openapitools/client/api/StoreApiTest.java @@ -1,6 +1,6 @@ /** * OpenAPI Petstore - * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 * diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0/src/test/java/org/openapitools/client/api/UserApiTest.java b/samples/client/petstore/java/microprofile-rest-client-3.0/src/test/java/org/openapitools/client/api/UserApiTest.java index 97dbcb65a746..6ef4b8d13f03 100644 --- a/samples/client/petstore/java/microprofile-rest-client-3.0/src/test/java/org/openapitools/client/api/UserApiTest.java +++ b/samples/client/petstore/java/microprofile-rest-client-3.0/src/test/java/org/openapitools/client/api/UserApiTest.java @@ -1,6 +1,6 @@ /** * OpenAPI Petstore - * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 * diff --git a/samples/client/petstore/java/microprofile-rest-client/src/test/java/org/openapitools/client/api/PetApiTest.java b/samples/client/petstore/java/microprofile-rest-client/src/test/java/org/openapitools/client/api/PetApiTest.java index b77ce18cdeb6..40a4b434dc6c 100644 --- a/samples/client/petstore/java/microprofile-rest-client/src/test/java/org/openapitools/client/api/PetApiTest.java +++ b/samples/client/petstore/java/microprofile-rest-client/src/test/java/org/openapitools/client/api/PetApiTest.java @@ -1,6 +1,6 @@ /** * OpenAPI Petstore - * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 * @@ -16,6 +16,7 @@ import java.io.File; import org.openapitools.client.model.ModelApiResponse; import org.openapitools.client.model.Pet; +import java.util.Set; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Assertions; @@ -61,7 +62,7 @@ public void setup() throws MalformedURLException { public void addPetTest() { // TODO: test validations Pet pet = null; - //Pet response = api.addPet(pet); + //api.addPet(pet); //Assertions.assertNotNull(response); @@ -115,8 +116,8 @@ public void findPetsByStatusTest() { @Test public void findPetsByTagsTest() { // TODO: test validations - List tags = null; - //List response = api.findPetsByTags(tags); + Set tags = null; + //Set response = api.findPetsByTags(tags); //Assertions.assertNotNull(response); @@ -152,7 +153,7 @@ public void getPetByIdTest() { public void updatePetTest() { // TODO: test validations Pet pet = null; - //Pet response = api.updatePet(pet); + //api.updatePet(pet); //Assertions.assertNotNull(response); @@ -198,4 +199,24 @@ public void uploadFileTest() { } + /** + * uploads an image (required) + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void uploadFileWithRequiredFileTest() { + // TODO: test validations + Long petId = null; + org.apache.cxf.jaxrs.ext.multipart.Attachment requiredFile = null; + String additionalMetadata = null; + //ModelApiResponse response = api.uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata); + //Assertions.assertNotNull(response); + + + } + } diff --git a/samples/client/petstore/java/microprofile-rest-client/src/test/java/org/openapitools/client/api/StoreApiTest.java b/samples/client/petstore/java/microprofile-rest-client/src/test/java/org/openapitools/client/api/StoreApiTest.java index f3552677aeb8..f871c788ce47 100644 --- a/samples/client/petstore/java/microprofile-rest-client/src/test/java/org/openapitools/client/api/StoreApiTest.java +++ b/samples/client/petstore/java/microprofile-rest-client/src/test/java/org/openapitools/client/api/StoreApiTest.java @@ -1,6 +1,6 @@ /** * OpenAPI Petstore - * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 * diff --git a/samples/client/petstore/java/microprofile-rest-client/src/test/java/org/openapitools/client/api/UserApiTest.java b/samples/client/petstore/java/microprofile-rest-client/src/test/java/org/openapitools/client/api/UserApiTest.java index c051762215eb..cd5749d50e1d 100644 --- a/samples/client/petstore/java/microprofile-rest-client/src/test/java/org/openapitools/client/api/UserApiTest.java +++ b/samples/client/petstore/java/microprofile-rest-client/src/test/java/org/openapitools/client/api/UserApiTest.java @@ -1,6 +1,6 @@ /** * OpenAPI Petstore - * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 * diff --git a/samples/client/petstore/java/microprofile-rest-client/src/test/java/org/openapitools/client/model/CategoryTest.java b/samples/client/petstore/java/microprofile-rest-client/src/test/java/org/openapitools/client/model/CategoryTest.java index d0568f977669..caf668f224c5 100644 --- a/samples/client/petstore/java/microprofile-rest-client/src/test/java/org/openapitools/client/model/CategoryTest.java +++ b/samples/client/petstore/java/microprofile-rest-client/src/test/java/org/openapitools/client/model/CategoryTest.java @@ -1,6 +1,6 @@ /** * OpenAPI Petstore - * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 * diff --git a/samples/client/petstore/java/microprofile-rest-client/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java b/samples/client/petstore/java/microprofile-rest-client/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java index ddfa78c4ac31..45e942fad1a3 100644 --- a/samples/client/petstore/java/microprofile-rest-client/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java +++ b/samples/client/petstore/java/microprofile-rest-client/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java @@ -1,6 +1,6 @@ /** * OpenAPI Petstore - * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 * diff --git a/samples/client/petstore/java/microprofile-rest-client/src/test/java/org/openapitools/client/model/OrderTest.java b/samples/client/petstore/java/microprofile-rest-client/src/test/java/org/openapitools/client/model/OrderTest.java index 0d23109bd825..d7c9bb66162b 100644 --- a/samples/client/petstore/java/microprofile-rest-client/src/test/java/org/openapitools/client/model/OrderTest.java +++ b/samples/client/petstore/java/microprofile-rest-client/src/test/java/org/openapitools/client/model/OrderTest.java @@ -1,6 +1,6 @@ /** * OpenAPI Petstore - * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 * diff --git a/samples/client/petstore/java/microprofile-rest-client/src/test/java/org/openapitools/client/model/PetTest.java b/samples/client/petstore/java/microprofile-rest-client/src/test/java/org/openapitools/client/model/PetTest.java index e939e3b1d45a..89a08d731f6a 100644 --- a/samples/client/petstore/java/microprofile-rest-client/src/test/java/org/openapitools/client/model/PetTest.java +++ b/samples/client/petstore/java/microprofile-rest-client/src/test/java/org/openapitools/client/model/PetTest.java @@ -1,6 +1,6 @@ /** * OpenAPI Petstore - * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 * @@ -15,7 +15,9 @@ import java.util.ArrayList; import java.util.Arrays; +import java.util.LinkedHashSet; import java.util.List; +import java.util.Set; import org.openapitools.client.model.Category; import org.openapitools.client.model.Tag; import org.junit.jupiter.api.Assertions; diff --git a/samples/client/petstore/java/microprofile-rest-client/src/test/java/org/openapitools/client/model/TagTest.java b/samples/client/petstore/java/microprofile-rest-client/src/test/java/org/openapitools/client/model/TagTest.java index 5131a8a3e889..cfbaea84bddf 100644 --- a/samples/client/petstore/java/microprofile-rest-client/src/test/java/org/openapitools/client/model/TagTest.java +++ b/samples/client/petstore/java/microprofile-rest-client/src/test/java/org/openapitools/client/model/TagTest.java @@ -1,6 +1,6 @@ /** * OpenAPI Petstore - * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 * diff --git a/samples/client/petstore/java/microprofile-rest-client/src/test/java/org/openapitools/client/model/UserTest.java b/samples/client/petstore/java/microprofile-rest-client/src/test/java/org/openapitools/client/model/UserTest.java index d0d84b127052..7065b494b841 100644 --- a/samples/client/petstore/java/microprofile-rest-client/src/test/java/org/openapitools/client/model/UserTest.java +++ b/samples/client/petstore/java/microprofile-rest-client/src/test/java/org/openapitools/client/model/UserTest.java @@ -1,6 +1,6 @@ /** * OpenAPI Petstore - * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 * diff --git a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java index 2ba68a0a5375..a0da114e5000 100644 --- a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java +++ b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java @@ -15,8 +15,8 @@ import org.openapitools.client.ApiException; import org.openapitools.client.model.Client; -import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; import java.util.ArrayList; import java.util.HashMap; diff --git a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/api/DefaultApiTest.java b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/api/DefaultApiTest.java index cc8fb840de08..414ee37b0c9d 100644 --- a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/api/DefaultApiTest.java +++ b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/api/DefaultApiTest.java @@ -15,8 +15,8 @@ import org.openapitools.client.ApiException; import org.openapitools.client.model.FooGetDefaultResponse; -import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; import java.util.ArrayList; import java.util.HashMap; diff --git a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/api/FakeApiTest.java b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/api/FakeApiTest.java index 18b589c8d66c..edc826fba0e6 100644 --- a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/api/FakeApiTest.java +++ b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/api/FakeApiTest.java @@ -16,6 +16,7 @@ import org.openapitools.client.ApiException; import java.math.BigDecimal; import org.openapitools.client.model.Client; +import org.openapitools.client.model.FakeBigDecimalMap200Response; import java.io.File; import org.openapitools.client.model.FileSchemaTestClass; import org.openapitools.client.model.HealthCheckResult; @@ -23,9 +24,10 @@ import java.time.OffsetDateTime; import org.openapitools.client.model.OuterComposite; import org.openapitools.client.model.OuterEnum; +import org.openapitools.client.model.TestInlineFreeformAdditionalPropertiesRequest; import org.openapitools.client.model.User; -import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; import java.util.ArrayList; import java.util.HashMap; @@ -44,6 +46,22 @@ public class FakeApiTest { private final FakeApi api = new FakeApi(); + /** + * + * + * for Java apache and Java native, test toUrlQueryString for maps with BegDecimal keys + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void fakeBigDecimalMapTest() throws ApiException { + CompletableFuture response = + api.fakeBigDecimalMap(); + + // TODO: test validations + } + /** * Health check endpoint * @@ -128,6 +146,22 @@ public void fakeOuterStringSerializeTest() throws ApiException { // TODO: test validations } + /** + * application/json UTF8 + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getApplicationJsonUtf8Test() throws ApiException { + CompletableFuture> response = + api.getApplicationJsonUtf8(); + + // TODO: test validations + } + /** * Array of Enums * @@ -144,6 +178,23 @@ public void getArrayOfEnumsTest() throws ApiException { // TODO: test validations } + /** + * test referenced additionalProperties + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void testAdditionalPropertiesReferenceTest() throws ApiException { + Map requestBody = null; + + CompletableFuture response = api.testAdditionalPropertiesReference(requestBody); + + // TODO: test validations + } + /** * * @@ -298,6 +349,23 @@ public void testInlineAdditionalPropertiesTest() throws ApiException { // TODO: test validations } + /** + * test inline free-form additionalProperties + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void testInlineFreeformAdditionalPropertiesTest() throws ApiException { + TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest = null; + + CompletableFuture response = api.testInlineFreeformAdditionalProperties(testInlineFreeformAdditionalPropertiesRequest); + + // TODO: test validations + } + /** * test json serialization of form data * @@ -337,4 +405,21 @@ public void testQueryParameterCollectionFormatTest() throws ApiException { // TODO: test validations } + /** + * test referenced string map + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void testStringMapReferenceTest() throws ApiException { + Map requestBody = null; + + CompletableFuture response = api.testStringMapReference(requestBody); + + // TODO: test validations + } + } diff --git a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/api/FakeClassnameTags123ApiTest.java b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/api/FakeClassnameTags123ApiTest.java index 3f82f64f0489..da751523a784 100644 --- a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/api/FakeClassnameTags123ApiTest.java +++ b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/api/FakeClassnameTags123ApiTest.java @@ -15,8 +15,8 @@ import org.openapitools.client.ApiException; import org.openapitools.client.model.Client; -import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; import java.util.ArrayList; import java.util.HashMap; diff --git a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/api/PetApiTest.java b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/api/PetApiTest.java index 80e50891f185..cd51ce712623 100644 --- a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/api/PetApiTest.java +++ b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/api/PetApiTest.java @@ -17,8 +17,8 @@ import java.io.File; import org.openapitools.client.model.ModelApiResponse; import org.openapitools.client.model.Pet; -import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; import java.util.ArrayList; import java.util.HashMap; diff --git a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/api/StoreApiTest.java b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/api/StoreApiTest.java index 813e15129aab..d996d25bdd86 100644 --- a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/api/StoreApiTest.java +++ b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/api/StoreApiTest.java @@ -15,8 +15,8 @@ import org.openapitools.client.ApiException; import org.openapitools.client.model.Order; -import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; import java.util.ArrayList; import java.util.HashMap; diff --git a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/api/UserApiTest.java b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/api/UserApiTest.java index 0d5a9396107f..42df5ff4de1c 100644 --- a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/api/UserApiTest.java +++ b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/api/UserApiTest.java @@ -16,8 +16,8 @@ import org.openapitools.client.ApiException; import java.time.OffsetDateTime; import org.openapitools.client.model.User; -import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; import java.util.ArrayList; import java.util.HashMap; diff --git a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/AdditionalPropertiesClassTest.java b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/AdditionalPropertiesClassTest.java index 6d12f2d7d10f..db8d40acee7f 100644 --- a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/AdditionalPropertiesClassTest.java +++ b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/AdditionalPropertiesClassTest.java @@ -18,24 +18,28 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import java.util.HashMap; import java.util.Map; +import org.openapitools.jackson.nullable.JsonNullable; +import com.fasterxml.jackson.annotation.JsonIgnore; +import org.openapitools.jackson.nullable.JsonNullable; +import java.util.NoSuchElementException; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for AdditionalPropertiesClass */ -public class AdditionalPropertiesClassTest { +class AdditionalPropertiesClassTest { private final AdditionalPropertiesClass model = new AdditionalPropertiesClass(); /** * Model tests for AdditionalPropertiesClass */ @Test - public void testAdditionalPropertiesClass() { + void testAdditionalPropertiesClass() { // TODO: test AdditionalPropertiesClass } @@ -43,7 +47,7 @@ public void testAdditionalPropertiesClass() { * Test the property 'mapProperty' */ @Test - public void mapPropertyTest() { + void mapPropertyTest() { // TODO: test mapProperty } @@ -51,8 +55,56 @@ public void mapPropertyTest() { * Test the property 'mapOfMapProperty' */ @Test - public void mapOfMapPropertyTest() { + void mapOfMapPropertyTest() { // TODO: test mapOfMapProperty } + /** + * Test the property 'anytype1' + */ + @Test + void anytype1Test() { + // TODO: test anytype1 + } + + /** + * Test the property 'mapWithUndeclaredPropertiesAnytype1' + */ + @Test + void mapWithUndeclaredPropertiesAnytype1Test() { + // TODO: test mapWithUndeclaredPropertiesAnytype1 + } + + /** + * Test the property 'mapWithUndeclaredPropertiesAnytype2' + */ + @Test + void mapWithUndeclaredPropertiesAnytype2Test() { + // TODO: test mapWithUndeclaredPropertiesAnytype2 + } + + /** + * Test the property 'mapWithUndeclaredPropertiesAnytype3' + */ + @Test + void mapWithUndeclaredPropertiesAnytype3Test() { + // TODO: test mapWithUndeclaredPropertiesAnytype3 + } + + /** + * Test the property 'emptyMap' + */ + @Test + void emptyMapTest() { + // TODO: test emptyMap + } + + /** + * Test the property 'mapWithUndeclaredPropertiesString' + */ + @Test + void mapWithUndeclaredPropertiesStringTest() { + // TODO: test mapWithUndeclaredPropertiesString + } + } diff --git a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/AnimalTest.java b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/AnimalTest.java index 24d4c7cad74a..a5087b601042 100644 --- a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/AnimalTest.java +++ b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/AnimalTest.java @@ -21,24 +21,22 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import org.openapitools.client.model.Cat; -import org.openapitools.client.model.Dog; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Animal */ -public class AnimalTest { +class AnimalTest { private final Animal model = new Animal(); /** * Model tests for Animal */ @Test - public void testAnimal() { + void testAnimal() { // TODO: test Animal } @@ -46,7 +44,7 @@ public void testAnimal() { * Test the property 'className' */ @Test - public void classNameTest() { + void classNameTest() { // TODO: test className } @@ -54,7 +52,7 @@ public void classNameTest() { * Test the property 'color' */ @Test - public void colorTest() { + void colorTest() { // TODO: test color } diff --git a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/AppleReqTest.java b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/AppleReqTest.java index a169ab60d392..92bddbf0aa1f 100644 --- a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/AppleReqTest.java +++ b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/AppleReqTest.java @@ -18,22 +18,22 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for AppleReq */ -public class AppleReqTest { +class AppleReqTest { private final AppleReq model = new AppleReq(); /** * Model tests for AppleReq */ @Test - public void testAppleReq() { + void testAppleReq() { // TODO: test AppleReq } @@ -41,7 +41,7 @@ public void testAppleReq() { * Test the property 'cultivar' */ @Test - public void cultivarTest() { + void cultivarTest() { // TODO: test cultivar } @@ -49,7 +49,7 @@ public void cultivarTest() { * Test the property 'mealy' */ @Test - public void mealyTest() { + void mealyTest() { // TODO: test mealy } diff --git a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/AppleTest.java b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/AppleTest.java index 62100b06ec32..862d3285cc42 100644 --- a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/AppleTest.java +++ b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/AppleTest.java @@ -18,22 +18,22 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Apple */ -public class AppleTest { +class AppleTest { private final Apple model = new Apple(); /** * Model tests for Apple */ @Test - public void testApple() { + void testApple() { // TODO: test Apple } @@ -41,7 +41,7 @@ public void testApple() { * Test the property 'cultivar' */ @Test - public void cultivarTest() { + void cultivarTest() { // TODO: test cultivar } @@ -49,7 +49,7 @@ public void cultivarTest() { * Test the property 'origin' */ @Test - public void originTest() { + void originTest() { // TODO: test origin } diff --git a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnlyTest.java b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnlyTest.java index 7d6ca2902ab5..6bbe877044db 100644 --- a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnlyTest.java +++ b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnlyTest.java @@ -20,23 +20,23 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.math.BigDecimal; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for ArrayOfArrayOfNumberOnly */ -public class ArrayOfArrayOfNumberOnlyTest { +class ArrayOfArrayOfNumberOnlyTest { private final ArrayOfArrayOfNumberOnly model = new ArrayOfArrayOfNumberOnly(); /** * Model tests for ArrayOfArrayOfNumberOnly */ @Test - public void testArrayOfArrayOfNumberOnly() { + void testArrayOfArrayOfNumberOnly() { // TODO: test ArrayOfArrayOfNumberOnly } @@ -44,7 +44,7 @@ public void testArrayOfArrayOfNumberOnly() { * Test the property 'arrayArrayNumber' */ @Test - public void arrayArrayNumberTest() { + void arrayArrayNumberTest() { // TODO: test arrayArrayNumber } diff --git a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/ArrayOfNumberOnlyTest.java b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/ArrayOfNumberOnlyTest.java index 1db82cbdea33..eaf908bb1ab7 100644 --- a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/ArrayOfNumberOnlyTest.java +++ b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/ArrayOfNumberOnlyTest.java @@ -20,23 +20,23 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.math.BigDecimal; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for ArrayOfNumberOnly */ -public class ArrayOfNumberOnlyTest { +class ArrayOfNumberOnlyTest { private final ArrayOfNumberOnly model = new ArrayOfNumberOnly(); /** * Model tests for ArrayOfNumberOnly */ @Test - public void testArrayOfNumberOnly() { + void testArrayOfNumberOnly() { // TODO: test ArrayOfNumberOnly } @@ -44,7 +44,7 @@ public void testArrayOfNumberOnly() { * Test the property 'arrayNumber' */ @Test - public void arrayNumberTest() { + void arrayNumberTest() { // TODO: test arrayNumber } diff --git a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/ArrayTestTest.java b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/ArrayTestTest.java index 4a3a3cc839af..99c6bcf53601 100644 --- a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/ArrayTestTest.java +++ b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/ArrayTestTest.java @@ -19,24 +19,24 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.ReadOnlyFirst; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for ArrayTest */ -public class ArrayTestTest { +class ArrayTestTest { private final ArrayTest model = new ArrayTest(); /** * Model tests for ArrayTest */ @Test - public void testArrayTest() { + void testArrayTest() { // TODO: test ArrayTest } @@ -44,7 +44,7 @@ public void testArrayTest() { * Test the property 'arrayOfString' */ @Test - public void arrayOfStringTest() { + void arrayOfStringTest() { // TODO: test arrayOfString } @@ -52,7 +52,7 @@ public void arrayOfStringTest() { * Test the property 'arrayArrayOfInteger' */ @Test - public void arrayArrayOfIntegerTest() { + void arrayArrayOfIntegerTest() { // TODO: test arrayArrayOfInteger } @@ -60,7 +60,7 @@ public void arrayArrayOfIntegerTest() { * Test the property 'arrayArrayOfModel' */ @Test - public void arrayArrayOfModelTest() { + void arrayArrayOfModelTest() { // TODO: test arrayArrayOfModel } diff --git a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/BananaReqTest.java b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/BananaReqTest.java index b605d146e403..c279b73f26a8 100644 --- a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/BananaReqTest.java +++ b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/BananaReqTest.java @@ -19,22 +19,22 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.math.BigDecimal; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for BananaReq */ -public class BananaReqTest { +class BananaReqTest { private final BananaReq model = new BananaReq(); /** * Model tests for BananaReq */ @Test - public void testBananaReq() { + void testBananaReq() { // TODO: test BananaReq } @@ -42,7 +42,7 @@ public void testBananaReq() { * Test the property 'lengthCm' */ @Test - public void lengthCmTest() { + void lengthCmTest() { // TODO: test lengthCm } @@ -50,7 +50,7 @@ public void lengthCmTest() { * Test the property 'sweet' */ @Test - public void sweetTest() { + void sweetTest() { // TODO: test sweet } diff --git a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/BananaTest.java b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/BananaTest.java index 70be9e32c946..0d30121a457b 100644 --- a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/BananaTest.java +++ b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/BananaTest.java @@ -19,22 +19,22 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.math.BigDecimal; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Banana */ -public class BananaTest { +class BananaTest { private final Banana model = new Banana(); /** * Model tests for Banana */ @Test - public void testBanana() { + void testBanana() { // TODO: test Banana } @@ -42,7 +42,7 @@ public void testBanana() { * Test the property 'lengthCm' */ @Test - public void lengthCmTest() { + void lengthCmTest() { // TODO: test lengthCm } diff --git a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/BasquePigTest.java b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/BasquePigTest.java index 43fa0a23f362..cb8ced649580 100644 --- a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/BasquePigTest.java +++ b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/BasquePigTest.java @@ -18,22 +18,22 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for BasquePig */ -public class BasquePigTest { +class BasquePigTest { private final BasquePig model = new BasquePig(); /** * Model tests for BasquePig */ @Test - public void testBasquePig() { + void testBasquePig() { // TODO: test BasquePig } @@ -41,7 +41,7 @@ public void testBasquePig() { * Test the property 'className' */ @Test - public void classNameTest() { + void classNameTest() { // TODO: test className } diff --git a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/CapitalizationTest.java b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/CapitalizationTest.java index 1f133e4142e4..47371acf3250 100644 --- a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/CapitalizationTest.java +++ b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/CapitalizationTest.java @@ -18,22 +18,22 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Capitalization */ -public class CapitalizationTest { +class CapitalizationTest { private final Capitalization model = new Capitalization(); /** * Model tests for Capitalization */ @Test - public void testCapitalization() { + void testCapitalization() { // TODO: test Capitalization } @@ -41,7 +41,7 @@ public void testCapitalization() { * Test the property 'smallCamel' */ @Test - public void smallCamelTest() { + void smallCamelTest() { // TODO: test smallCamel } @@ -49,7 +49,7 @@ public void smallCamelTest() { * Test the property 'capitalCamel' */ @Test - public void capitalCamelTest() { + void capitalCamelTest() { // TODO: test capitalCamel } @@ -57,7 +57,7 @@ public void capitalCamelTest() { * Test the property 'smallSnake' */ @Test - public void smallSnakeTest() { + void smallSnakeTest() { // TODO: test smallSnake } @@ -65,7 +65,7 @@ public void smallSnakeTest() { * Test the property 'capitalSnake' */ @Test - public void capitalSnakeTest() { + void capitalSnakeTest() { // TODO: test capitalSnake } @@ -73,7 +73,7 @@ public void capitalSnakeTest() { * Test the property 'scAETHFlowPoints' */ @Test - public void scAETHFlowPointsTest() { + void scAETHFlowPointsTest() { // TODO: test scAETHFlowPoints } @@ -81,7 +81,7 @@ public void scAETHFlowPointsTest() { * Test the property 'ATT_NAME' */ @Test - public void ATT_NAMETest() { + void ATT_NAMETest() { // TODO: test ATT_NAME } diff --git a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/CatTest.java b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/CatTest.java index 867c64d56516..79ee11f8709c 100644 --- a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/CatTest.java +++ b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/CatTest.java @@ -21,23 +21,24 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import java.util.Map; import org.openapitools.client.model.Animal; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Cat */ -public class CatTest { +class CatTest { private final Cat model = new Cat(); /** * Model tests for Cat */ @Test - public void testCat() { + void testCat() { // TODO: test Cat } @@ -45,7 +46,7 @@ public void testCat() { * Test the property 'className' */ @Test - public void classNameTest() { + void classNameTest() { // TODO: test className } @@ -53,7 +54,7 @@ public void classNameTest() { * Test the property 'color' */ @Test - public void colorTest() { + void colorTest() { // TODO: test color } @@ -61,7 +62,7 @@ public void colorTest() { * Test the property 'declawed' */ @Test - public void declawedTest() { + void declawedTest() { // TODO: test declawed } diff --git a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/CategoryTest.java b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/CategoryTest.java index 84df0f1e24da..1c022bd3eb58 100644 --- a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/CategoryTest.java +++ b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/CategoryTest.java @@ -18,22 +18,22 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Category */ -public class CategoryTest { +class CategoryTest { private final Category model = new Category(); /** * Model tests for Category */ @Test - public void testCategory() { + void testCategory() { // TODO: test Category } @@ -41,7 +41,7 @@ public void testCategory() { * Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } @@ -49,7 +49,7 @@ public void idTest() { * Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } diff --git a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/ChildCatTest.java b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/ChildCatTest.java index 63cf65386e7b..5ac77cf5418b 100644 --- a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/ChildCatTest.java +++ b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/ChildCatTest.java @@ -21,6 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.openapitools.client.model.ParentPet; import java.util.Set; import java.util.HashSet; @@ -28,18 +29,17 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for ChildCat */ -public class ChildCatTest { +class ChildCatTest { private final ChildCat model = new ChildCat(); /** * Model tests for ChildCat */ @Test - public void testChildCat() { + void testChildCat() { // TODO: test ChildCat } @@ -47,7 +47,7 @@ public void testChildCat() { * Test the property 'petType' */ @Test - public void petTypeTest() { + void petTypeTest() { // TODO: test petType } @@ -55,7 +55,7 @@ public void petTypeTest() { * Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } diff --git a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/ClassModelTest.java b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/ClassModelTest.java index 0efd2b037523..a39cbcd0832e 100644 --- a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/ClassModelTest.java +++ b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/ClassModelTest.java @@ -18,22 +18,22 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for ClassModel */ -public class ClassModelTest { +class ClassModelTest { private final ClassModel model = new ClassModel(); /** * Model tests for ClassModel */ @Test - public void testClassModel() { + void testClassModel() { // TODO: test ClassModel } @@ -41,7 +41,7 @@ public void testClassModel() { * Test the property 'propertyClass' */ @Test - public void propertyClassTest() { + void propertyClassTest() { // TODO: test propertyClass } diff --git a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/ClientTest.java b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/ClientTest.java index 9fee039a47a4..2af102e102cb 100644 --- a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/ClientTest.java +++ b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/ClientTest.java @@ -18,22 +18,22 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Client */ -public class ClientTest { +class ClientTest { private final Client model = new Client(); /** * Model tests for Client */ @Test - public void testClient() { + void testClient() { // TODO: test Client } @@ -41,7 +41,7 @@ public void testClient() { * Test the property 'client' */ @Test - public void clientTest() { + void clientTest() { // TODO: test client } diff --git a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/ComplexQuadrilateralTest.java b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/ComplexQuadrilateralTest.java index 995ed5daeb47..418a66fbd4c2 100644 --- a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/ComplexQuadrilateralTest.java +++ b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/ComplexQuadrilateralTest.java @@ -18,22 +18,22 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for ComplexQuadrilateral */ -public class ComplexQuadrilateralTest { +class ComplexQuadrilateralTest { private final ComplexQuadrilateral model = new ComplexQuadrilateral(); /** * Model tests for ComplexQuadrilateral */ @Test - public void testComplexQuadrilateral() { + void testComplexQuadrilateral() { // TODO: test ComplexQuadrilateral } @@ -41,7 +41,7 @@ public void testComplexQuadrilateral() { * Test the property 'shapeType' */ @Test - public void shapeTypeTest() { + void shapeTypeTest() { // TODO: test shapeType } @@ -49,7 +49,7 @@ public void shapeTypeTest() { * Test the property 'quadrilateralType' */ @Test - public void quadrilateralTypeTest() { + void quadrilateralTypeTest() { // TODO: test quadrilateralType } diff --git a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/DanishPigTest.java b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/DanishPigTest.java index 8568207d9717..7982c16fc0df 100644 --- a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/DanishPigTest.java +++ b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/DanishPigTest.java @@ -18,22 +18,22 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for DanishPig */ -public class DanishPigTest { +class DanishPigTest { private final DanishPig model = new DanishPig(); /** * Model tests for DanishPig */ @Test - public void testDanishPig() { + void testDanishPig() { // TODO: test DanishPig } @@ -41,7 +41,7 @@ public void testDanishPig() { * Test the property 'className' */ @Test - public void classNameTest() { + void classNameTest() { // TODO: test className } diff --git a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/DeprecatedObjectTest.java b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/DeprecatedObjectTest.java index 06d586403935..47368022c21f 100644 --- a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/DeprecatedObjectTest.java +++ b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/DeprecatedObjectTest.java @@ -18,22 +18,22 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for DeprecatedObject */ -public class DeprecatedObjectTest { +class DeprecatedObjectTest { private final DeprecatedObject model = new DeprecatedObject(); /** * Model tests for DeprecatedObject */ @Test - public void testDeprecatedObject() { + void testDeprecatedObject() { // TODO: test DeprecatedObject } @@ -41,7 +41,7 @@ public void testDeprecatedObject() { * Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } diff --git a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/DogTest.java b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/DogTest.java index 0f9f43fd3cac..d2b78c4e5738 100644 --- a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/DogTest.java +++ b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/DogTest.java @@ -21,23 +21,23 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.openapitools.client.model.Animal; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Dog */ -public class DogTest { +class DogTest { private final Dog model = new Dog(); /** * Model tests for Dog */ @Test - public void testDog() { + void testDog() { // TODO: test Dog } @@ -45,7 +45,7 @@ public void testDog() { * Test the property 'className' */ @Test - public void classNameTest() { + void classNameTest() { // TODO: test className } @@ -53,7 +53,7 @@ public void classNameTest() { * Test the property 'color' */ @Test - public void colorTest() { + void colorTest() { // TODO: test color } @@ -61,7 +61,7 @@ public void colorTest() { * Test the property 'breed' */ @Test - public void breedTest() { + void breedTest() { // TODO: test breed } diff --git a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/DrawingTest.java b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/DrawingTest.java index c2a0659731b6..d004fd2eeced 100644 --- a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/DrawingTest.java +++ b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/DrawingTest.java @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; @@ -34,18 +35,17 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Drawing */ -public class DrawingTest { +class DrawingTest { private final Drawing model = new Drawing(); /** * Model tests for Drawing */ @Test - public void testDrawing() { + void testDrawing() { // TODO: test Drawing } @@ -53,7 +53,7 @@ public void testDrawing() { * Test the property 'mainShape' */ @Test - public void mainShapeTest() { + void mainShapeTest() { // TODO: test mainShape } @@ -61,7 +61,7 @@ public void mainShapeTest() { * Test the property 'shapeOrNull' */ @Test - public void shapeOrNullTest() { + void shapeOrNullTest() { // TODO: test shapeOrNull } @@ -69,7 +69,7 @@ public void shapeOrNullTest() { * Test the property 'nullableShape' */ @Test - public void nullableShapeTest() { + void nullableShapeTest() { // TODO: test nullableShape } @@ -77,7 +77,7 @@ public void nullableShapeTest() { * Test the property 'shapes' */ @Test - public void shapesTest() { + void shapesTest() { // TODO: test shapes } diff --git a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/EnumArraysTest.java b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/EnumArraysTest.java index bd426ae14b51..4a755b0d4425 100644 --- a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/EnumArraysTest.java +++ b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/EnumArraysTest.java @@ -19,23 +19,23 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for EnumArrays */ -public class EnumArraysTest { +class EnumArraysTest { private final EnumArrays model = new EnumArrays(); /** * Model tests for EnumArrays */ @Test - public void testEnumArrays() { + void testEnumArrays() { // TODO: test EnumArrays } @@ -43,7 +43,7 @@ public void testEnumArrays() { * Test the property 'justSymbol' */ @Test - public void justSymbolTest() { + void justSymbolTest() { // TODO: test justSymbol } @@ -51,7 +51,7 @@ public void justSymbolTest() { * Test the property 'arrayEnum' */ @Test - public void arrayEnumTest() { + void arrayEnumTest() { // TODO: test arrayEnum } diff --git a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/EnumClassTest.java b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/EnumClassTest.java index 19518a5f665b..48aa1a737fce 100644 --- a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/EnumClassTest.java +++ b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/EnumClassTest.java @@ -17,16 +17,15 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for EnumClass */ -public class EnumClassTest { +class EnumClassTest { /** * Model tests for EnumClass */ @Test - public void testEnumClass() { + void testEnumClass() { // TODO: test EnumClass } diff --git a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/EnumTestTest.java b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/EnumTestTest.java index 8522172bdfcb..1b2d233cb96f 100644 --- a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/EnumTestTest.java +++ b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/EnumTestTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.openapitools.client.model.OuterEnum; import org.openapitools.client.model.OuterEnumDefaultValue; import org.openapitools.client.model.OuterEnumInteger; @@ -30,18 +31,17 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for EnumTest */ -public class EnumTestTest { +class EnumTestTest { private final EnumTest model = new EnumTest(); /** * Model tests for EnumTest */ @Test - public void testEnumTest() { + void testEnumTest() { // TODO: test EnumTest } @@ -49,7 +49,7 @@ public void testEnumTest() { * Test the property 'enumString' */ @Test - public void enumStringTest() { + void enumStringTest() { // TODO: test enumString } @@ -57,7 +57,7 @@ public void enumStringTest() { * Test the property 'enumStringRequired' */ @Test - public void enumStringRequiredTest() { + void enumStringRequiredTest() { // TODO: test enumStringRequired } @@ -65,15 +65,23 @@ public void enumStringRequiredTest() { * Test the property 'enumInteger' */ @Test - public void enumIntegerTest() { + void enumIntegerTest() { // TODO: test enumInteger } + /** + * Test the property 'enumIntegerOnly' + */ + @Test + void enumIntegerOnlyTest() { + // TODO: test enumIntegerOnly + } + /** * Test the property 'enumNumber' */ @Test - public void enumNumberTest() { + void enumNumberTest() { // TODO: test enumNumber } @@ -81,7 +89,7 @@ public void enumNumberTest() { * Test the property 'outerEnum' */ @Test - public void outerEnumTest() { + void outerEnumTest() { // TODO: test outerEnum } @@ -89,7 +97,7 @@ public void outerEnumTest() { * Test the property 'outerEnumInteger' */ @Test - public void outerEnumIntegerTest() { + void outerEnumIntegerTest() { // TODO: test outerEnumInteger } @@ -97,7 +105,7 @@ public void outerEnumIntegerTest() { * Test the property 'outerEnumDefaultValue' */ @Test - public void outerEnumDefaultValueTest() { + void outerEnumDefaultValueTest() { // TODO: test outerEnumDefaultValue } @@ -105,7 +113,7 @@ public void outerEnumDefaultValueTest() { * Test the property 'outerEnumIntegerDefaultValue' */ @Test - public void outerEnumIntegerDefaultValueTest() { + void outerEnumIntegerDefaultValueTest() { // TODO: test outerEnumIntegerDefaultValue } diff --git a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/EquilateralTriangleTest.java b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/EquilateralTriangleTest.java index d6450f92d369..ca7aed0ce2e0 100644 --- a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/EquilateralTriangleTest.java +++ b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/EquilateralTriangleTest.java @@ -18,22 +18,22 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for EquilateralTriangle */ -public class EquilateralTriangleTest { +class EquilateralTriangleTest { private final EquilateralTriangle model = new EquilateralTriangle(); /** * Model tests for EquilateralTriangle */ @Test - public void testEquilateralTriangle() { + void testEquilateralTriangle() { // TODO: test EquilateralTriangle } @@ -41,7 +41,7 @@ public void testEquilateralTriangle() { * Test the property 'shapeType' */ @Test - public void shapeTypeTest() { + void shapeTypeTest() { // TODO: test shapeType } @@ -49,7 +49,7 @@ public void shapeTypeTest() { * Test the property 'triangleType' */ @Test - public void triangleTypeTest() { + void triangleTypeTest() { // TODO: test triangleType } diff --git a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/FakeBigDecimalMap200ResponseTest.java b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/FakeBigDecimalMap200ResponseTest.java index 1792f6169d92..a4ce8f9df8a9 100644 --- a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/FakeBigDecimalMap200ResponseTest.java +++ b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/FakeBigDecimalMap200ResponseTest.java @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.math.BigDecimal; +import java.util.Arrays; import java.util.HashMap; import java.util.Map; import org.junit.jupiter.api.Assertions; @@ -28,14 +29,14 @@ /** * Model tests for FakeBigDecimalMap200Response */ -public class FakeBigDecimalMap200ResponseTest { +class FakeBigDecimalMap200ResponseTest { private final FakeBigDecimalMap200Response model = new FakeBigDecimalMap200Response(); /** * Model tests for FakeBigDecimalMap200Response */ @Test - public void testFakeBigDecimalMap200Response() { + void testFakeBigDecimalMap200Response() { // TODO: test FakeBigDecimalMap200Response } @@ -43,7 +44,7 @@ public void testFakeBigDecimalMap200Response() { * Test the property 'someId' */ @Test - public void someIdTest() { + void someIdTest() { // TODO: test someId } @@ -51,7 +52,7 @@ public void someIdTest() { * Test the property 'someMap' */ @Test - public void someMapTest() { + void someMapTest() { // TODO: test someMap } diff --git a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/FileSchemaTestClassTest.java b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/FileSchemaTestClassTest.java index 53b20d7bdd31..0048cb2c7497 100644 --- a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/FileSchemaTestClassTest.java +++ b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/FileSchemaTestClassTest.java @@ -19,24 +19,24 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.ModelFile; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for FileSchemaTestClass */ -public class FileSchemaTestClassTest { +class FileSchemaTestClassTest { private final FileSchemaTestClass model = new FileSchemaTestClass(); /** * Model tests for FileSchemaTestClass */ @Test - public void testFileSchemaTestClass() { + void testFileSchemaTestClass() { // TODO: test FileSchemaTestClass } @@ -44,7 +44,7 @@ public void testFileSchemaTestClass() { * Test the property '_file' */ @Test - public void _fileTest() { + void _fileTest() { // TODO: test _file } @@ -52,7 +52,7 @@ public void _fileTest() { * Test the property 'files' */ @Test - public void filesTest() { + void filesTest() { // TODO: test files } diff --git a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/FooGetDefaultResponseTest.java b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/FooGetDefaultResponseTest.java index 85c3e9a29e77..066c78ba255f 100644 --- a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/FooGetDefaultResponseTest.java +++ b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/FooGetDefaultResponseTest.java @@ -18,23 +18,23 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.openapitools.client.model.Foo; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for FooGetDefaultResponse */ -public class FooGetDefaultResponseTest { +class FooGetDefaultResponseTest { private final FooGetDefaultResponse model = new FooGetDefaultResponse(); /** * Model tests for FooGetDefaultResponse */ @Test - public void testFooGetDefaultResponse() { + void testFooGetDefaultResponse() { // TODO: test FooGetDefaultResponse } @@ -42,7 +42,7 @@ public void testFooGetDefaultResponse() { * Test the property 'string' */ @Test - public void stringTest() { + void stringTest() { // TODO: test string } diff --git a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/FooTest.java b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/FooTest.java index b1825eb48eb9..50be3e8eb9d1 100644 --- a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/FooTest.java +++ b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/FooTest.java @@ -18,22 +18,22 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Foo */ -public class FooTest { +class FooTest { private final Foo model = new Foo(); /** * Model tests for Foo */ @Test - public void testFoo() { + void testFoo() { // TODO: test Foo } @@ -41,7 +41,7 @@ public void testFoo() { * Test the property 'bar' */ @Test - public void barTest() { + void barTest() { // TODO: test bar } diff --git a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/FormatTestTest.java b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/FormatTestTest.java index 2d1505241d81..3df7f506d43b 100644 --- a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/FormatTestTest.java +++ b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/FormatTestTest.java @@ -22,23 +22,23 @@ import java.math.BigDecimal; import java.time.LocalDate; import java.time.OffsetDateTime; +import java.util.Arrays; import java.util.UUID; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for FormatTest */ -public class FormatTestTest { +class FormatTestTest { private final FormatTest model = new FormatTest(); /** * Model tests for FormatTest */ @Test - public void testFormatTest() { + void testFormatTest() { // TODO: test FormatTest } @@ -46,7 +46,7 @@ public void testFormatTest() { * Test the property 'integer' */ @Test - public void integerTest() { + void integerTest() { // TODO: test integer } @@ -54,7 +54,7 @@ public void integerTest() { * Test the property 'int32' */ @Test - public void int32Test() { + void int32Test() { // TODO: test int32 } @@ -62,7 +62,7 @@ public void int32Test() { * Test the property 'int64' */ @Test - public void int64Test() { + void int64Test() { // TODO: test int64 } @@ -70,7 +70,7 @@ public void int64Test() { * Test the property 'number' */ @Test - public void numberTest() { + void numberTest() { // TODO: test number } @@ -78,7 +78,7 @@ public void numberTest() { * Test the property '_float' */ @Test - public void _floatTest() { + void _floatTest() { // TODO: test _float } @@ -86,7 +86,7 @@ public void _floatTest() { * Test the property '_double' */ @Test - public void _doubleTest() { + void _doubleTest() { // TODO: test _double } @@ -94,7 +94,7 @@ public void _doubleTest() { * Test the property 'decimal' */ @Test - public void decimalTest() { + void decimalTest() { // TODO: test decimal } @@ -102,7 +102,7 @@ public void decimalTest() { * Test the property 'string' */ @Test - public void stringTest() { + void stringTest() { // TODO: test string } @@ -110,7 +110,7 @@ public void stringTest() { * Test the property '_byte' */ @Test - public void _byteTest() { + void _byteTest() { // TODO: test _byte } @@ -118,7 +118,7 @@ public void _byteTest() { * Test the property 'binary' */ @Test - public void binaryTest() { + void binaryTest() { // TODO: test binary } @@ -126,7 +126,7 @@ public void binaryTest() { * Test the property 'date' */ @Test - public void dateTest() { + void dateTest() { // TODO: test date } @@ -134,7 +134,7 @@ public void dateTest() { * Test the property 'dateTime' */ @Test - public void dateTimeTest() { + void dateTimeTest() { // TODO: test dateTime } @@ -142,7 +142,7 @@ public void dateTimeTest() { * Test the property 'uuid' */ @Test - public void uuidTest() { + void uuidTest() { // TODO: test uuid } @@ -150,7 +150,7 @@ public void uuidTest() { * Test the property 'password' */ @Test - public void passwordTest() { + void passwordTest() { // TODO: test password } @@ -158,7 +158,7 @@ public void passwordTest() { * Test the property 'patternWithDigits' */ @Test - public void patternWithDigitsTest() { + void patternWithDigitsTest() { // TODO: test patternWithDigits } @@ -166,7 +166,7 @@ public void patternWithDigitsTest() { * Test the property 'patternWithDigitsAndDelimiter' */ @Test - public void patternWithDigitsAndDelimiterTest() { + void patternWithDigitsAndDelimiterTest() { // TODO: test patternWithDigitsAndDelimiter } diff --git a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/FruitReqTest.java b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/FruitReqTest.java index 59d4bcfc12b4..e1ef92e00114 100644 --- a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/FruitReqTest.java +++ b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/FruitReqTest.java @@ -19,24 +19,24 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.math.BigDecimal; +import java.util.Arrays; import org.openapitools.client.model.AppleReq; import org.openapitools.client.model.BananaReq; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for FruitReq */ -public class FruitReqTest { +class FruitReqTest { private final FruitReq model = new FruitReq(); /** * Model tests for FruitReq */ @Test - public void testFruitReq() { + void testFruitReq() { // TODO: test FruitReq } @@ -44,7 +44,7 @@ public void testFruitReq() { * Test the property 'cultivar' */ @Test - public void cultivarTest() { + void cultivarTest() { // TODO: test cultivar } @@ -52,7 +52,7 @@ public void cultivarTest() { * Test the property 'mealy' */ @Test - public void mealyTest() { + void mealyTest() { // TODO: test mealy } @@ -60,7 +60,7 @@ public void mealyTest() { * Test the property 'lengthCm' */ @Test - public void lengthCmTest() { + void lengthCmTest() { // TODO: test lengthCm } @@ -68,7 +68,7 @@ public void lengthCmTest() { * Test the property 'sweet' */ @Test - public void sweetTest() { + void sweetTest() { // TODO: test sweet } diff --git a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/FruitTest.java b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/FruitTest.java index e9153d8010a3..89d9c125d93d 100644 --- a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/FruitTest.java +++ b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/FruitTest.java @@ -19,24 +19,24 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.math.BigDecimal; +import java.util.Arrays; import org.openapitools.client.model.Apple; import org.openapitools.client.model.Banana; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Fruit */ -public class FruitTest { +class FruitTest { private final Fruit model = new Fruit(); /** * Model tests for Fruit */ @Test - public void testFruit() { + void testFruit() { // TODO: test Fruit } @@ -44,7 +44,7 @@ public void testFruit() { * Test the property 'cultivar' */ @Test - public void cultivarTest() { + void cultivarTest() { // TODO: test cultivar } @@ -52,7 +52,7 @@ public void cultivarTest() { * Test the property 'origin' */ @Test - public void originTest() { + void originTest() { // TODO: test origin } @@ -60,7 +60,7 @@ public void originTest() { * Test the property 'lengthCm' */ @Test - public void lengthCmTest() { + void lengthCmTest() { // TODO: test lengthCm } diff --git a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/GmFruitTest.java b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/GmFruitTest.java index 2625ac7b07cb..96062808d6de 100644 --- a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/GmFruitTest.java +++ b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/GmFruitTest.java @@ -19,24 +19,24 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.math.BigDecimal; +import java.util.Arrays; import org.openapitools.client.model.Apple; import org.openapitools.client.model.Banana; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for GmFruit */ -public class GmFruitTest { +class GmFruitTest { private final GmFruit model = new GmFruit(); /** * Model tests for GmFruit */ @Test - public void testGmFruit() { + void testGmFruit() { // TODO: test GmFruit } @@ -44,7 +44,7 @@ public void testGmFruit() { * Test the property 'cultivar' */ @Test - public void cultivarTest() { + void cultivarTest() { // TODO: test cultivar } @@ -52,7 +52,7 @@ public void cultivarTest() { * Test the property 'origin' */ @Test - public void originTest() { + void originTest() { // TODO: test origin } @@ -60,7 +60,7 @@ public void originTest() { * Test the property 'lengthCm' */ @Test - public void lengthCmTest() { + void lengthCmTest() { // TODO: test lengthCm } diff --git a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/GrandparentAnimalTest.java b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/GrandparentAnimalTest.java index 7ba9aa57e8e8..83216e34a675 100644 --- a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/GrandparentAnimalTest.java +++ b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/GrandparentAnimalTest.java @@ -21,24 +21,22 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import org.openapitools.client.model.ChildCat; -import org.openapitools.client.model.ParentPet; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for GrandparentAnimal */ -public class GrandparentAnimalTest { +class GrandparentAnimalTest { private final GrandparentAnimal model = new GrandparentAnimal(); /** * Model tests for GrandparentAnimal */ @Test - public void testGrandparentAnimal() { + void testGrandparentAnimal() { // TODO: test GrandparentAnimal } @@ -46,7 +44,7 @@ public void testGrandparentAnimal() { * Test the property 'petType' */ @Test - public void petTypeTest() { + void petTypeTest() { // TODO: test petType } diff --git a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/HasOnlyReadOnlyTest.java b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/HasOnlyReadOnlyTest.java index 9a76d3c9534f..9d3b9a7b8bfe 100644 --- a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/HasOnlyReadOnlyTest.java +++ b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/HasOnlyReadOnlyTest.java @@ -18,22 +18,22 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for HasOnlyReadOnly */ -public class HasOnlyReadOnlyTest { +class HasOnlyReadOnlyTest { private final HasOnlyReadOnly model = new HasOnlyReadOnly(); /** * Model tests for HasOnlyReadOnly */ @Test - public void testHasOnlyReadOnly() { + void testHasOnlyReadOnly() { // TODO: test HasOnlyReadOnly } @@ -41,7 +41,7 @@ public void testHasOnlyReadOnly() { * Test the property 'bar' */ @Test - public void barTest() { + void barTest() { // TODO: test bar } @@ -49,7 +49,7 @@ public void barTest() { * Test the property 'foo' */ @Test - public void fooTest() { + void fooTest() { // TODO: test foo } diff --git a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/HealthCheckResultTest.java b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/HealthCheckResultTest.java index d627568b70c9..7c4efd7dbe35 100644 --- a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/HealthCheckResultTest.java +++ b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/HealthCheckResultTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.openapitools.jackson.nullable.JsonNullable; import com.fasterxml.jackson.annotation.JsonIgnore; import org.openapitools.jackson.nullable.JsonNullable; @@ -26,18 +27,17 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for HealthCheckResult */ -public class HealthCheckResultTest { +class HealthCheckResultTest { private final HealthCheckResult model = new HealthCheckResult(); /** * Model tests for HealthCheckResult */ @Test - public void testHealthCheckResult() { + void testHealthCheckResult() { // TODO: test HealthCheckResult } @@ -45,7 +45,7 @@ public void testHealthCheckResult() { * Test the property 'nullableMessage' */ @Test - public void nullableMessageTest() { + void nullableMessageTest() { // TODO: test nullableMessage } diff --git a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/IsoscelesTriangleTest.java b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/IsoscelesTriangleTest.java index 494aeb29719a..d3bda7c14fa4 100644 --- a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/IsoscelesTriangleTest.java +++ b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/IsoscelesTriangleTest.java @@ -18,22 +18,22 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for IsoscelesTriangle */ -public class IsoscelesTriangleTest { +class IsoscelesTriangleTest { private final IsoscelesTriangle model = new IsoscelesTriangle(); /** * Model tests for IsoscelesTriangle */ @Test - public void testIsoscelesTriangle() { + void testIsoscelesTriangle() { // TODO: test IsoscelesTriangle } @@ -41,7 +41,7 @@ public void testIsoscelesTriangle() { * Test the property 'shapeType' */ @Test - public void shapeTypeTest() { + void shapeTypeTest() { // TODO: test shapeType } @@ -49,7 +49,7 @@ public void shapeTypeTest() { * Test the property 'triangleType' */ @Test - public void triangleTypeTest() { + void triangleTypeTest() { // TODO: test triangleType } diff --git a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/MammalTest.java b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/MammalTest.java index ff3ec21df4b0..4c2efed46210 100644 --- a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/MammalTest.java +++ b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/MammalTest.java @@ -21,6 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.openapitools.client.model.Pig; import org.openapitools.client.model.Whale; import org.openapitools.client.model.Zebra; @@ -28,18 +29,17 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Mammal */ -public class MammalTest { +class MammalTest { private final Mammal model = new Mammal(); /** * Model tests for Mammal */ @Test - public void testMammal() { + void testMammal() { // TODO: test Mammal } @@ -47,7 +47,7 @@ public void testMammal() { * Test the property 'hasBaleen' */ @Test - public void hasBaleenTest() { + void hasBaleenTest() { // TODO: test hasBaleen } @@ -55,7 +55,7 @@ public void hasBaleenTest() { * Test the property 'hasTeeth' */ @Test - public void hasTeethTest() { + void hasTeethTest() { // TODO: test hasTeeth } @@ -63,7 +63,7 @@ public void hasTeethTest() { * Test the property 'className' */ @Test - public void classNameTest() { + void classNameTest() { // TODO: test className } @@ -71,7 +71,7 @@ public void classNameTest() { * Test the property 'type' */ @Test - public void typeTest() { + void typeTest() { // TODO: test type } diff --git a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/MapTestTest.java b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/MapTestTest.java index c85527e8536a..1d919da9916b 100644 --- a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/MapTestTest.java +++ b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/MapTestTest.java @@ -18,24 +18,24 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import java.util.HashMap; import java.util.Map; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for MapTest */ -public class MapTestTest { +class MapTestTest { private final MapTest model = new MapTest(); /** * Model tests for MapTest */ @Test - public void testMapTest() { + void testMapTest() { // TODO: test MapTest } @@ -43,7 +43,7 @@ public void testMapTest() { * Test the property 'mapMapOfString' */ @Test - public void mapMapOfStringTest() { + void mapMapOfStringTest() { // TODO: test mapMapOfString } @@ -51,7 +51,7 @@ public void mapMapOfStringTest() { * Test the property 'mapOfEnumString' */ @Test - public void mapOfEnumStringTest() { + void mapOfEnumStringTest() { // TODO: test mapOfEnumString } @@ -59,7 +59,7 @@ public void mapOfEnumStringTest() { * Test the property 'directMap' */ @Test - public void directMapTest() { + void directMapTest() { // TODO: test directMap } @@ -67,7 +67,7 @@ public void directMapTest() { * Test the property 'indirectMap' */ @Test - public void indirectMapTest() { + void indirectMapTest() { // TODO: test indirectMap } diff --git a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClassTest.java b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClassTest.java index c5f70f4c8f0c..d2fe9149d06a 100644 --- a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClassTest.java +++ b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClassTest.java @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.time.OffsetDateTime; +import java.util.Arrays; import java.util.HashMap; import java.util.Map; import java.util.UUID; @@ -27,18 +28,17 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for MixedPropertiesAndAdditionalPropertiesClass */ -public class MixedPropertiesAndAdditionalPropertiesClassTest { +class MixedPropertiesAndAdditionalPropertiesClassTest { private final MixedPropertiesAndAdditionalPropertiesClass model = new MixedPropertiesAndAdditionalPropertiesClass(); /** * Model tests for MixedPropertiesAndAdditionalPropertiesClass */ @Test - public void testMixedPropertiesAndAdditionalPropertiesClass() { + void testMixedPropertiesAndAdditionalPropertiesClass() { // TODO: test MixedPropertiesAndAdditionalPropertiesClass } @@ -46,7 +46,7 @@ public void testMixedPropertiesAndAdditionalPropertiesClass() { * Test the property 'uuid' */ @Test - public void uuidTest() { + void uuidTest() { // TODO: test uuid } @@ -54,7 +54,7 @@ public void uuidTest() { * Test the property 'dateTime' */ @Test - public void dateTimeTest() { + void dateTimeTest() { // TODO: test dateTime } @@ -62,7 +62,7 @@ public void dateTimeTest() { * Test the property 'map' */ @Test - public void mapTest() { + void mapTest() { // TODO: test map } diff --git a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/Model200ResponseTest.java b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/Model200ResponseTest.java index 0952e6472d04..bf5bfd38df74 100644 --- a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/Model200ResponseTest.java +++ b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/Model200ResponseTest.java @@ -18,22 +18,22 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Model200Response */ -public class Model200ResponseTest { +class Model200ResponseTest { private final Model200Response model = new Model200Response(); /** * Model tests for Model200Response */ @Test - public void testModel200Response() { + void testModel200Response() { // TODO: test Model200Response } @@ -41,7 +41,7 @@ public void testModel200Response() { * Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } @@ -49,7 +49,7 @@ public void nameTest() { * Test the property 'propertyClass' */ @Test - public void propertyClassTest() { + void propertyClassTest() { // TODO: test propertyClass } diff --git a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java index d57f86800479..86f2f4ee0810 100644 --- a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java +++ b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java @@ -18,22 +18,22 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for ModelApiResponse */ -public class ModelApiResponseTest { +class ModelApiResponseTest { private final ModelApiResponse model = new ModelApiResponse(); /** * Model tests for ModelApiResponse */ @Test - public void testModelApiResponse() { + void testModelApiResponse() { // TODO: test ModelApiResponse } @@ -41,7 +41,7 @@ public void testModelApiResponse() { * Test the property 'code' */ @Test - public void codeTest() { + void codeTest() { // TODO: test code } @@ -49,7 +49,7 @@ public void codeTest() { * Test the property 'type' */ @Test - public void typeTest() { + void typeTest() { // TODO: test type } @@ -57,7 +57,7 @@ public void typeTest() { * Test the property 'message' */ @Test - public void messageTest() { + void messageTest() { // TODO: test message } diff --git a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/ModelFileTest.java b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/ModelFileTest.java index 4b2d71052119..24bd7a9597b1 100644 --- a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/ModelFileTest.java +++ b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/ModelFileTest.java @@ -18,22 +18,22 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for ModelFile */ -public class ModelFileTest { +class ModelFileTest { private final ModelFile model = new ModelFile(); /** * Model tests for ModelFile */ @Test - public void testModelFile() { + void testModelFile() { // TODO: test ModelFile } @@ -41,7 +41,7 @@ public void testModelFile() { * Test the property 'sourceURI' */ @Test - public void sourceURITest() { + void sourceURITest() { // TODO: test sourceURI } diff --git a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/ModelListTest.java b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/ModelListTest.java index f39c6a118e39..77c4dabaf01d 100644 --- a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/ModelListTest.java +++ b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/ModelListTest.java @@ -18,22 +18,22 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for ModelList */ -public class ModelListTest { +class ModelListTest { private final ModelList model = new ModelList(); /** * Model tests for ModelList */ @Test - public void testModelList() { + void testModelList() { // TODO: test ModelList } @@ -41,7 +41,7 @@ public void testModelList() { * Test the property '_123list' */ @Test - public void _123listTest() { + void _123listTest() { // TODO: test _123list } diff --git a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/ModelReturnTest.java b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/ModelReturnTest.java index a6968d2b87e8..4023c1a812dc 100644 --- a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/ModelReturnTest.java +++ b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/ModelReturnTest.java @@ -18,22 +18,22 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for ModelReturn */ -public class ModelReturnTest { +class ModelReturnTest { private final ModelReturn model = new ModelReturn(); /** * Model tests for ModelReturn */ @Test - public void testModelReturn() { + void testModelReturn() { // TODO: test ModelReturn } @@ -41,7 +41,7 @@ public void testModelReturn() { * Test the property '_return' */ @Test - public void _returnTest() { + void _returnTest() { // TODO: test _return } diff --git a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/NameTest.java b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/NameTest.java index 39ff782a3ea4..65afaf42e84e 100644 --- a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/NameTest.java +++ b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/NameTest.java @@ -18,22 +18,22 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Name */ -public class NameTest { +class NameTest { private final Name model = new Name(); /** * Model tests for Name */ @Test - public void testName() { + void testName() { // TODO: test Name } @@ -41,7 +41,7 @@ public void testName() { * Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } @@ -49,7 +49,7 @@ public void nameTest() { * Test the property 'snakeCase' */ @Test - public void snakeCaseTest() { + void snakeCaseTest() { // TODO: test snakeCase } @@ -57,7 +57,7 @@ public void snakeCaseTest() { * Test the property 'property' */ @Test - public void propertyTest() { + void propertyTest() { // TODO: test property } @@ -65,7 +65,7 @@ public void propertyTest() { * Test the property '_123number' */ @Test - public void _123numberTest() { + void _123numberTest() { // TODO: test _123number } diff --git a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/NullableClassTest.java b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/NullableClassTest.java index 86e5a4e72498..d960ef76e5c3 100644 --- a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/NullableClassTest.java +++ b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/NullableClassTest.java @@ -22,6 +22,7 @@ import java.time.LocalDate; import java.time.OffsetDateTime; import java.util.ArrayList; +import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; @@ -33,18 +34,17 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for NullableClass */ -public class NullableClassTest { +class NullableClassTest { private final NullableClass model = new NullableClass(); /** * Model tests for NullableClass */ @Test - public void testNullableClass() { + void testNullableClass() { // TODO: test NullableClass } @@ -52,7 +52,7 @@ public void testNullableClass() { * Test the property 'integerProp' */ @Test - public void integerPropTest() { + void integerPropTest() { // TODO: test integerProp } @@ -60,7 +60,7 @@ public void integerPropTest() { * Test the property 'numberProp' */ @Test - public void numberPropTest() { + void numberPropTest() { // TODO: test numberProp } @@ -68,7 +68,7 @@ public void numberPropTest() { * Test the property 'booleanProp' */ @Test - public void booleanPropTest() { + void booleanPropTest() { // TODO: test booleanProp } @@ -76,7 +76,7 @@ public void booleanPropTest() { * Test the property 'stringProp' */ @Test - public void stringPropTest() { + void stringPropTest() { // TODO: test stringProp } @@ -84,7 +84,7 @@ public void stringPropTest() { * Test the property 'dateProp' */ @Test - public void datePropTest() { + void datePropTest() { // TODO: test dateProp } @@ -92,7 +92,7 @@ public void datePropTest() { * Test the property 'datetimeProp' */ @Test - public void datetimePropTest() { + void datetimePropTest() { // TODO: test datetimeProp } @@ -100,7 +100,7 @@ public void datetimePropTest() { * Test the property 'arrayNullableProp' */ @Test - public void arrayNullablePropTest() { + void arrayNullablePropTest() { // TODO: test arrayNullableProp } @@ -108,7 +108,7 @@ public void arrayNullablePropTest() { * Test the property 'arrayAndItemsNullableProp' */ @Test - public void arrayAndItemsNullablePropTest() { + void arrayAndItemsNullablePropTest() { // TODO: test arrayAndItemsNullableProp } @@ -116,7 +116,7 @@ public void arrayAndItemsNullablePropTest() { * Test the property 'arrayItemsNullable' */ @Test - public void arrayItemsNullableTest() { + void arrayItemsNullableTest() { // TODO: test arrayItemsNullable } @@ -124,7 +124,7 @@ public void arrayItemsNullableTest() { * Test the property 'objectNullableProp' */ @Test - public void objectNullablePropTest() { + void objectNullablePropTest() { // TODO: test objectNullableProp } @@ -132,7 +132,7 @@ public void objectNullablePropTest() { * Test the property 'objectAndItemsNullableProp' */ @Test - public void objectAndItemsNullablePropTest() { + void objectAndItemsNullablePropTest() { // TODO: test objectAndItemsNullableProp } @@ -140,7 +140,7 @@ public void objectAndItemsNullablePropTest() { * Test the property 'objectItemsNullable' */ @Test - public void objectItemsNullableTest() { + void objectItemsNullableTest() { // TODO: test objectItemsNullable } diff --git a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/NullableShapeTest.java b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/NullableShapeTest.java index 387933e4ca83..2fd21ebc85a4 100644 --- a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/NullableShapeTest.java +++ b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/NullableShapeTest.java @@ -21,24 +21,24 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.openapitools.client.model.Quadrilateral; import org.openapitools.client.model.Triangle; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for NullableShape */ -public class NullableShapeTest { +class NullableShapeTest { private final NullableShape model = new NullableShape(); /** * Model tests for NullableShape */ @Test - public void testNullableShape() { + void testNullableShape() { // TODO: test NullableShape } @@ -46,7 +46,7 @@ public void testNullableShape() { * Test the property 'shapeType' */ @Test - public void shapeTypeTest() { + void shapeTypeTest() { // TODO: test shapeType } @@ -54,7 +54,7 @@ public void shapeTypeTest() { * Test the property 'triangleType' */ @Test - public void triangleTypeTest() { + void triangleTypeTest() { // TODO: test triangleType } @@ -62,7 +62,7 @@ public void triangleTypeTest() { * Test the property 'quadrilateralType' */ @Test - public void quadrilateralTypeTest() { + void quadrilateralTypeTest() { // TODO: test quadrilateralType } diff --git a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/NumberOnlyTest.java b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/NumberOnlyTest.java index 88a5503ccf97..8e77a542c749 100644 --- a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/NumberOnlyTest.java +++ b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/NumberOnlyTest.java @@ -19,22 +19,22 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.math.BigDecimal; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for NumberOnly */ -public class NumberOnlyTest { +class NumberOnlyTest { private final NumberOnly model = new NumberOnly(); /** * Model tests for NumberOnly */ @Test - public void testNumberOnly() { + void testNumberOnly() { // TODO: test NumberOnly } @@ -42,7 +42,7 @@ public void testNumberOnly() { * Test the property 'justNumber' */ @Test - public void justNumberTest() { + void justNumberTest() { // TODO: test justNumber } diff --git a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/ObjectWithDeprecatedFieldsTest.java b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/ObjectWithDeprecatedFieldsTest.java index 72978f65097d..aa755cf8cb48 100644 --- a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/ObjectWithDeprecatedFieldsTest.java +++ b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/ObjectWithDeprecatedFieldsTest.java @@ -20,24 +20,24 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.math.BigDecimal; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.DeprecatedObject; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for ObjectWithDeprecatedFields */ -public class ObjectWithDeprecatedFieldsTest { +class ObjectWithDeprecatedFieldsTest { private final ObjectWithDeprecatedFields model = new ObjectWithDeprecatedFields(); /** * Model tests for ObjectWithDeprecatedFields */ @Test - public void testObjectWithDeprecatedFields() { + void testObjectWithDeprecatedFields() { // TODO: test ObjectWithDeprecatedFields } @@ -45,7 +45,7 @@ public void testObjectWithDeprecatedFields() { * Test the property 'uuid' */ @Test - public void uuidTest() { + void uuidTest() { // TODO: test uuid } @@ -53,7 +53,7 @@ public void uuidTest() { * Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } @@ -61,7 +61,7 @@ public void idTest() { * Test the property 'deprecatedRef' */ @Test - public void deprecatedRefTest() { + void deprecatedRefTest() { // TODO: test deprecatedRef } @@ -69,7 +69,7 @@ public void deprecatedRefTest() { * Test the property 'bars' */ @Test - public void barsTest() { + void barsTest() { // TODO: test bars } diff --git a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/OrderTest.java b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/OrderTest.java index 17f411d1ede9..3b40755326ff 100644 --- a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/OrderTest.java +++ b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/OrderTest.java @@ -19,22 +19,22 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.time.OffsetDateTime; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Order */ -public class OrderTest { +class OrderTest { private final Order model = new Order(); /** * Model tests for Order */ @Test - public void testOrder() { + void testOrder() { // TODO: test Order } @@ -42,7 +42,7 @@ public void testOrder() { * Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } @@ -50,7 +50,7 @@ public void idTest() { * Test the property 'petId' */ @Test - public void petIdTest() { + void petIdTest() { // TODO: test petId } @@ -58,7 +58,7 @@ public void petIdTest() { * Test the property 'quantity' */ @Test - public void quantityTest() { + void quantityTest() { // TODO: test quantity } @@ -66,7 +66,7 @@ public void quantityTest() { * Test the property 'shipDate' */ @Test - public void shipDateTest() { + void shipDateTest() { // TODO: test shipDate } @@ -74,7 +74,7 @@ public void shipDateTest() { * Test the property 'status' */ @Test - public void statusTest() { + void statusTest() { // TODO: test status } @@ -82,7 +82,7 @@ public void statusTest() { * Test the property 'complete' */ @Test - public void completeTest() { + void completeTest() { // TODO: test complete } diff --git a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/OuterCompositeTest.java b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/OuterCompositeTest.java index 11d7eeac3b75..abd1e3c1fdfb 100644 --- a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/OuterCompositeTest.java +++ b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/OuterCompositeTest.java @@ -19,22 +19,22 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.math.BigDecimal; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for OuterComposite */ -public class OuterCompositeTest { +class OuterCompositeTest { private final OuterComposite model = new OuterComposite(); /** * Model tests for OuterComposite */ @Test - public void testOuterComposite() { + void testOuterComposite() { // TODO: test OuterComposite } @@ -42,7 +42,7 @@ public void testOuterComposite() { * Test the property 'myNumber' */ @Test - public void myNumberTest() { + void myNumberTest() { // TODO: test myNumber } @@ -50,7 +50,7 @@ public void myNumberTest() { * Test the property 'myString' */ @Test - public void myStringTest() { + void myStringTest() { // TODO: test myString } @@ -58,7 +58,7 @@ public void myStringTest() { * Test the property 'myBoolean' */ @Test - public void myBooleanTest() { + void myBooleanTest() { // TODO: test myBoolean } diff --git a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/OuterEnumDefaultValueTest.java b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/OuterEnumDefaultValueTest.java index db6de4ebd34c..d818b23c7d53 100644 --- a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/OuterEnumDefaultValueTest.java +++ b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/OuterEnumDefaultValueTest.java @@ -17,16 +17,15 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for OuterEnumDefaultValue */ -public class OuterEnumDefaultValueTest { +class OuterEnumDefaultValueTest { /** * Model tests for OuterEnumDefaultValue */ @Test - public void testOuterEnumDefaultValue() { + void testOuterEnumDefaultValue() { // TODO: test OuterEnumDefaultValue } diff --git a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/OuterEnumIntegerDefaultValueTest.java b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/OuterEnumIntegerDefaultValueTest.java index 44b97d47c2eb..1d7b3338bca2 100644 --- a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/OuterEnumIntegerDefaultValueTest.java +++ b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/OuterEnumIntegerDefaultValueTest.java @@ -17,16 +17,15 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for OuterEnumIntegerDefaultValue */ -public class OuterEnumIntegerDefaultValueTest { +class OuterEnumIntegerDefaultValueTest { /** * Model tests for OuterEnumIntegerDefaultValue */ @Test - public void testOuterEnumIntegerDefaultValue() { + void testOuterEnumIntegerDefaultValue() { // TODO: test OuterEnumIntegerDefaultValue } diff --git a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/OuterEnumIntegerTest.java b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/OuterEnumIntegerTest.java index 908c8ce7e21a..cacda46a76f4 100644 --- a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/OuterEnumIntegerTest.java +++ b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/OuterEnumIntegerTest.java @@ -17,16 +17,15 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for OuterEnumInteger */ -public class OuterEnumIntegerTest { +class OuterEnumIntegerTest { /** * Model tests for OuterEnumInteger */ @Test - public void testOuterEnumInteger() { + void testOuterEnumInteger() { // TODO: test OuterEnumInteger } diff --git a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/OuterEnumTest.java b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/OuterEnumTest.java index f7293142020a..0333ee657a0f 100644 --- a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/OuterEnumTest.java +++ b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/OuterEnumTest.java @@ -17,16 +17,15 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for OuterEnum */ -public class OuterEnumTest { +class OuterEnumTest { /** * Model tests for OuterEnum */ @Test - public void testOuterEnum() { + void testOuterEnum() { // TODO: test OuterEnum } diff --git a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/ParentPetTest.java b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/ParentPetTest.java index cf712c8e3b8a..7361e9551213 100644 --- a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/ParentPetTest.java +++ b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/ParentPetTest.java @@ -21,24 +21,23 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import org.openapitools.client.model.ChildCat; +import java.util.Arrays; import org.openapitools.client.model.GrandparentAnimal; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for ParentPet */ -public class ParentPetTest { +class ParentPetTest { private final ParentPet model = new ParentPet(); /** * Model tests for ParentPet */ @Test - public void testParentPet() { + void testParentPet() { // TODO: test ParentPet } @@ -46,7 +45,7 @@ public void testParentPet() { * Test the property 'petType' */ @Test - public void petTypeTest() { + void petTypeTest() { // TODO: test petType } diff --git a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/PetTest.java b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/PetTest.java index a10e870d0fdc..4889ad6d7ae1 100644 --- a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/PetTest.java +++ b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/PetTest.java @@ -18,29 +18,26 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import java.util.ArrayList; -import java.util.LinkedHashSet; +import java.util.Arrays; import java.util.List; -import java.util.Set; import org.openapitools.client.model.Category; import org.openapitools.client.model.Tag; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Pet */ -public class PetTest { +class PetTest { private final Pet model = new Pet(); /** * Model tests for Pet */ @Test - public void testPet() { + void testPet() { // TODO: test Pet } @@ -48,7 +45,7 @@ public void testPet() { * Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } @@ -56,7 +53,7 @@ public void idTest() { * Test the property 'category' */ @Test - public void categoryTest() { + void categoryTest() { // TODO: test category } @@ -64,7 +61,7 @@ public void categoryTest() { * Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } @@ -72,7 +69,7 @@ public void nameTest() { * Test the property 'photoUrls' */ @Test - public void photoUrlsTest() { + void photoUrlsTest() { // TODO: test photoUrls } @@ -80,7 +77,7 @@ public void photoUrlsTest() { * Test the property 'tags' */ @Test - public void tagsTest() { + void tagsTest() { // TODO: test tags } @@ -88,7 +85,7 @@ public void tagsTest() { * Test the property 'status' */ @Test - public void statusTest() { + void statusTest() { // TODO: test status } diff --git a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/PigTest.java b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/PigTest.java index a877a11b87fc..7ca6bd3ed511 100644 --- a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/PigTest.java +++ b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/PigTest.java @@ -21,24 +21,24 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.openapitools.client.model.BasquePig; import org.openapitools.client.model.DanishPig; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Pig */ -public class PigTest { +class PigTest { private final Pig model = new Pig(); /** * Model tests for Pig */ @Test - public void testPig() { + void testPig() { // TODO: test Pig } @@ -46,7 +46,7 @@ public void testPig() { * Test the property 'className' */ @Test - public void classNameTest() { + void classNameTest() { // TODO: test className } diff --git a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/QuadrilateralInterfaceTest.java b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/QuadrilateralInterfaceTest.java index 12b7e7a26b69..3fe968ead101 100644 --- a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/QuadrilateralInterfaceTest.java +++ b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/QuadrilateralInterfaceTest.java @@ -18,22 +18,22 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for QuadrilateralInterface */ -public class QuadrilateralInterfaceTest { +class QuadrilateralInterfaceTest { private final QuadrilateralInterface model = new QuadrilateralInterface(); /** * Model tests for QuadrilateralInterface */ @Test - public void testQuadrilateralInterface() { + void testQuadrilateralInterface() { // TODO: test QuadrilateralInterface } @@ -41,7 +41,7 @@ public void testQuadrilateralInterface() { * Test the property 'quadrilateralType' */ @Test - public void quadrilateralTypeTest() { + void quadrilateralTypeTest() { // TODO: test quadrilateralType } diff --git a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/QuadrilateralTest.java b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/QuadrilateralTest.java index 472f5cf4b1f8..6ad236af9122 100644 --- a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/QuadrilateralTest.java +++ b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/QuadrilateralTest.java @@ -21,24 +21,24 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.openapitools.client.model.ComplexQuadrilateral; import org.openapitools.client.model.SimpleQuadrilateral; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Quadrilateral */ -public class QuadrilateralTest { +class QuadrilateralTest { private final Quadrilateral model = new Quadrilateral(); /** * Model tests for Quadrilateral */ @Test - public void testQuadrilateral() { + void testQuadrilateral() { // TODO: test Quadrilateral } @@ -46,7 +46,7 @@ public void testQuadrilateral() { * Test the property 'shapeType' */ @Test - public void shapeTypeTest() { + void shapeTypeTest() { // TODO: test shapeType } @@ -54,7 +54,7 @@ public void shapeTypeTest() { * Test the property 'quadrilateralType' */ @Test - public void quadrilateralTypeTest() { + void quadrilateralTypeTest() { // TODO: test quadrilateralType } diff --git a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/ReadOnlyFirstTest.java b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/ReadOnlyFirstTest.java index 11ab8eaf4fe1..4b6d19088328 100644 --- a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/ReadOnlyFirstTest.java +++ b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/ReadOnlyFirstTest.java @@ -18,22 +18,22 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for ReadOnlyFirst */ -public class ReadOnlyFirstTest { +class ReadOnlyFirstTest { private final ReadOnlyFirst model = new ReadOnlyFirst(); /** * Model tests for ReadOnlyFirst */ @Test - public void testReadOnlyFirst() { + void testReadOnlyFirst() { // TODO: test ReadOnlyFirst } @@ -41,7 +41,7 @@ public void testReadOnlyFirst() { * Test the property 'bar' */ @Test - public void barTest() { + void barTest() { // TODO: test bar } @@ -49,7 +49,7 @@ public void barTest() { * Test the property 'baz' */ @Test - public void bazTest() { + void bazTest() { // TODO: test baz } diff --git a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/ScaleneTriangleTest.java b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/ScaleneTriangleTest.java index 5f5d499da94d..885e8f211970 100644 --- a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/ScaleneTriangleTest.java +++ b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/ScaleneTriangleTest.java @@ -18,22 +18,22 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for ScaleneTriangle */ -public class ScaleneTriangleTest { +class ScaleneTriangleTest { private final ScaleneTriangle model = new ScaleneTriangle(); /** * Model tests for ScaleneTriangle */ @Test - public void testScaleneTriangle() { + void testScaleneTriangle() { // TODO: test ScaleneTriangle } @@ -41,7 +41,7 @@ public void testScaleneTriangle() { * Test the property 'shapeType' */ @Test - public void shapeTypeTest() { + void shapeTypeTest() { // TODO: test shapeType } @@ -49,7 +49,7 @@ public void shapeTypeTest() { * Test the property 'triangleType' */ @Test - public void triangleTypeTest() { + void triangleTypeTest() { // TODO: test triangleType } diff --git a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/ShapeInterfaceTest.java b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/ShapeInterfaceTest.java index f7baab916ce7..08ba5fc84864 100644 --- a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/ShapeInterfaceTest.java +++ b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/ShapeInterfaceTest.java @@ -18,22 +18,22 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for ShapeInterface */ -public class ShapeInterfaceTest { +class ShapeInterfaceTest { private final ShapeInterface model = new ShapeInterface(); /** * Model tests for ShapeInterface */ @Test - public void testShapeInterface() { + void testShapeInterface() { // TODO: test ShapeInterface } @@ -41,7 +41,7 @@ public void testShapeInterface() { * Test the property 'shapeType' */ @Test - public void shapeTypeTest() { + void shapeTypeTest() { // TODO: test shapeType } diff --git a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/ShapeOrNullTest.java b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/ShapeOrNullTest.java index 93f71dcf9ea1..cf4924b2f73c 100644 --- a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/ShapeOrNullTest.java +++ b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/ShapeOrNullTest.java @@ -21,24 +21,24 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.openapitools.client.model.Quadrilateral; import org.openapitools.client.model.Triangle; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for ShapeOrNull */ -public class ShapeOrNullTest { +class ShapeOrNullTest { private final ShapeOrNull model = new ShapeOrNull(); /** * Model tests for ShapeOrNull */ @Test - public void testShapeOrNull() { + void testShapeOrNull() { // TODO: test ShapeOrNull } @@ -46,7 +46,7 @@ public void testShapeOrNull() { * Test the property 'shapeType' */ @Test - public void shapeTypeTest() { + void shapeTypeTest() { // TODO: test shapeType } @@ -54,7 +54,7 @@ public void shapeTypeTest() { * Test the property 'triangleType' */ @Test - public void triangleTypeTest() { + void triangleTypeTest() { // TODO: test triangleType } @@ -62,7 +62,7 @@ public void triangleTypeTest() { * Test the property 'quadrilateralType' */ @Test - public void quadrilateralTypeTest() { + void quadrilateralTypeTest() { // TODO: test quadrilateralType } diff --git a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/ShapeTest.java b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/ShapeTest.java index 43d7a99da4a7..d6f8771829fa 100644 --- a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/ShapeTest.java +++ b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/ShapeTest.java @@ -21,24 +21,24 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.openapitools.client.model.Quadrilateral; import org.openapitools.client.model.Triangle; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Shape */ -public class ShapeTest { +class ShapeTest { private final Shape model = new Shape(); /** * Model tests for Shape */ @Test - public void testShape() { + void testShape() { // TODO: test Shape } @@ -46,7 +46,7 @@ public void testShape() { * Test the property 'shapeType' */ @Test - public void shapeTypeTest() { + void shapeTypeTest() { // TODO: test shapeType } @@ -54,7 +54,7 @@ public void shapeTypeTest() { * Test the property 'triangleType' */ @Test - public void triangleTypeTest() { + void triangleTypeTest() { // TODO: test triangleType } @@ -62,7 +62,7 @@ public void triangleTypeTest() { * Test the property 'quadrilateralType' */ @Test - public void quadrilateralTypeTest() { + void quadrilateralTypeTest() { // TODO: test quadrilateralType } diff --git a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/SimpleQuadrilateralTest.java b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/SimpleQuadrilateralTest.java index d448e6d80b27..8ca309d9b760 100644 --- a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/SimpleQuadrilateralTest.java +++ b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/SimpleQuadrilateralTest.java @@ -18,22 +18,22 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for SimpleQuadrilateral */ -public class SimpleQuadrilateralTest { +class SimpleQuadrilateralTest { private final SimpleQuadrilateral model = new SimpleQuadrilateral(); /** * Model tests for SimpleQuadrilateral */ @Test - public void testSimpleQuadrilateral() { + void testSimpleQuadrilateral() { // TODO: test SimpleQuadrilateral } @@ -41,7 +41,7 @@ public void testSimpleQuadrilateral() { * Test the property 'shapeType' */ @Test - public void shapeTypeTest() { + void shapeTypeTest() { // TODO: test shapeType } @@ -49,7 +49,7 @@ public void shapeTypeTest() { * Test the property 'quadrilateralType' */ @Test - public void quadrilateralTypeTest() { + void quadrilateralTypeTest() { // TODO: test quadrilateralType } diff --git a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/SpecialModelNameTest.java b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/SpecialModelNameTest.java index c5d7ce076d6e..70a04f851d78 100644 --- a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/SpecialModelNameTest.java +++ b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/SpecialModelNameTest.java @@ -18,22 +18,22 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for SpecialModelName */ -public class SpecialModelNameTest { +class SpecialModelNameTest { private final SpecialModelName model = new SpecialModelName(); /** * Model tests for SpecialModelName */ @Test - public void testSpecialModelName() { + void testSpecialModelName() { // TODO: test SpecialModelName } @@ -41,8 +41,16 @@ public void testSpecialModelName() { * Test the property '$specialPropertyName' */ @Test - public void $specialPropertyNameTest() { + void $specialPropertyNameTest() { // TODO: test $specialPropertyName } + /** + * Test the property 'specialModelName' + */ + @Test + void specialModelNameTest() { + // TODO: test specialModelName + } + } diff --git a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/TagTest.java b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/TagTest.java index 382a573036b9..94831ebad01c 100644 --- a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/TagTest.java +++ b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/TagTest.java @@ -18,22 +18,22 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Tag */ -public class TagTest { +class TagTest { private final Tag model = new Tag(); /** * Model tests for Tag */ @Test - public void testTag() { + void testTag() { // TODO: test Tag } @@ -41,7 +41,7 @@ public void testTag() { * Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } @@ -49,7 +49,7 @@ public void idTest() { * Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } diff --git a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequestTest.java b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequestTest.java index 8488ed25358d..4d0b44d5fc39 100644 --- a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequestTest.java +++ b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequestTest.java @@ -28,14 +28,14 @@ /** * Model tests for TestInlineFreeformAdditionalPropertiesRequest */ -public class TestInlineFreeformAdditionalPropertiesRequestTest { +class TestInlineFreeformAdditionalPropertiesRequestTest { private final TestInlineFreeformAdditionalPropertiesRequest model = new TestInlineFreeformAdditionalPropertiesRequest(); /** * Model tests for TestInlineFreeformAdditionalPropertiesRequest */ @Test - public void testTestInlineFreeformAdditionalPropertiesRequest() { + void testTestInlineFreeformAdditionalPropertiesRequest() { // TODO: test TestInlineFreeformAdditionalPropertiesRequest } @@ -43,7 +43,7 @@ public void testTestInlineFreeformAdditionalPropertiesRequest() { * Test the property 'someProperty' */ @Test - public void somePropertyTest() { + void somePropertyTest() { // TODO: test someProperty } diff --git a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/TriangleInterfaceTest.java b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/TriangleInterfaceTest.java index afb79ca5d419..dff83416b008 100644 --- a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/TriangleInterfaceTest.java +++ b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/TriangleInterfaceTest.java @@ -18,22 +18,22 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for TriangleInterface */ -public class TriangleInterfaceTest { +class TriangleInterfaceTest { private final TriangleInterface model = new TriangleInterface(); /** * Model tests for TriangleInterface */ @Test - public void testTriangleInterface() { + void testTriangleInterface() { // TODO: test TriangleInterface } @@ -41,7 +41,7 @@ public void testTriangleInterface() { * Test the property 'triangleType' */ @Test - public void triangleTypeTest() { + void triangleTypeTest() { // TODO: test triangleType } diff --git a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/TriangleTest.java b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/TriangleTest.java index d260c70f40f0..2723c3523174 100644 --- a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/TriangleTest.java +++ b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/TriangleTest.java @@ -21,6 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.openapitools.client.model.EquilateralTriangle; import org.openapitools.client.model.IsoscelesTriangle; import org.openapitools.client.model.ScaleneTriangle; @@ -28,18 +29,17 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Triangle */ -public class TriangleTest { +class TriangleTest { private final Triangle model = new Triangle(); /** * Model tests for Triangle */ @Test - public void testTriangle() { + void testTriangle() { // TODO: test Triangle } @@ -47,7 +47,7 @@ public void testTriangle() { * Test the property 'shapeType' */ @Test - public void shapeTypeTest() { + void shapeTypeTest() { // TODO: test shapeType } @@ -55,7 +55,7 @@ public void shapeTypeTest() { * Test the property 'triangleType' */ @Test - public void triangleTypeTest() { + void triangleTypeTest() { // TODO: test triangleType } diff --git a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/UserTest.java b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/UserTest.java index eccfbf5e1263..b65187667ebc 100644 --- a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/UserTest.java +++ b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/UserTest.java @@ -18,22 +18,26 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import org.openapitools.jackson.nullable.JsonNullable; +import com.fasterxml.jackson.annotation.JsonIgnore; +import org.openapitools.jackson.nullable.JsonNullable; +import java.util.NoSuchElementException; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for User */ -public class UserTest { +class UserTest { private final User model = new User(); /** * Model tests for User */ @Test - public void testUser() { + void testUser() { // TODO: test User } @@ -41,7 +45,7 @@ public void testUser() { * Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } @@ -49,7 +53,7 @@ public void idTest() { * Test the property 'username' */ @Test - public void usernameTest() { + void usernameTest() { // TODO: test username } @@ -57,7 +61,7 @@ public void usernameTest() { * Test the property 'firstName' */ @Test - public void firstNameTest() { + void firstNameTest() { // TODO: test firstName } @@ -65,7 +69,7 @@ public void firstNameTest() { * Test the property 'lastName' */ @Test - public void lastNameTest() { + void lastNameTest() { // TODO: test lastName } @@ -73,7 +77,7 @@ public void lastNameTest() { * Test the property 'email' */ @Test - public void emailTest() { + void emailTest() { // TODO: test email } @@ -81,7 +85,7 @@ public void emailTest() { * Test the property 'password' */ @Test - public void passwordTest() { + void passwordTest() { // TODO: test password } @@ -89,7 +93,7 @@ public void passwordTest() { * Test the property 'phone' */ @Test - public void phoneTest() { + void phoneTest() { // TODO: test phone } @@ -97,8 +101,40 @@ public void phoneTest() { * Test the property 'userStatus' */ @Test - public void userStatusTest() { + void userStatusTest() { // TODO: test userStatus } + /** + * Test the property 'objectWithNoDeclaredProps' + */ + @Test + void objectWithNoDeclaredPropsTest() { + // TODO: test objectWithNoDeclaredProps + } + + /** + * Test the property 'objectWithNoDeclaredPropsNullable' + */ + @Test + void objectWithNoDeclaredPropsNullableTest() { + // TODO: test objectWithNoDeclaredPropsNullable + } + + /** + * Test the property 'anyTypeProp' + */ + @Test + void anyTypePropTest() { + // TODO: test anyTypeProp + } + + /** + * Test the property 'anyTypePropNullable' + */ + @Test + void anyTypePropNullableTest() { + // TODO: test anyTypePropNullable + } + } diff --git a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/WhaleTest.java b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/WhaleTest.java index 48f4f0715125..4d530c793a11 100644 --- a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/WhaleTest.java +++ b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/WhaleTest.java @@ -18,22 +18,22 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Whale */ -public class WhaleTest { +class WhaleTest { private final Whale model = new Whale(); /** * Model tests for Whale */ @Test - public void testWhale() { + void testWhale() { // TODO: test Whale } @@ -41,7 +41,7 @@ public void testWhale() { * Test the property 'hasBaleen' */ @Test - public void hasBaleenTest() { + void hasBaleenTest() { // TODO: test hasBaleen } @@ -49,7 +49,7 @@ public void hasBaleenTest() { * Test the property 'hasTeeth' */ @Test - public void hasTeethTest() { + void hasTeethTest() { // TODO: test hasTeeth } @@ -57,7 +57,7 @@ public void hasTeethTest() { * Test the property 'className' */ @Test - public void classNameTest() { + void classNameTest() { // TODO: test className } diff --git a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/ZebraTest.java b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/ZebraTest.java index 3be21d660bb7..b3a41605b559 100644 --- a/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/ZebraTest.java +++ b/samples/client/petstore/java/native-async/src/test/java/org/openapitools/client/model/ZebraTest.java @@ -18,24 +18,24 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import java.util.HashMap; import java.util.Map; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Zebra */ -public class ZebraTest { +class ZebraTest { private final Zebra model = new Zebra(); /** * Model tests for Zebra */ @Test - public void testZebra() { + void testZebra() { // TODO: test Zebra } @@ -43,7 +43,7 @@ public void testZebra() { * Test the property 'type' */ @Test - public void typeTest() { + void typeTest() { // TODO: test type } @@ -51,7 +51,7 @@ public void typeTest() { * Test the property 'className' */ @Test - public void classNameTest() { + void classNameTest() { // TODO: test className } diff --git a/samples/client/petstore/java/native-jakarta/src/test/java/org/openapitools/client/api/PetApiTest.java b/samples/client/petstore/java/native-jakarta/src/test/java/org/openapitools/client/api/PetApiTest.java index d163f02d0f82..f725ba246938 100644 --- a/samples/client/petstore/java/native-jakarta/src/test/java/org/openapitools/client/api/PetApiTest.java +++ b/samples/client/petstore/java/native-jakarta/src/test/java/org/openapitools/client/api/PetApiTest.java @@ -17,8 +17,8 @@ import java.io.File; import org.openapitools.client.model.ModelApiResponse; import org.openapitools.client.model.Pet; -import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; import java.util.ArrayList; import java.util.HashMap; diff --git a/samples/client/petstore/java/native-jakarta/src/test/java/org/openapitools/client/api/StoreApiTest.java b/samples/client/petstore/java/native-jakarta/src/test/java/org/openapitools/client/api/StoreApiTest.java index cf0ccfd975b2..be318cab8b1e 100644 --- a/samples/client/petstore/java/native-jakarta/src/test/java/org/openapitools/client/api/StoreApiTest.java +++ b/samples/client/petstore/java/native-jakarta/src/test/java/org/openapitools/client/api/StoreApiTest.java @@ -15,8 +15,8 @@ import org.openapitools.client.ApiException; import org.openapitools.client.model.Order; -import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; import java.util.ArrayList; import java.util.HashMap; diff --git a/samples/client/petstore/java/native-jakarta/src/test/java/org/openapitools/client/api/UserApiTest.java b/samples/client/petstore/java/native-jakarta/src/test/java/org/openapitools/client/api/UserApiTest.java index f0203e7200ca..2b2b7a60fd21 100644 --- a/samples/client/petstore/java/native-jakarta/src/test/java/org/openapitools/client/api/UserApiTest.java +++ b/samples/client/petstore/java/native-jakarta/src/test/java/org/openapitools/client/api/UserApiTest.java @@ -16,8 +16,8 @@ import org.openapitools.client.ApiException; import java.time.OffsetDateTime; import org.openapitools.client.model.User; -import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; import java.util.ArrayList; import java.util.HashMap; diff --git a/samples/client/petstore/java/native-jakarta/src/test/java/org/openapitools/client/model/CategoryTest.java b/samples/client/petstore/java/native-jakarta/src/test/java/org/openapitools/client/model/CategoryTest.java index 9726086ea5ba..ae23ab433a50 100644 --- a/samples/client/petstore/java/native-jakarta/src/test/java/org/openapitools/client/model/CategoryTest.java +++ b/samples/client/petstore/java/native-jakarta/src/test/java/org/openapitools/client/model/CategoryTest.java @@ -18,22 +18,22 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Category */ -public class CategoryTest { +class CategoryTest { private final Category model = new Category(); /** * Model tests for Category */ @Test - public void testCategory() { + void testCategory() { // TODO: test Category } @@ -41,7 +41,7 @@ public void testCategory() { * Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } @@ -49,7 +49,7 @@ public void idTest() { * Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } diff --git a/samples/client/petstore/java/native-jakarta/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java b/samples/client/petstore/java/native-jakarta/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java index 69c9bbf9a6b1..c846563bfe1f 100644 --- a/samples/client/petstore/java/native-jakarta/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java +++ b/samples/client/petstore/java/native-jakarta/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java @@ -18,22 +18,22 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for ModelApiResponse */ -public class ModelApiResponseTest { +class ModelApiResponseTest { private final ModelApiResponse model = new ModelApiResponse(); /** * Model tests for ModelApiResponse */ @Test - public void testModelApiResponse() { + void testModelApiResponse() { // TODO: test ModelApiResponse } @@ -41,7 +41,7 @@ public void testModelApiResponse() { * Test the property 'code' */ @Test - public void codeTest() { + void codeTest() { // TODO: test code } @@ -49,7 +49,7 @@ public void codeTest() { * Test the property 'type' */ @Test - public void typeTest() { + void typeTest() { // TODO: test type } @@ -57,7 +57,7 @@ public void typeTest() { * Test the property 'message' */ @Test - public void messageTest() { + void messageTest() { // TODO: test message } diff --git a/samples/client/petstore/java/native-jakarta/src/test/java/org/openapitools/client/model/OrderTest.java b/samples/client/petstore/java/native-jakarta/src/test/java/org/openapitools/client/model/OrderTest.java index 95f8424222e0..4d8d136809eb 100644 --- a/samples/client/petstore/java/native-jakarta/src/test/java/org/openapitools/client/model/OrderTest.java +++ b/samples/client/petstore/java/native-jakarta/src/test/java/org/openapitools/client/model/OrderTest.java @@ -19,22 +19,22 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.time.OffsetDateTime; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Order */ -public class OrderTest { +class OrderTest { private final Order model = new Order(); /** * Model tests for Order */ @Test - public void testOrder() { + void testOrder() { // TODO: test Order } @@ -42,7 +42,7 @@ public void testOrder() { * Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } @@ -50,7 +50,7 @@ public void idTest() { * Test the property 'petId' */ @Test - public void petIdTest() { + void petIdTest() { // TODO: test petId } @@ -58,7 +58,7 @@ public void petIdTest() { * Test the property 'quantity' */ @Test - public void quantityTest() { + void quantityTest() { // TODO: test quantity } @@ -66,7 +66,7 @@ public void quantityTest() { * Test the property 'shipDate' */ @Test - public void shipDateTest() { + void shipDateTest() { // TODO: test shipDate } @@ -74,7 +74,7 @@ public void shipDateTest() { * Test the property 'status' */ @Test - public void statusTest() { + void statusTest() { // TODO: test status } @@ -82,7 +82,7 @@ public void statusTest() { * Test the property 'complete' */ @Test - public void completeTest() { + void completeTest() { // TODO: test complete } diff --git a/samples/client/petstore/java/native-jakarta/src/test/java/org/openapitools/client/model/PetTest.java b/samples/client/petstore/java/native-jakarta/src/test/java/org/openapitools/client/model/PetTest.java index 332a4135c6f3..84aff8adbf96 100644 --- a/samples/client/petstore/java/native-jakarta/src/test/java/org/openapitools/client/model/PetTest.java +++ b/samples/client/petstore/java/native-jakarta/src/test/java/org/openapitools/client/model/PetTest.java @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.Category; import org.openapitools.client.model.Tag; @@ -26,18 +27,17 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Pet */ -public class PetTest { +class PetTest { private final Pet model = new Pet(); /** * Model tests for Pet */ @Test - public void testPet() { + void testPet() { // TODO: test Pet } @@ -45,7 +45,7 @@ public void testPet() { * Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } @@ -53,7 +53,7 @@ public void idTest() { * Test the property 'category' */ @Test - public void categoryTest() { + void categoryTest() { // TODO: test category } @@ -61,7 +61,7 @@ public void categoryTest() { * Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } @@ -69,7 +69,7 @@ public void nameTest() { * Test the property 'photoUrls' */ @Test - public void photoUrlsTest() { + void photoUrlsTest() { // TODO: test photoUrls } @@ -77,7 +77,7 @@ public void photoUrlsTest() { * Test the property 'tags' */ @Test - public void tagsTest() { + void tagsTest() { // TODO: test tags } @@ -85,7 +85,7 @@ public void tagsTest() { * Test the property 'status' */ @Test - public void statusTest() { + void statusTest() { // TODO: test status } diff --git a/samples/client/petstore/java/native-jakarta/src/test/java/org/openapitools/client/model/TagTest.java b/samples/client/petstore/java/native-jakarta/src/test/java/org/openapitools/client/model/TagTest.java index 74bf41f2a265..6bd8b9f5035e 100644 --- a/samples/client/petstore/java/native-jakarta/src/test/java/org/openapitools/client/model/TagTest.java +++ b/samples/client/petstore/java/native-jakarta/src/test/java/org/openapitools/client/model/TagTest.java @@ -18,22 +18,22 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Tag */ -public class TagTest { +class TagTest { private final Tag model = new Tag(); /** * Model tests for Tag */ @Test - public void testTag() { + void testTag() { // TODO: test Tag } @@ -41,7 +41,7 @@ public void testTag() { * Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } @@ -49,7 +49,7 @@ public void idTest() { * Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } diff --git a/samples/client/petstore/java/native-jakarta/src/test/java/org/openapitools/client/model/UserTest.java b/samples/client/petstore/java/native-jakarta/src/test/java/org/openapitools/client/model/UserTest.java index f08cd84394a0..40f4892264aa 100644 --- a/samples/client/petstore/java/native-jakarta/src/test/java/org/openapitools/client/model/UserTest.java +++ b/samples/client/petstore/java/native-jakarta/src/test/java/org/openapitools/client/model/UserTest.java @@ -18,22 +18,22 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for User */ -public class UserTest { +class UserTest { private final User model = new User(); /** * Model tests for User */ @Test - public void testUser() { + void testUser() { // TODO: test User } @@ -41,7 +41,7 @@ public void testUser() { * Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } @@ -49,7 +49,7 @@ public void idTest() { * Test the property 'username' */ @Test - public void usernameTest() { + void usernameTest() { // TODO: test username } @@ -57,7 +57,7 @@ public void usernameTest() { * Test the property 'firstName' */ @Test - public void firstNameTest() { + void firstNameTest() { // TODO: test firstName } @@ -65,7 +65,7 @@ public void firstNameTest() { * Test the property 'lastName' */ @Test - public void lastNameTest() { + void lastNameTest() { // TODO: test lastName } @@ -73,7 +73,7 @@ public void lastNameTest() { * Test the property 'email' */ @Test - public void emailTest() { + void emailTest() { // TODO: test email } @@ -81,7 +81,7 @@ public void emailTest() { * Test the property 'password' */ @Test - public void passwordTest() { + void passwordTest() { // TODO: test password } @@ -89,7 +89,7 @@ public void passwordTest() { * Test the property 'phone' */ @Test - public void phoneTest() { + void phoneTest() { // TODO: test phone } @@ -97,7 +97,7 @@ public void phoneTest() { * Test the property 'userStatus' */ @Test - public void userStatusTest() { + void userStatusTest() { // TODO: test userStatus } diff --git a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java index b812818db879..20196cb83d97 100644 --- a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java +++ b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java @@ -15,8 +15,8 @@ import org.openapitools.client.ApiException; import org.openapitools.client.model.Client; -import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; import java.util.ArrayList; import java.util.HashMap; diff --git a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/api/DefaultApiTest.java b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/api/DefaultApiTest.java index 11eb73abdc11..2571ef053445 100644 --- a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/api/DefaultApiTest.java +++ b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/api/DefaultApiTest.java @@ -15,8 +15,8 @@ import org.openapitools.client.ApiException; import org.openapitools.client.model.FooGetDefaultResponse; -import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; import java.util.ArrayList; import java.util.HashMap; diff --git a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/api/FakeApiTest.java b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/api/FakeApiTest.java index a8ea6ca43432..b67953dddcdf 100644 --- a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/api/FakeApiTest.java +++ b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/api/FakeApiTest.java @@ -16,6 +16,7 @@ import org.openapitools.client.ApiException; import java.math.BigDecimal; import org.openapitools.client.model.Client; +import org.openapitools.client.model.FakeBigDecimalMap200Response; import java.io.File; import org.openapitools.client.model.FileSchemaTestClass; import org.openapitools.client.model.HealthCheckResult; @@ -23,9 +24,10 @@ import java.time.OffsetDateTime; import org.openapitools.client.model.OuterComposite; import org.openapitools.client.model.OuterEnum; +import org.openapitools.client.model.TestInlineFreeformAdditionalPropertiesRequest; import org.openapitools.client.model.User; -import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; import java.util.ArrayList; import java.util.HashMap; @@ -43,6 +45,22 @@ public class FakeApiTest { private final FakeApi api = new FakeApi(); + /** + * + * + * for Java apache and Java native, test toUrlQueryString for maps with BegDecimal keys + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void fakeBigDecimalMapTest() throws ApiException { + FakeBigDecimalMap200Response response = + api.fakeBigDecimalMap(); + + // TODO: test validations + } + /** * Health check endpoint * @@ -127,6 +145,22 @@ public void fakeOuterStringSerializeTest() throws ApiException { // TODO: test validations } + /** + * application/json UTF8 + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getApplicationJsonUtf8Test() throws ApiException { + List response = + api.getApplicationJsonUtf8(); + + // TODO: test validations + } + /** * Array of Enums * @@ -143,6 +177,23 @@ public void getArrayOfEnumsTest() throws ApiException { // TODO: test validations } + /** + * test referenced additionalProperties + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void testAdditionalPropertiesReferenceTest() throws ApiException { + Map requestBody = null; + + api.testAdditionalPropertiesReference(requestBody); + + // TODO: test validations + } + /** * * @@ -297,6 +348,23 @@ public void testInlineAdditionalPropertiesTest() throws ApiException { // TODO: test validations } + /** + * test inline free-form additionalProperties + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void testInlineFreeformAdditionalPropertiesTest() throws ApiException { + TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest = null; + + api.testInlineFreeformAdditionalProperties(testInlineFreeformAdditionalPropertiesRequest); + + // TODO: test validations + } + /** * test json serialization of form data * @@ -336,4 +404,21 @@ public void testQueryParameterCollectionFormatTest() throws ApiException { // TODO: test validations } + /** + * test referenced string map + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void testStringMapReferenceTest() throws ApiException { + Map requestBody = null; + + api.testStringMapReference(requestBody); + + // TODO: test validations + } + } diff --git a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/api/FakeClassnameTags123ApiTest.java b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/api/FakeClassnameTags123ApiTest.java index 170eed53edf4..421d2506d7e9 100644 --- a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/api/FakeClassnameTags123ApiTest.java +++ b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/api/FakeClassnameTags123ApiTest.java @@ -15,8 +15,8 @@ import org.openapitools.client.ApiException; import org.openapitools.client.model.Client; -import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; import java.util.ArrayList; import java.util.HashMap; diff --git a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/api/PetApiTest.java b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/api/PetApiTest.java index d41f6f617ced..7de9898c8e79 100644 --- a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/api/PetApiTest.java +++ b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/api/PetApiTest.java @@ -17,8 +17,8 @@ import java.io.File; import org.openapitools.client.model.ModelApiResponse; import org.openapitools.client.model.Pet; -import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; import java.util.ArrayList; import java.util.HashMap; diff --git a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/api/StoreApiTest.java b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/api/StoreApiTest.java index b035e91df34e..b29f783bc29a 100644 --- a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/api/StoreApiTest.java +++ b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/api/StoreApiTest.java @@ -15,8 +15,8 @@ import org.openapitools.client.ApiException; import org.openapitools.client.model.Order; -import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; import java.util.ArrayList; import java.util.HashMap; diff --git a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/api/UserApiTest.java b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/api/UserApiTest.java index dba8a8d00188..e975634ddc18 100644 --- a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/api/UserApiTest.java +++ b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/api/UserApiTest.java @@ -16,8 +16,8 @@ import org.openapitools.client.ApiException; import java.time.OffsetDateTime; import org.openapitools.client.model.User; -import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; import java.util.ArrayList; import java.util.HashMap; diff --git a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/AdditionalPropertiesClassTest.java b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/AdditionalPropertiesClassTest.java index 6d12f2d7d10f..db8d40acee7f 100644 --- a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/AdditionalPropertiesClassTest.java +++ b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/AdditionalPropertiesClassTest.java @@ -18,24 +18,28 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import java.util.HashMap; import java.util.Map; +import org.openapitools.jackson.nullable.JsonNullable; +import com.fasterxml.jackson.annotation.JsonIgnore; +import org.openapitools.jackson.nullable.JsonNullable; +import java.util.NoSuchElementException; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for AdditionalPropertiesClass */ -public class AdditionalPropertiesClassTest { +class AdditionalPropertiesClassTest { private final AdditionalPropertiesClass model = new AdditionalPropertiesClass(); /** * Model tests for AdditionalPropertiesClass */ @Test - public void testAdditionalPropertiesClass() { + void testAdditionalPropertiesClass() { // TODO: test AdditionalPropertiesClass } @@ -43,7 +47,7 @@ public void testAdditionalPropertiesClass() { * Test the property 'mapProperty' */ @Test - public void mapPropertyTest() { + void mapPropertyTest() { // TODO: test mapProperty } @@ -51,8 +55,56 @@ public void mapPropertyTest() { * Test the property 'mapOfMapProperty' */ @Test - public void mapOfMapPropertyTest() { + void mapOfMapPropertyTest() { // TODO: test mapOfMapProperty } + /** + * Test the property 'anytype1' + */ + @Test + void anytype1Test() { + // TODO: test anytype1 + } + + /** + * Test the property 'mapWithUndeclaredPropertiesAnytype1' + */ + @Test + void mapWithUndeclaredPropertiesAnytype1Test() { + // TODO: test mapWithUndeclaredPropertiesAnytype1 + } + + /** + * Test the property 'mapWithUndeclaredPropertiesAnytype2' + */ + @Test + void mapWithUndeclaredPropertiesAnytype2Test() { + // TODO: test mapWithUndeclaredPropertiesAnytype2 + } + + /** + * Test the property 'mapWithUndeclaredPropertiesAnytype3' + */ + @Test + void mapWithUndeclaredPropertiesAnytype3Test() { + // TODO: test mapWithUndeclaredPropertiesAnytype3 + } + + /** + * Test the property 'emptyMap' + */ + @Test + void emptyMapTest() { + // TODO: test emptyMap + } + + /** + * Test the property 'mapWithUndeclaredPropertiesString' + */ + @Test + void mapWithUndeclaredPropertiesStringTest() { + // TODO: test mapWithUndeclaredPropertiesString + } + } diff --git a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/AnimalTest.java b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/AnimalTest.java index 24d4c7cad74a..a5087b601042 100644 --- a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/AnimalTest.java +++ b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/AnimalTest.java @@ -21,24 +21,22 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import org.openapitools.client.model.Cat; -import org.openapitools.client.model.Dog; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Animal */ -public class AnimalTest { +class AnimalTest { private final Animal model = new Animal(); /** * Model tests for Animal */ @Test - public void testAnimal() { + void testAnimal() { // TODO: test Animal } @@ -46,7 +44,7 @@ public void testAnimal() { * Test the property 'className' */ @Test - public void classNameTest() { + void classNameTest() { // TODO: test className } @@ -54,7 +52,7 @@ public void classNameTest() { * Test the property 'color' */ @Test - public void colorTest() { + void colorTest() { // TODO: test color } diff --git a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/AppleReqTest.java b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/AppleReqTest.java index a169ab60d392..92bddbf0aa1f 100644 --- a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/AppleReqTest.java +++ b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/AppleReqTest.java @@ -18,22 +18,22 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for AppleReq */ -public class AppleReqTest { +class AppleReqTest { private final AppleReq model = new AppleReq(); /** * Model tests for AppleReq */ @Test - public void testAppleReq() { + void testAppleReq() { // TODO: test AppleReq } @@ -41,7 +41,7 @@ public void testAppleReq() { * Test the property 'cultivar' */ @Test - public void cultivarTest() { + void cultivarTest() { // TODO: test cultivar } @@ -49,7 +49,7 @@ public void cultivarTest() { * Test the property 'mealy' */ @Test - public void mealyTest() { + void mealyTest() { // TODO: test mealy } diff --git a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/AppleTest.java b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/AppleTest.java index 62100b06ec32..862d3285cc42 100644 --- a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/AppleTest.java +++ b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/AppleTest.java @@ -18,22 +18,22 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Apple */ -public class AppleTest { +class AppleTest { private final Apple model = new Apple(); /** * Model tests for Apple */ @Test - public void testApple() { + void testApple() { // TODO: test Apple } @@ -41,7 +41,7 @@ public void testApple() { * Test the property 'cultivar' */ @Test - public void cultivarTest() { + void cultivarTest() { // TODO: test cultivar } @@ -49,7 +49,7 @@ public void cultivarTest() { * Test the property 'origin' */ @Test - public void originTest() { + void originTest() { // TODO: test origin } diff --git a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnlyTest.java b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnlyTest.java index 7d6ca2902ab5..6bbe877044db 100644 --- a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnlyTest.java +++ b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnlyTest.java @@ -20,23 +20,23 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.math.BigDecimal; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for ArrayOfArrayOfNumberOnly */ -public class ArrayOfArrayOfNumberOnlyTest { +class ArrayOfArrayOfNumberOnlyTest { private final ArrayOfArrayOfNumberOnly model = new ArrayOfArrayOfNumberOnly(); /** * Model tests for ArrayOfArrayOfNumberOnly */ @Test - public void testArrayOfArrayOfNumberOnly() { + void testArrayOfArrayOfNumberOnly() { // TODO: test ArrayOfArrayOfNumberOnly } @@ -44,7 +44,7 @@ public void testArrayOfArrayOfNumberOnly() { * Test the property 'arrayArrayNumber' */ @Test - public void arrayArrayNumberTest() { + void arrayArrayNumberTest() { // TODO: test arrayArrayNumber } diff --git a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/ArrayOfNumberOnlyTest.java b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/ArrayOfNumberOnlyTest.java index 1db82cbdea33..eaf908bb1ab7 100644 --- a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/ArrayOfNumberOnlyTest.java +++ b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/ArrayOfNumberOnlyTest.java @@ -20,23 +20,23 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.math.BigDecimal; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for ArrayOfNumberOnly */ -public class ArrayOfNumberOnlyTest { +class ArrayOfNumberOnlyTest { private final ArrayOfNumberOnly model = new ArrayOfNumberOnly(); /** * Model tests for ArrayOfNumberOnly */ @Test - public void testArrayOfNumberOnly() { + void testArrayOfNumberOnly() { // TODO: test ArrayOfNumberOnly } @@ -44,7 +44,7 @@ public void testArrayOfNumberOnly() { * Test the property 'arrayNumber' */ @Test - public void arrayNumberTest() { + void arrayNumberTest() { // TODO: test arrayNumber } diff --git a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/ArrayTestTest.java b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/ArrayTestTest.java index 4a3a3cc839af..99c6bcf53601 100644 --- a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/ArrayTestTest.java +++ b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/ArrayTestTest.java @@ -19,24 +19,24 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.ReadOnlyFirst; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for ArrayTest */ -public class ArrayTestTest { +class ArrayTestTest { private final ArrayTest model = new ArrayTest(); /** * Model tests for ArrayTest */ @Test - public void testArrayTest() { + void testArrayTest() { // TODO: test ArrayTest } @@ -44,7 +44,7 @@ public void testArrayTest() { * Test the property 'arrayOfString' */ @Test - public void arrayOfStringTest() { + void arrayOfStringTest() { // TODO: test arrayOfString } @@ -52,7 +52,7 @@ public void arrayOfStringTest() { * Test the property 'arrayArrayOfInteger' */ @Test - public void arrayArrayOfIntegerTest() { + void arrayArrayOfIntegerTest() { // TODO: test arrayArrayOfInteger } @@ -60,7 +60,7 @@ public void arrayArrayOfIntegerTest() { * Test the property 'arrayArrayOfModel' */ @Test - public void arrayArrayOfModelTest() { + void arrayArrayOfModelTest() { // TODO: test arrayArrayOfModel } diff --git a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/BananaReqTest.java b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/BananaReqTest.java index b605d146e403..c279b73f26a8 100644 --- a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/BananaReqTest.java +++ b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/BananaReqTest.java @@ -19,22 +19,22 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.math.BigDecimal; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for BananaReq */ -public class BananaReqTest { +class BananaReqTest { private final BananaReq model = new BananaReq(); /** * Model tests for BananaReq */ @Test - public void testBananaReq() { + void testBananaReq() { // TODO: test BananaReq } @@ -42,7 +42,7 @@ public void testBananaReq() { * Test the property 'lengthCm' */ @Test - public void lengthCmTest() { + void lengthCmTest() { // TODO: test lengthCm } @@ -50,7 +50,7 @@ public void lengthCmTest() { * Test the property 'sweet' */ @Test - public void sweetTest() { + void sweetTest() { // TODO: test sweet } diff --git a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/BananaTest.java b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/BananaTest.java index 70be9e32c946..0d30121a457b 100644 --- a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/BananaTest.java +++ b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/BananaTest.java @@ -19,22 +19,22 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.math.BigDecimal; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Banana */ -public class BananaTest { +class BananaTest { private final Banana model = new Banana(); /** * Model tests for Banana */ @Test - public void testBanana() { + void testBanana() { // TODO: test Banana } @@ -42,7 +42,7 @@ public void testBanana() { * Test the property 'lengthCm' */ @Test - public void lengthCmTest() { + void lengthCmTest() { // TODO: test lengthCm } diff --git a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/BasquePigTest.java b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/BasquePigTest.java index 43fa0a23f362..cb8ced649580 100644 --- a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/BasquePigTest.java +++ b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/BasquePigTest.java @@ -18,22 +18,22 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for BasquePig */ -public class BasquePigTest { +class BasquePigTest { private final BasquePig model = new BasquePig(); /** * Model tests for BasquePig */ @Test - public void testBasquePig() { + void testBasquePig() { // TODO: test BasquePig } @@ -41,7 +41,7 @@ public void testBasquePig() { * Test the property 'className' */ @Test - public void classNameTest() { + void classNameTest() { // TODO: test className } diff --git a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/CapitalizationTest.java b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/CapitalizationTest.java index 1f133e4142e4..47371acf3250 100644 --- a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/CapitalizationTest.java +++ b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/CapitalizationTest.java @@ -18,22 +18,22 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Capitalization */ -public class CapitalizationTest { +class CapitalizationTest { private final Capitalization model = new Capitalization(); /** * Model tests for Capitalization */ @Test - public void testCapitalization() { + void testCapitalization() { // TODO: test Capitalization } @@ -41,7 +41,7 @@ public void testCapitalization() { * Test the property 'smallCamel' */ @Test - public void smallCamelTest() { + void smallCamelTest() { // TODO: test smallCamel } @@ -49,7 +49,7 @@ public void smallCamelTest() { * Test the property 'capitalCamel' */ @Test - public void capitalCamelTest() { + void capitalCamelTest() { // TODO: test capitalCamel } @@ -57,7 +57,7 @@ public void capitalCamelTest() { * Test the property 'smallSnake' */ @Test - public void smallSnakeTest() { + void smallSnakeTest() { // TODO: test smallSnake } @@ -65,7 +65,7 @@ public void smallSnakeTest() { * Test the property 'capitalSnake' */ @Test - public void capitalSnakeTest() { + void capitalSnakeTest() { // TODO: test capitalSnake } @@ -73,7 +73,7 @@ public void capitalSnakeTest() { * Test the property 'scAETHFlowPoints' */ @Test - public void scAETHFlowPointsTest() { + void scAETHFlowPointsTest() { // TODO: test scAETHFlowPoints } @@ -81,7 +81,7 @@ public void scAETHFlowPointsTest() { * Test the property 'ATT_NAME' */ @Test - public void ATT_NAMETest() { + void ATT_NAMETest() { // TODO: test ATT_NAME } diff --git a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/CatTest.java b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/CatTest.java index 867c64d56516..79ee11f8709c 100644 --- a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/CatTest.java +++ b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/CatTest.java @@ -21,23 +21,24 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import java.util.Map; import org.openapitools.client.model.Animal; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Cat */ -public class CatTest { +class CatTest { private final Cat model = new Cat(); /** * Model tests for Cat */ @Test - public void testCat() { + void testCat() { // TODO: test Cat } @@ -45,7 +46,7 @@ public void testCat() { * Test the property 'className' */ @Test - public void classNameTest() { + void classNameTest() { // TODO: test className } @@ -53,7 +54,7 @@ public void classNameTest() { * Test the property 'color' */ @Test - public void colorTest() { + void colorTest() { // TODO: test color } @@ -61,7 +62,7 @@ public void colorTest() { * Test the property 'declawed' */ @Test - public void declawedTest() { + void declawedTest() { // TODO: test declawed } diff --git a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/CategoryTest.java b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/CategoryTest.java index 84df0f1e24da..1c022bd3eb58 100644 --- a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/CategoryTest.java +++ b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/CategoryTest.java @@ -18,22 +18,22 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Category */ -public class CategoryTest { +class CategoryTest { private final Category model = new Category(); /** * Model tests for Category */ @Test - public void testCategory() { + void testCategory() { // TODO: test Category } @@ -41,7 +41,7 @@ public void testCategory() { * Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } @@ -49,7 +49,7 @@ public void idTest() { * Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } diff --git a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/ChildCatTest.java b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/ChildCatTest.java index 63cf65386e7b..5ac77cf5418b 100644 --- a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/ChildCatTest.java +++ b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/ChildCatTest.java @@ -21,6 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.openapitools.client.model.ParentPet; import java.util.Set; import java.util.HashSet; @@ -28,18 +29,17 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for ChildCat */ -public class ChildCatTest { +class ChildCatTest { private final ChildCat model = new ChildCat(); /** * Model tests for ChildCat */ @Test - public void testChildCat() { + void testChildCat() { // TODO: test ChildCat } @@ -47,7 +47,7 @@ public void testChildCat() { * Test the property 'petType' */ @Test - public void petTypeTest() { + void petTypeTest() { // TODO: test petType } @@ -55,7 +55,7 @@ public void petTypeTest() { * Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } diff --git a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/ClassModelTest.java b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/ClassModelTest.java index 0efd2b037523..a39cbcd0832e 100644 --- a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/ClassModelTest.java +++ b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/ClassModelTest.java @@ -18,22 +18,22 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for ClassModel */ -public class ClassModelTest { +class ClassModelTest { private final ClassModel model = new ClassModel(); /** * Model tests for ClassModel */ @Test - public void testClassModel() { + void testClassModel() { // TODO: test ClassModel } @@ -41,7 +41,7 @@ public void testClassModel() { * Test the property 'propertyClass' */ @Test - public void propertyClassTest() { + void propertyClassTest() { // TODO: test propertyClass } diff --git a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/ClientTest.java b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/ClientTest.java index 9fee039a47a4..2af102e102cb 100644 --- a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/ClientTest.java +++ b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/ClientTest.java @@ -18,22 +18,22 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Client */ -public class ClientTest { +class ClientTest { private final Client model = new Client(); /** * Model tests for Client */ @Test - public void testClient() { + void testClient() { // TODO: test Client } @@ -41,7 +41,7 @@ public void testClient() { * Test the property 'client' */ @Test - public void clientTest() { + void clientTest() { // TODO: test client } diff --git a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/ComplexQuadrilateralTest.java b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/ComplexQuadrilateralTest.java index 995ed5daeb47..418a66fbd4c2 100644 --- a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/ComplexQuadrilateralTest.java +++ b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/ComplexQuadrilateralTest.java @@ -18,22 +18,22 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for ComplexQuadrilateral */ -public class ComplexQuadrilateralTest { +class ComplexQuadrilateralTest { private final ComplexQuadrilateral model = new ComplexQuadrilateral(); /** * Model tests for ComplexQuadrilateral */ @Test - public void testComplexQuadrilateral() { + void testComplexQuadrilateral() { // TODO: test ComplexQuadrilateral } @@ -41,7 +41,7 @@ public void testComplexQuadrilateral() { * Test the property 'shapeType' */ @Test - public void shapeTypeTest() { + void shapeTypeTest() { // TODO: test shapeType } @@ -49,7 +49,7 @@ public void shapeTypeTest() { * Test the property 'quadrilateralType' */ @Test - public void quadrilateralTypeTest() { + void quadrilateralTypeTest() { // TODO: test quadrilateralType } diff --git a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/DanishPigTest.java b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/DanishPigTest.java index 8568207d9717..7982c16fc0df 100644 --- a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/DanishPigTest.java +++ b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/DanishPigTest.java @@ -18,22 +18,22 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for DanishPig */ -public class DanishPigTest { +class DanishPigTest { private final DanishPig model = new DanishPig(); /** * Model tests for DanishPig */ @Test - public void testDanishPig() { + void testDanishPig() { // TODO: test DanishPig } @@ -41,7 +41,7 @@ public void testDanishPig() { * Test the property 'className' */ @Test - public void classNameTest() { + void classNameTest() { // TODO: test className } diff --git a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/DeprecatedObjectTest.java b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/DeprecatedObjectTest.java index 06d586403935..47368022c21f 100644 --- a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/DeprecatedObjectTest.java +++ b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/DeprecatedObjectTest.java @@ -18,22 +18,22 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for DeprecatedObject */ -public class DeprecatedObjectTest { +class DeprecatedObjectTest { private final DeprecatedObject model = new DeprecatedObject(); /** * Model tests for DeprecatedObject */ @Test - public void testDeprecatedObject() { + void testDeprecatedObject() { // TODO: test DeprecatedObject } @@ -41,7 +41,7 @@ public void testDeprecatedObject() { * Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } diff --git a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/DogTest.java b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/DogTest.java index 0f9f43fd3cac..d2b78c4e5738 100644 --- a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/DogTest.java +++ b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/DogTest.java @@ -21,23 +21,23 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.openapitools.client.model.Animal; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Dog */ -public class DogTest { +class DogTest { private final Dog model = new Dog(); /** * Model tests for Dog */ @Test - public void testDog() { + void testDog() { // TODO: test Dog } @@ -45,7 +45,7 @@ public void testDog() { * Test the property 'className' */ @Test - public void classNameTest() { + void classNameTest() { // TODO: test className } @@ -53,7 +53,7 @@ public void classNameTest() { * Test the property 'color' */ @Test - public void colorTest() { + void colorTest() { // TODO: test color } @@ -61,7 +61,7 @@ public void colorTest() { * Test the property 'breed' */ @Test - public void breedTest() { + void breedTest() { // TODO: test breed } diff --git a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/DrawingTest.java b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/DrawingTest.java index c2a0659731b6..d004fd2eeced 100644 --- a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/DrawingTest.java +++ b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/DrawingTest.java @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; @@ -34,18 +35,17 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Drawing */ -public class DrawingTest { +class DrawingTest { private final Drawing model = new Drawing(); /** * Model tests for Drawing */ @Test - public void testDrawing() { + void testDrawing() { // TODO: test Drawing } @@ -53,7 +53,7 @@ public void testDrawing() { * Test the property 'mainShape' */ @Test - public void mainShapeTest() { + void mainShapeTest() { // TODO: test mainShape } @@ -61,7 +61,7 @@ public void mainShapeTest() { * Test the property 'shapeOrNull' */ @Test - public void shapeOrNullTest() { + void shapeOrNullTest() { // TODO: test shapeOrNull } @@ -69,7 +69,7 @@ public void shapeOrNullTest() { * Test the property 'nullableShape' */ @Test - public void nullableShapeTest() { + void nullableShapeTest() { // TODO: test nullableShape } @@ -77,7 +77,7 @@ public void nullableShapeTest() { * Test the property 'shapes' */ @Test - public void shapesTest() { + void shapesTest() { // TODO: test shapes } diff --git a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/EnumArraysTest.java b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/EnumArraysTest.java index bd426ae14b51..4a755b0d4425 100644 --- a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/EnumArraysTest.java +++ b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/EnumArraysTest.java @@ -19,23 +19,23 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for EnumArrays */ -public class EnumArraysTest { +class EnumArraysTest { private final EnumArrays model = new EnumArrays(); /** * Model tests for EnumArrays */ @Test - public void testEnumArrays() { + void testEnumArrays() { // TODO: test EnumArrays } @@ -43,7 +43,7 @@ public void testEnumArrays() { * Test the property 'justSymbol' */ @Test - public void justSymbolTest() { + void justSymbolTest() { // TODO: test justSymbol } @@ -51,7 +51,7 @@ public void justSymbolTest() { * Test the property 'arrayEnum' */ @Test - public void arrayEnumTest() { + void arrayEnumTest() { // TODO: test arrayEnum } diff --git a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/EnumClassTest.java b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/EnumClassTest.java index 19518a5f665b..48aa1a737fce 100644 --- a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/EnumClassTest.java +++ b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/EnumClassTest.java @@ -17,16 +17,15 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for EnumClass */ -public class EnumClassTest { +class EnumClassTest { /** * Model tests for EnumClass */ @Test - public void testEnumClass() { + void testEnumClass() { // TODO: test EnumClass } diff --git a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/EnumTestTest.java b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/EnumTestTest.java index 8522172bdfcb..1b2d233cb96f 100644 --- a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/EnumTestTest.java +++ b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/EnumTestTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.openapitools.client.model.OuterEnum; import org.openapitools.client.model.OuterEnumDefaultValue; import org.openapitools.client.model.OuterEnumInteger; @@ -30,18 +31,17 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for EnumTest */ -public class EnumTestTest { +class EnumTestTest { private final EnumTest model = new EnumTest(); /** * Model tests for EnumTest */ @Test - public void testEnumTest() { + void testEnumTest() { // TODO: test EnumTest } @@ -49,7 +49,7 @@ public void testEnumTest() { * Test the property 'enumString' */ @Test - public void enumStringTest() { + void enumStringTest() { // TODO: test enumString } @@ -57,7 +57,7 @@ public void enumStringTest() { * Test the property 'enumStringRequired' */ @Test - public void enumStringRequiredTest() { + void enumStringRequiredTest() { // TODO: test enumStringRequired } @@ -65,15 +65,23 @@ public void enumStringRequiredTest() { * Test the property 'enumInteger' */ @Test - public void enumIntegerTest() { + void enumIntegerTest() { // TODO: test enumInteger } + /** + * Test the property 'enumIntegerOnly' + */ + @Test + void enumIntegerOnlyTest() { + // TODO: test enumIntegerOnly + } + /** * Test the property 'enumNumber' */ @Test - public void enumNumberTest() { + void enumNumberTest() { // TODO: test enumNumber } @@ -81,7 +89,7 @@ public void enumNumberTest() { * Test the property 'outerEnum' */ @Test - public void outerEnumTest() { + void outerEnumTest() { // TODO: test outerEnum } @@ -89,7 +97,7 @@ public void outerEnumTest() { * Test the property 'outerEnumInteger' */ @Test - public void outerEnumIntegerTest() { + void outerEnumIntegerTest() { // TODO: test outerEnumInteger } @@ -97,7 +105,7 @@ public void outerEnumIntegerTest() { * Test the property 'outerEnumDefaultValue' */ @Test - public void outerEnumDefaultValueTest() { + void outerEnumDefaultValueTest() { // TODO: test outerEnumDefaultValue } @@ -105,7 +113,7 @@ public void outerEnumDefaultValueTest() { * Test the property 'outerEnumIntegerDefaultValue' */ @Test - public void outerEnumIntegerDefaultValueTest() { + void outerEnumIntegerDefaultValueTest() { // TODO: test outerEnumIntegerDefaultValue } diff --git a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/EquilateralTriangleTest.java b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/EquilateralTriangleTest.java index d6450f92d369..ca7aed0ce2e0 100644 --- a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/EquilateralTriangleTest.java +++ b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/EquilateralTriangleTest.java @@ -18,22 +18,22 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for EquilateralTriangle */ -public class EquilateralTriangleTest { +class EquilateralTriangleTest { private final EquilateralTriangle model = new EquilateralTriangle(); /** * Model tests for EquilateralTriangle */ @Test - public void testEquilateralTriangle() { + void testEquilateralTriangle() { // TODO: test EquilateralTriangle } @@ -41,7 +41,7 @@ public void testEquilateralTriangle() { * Test the property 'shapeType' */ @Test - public void shapeTypeTest() { + void shapeTypeTest() { // TODO: test shapeType } @@ -49,7 +49,7 @@ public void shapeTypeTest() { * Test the property 'triangleType' */ @Test - public void triangleTypeTest() { + void triangleTypeTest() { // TODO: test triangleType } diff --git a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/FakeBigDecimalMap200ResponseTest.java b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/FakeBigDecimalMap200ResponseTest.java index 1792f6169d92..a4ce8f9df8a9 100644 --- a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/FakeBigDecimalMap200ResponseTest.java +++ b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/FakeBigDecimalMap200ResponseTest.java @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.math.BigDecimal; +import java.util.Arrays; import java.util.HashMap; import java.util.Map; import org.junit.jupiter.api.Assertions; @@ -28,14 +29,14 @@ /** * Model tests for FakeBigDecimalMap200Response */ -public class FakeBigDecimalMap200ResponseTest { +class FakeBigDecimalMap200ResponseTest { private final FakeBigDecimalMap200Response model = new FakeBigDecimalMap200Response(); /** * Model tests for FakeBigDecimalMap200Response */ @Test - public void testFakeBigDecimalMap200Response() { + void testFakeBigDecimalMap200Response() { // TODO: test FakeBigDecimalMap200Response } @@ -43,7 +44,7 @@ public void testFakeBigDecimalMap200Response() { * Test the property 'someId' */ @Test - public void someIdTest() { + void someIdTest() { // TODO: test someId } @@ -51,7 +52,7 @@ public void someIdTest() { * Test the property 'someMap' */ @Test - public void someMapTest() { + void someMapTest() { // TODO: test someMap } diff --git a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/FileSchemaTestClassTest.java b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/FileSchemaTestClassTest.java index 53b20d7bdd31..0048cb2c7497 100644 --- a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/FileSchemaTestClassTest.java +++ b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/FileSchemaTestClassTest.java @@ -19,24 +19,24 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.ModelFile; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for FileSchemaTestClass */ -public class FileSchemaTestClassTest { +class FileSchemaTestClassTest { private final FileSchemaTestClass model = new FileSchemaTestClass(); /** * Model tests for FileSchemaTestClass */ @Test - public void testFileSchemaTestClass() { + void testFileSchemaTestClass() { // TODO: test FileSchemaTestClass } @@ -44,7 +44,7 @@ public void testFileSchemaTestClass() { * Test the property '_file' */ @Test - public void _fileTest() { + void _fileTest() { // TODO: test _file } @@ -52,7 +52,7 @@ public void _fileTest() { * Test the property 'files' */ @Test - public void filesTest() { + void filesTest() { // TODO: test files } diff --git a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/FooGetDefaultResponseTest.java b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/FooGetDefaultResponseTest.java index 85c3e9a29e77..066c78ba255f 100644 --- a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/FooGetDefaultResponseTest.java +++ b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/FooGetDefaultResponseTest.java @@ -18,23 +18,23 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.openapitools.client.model.Foo; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for FooGetDefaultResponse */ -public class FooGetDefaultResponseTest { +class FooGetDefaultResponseTest { private final FooGetDefaultResponse model = new FooGetDefaultResponse(); /** * Model tests for FooGetDefaultResponse */ @Test - public void testFooGetDefaultResponse() { + void testFooGetDefaultResponse() { // TODO: test FooGetDefaultResponse } @@ -42,7 +42,7 @@ public void testFooGetDefaultResponse() { * Test the property 'string' */ @Test - public void stringTest() { + void stringTest() { // TODO: test string } diff --git a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/FooTest.java b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/FooTest.java index b1825eb48eb9..50be3e8eb9d1 100644 --- a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/FooTest.java +++ b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/FooTest.java @@ -18,22 +18,22 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Foo */ -public class FooTest { +class FooTest { private final Foo model = new Foo(); /** * Model tests for Foo */ @Test - public void testFoo() { + void testFoo() { // TODO: test Foo } @@ -41,7 +41,7 @@ public void testFoo() { * Test the property 'bar' */ @Test - public void barTest() { + void barTest() { // TODO: test bar } diff --git a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/FormatTestTest.java b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/FormatTestTest.java index 2d1505241d81..3df7f506d43b 100644 --- a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/FormatTestTest.java +++ b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/FormatTestTest.java @@ -22,23 +22,23 @@ import java.math.BigDecimal; import java.time.LocalDate; import java.time.OffsetDateTime; +import java.util.Arrays; import java.util.UUID; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for FormatTest */ -public class FormatTestTest { +class FormatTestTest { private final FormatTest model = new FormatTest(); /** * Model tests for FormatTest */ @Test - public void testFormatTest() { + void testFormatTest() { // TODO: test FormatTest } @@ -46,7 +46,7 @@ public void testFormatTest() { * Test the property 'integer' */ @Test - public void integerTest() { + void integerTest() { // TODO: test integer } @@ -54,7 +54,7 @@ public void integerTest() { * Test the property 'int32' */ @Test - public void int32Test() { + void int32Test() { // TODO: test int32 } @@ -62,7 +62,7 @@ public void int32Test() { * Test the property 'int64' */ @Test - public void int64Test() { + void int64Test() { // TODO: test int64 } @@ -70,7 +70,7 @@ public void int64Test() { * Test the property 'number' */ @Test - public void numberTest() { + void numberTest() { // TODO: test number } @@ -78,7 +78,7 @@ public void numberTest() { * Test the property '_float' */ @Test - public void _floatTest() { + void _floatTest() { // TODO: test _float } @@ -86,7 +86,7 @@ public void _floatTest() { * Test the property '_double' */ @Test - public void _doubleTest() { + void _doubleTest() { // TODO: test _double } @@ -94,7 +94,7 @@ public void _doubleTest() { * Test the property 'decimal' */ @Test - public void decimalTest() { + void decimalTest() { // TODO: test decimal } @@ -102,7 +102,7 @@ public void decimalTest() { * Test the property 'string' */ @Test - public void stringTest() { + void stringTest() { // TODO: test string } @@ -110,7 +110,7 @@ public void stringTest() { * Test the property '_byte' */ @Test - public void _byteTest() { + void _byteTest() { // TODO: test _byte } @@ -118,7 +118,7 @@ public void _byteTest() { * Test the property 'binary' */ @Test - public void binaryTest() { + void binaryTest() { // TODO: test binary } @@ -126,7 +126,7 @@ public void binaryTest() { * Test the property 'date' */ @Test - public void dateTest() { + void dateTest() { // TODO: test date } @@ -134,7 +134,7 @@ public void dateTest() { * Test the property 'dateTime' */ @Test - public void dateTimeTest() { + void dateTimeTest() { // TODO: test dateTime } @@ -142,7 +142,7 @@ public void dateTimeTest() { * Test the property 'uuid' */ @Test - public void uuidTest() { + void uuidTest() { // TODO: test uuid } @@ -150,7 +150,7 @@ public void uuidTest() { * Test the property 'password' */ @Test - public void passwordTest() { + void passwordTest() { // TODO: test password } @@ -158,7 +158,7 @@ public void passwordTest() { * Test the property 'patternWithDigits' */ @Test - public void patternWithDigitsTest() { + void patternWithDigitsTest() { // TODO: test patternWithDigits } @@ -166,7 +166,7 @@ public void patternWithDigitsTest() { * Test the property 'patternWithDigitsAndDelimiter' */ @Test - public void patternWithDigitsAndDelimiterTest() { + void patternWithDigitsAndDelimiterTest() { // TODO: test patternWithDigitsAndDelimiter } diff --git a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/FruitReqTest.java b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/FruitReqTest.java index 59d4bcfc12b4..e1ef92e00114 100644 --- a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/FruitReqTest.java +++ b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/FruitReqTest.java @@ -19,24 +19,24 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.math.BigDecimal; +import java.util.Arrays; import org.openapitools.client.model.AppleReq; import org.openapitools.client.model.BananaReq; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for FruitReq */ -public class FruitReqTest { +class FruitReqTest { private final FruitReq model = new FruitReq(); /** * Model tests for FruitReq */ @Test - public void testFruitReq() { + void testFruitReq() { // TODO: test FruitReq } @@ -44,7 +44,7 @@ public void testFruitReq() { * Test the property 'cultivar' */ @Test - public void cultivarTest() { + void cultivarTest() { // TODO: test cultivar } @@ -52,7 +52,7 @@ public void cultivarTest() { * Test the property 'mealy' */ @Test - public void mealyTest() { + void mealyTest() { // TODO: test mealy } @@ -60,7 +60,7 @@ public void mealyTest() { * Test the property 'lengthCm' */ @Test - public void lengthCmTest() { + void lengthCmTest() { // TODO: test lengthCm } @@ -68,7 +68,7 @@ public void lengthCmTest() { * Test the property 'sweet' */ @Test - public void sweetTest() { + void sweetTest() { // TODO: test sweet } diff --git a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/FruitTest.java b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/FruitTest.java index e9153d8010a3..89d9c125d93d 100644 --- a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/FruitTest.java +++ b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/FruitTest.java @@ -19,24 +19,24 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.math.BigDecimal; +import java.util.Arrays; import org.openapitools.client.model.Apple; import org.openapitools.client.model.Banana; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Fruit */ -public class FruitTest { +class FruitTest { private final Fruit model = new Fruit(); /** * Model tests for Fruit */ @Test - public void testFruit() { + void testFruit() { // TODO: test Fruit } @@ -44,7 +44,7 @@ public void testFruit() { * Test the property 'cultivar' */ @Test - public void cultivarTest() { + void cultivarTest() { // TODO: test cultivar } @@ -52,7 +52,7 @@ public void cultivarTest() { * Test the property 'origin' */ @Test - public void originTest() { + void originTest() { // TODO: test origin } @@ -60,7 +60,7 @@ public void originTest() { * Test the property 'lengthCm' */ @Test - public void lengthCmTest() { + void lengthCmTest() { // TODO: test lengthCm } diff --git a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/GmFruitTest.java b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/GmFruitTest.java index 2625ac7b07cb..96062808d6de 100644 --- a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/GmFruitTest.java +++ b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/GmFruitTest.java @@ -19,24 +19,24 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.math.BigDecimal; +import java.util.Arrays; import org.openapitools.client.model.Apple; import org.openapitools.client.model.Banana; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for GmFruit */ -public class GmFruitTest { +class GmFruitTest { private final GmFruit model = new GmFruit(); /** * Model tests for GmFruit */ @Test - public void testGmFruit() { + void testGmFruit() { // TODO: test GmFruit } @@ -44,7 +44,7 @@ public void testGmFruit() { * Test the property 'cultivar' */ @Test - public void cultivarTest() { + void cultivarTest() { // TODO: test cultivar } @@ -52,7 +52,7 @@ public void cultivarTest() { * Test the property 'origin' */ @Test - public void originTest() { + void originTest() { // TODO: test origin } @@ -60,7 +60,7 @@ public void originTest() { * Test the property 'lengthCm' */ @Test - public void lengthCmTest() { + void lengthCmTest() { // TODO: test lengthCm } diff --git a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/GrandparentAnimalTest.java b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/GrandparentAnimalTest.java index 7ba9aa57e8e8..83216e34a675 100644 --- a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/GrandparentAnimalTest.java +++ b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/GrandparentAnimalTest.java @@ -21,24 +21,22 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import org.openapitools.client.model.ChildCat; -import org.openapitools.client.model.ParentPet; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for GrandparentAnimal */ -public class GrandparentAnimalTest { +class GrandparentAnimalTest { private final GrandparentAnimal model = new GrandparentAnimal(); /** * Model tests for GrandparentAnimal */ @Test - public void testGrandparentAnimal() { + void testGrandparentAnimal() { // TODO: test GrandparentAnimal } @@ -46,7 +44,7 @@ public void testGrandparentAnimal() { * Test the property 'petType' */ @Test - public void petTypeTest() { + void petTypeTest() { // TODO: test petType } diff --git a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/HasOnlyReadOnlyTest.java b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/HasOnlyReadOnlyTest.java index 9a76d3c9534f..9d3b9a7b8bfe 100644 --- a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/HasOnlyReadOnlyTest.java +++ b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/HasOnlyReadOnlyTest.java @@ -18,22 +18,22 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for HasOnlyReadOnly */ -public class HasOnlyReadOnlyTest { +class HasOnlyReadOnlyTest { private final HasOnlyReadOnly model = new HasOnlyReadOnly(); /** * Model tests for HasOnlyReadOnly */ @Test - public void testHasOnlyReadOnly() { + void testHasOnlyReadOnly() { // TODO: test HasOnlyReadOnly } @@ -41,7 +41,7 @@ public void testHasOnlyReadOnly() { * Test the property 'bar' */ @Test - public void barTest() { + void barTest() { // TODO: test bar } @@ -49,7 +49,7 @@ public void barTest() { * Test the property 'foo' */ @Test - public void fooTest() { + void fooTest() { // TODO: test foo } diff --git a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/HealthCheckResultTest.java b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/HealthCheckResultTest.java index d627568b70c9..7c4efd7dbe35 100644 --- a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/HealthCheckResultTest.java +++ b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/HealthCheckResultTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.openapitools.jackson.nullable.JsonNullable; import com.fasterxml.jackson.annotation.JsonIgnore; import org.openapitools.jackson.nullable.JsonNullable; @@ -26,18 +27,17 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for HealthCheckResult */ -public class HealthCheckResultTest { +class HealthCheckResultTest { private final HealthCheckResult model = new HealthCheckResult(); /** * Model tests for HealthCheckResult */ @Test - public void testHealthCheckResult() { + void testHealthCheckResult() { // TODO: test HealthCheckResult } @@ -45,7 +45,7 @@ public void testHealthCheckResult() { * Test the property 'nullableMessage' */ @Test - public void nullableMessageTest() { + void nullableMessageTest() { // TODO: test nullableMessage } diff --git a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/IsoscelesTriangleTest.java b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/IsoscelesTriangleTest.java index 494aeb29719a..d3bda7c14fa4 100644 --- a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/IsoscelesTriangleTest.java +++ b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/IsoscelesTriangleTest.java @@ -18,22 +18,22 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for IsoscelesTriangle */ -public class IsoscelesTriangleTest { +class IsoscelesTriangleTest { private final IsoscelesTriangle model = new IsoscelesTriangle(); /** * Model tests for IsoscelesTriangle */ @Test - public void testIsoscelesTriangle() { + void testIsoscelesTriangle() { // TODO: test IsoscelesTriangle } @@ -41,7 +41,7 @@ public void testIsoscelesTriangle() { * Test the property 'shapeType' */ @Test - public void shapeTypeTest() { + void shapeTypeTest() { // TODO: test shapeType } @@ -49,7 +49,7 @@ public void shapeTypeTest() { * Test the property 'triangleType' */ @Test - public void triangleTypeTest() { + void triangleTypeTest() { // TODO: test triangleType } diff --git a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/MammalTest.java b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/MammalTest.java index ff3ec21df4b0..4c2efed46210 100644 --- a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/MammalTest.java +++ b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/MammalTest.java @@ -21,6 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.openapitools.client.model.Pig; import org.openapitools.client.model.Whale; import org.openapitools.client.model.Zebra; @@ -28,18 +29,17 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Mammal */ -public class MammalTest { +class MammalTest { private final Mammal model = new Mammal(); /** * Model tests for Mammal */ @Test - public void testMammal() { + void testMammal() { // TODO: test Mammal } @@ -47,7 +47,7 @@ public void testMammal() { * Test the property 'hasBaleen' */ @Test - public void hasBaleenTest() { + void hasBaleenTest() { // TODO: test hasBaleen } @@ -55,7 +55,7 @@ public void hasBaleenTest() { * Test the property 'hasTeeth' */ @Test - public void hasTeethTest() { + void hasTeethTest() { // TODO: test hasTeeth } @@ -63,7 +63,7 @@ public void hasTeethTest() { * Test the property 'className' */ @Test - public void classNameTest() { + void classNameTest() { // TODO: test className } @@ -71,7 +71,7 @@ public void classNameTest() { * Test the property 'type' */ @Test - public void typeTest() { + void typeTest() { // TODO: test type } diff --git a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/MapTestTest.java b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/MapTestTest.java index c85527e8536a..1d919da9916b 100644 --- a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/MapTestTest.java +++ b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/MapTestTest.java @@ -18,24 +18,24 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import java.util.HashMap; import java.util.Map; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for MapTest */ -public class MapTestTest { +class MapTestTest { private final MapTest model = new MapTest(); /** * Model tests for MapTest */ @Test - public void testMapTest() { + void testMapTest() { // TODO: test MapTest } @@ -43,7 +43,7 @@ public void testMapTest() { * Test the property 'mapMapOfString' */ @Test - public void mapMapOfStringTest() { + void mapMapOfStringTest() { // TODO: test mapMapOfString } @@ -51,7 +51,7 @@ public void mapMapOfStringTest() { * Test the property 'mapOfEnumString' */ @Test - public void mapOfEnumStringTest() { + void mapOfEnumStringTest() { // TODO: test mapOfEnumString } @@ -59,7 +59,7 @@ public void mapOfEnumStringTest() { * Test the property 'directMap' */ @Test - public void directMapTest() { + void directMapTest() { // TODO: test directMap } @@ -67,7 +67,7 @@ public void directMapTest() { * Test the property 'indirectMap' */ @Test - public void indirectMapTest() { + void indirectMapTest() { // TODO: test indirectMap } diff --git a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClassTest.java b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClassTest.java index c5f70f4c8f0c..d2fe9149d06a 100644 --- a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClassTest.java +++ b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClassTest.java @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.time.OffsetDateTime; +import java.util.Arrays; import java.util.HashMap; import java.util.Map; import java.util.UUID; @@ -27,18 +28,17 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for MixedPropertiesAndAdditionalPropertiesClass */ -public class MixedPropertiesAndAdditionalPropertiesClassTest { +class MixedPropertiesAndAdditionalPropertiesClassTest { private final MixedPropertiesAndAdditionalPropertiesClass model = new MixedPropertiesAndAdditionalPropertiesClass(); /** * Model tests for MixedPropertiesAndAdditionalPropertiesClass */ @Test - public void testMixedPropertiesAndAdditionalPropertiesClass() { + void testMixedPropertiesAndAdditionalPropertiesClass() { // TODO: test MixedPropertiesAndAdditionalPropertiesClass } @@ -46,7 +46,7 @@ public void testMixedPropertiesAndAdditionalPropertiesClass() { * Test the property 'uuid' */ @Test - public void uuidTest() { + void uuidTest() { // TODO: test uuid } @@ -54,7 +54,7 @@ public void uuidTest() { * Test the property 'dateTime' */ @Test - public void dateTimeTest() { + void dateTimeTest() { // TODO: test dateTime } @@ -62,7 +62,7 @@ public void dateTimeTest() { * Test the property 'map' */ @Test - public void mapTest() { + void mapTest() { // TODO: test map } diff --git a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/Model200ResponseTest.java b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/Model200ResponseTest.java index 0952e6472d04..bf5bfd38df74 100644 --- a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/Model200ResponseTest.java +++ b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/Model200ResponseTest.java @@ -18,22 +18,22 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Model200Response */ -public class Model200ResponseTest { +class Model200ResponseTest { private final Model200Response model = new Model200Response(); /** * Model tests for Model200Response */ @Test - public void testModel200Response() { + void testModel200Response() { // TODO: test Model200Response } @@ -41,7 +41,7 @@ public void testModel200Response() { * Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } @@ -49,7 +49,7 @@ public void nameTest() { * Test the property 'propertyClass' */ @Test - public void propertyClassTest() { + void propertyClassTest() { // TODO: test propertyClass } diff --git a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java index d57f86800479..86f2f4ee0810 100644 --- a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java +++ b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java @@ -18,22 +18,22 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for ModelApiResponse */ -public class ModelApiResponseTest { +class ModelApiResponseTest { private final ModelApiResponse model = new ModelApiResponse(); /** * Model tests for ModelApiResponse */ @Test - public void testModelApiResponse() { + void testModelApiResponse() { // TODO: test ModelApiResponse } @@ -41,7 +41,7 @@ public void testModelApiResponse() { * Test the property 'code' */ @Test - public void codeTest() { + void codeTest() { // TODO: test code } @@ -49,7 +49,7 @@ public void codeTest() { * Test the property 'type' */ @Test - public void typeTest() { + void typeTest() { // TODO: test type } @@ -57,7 +57,7 @@ public void typeTest() { * Test the property 'message' */ @Test - public void messageTest() { + void messageTest() { // TODO: test message } diff --git a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/ModelFileTest.java b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/ModelFileTest.java index 4b2d71052119..24bd7a9597b1 100644 --- a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/ModelFileTest.java +++ b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/ModelFileTest.java @@ -18,22 +18,22 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for ModelFile */ -public class ModelFileTest { +class ModelFileTest { private final ModelFile model = new ModelFile(); /** * Model tests for ModelFile */ @Test - public void testModelFile() { + void testModelFile() { // TODO: test ModelFile } @@ -41,7 +41,7 @@ public void testModelFile() { * Test the property 'sourceURI' */ @Test - public void sourceURITest() { + void sourceURITest() { // TODO: test sourceURI } diff --git a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/ModelListTest.java b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/ModelListTest.java index f39c6a118e39..77c4dabaf01d 100644 --- a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/ModelListTest.java +++ b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/ModelListTest.java @@ -18,22 +18,22 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for ModelList */ -public class ModelListTest { +class ModelListTest { private final ModelList model = new ModelList(); /** * Model tests for ModelList */ @Test - public void testModelList() { + void testModelList() { // TODO: test ModelList } @@ -41,7 +41,7 @@ public void testModelList() { * Test the property '_123list' */ @Test - public void _123listTest() { + void _123listTest() { // TODO: test _123list } diff --git a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/ModelReturnTest.java b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/ModelReturnTest.java index a6968d2b87e8..4023c1a812dc 100644 --- a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/ModelReturnTest.java +++ b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/ModelReturnTest.java @@ -18,22 +18,22 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for ModelReturn */ -public class ModelReturnTest { +class ModelReturnTest { private final ModelReturn model = new ModelReturn(); /** * Model tests for ModelReturn */ @Test - public void testModelReturn() { + void testModelReturn() { // TODO: test ModelReturn } @@ -41,7 +41,7 @@ public void testModelReturn() { * Test the property '_return' */ @Test - public void _returnTest() { + void _returnTest() { // TODO: test _return } diff --git a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/NameTest.java b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/NameTest.java index 39ff782a3ea4..65afaf42e84e 100644 --- a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/NameTest.java +++ b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/NameTest.java @@ -18,22 +18,22 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Name */ -public class NameTest { +class NameTest { private final Name model = new Name(); /** * Model tests for Name */ @Test - public void testName() { + void testName() { // TODO: test Name } @@ -41,7 +41,7 @@ public void testName() { * Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } @@ -49,7 +49,7 @@ public void nameTest() { * Test the property 'snakeCase' */ @Test - public void snakeCaseTest() { + void snakeCaseTest() { // TODO: test snakeCase } @@ -57,7 +57,7 @@ public void snakeCaseTest() { * Test the property 'property' */ @Test - public void propertyTest() { + void propertyTest() { // TODO: test property } @@ -65,7 +65,7 @@ public void propertyTest() { * Test the property '_123number' */ @Test - public void _123numberTest() { + void _123numberTest() { // TODO: test _123number } diff --git a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/NullableClassTest.java b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/NullableClassTest.java index 86e5a4e72498..d960ef76e5c3 100644 --- a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/NullableClassTest.java +++ b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/NullableClassTest.java @@ -22,6 +22,7 @@ import java.time.LocalDate; import java.time.OffsetDateTime; import java.util.ArrayList; +import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; @@ -33,18 +34,17 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for NullableClass */ -public class NullableClassTest { +class NullableClassTest { private final NullableClass model = new NullableClass(); /** * Model tests for NullableClass */ @Test - public void testNullableClass() { + void testNullableClass() { // TODO: test NullableClass } @@ -52,7 +52,7 @@ public void testNullableClass() { * Test the property 'integerProp' */ @Test - public void integerPropTest() { + void integerPropTest() { // TODO: test integerProp } @@ -60,7 +60,7 @@ public void integerPropTest() { * Test the property 'numberProp' */ @Test - public void numberPropTest() { + void numberPropTest() { // TODO: test numberProp } @@ -68,7 +68,7 @@ public void numberPropTest() { * Test the property 'booleanProp' */ @Test - public void booleanPropTest() { + void booleanPropTest() { // TODO: test booleanProp } @@ -76,7 +76,7 @@ public void booleanPropTest() { * Test the property 'stringProp' */ @Test - public void stringPropTest() { + void stringPropTest() { // TODO: test stringProp } @@ -84,7 +84,7 @@ public void stringPropTest() { * Test the property 'dateProp' */ @Test - public void datePropTest() { + void datePropTest() { // TODO: test dateProp } @@ -92,7 +92,7 @@ public void datePropTest() { * Test the property 'datetimeProp' */ @Test - public void datetimePropTest() { + void datetimePropTest() { // TODO: test datetimeProp } @@ -100,7 +100,7 @@ public void datetimePropTest() { * Test the property 'arrayNullableProp' */ @Test - public void arrayNullablePropTest() { + void arrayNullablePropTest() { // TODO: test arrayNullableProp } @@ -108,7 +108,7 @@ public void arrayNullablePropTest() { * Test the property 'arrayAndItemsNullableProp' */ @Test - public void arrayAndItemsNullablePropTest() { + void arrayAndItemsNullablePropTest() { // TODO: test arrayAndItemsNullableProp } @@ -116,7 +116,7 @@ public void arrayAndItemsNullablePropTest() { * Test the property 'arrayItemsNullable' */ @Test - public void arrayItemsNullableTest() { + void arrayItemsNullableTest() { // TODO: test arrayItemsNullable } @@ -124,7 +124,7 @@ public void arrayItemsNullableTest() { * Test the property 'objectNullableProp' */ @Test - public void objectNullablePropTest() { + void objectNullablePropTest() { // TODO: test objectNullableProp } @@ -132,7 +132,7 @@ public void objectNullablePropTest() { * Test the property 'objectAndItemsNullableProp' */ @Test - public void objectAndItemsNullablePropTest() { + void objectAndItemsNullablePropTest() { // TODO: test objectAndItemsNullableProp } @@ -140,7 +140,7 @@ public void objectAndItemsNullablePropTest() { * Test the property 'objectItemsNullable' */ @Test - public void objectItemsNullableTest() { + void objectItemsNullableTest() { // TODO: test objectItemsNullable } diff --git a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/NullableShapeTest.java b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/NullableShapeTest.java index 387933e4ca83..2fd21ebc85a4 100644 --- a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/NullableShapeTest.java +++ b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/NullableShapeTest.java @@ -21,24 +21,24 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.openapitools.client.model.Quadrilateral; import org.openapitools.client.model.Triangle; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for NullableShape */ -public class NullableShapeTest { +class NullableShapeTest { private final NullableShape model = new NullableShape(); /** * Model tests for NullableShape */ @Test - public void testNullableShape() { + void testNullableShape() { // TODO: test NullableShape } @@ -46,7 +46,7 @@ public void testNullableShape() { * Test the property 'shapeType' */ @Test - public void shapeTypeTest() { + void shapeTypeTest() { // TODO: test shapeType } @@ -54,7 +54,7 @@ public void shapeTypeTest() { * Test the property 'triangleType' */ @Test - public void triangleTypeTest() { + void triangleTypeTest() { // TODO: test triangleType } @@ -62,7 +62,7 @@ public void triangleTypeTest() { * Test the property 'quadrilateralType' */ @Test - public void quadrilateralTypeTest() { + void quadrilateralTypeTest() { // TODO: test quadrilateralType } diff --git a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/NumberOnlyTest.java b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/NumberOnlyTest.java index 88a5503ccf97..8e77a542c749 100644 --- a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/NumberOnlyTest.java +++ b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/NumberOnlyTest.java @@ -19,22 +19,22 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.math.BigDecimal; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for NumberOnly */ -public class NumberOnlyTest { +class NumberOnlyTest { private final NumberOnly model = new NumberOnly(); /** * Model tests for NumberOnly */ @Test - public void testNumberOnly() { + void testNumberOnly() { // TODO: test NumberOnly } @@ -42,7 +42,7 @@ public void testNumberOnly() { * Test the property 'justNumber' */ @Test - public void justNumberTest() { + void justNumberTest() { // TODO: test justNumber } diff --git a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/ObjectWithDeprecatedFieldsTest.java b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/ObjectWithDeprecatedFieldsTest.java index 72978f65097d..aa755cf8cb48 100644 --- a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/ObjectWithDeprecatedFieldsTest.java +++ b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/ObjectWithDeprecatedFieldsTest.java @@ -20,24 +20,24 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.math.BigDecimal; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.DeprecatedObject; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for ObjectWithDeprecatedFields */ -public class ObjectWithDeprecatedFieldsTest { +class ObjectWithDeprecatedFieldsTest { private final ObjectWithDeprecatedFields model = new ObjectWithDeprecatedFields(); /** * Model tests for ObjectWithDeprecatedFields */ @Test - public void testObjectWithDeprecatedFields() { + void testObjectWithDeprecatedFields() { // TODO: test ObjectWithDeprecatedFields } @@ -45,7 +45,7 @@ public void testObjectWithDeprecatedFields() { * Test the property 'uuid' */ @Test - public void uuidTest() { + void uuidTest() { // TODO: test uuid } @@ -53,7 +53,7 @@ public void uuidTest() { * Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } @@ -61,7 +61,7 @@ public void idTest() { * Test the property 'deprecatedRef' */ @Test - public void deprecatedRefTest() { + void deprecatedRefTest() { // TODO: test deprecatedRef } @@ -69,7 +69,7 @@ public void deprecatedRefTest() { * Test the property 'bars' */ @Test - public void barsTest() { + void barsTest() { // TODO: test bars } diff --git a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/OrderTest.java b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/OrderTest.java index 17f411d1ede9..3b40755326ff 100644 --- a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/OrderTest.java +++ b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/OrderTest.java @@ -19,22 +19,22 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.time.OffsetDateTime; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Order */ -public class OrderTest { +class OrderTest { private final Order model = new Order(); /** * Model tests for Order */ @Test - public void testOrder() { + void testOrder() { // TODO: test Order } @@ -42,7 +42,7 @@ public void testOrder() { * Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } @@ -50,7 +50,7 @@ public void idTest() { * Test the property 'petId' */ @Test - public void petIdTest() { + void petIdTest() { // TODO: test petId } @@ -58,7 +58,7 @@ public void petIdTest() { * Test the property 'quantity' */ @Test - public void quantityTest() { + void quantityTest() { // TODO: test quantity } @@ -66,7 +66,7 @@ public void quantityTest() { * Test the property 'shipDate' */ @Test - public void shipDateTest() { + void shipDateTest() { // TODO: test shipDate } @@ -74,7 +74,7 @@ public void shipDateTest() { * Test the property 'status' */ @Test - public void statusTest() { + void statusTest() { // TODO: test status } @@ -82,7 +82,7 @@ public void statusTest() { * Test the property 'complete' */ @Test - public void completeTest() { + void completeTest() { // TODO: test complete } diff --git a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/OuterCompositeTest.java b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/OuterCompositeTest.java index 11d7eeac3b75..abd1e3c1fdfb 100644 --- a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/OuterCompositeTest.java +++ b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/OuterCompositeTest.java @@ -19,22 +19,22 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.math.BigDecimal; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for OuterComposite */ -public class OuterCompositeTest { +class OuterCompositeTest { private final OuterComposite model = new OuterComposite(); /** * Model tests for OuterComposite */ @Test - public void testOuterComposite() { + void testOuterComposite() { // TODO: test OuterComposite } @@ -42,7 +42,7 @@ public void testOuterComposite() { * Test the property 'myNumber' */ @Test - public void myNumberTest() { + void myNumberTest() { // TODO: test myNumber } @@ -50,7 +50,7 @@ public void myNumberTest() { * Test the property 'myString' */ @Test - public void myStringTest() { + void myStringTest() { // TODO: test myString } @@ -58,7 +58,7 @@ public void myStringTest() { * Test the property 'myBoolean' */ @Test - public void myBooleanTest() { + void myBooleanTest() { // TODO: test myBoolean } diff --git a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/OuterEnumDefaultValueTest.java b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/OuterEnumDefaultValueTest.java index db6de4ebd34c..d818b23c7d53 100644 --- a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/OuterEnumDefaultValueTest.java +++ b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/OuterEnumDefaultValueTest.java @@ -17,16 +17,15 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for OuterEnumDefaultValue */ -public class OuterEnumDefaultValueTest { +class OuterEnumDefaultValueTest { /** * Model tests for OuterEnumDefaultValue */ @Test - public void testOuterEnumDefaultValue() { + void testOuterEnumDefaultValue() { // TODO: test OuterEnumDefaultValue } diff --git a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/OuterEnumIntegerDefaultValueTest.java b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/OuterEnumIntegerDefaultValueTest.java index 44b97d47c2eb..1d7b3338bca2 100644 --- a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/OuterEnumIntegerDefaultValueTest.java +++ b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/OuterEnumIntegerDefaultValueTest.java @@ -17,16 +17,15 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for OuterEnumIntegerDefaultValue */ -public class OuterEnumIntegerDefaultValueTest { +class OuterEnumIntegerDefaultValueTest { /** * Model tests for OuterEnumIntegerDefaultValue */ @Test - public void testOuterEnumIntegerDefaultValue() { + void testOuterEnumIntegerDefaultValue() { // TODO: test OuterEnumIntegerDefaultValue } diff --git a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/OuterEnumIntegerTest.java b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/OuterEnumIntegerTest.java index 908c8ce7e21a..cacda46a76f4 100644 --- a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/OuterEnumIntegerTest.java +++ b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/OuterEnumIntegerTest.java @@ -17,16 +17,15 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for OuterEnumInteger */ -public class OuterEnumIntegerTest { +class OuterEnumIntegerTest { /** * Model tests for OuterEnumInteger */ @Test - public void testOuterEnumInteger() { + void testOuterEnumInteger() { // TODO: test OuterEnumInteger } diff --git a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/OuterEnumTest.java b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/OuterEnumTest.java index f7293142020a..0333ee657a0f 100644 --- a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/OuterEnumTest.java +++ b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/OuterEnumTest.java @@ -17,16 +17,15 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for OuterEnum */ -public class OuterEnumTest { +class OuterEnumTest { /** * Model tests for OuterEnum */ @Test - public void testOuterEnum() { + void testOuterEnum() { // TODO: test OuterEnum } diff --git a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/ParentPetTest.java b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/ParentPetTest.java index cf712c8e3b8a..7361e9551213 100644 --- a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/ParentPetTest.java +++ b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/ParentPetTest.java @@ -21,24 +21,23 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import org.openapitools.client.model.ChildCat; +import java.util.Arrays; import org.openapitools.client.model.GrandparentAnimal; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for ParentPet */ -public class ParentPetTest { +class ParentPetTest { private final ParentPet model = new ParentPet(); /** * Model tests for ParentPet */ @Test - public void testParentPet() { + void testParentPet() { // TODO: test ParentPet } @@ -46,7 +45,7 @@ public void testParentPet() { * Test the property 'petType' */ @Test - public void petTypeTest() { + void petTypeTest() { // TODO: test petType } diff --git a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/PetTest.java b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/PetTest.java index a10e870d0fdc..4889ad6d7ae1 100644 --- a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/PetTest.java +++ b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/PetTest.java @@ -18,29 +18,26 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import java.util.ArrayList; -import java.util.LinkedHashSet; +import java.util.Arrays; import java.util.List; -import java.util.Set; import org.openapitools.client.model.Category; import org.openapitools.client.model.Tag; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Pet */ -public class PetTest { +class PetTest { private final Pet model = new Pet(); /** * Model tests for Pet */ @Test - public void testPet() { + void testPet() { // TODO: test Pet } @@ -48,7 +45,7 @@ public void testPet() { * Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } @@ -56,7 +53,7 @@ public void idTest() { * Test the property 'category' */ @Test - public void categoryTest() { + void categoryTest() { // TODO: test category } @@ -64,7 +61,7 @@ public void categoryTest() { * Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } @@ -72,7 +69,7 @@ public void nameTest() { * Test the property 'photoUrls' */ @Test - public void photoUrlsTest() { + void photoUrlsTest() { // TODO: test photoUrls } @@ -80,7 +77,7 @@ public void photoUrlsTest() { * Test the property 'tags' */ @Test - public void tagsTest() { + void tagsTest() { // TODO: test tags } @@ -88,7 +85,7 @@ public void tagsTest() { * Test the property 'status' */ @Test - public void statusTest() { + void statusTest() { // TODO: test status } diff --git a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/PigTest.java b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/PigTest.java index a877a11b87fc..7ca6bd3ed511 100644 --- a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/PigTest.java +++ b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/PigTest.java @@ -21,24 +21,24 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.openapitools.client.model.BasquePig; import org.openapitools.client.model.DanishPig; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Pig */ -public class PigTest { +class PigTest { private final Pig model = new Pig(); /** * Model tests for Pig */ @Test - public void testPig() { + void testPig() { // TODO: test Pig } @@ -46,7 +46,7 @@ public void testPig() { * Test the property 'className' */ @Test - public void classNameTest() { + void classNameTest() { // TODO: test className } diff --git a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/QuadrilateralInterfaceTest.java b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/QuadrilateralInterfaceTest.java index 12b7e7a26b69..3fe968ead101 100644 --- a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/QuadrilateralInterfaceTest.java +++ b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/QuadrilateralInterfaceTest.java @@ -18,22 +18,22 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for QuadrilateralInterface */ -public class QuadrilateralInterfaceTest { +class QuadrilateralInterfaceTest { private final QuadrilateralInterface model = new QuadrilateralInterface(); /** * Model tests for QuadrilateralInterface */ @Test - public void testQuadrilateralInterface() { + void testQuadrilateralInterface() { // TODO: test QuadrilateralInterface } @@ -41,7 +41,7 @@ public void testQuadrilateralInterface() { * Test the property 'quadrilateralType' */ @Test - public void quadrilateralTypeTest() { + void quadrilateralTypeTest() { // TODO: test quadrilateralType } diff --git a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/QuadrilateralTest.java b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/QuadrilateralTest.java index 472f5cf4b1f8..6ad236af9122 100644 --- a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/QuadrilateralTest.java +++ b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/QuadrilateralTest.java @@ -21,24 +21,24 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.openapitools.client.model.ComplexQuadrilateral; import org.openapitools.client.model.SimpleQuadrilateral; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Quadrilateral */ -public class QuadrilateralTest { +class QuadrilateralTest { private final Quadrilateral model = new Quadrilateral(); /** * Model tests for Quadrilateral */ @Test - public void testQuadrilateral() { + void testQuadrilateral() { // TODO: test Quadrilateral } @@ -46,7 +46,7 @@ public void testQuadrilateral() { * Test the property 'shapeType' */ @Test - public void shapeTypeTest() { + void shapeTypeTest() { // TODO: test shapeType } @@ -54,7 +54,7 @@ public void shapeTypeTest() { * Test the property 'quadrilateralType' */ @Test - public void quadrilateralTypeTest() { + void quadrilateralTypeTest() { // TODO: test quadrilateralType } diff --git a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/ReadOnlyFirstTest.java b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/ReadOnlyFirstTest.java index 11ab8eaf4fe1..4b6d19088328 100644 --- a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/ReadOnlyFirstTest.java +++ b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/ReadOnlyFirstTest.java @@ -18,22 +18,22 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for ReadOnlyFirst */ -public class ReadOnlyFirstTest { +class ReadOnlyFirstTest { private final ReadOnlyFirst model = new ReadOnlyFirst(); /** * Model tests for ReadOnlyFirst */ @Test - public void testReadOnlyFirst() { + void testReadOnlyFirst() { // TODO: test ReadOnlyFirst } @@ -41,7 +41,7 @@ public void testReadOnlyFirst() { * Test the property 'bar' */ @Test - public void barTest() { + void barTest() { // TODO: test bar } @@ -49,7 +49,7 @@ public void barTest() { * Test the property 'baz' */ @Test - public void bazTest() { + void bazTest() { // TODO: test baz } diff --git a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/ScaleneTriangleTest.java b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/ScaleneTriangleTest.java index 5f5d499da94d..885e8f211970 100644 --- a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/ScaleneTriangleTest.java +++ b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/ScaleneTriangleTest.java @@ -18,22 +18,22 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for ScaleneTriangle */ -public class ScaleneTriangleTest { +class ScaleneTriangleTest { private final ScaleneTriangle model = new ScaleneTriangle(); /** * Model tests for ScaleneTriangle */ @Test - public void testScaleneTriangle() { + void testScaleneTriangle() { // TODO: test ScaleneTriangle } @@ -41,7 +41,7 @@ public void testScaleneTriangle() { * Test the property 'shapeType' */ @Test - public void shapeTypeTest() { + void shapeTypeTest() { // TODO: test shapeType } @@ -49,7 +49,7 @@ public void shapeTypeTest() { * Test the property 'triangleType' */ @Test - public void triangleTypeTest() { + void triangleTypeTest() { // TODO: test triangleType } diff --git a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/ShapeInterfaceTest.java b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/ShapeInterfaceTest.java index f7baab916ce7..08ba5fc84864 100644 --- a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/ShapeInterfaceTest.java +++ b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/ShapeInterfaceTest.java @@ -18,22 +18,22 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for ShapeInterface */ -public class ShapeInterfaceTest { +class ShapeInterfaceTest { private final ShapeInterface model = new ShapeInterface(); /** * Model tests for ShapeInterface */ @Test - public void testShapeInterface() { + void testShapeInterface() { // TODO: test ShapeInterface } @@ -41,7 +41,7 @@ public void testShapeInterface() { * Test the property 'shapeType' */ @Test - public void shapeTypeTest() { + void shapeTypeTest() { // TODO: test shapeType } diff --git a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/ShapeOrNullTest.java b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/ShapeOrNullTest.java index 93f71dcf9ea1..cf4924b2f73c 100644 --- a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/ShapeOrNullTest.java +++ b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/ShapeOrNullTest.java @@ -21,24 +21,24 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.openapitools.client.model.Quadrilateral; import org.openapitools.client.model.Triangle; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for ShapeOrNull */ -public class ShapeOrNullTest { +class ShapeOrNullTest { private final ShapeOrNull model = new ShapeOrNull(); /** * Model tests for ShapeOrNull */ @Test - public void testShapeOrNull() { + void testShapeOrNull() { // TODO: test ShapeOrNull } @@ -46,7 +46,7 @@ public void testShapeOrNull() { * Test the property 'shapeType' */ @Test - public void shapeTypeTest() { + void shapeTypeTest() { // TODO: test shapeType } @@ -54,7 +54,7 @@ public void shapeTypeTest() { * Test the property 'triangleType' */ @Test - public void triangleTypeTest() { + void triangleTypeTest() { // TODO: test triangleType } @@ -62,7 +62,7 @@ public void triangleTypeTest() { * Test the property 'quadrilateralType' */ @Test - public void quadrilateralTypeTest() { + void quadrilateralTypeTest() { // TODO: test quadrilateralType } diff --git a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/ShapeTest.java b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/ShapeTest.java index 43d7a99da4a7..d6f8771829fa 100644 --- a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/ShapeTest.java +++ b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/ShapeTest.java @@ -21,24 +21,24 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.openapitools.client.model.Quadrilateral; import org.openapitools.client.model.Triangle; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Shape */ -public class ShapeTest { +class ShapeTest { private final Shape model = new Shape(); /** * Model tests for Shape */ @Test - public void testShape() { + void testShape() { // TODO: test Shape } @@ -46,7 +46,7 @@ public void testShape() { * Test the property 'shapeType' */ @Test - public void shapeTypeTest() { + void shapeTypeTest() { // TODO: test shapeType } @@ -54,7 +54,7 @@ public void shapeTypeTest() { * Test the property 'triangleType' */ @Test - public void triangleTypeTest() { + void triangleTypeTest() { // TODO: test triangleType } @@ -62,7 +62,7 @@ public void triangleTypeTest() { * Test the property 'quadrilateralType' */ @Test - public void quadrilateralTypeTest() { + void quadrilateralTypeTest() { // TODO: test quadrilateralType } diff --git a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/SimpleQuadrilateralTest.java b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/SimpleQuadrilateralTest.java index d448e6d80b27..8ca309d9b760 100644 --- a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/SimpleQuadrilateralTest.java +++ b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/SimpleQuadrilateralTest.java @@ -18,22 +18,22 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for SimpleQuadrilateral */ -public class SimpleQuadrilateralTest { +class SimpleQuadrilateralTest { private final SimpleQuadrilateral model = new SimpleQuadrilateral(); /** * Model tests for SimpleQuadrilateral */ @Test - public void testSimpleQuadrilateral() { + void testSimpleQuadrilateral() { // TODO: test SimpleQuadrilateral } @@ -41,7 +41,7 @@ public void testSimpleQuadrilateral() { * Test the property 'shapeType' */ @Test - public void shapeTypeTest() { + void shapeTypeTest() { // TODO: test shapeType } @@ -49,7 +49,7 @@ public void shapeTypeTest() { * Test the property 'quadrilateralType' */ @Test - public void quadrilateralTypeTest() { + void quadrilateralTypeTest() { // TODO: test quadrilateralType } diff --git a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/SpecialModelNameTest.java b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/SpecialModelNameTest.java index c5d7ce076d6e..70a04f851d78 100644 --- a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/SpecialModelNameTest.java +++ b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/SpecialModelNameTest.java @@ -18,22 +18,22 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for SpecialModelName */ -public class SpecialModelNameTest { +class SpecialModelNameTest { private final SpecialModelName model = new SpecialModelName(); /** * Model tests for SpecialModelName */ @Test - public void testSpecialModelName() { + void testSpecialModelName() { // TODO: test SpecialModelName } @@ -41,8 +41,16 @@ public void testSpecialModelName() { * Test the property '$specialPropertyName' */ @Test - public void $specialPropertyNameTest() { + void $specialPropertyNameTest() { // TODO: test $specialPropertyName } + /** + * Test the property 'specialModelName' + */ + @Test + void specialModelNameTest() { + // TODO: test specialModelName + } + } diff --git a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/TagTest.java b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/TagTest.java index 382a573036b9..94831ebad01c 100644 --- a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/TagTest.java +++ b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/TagTest.java @@ -18,22 +18,22 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Tag */ -public class TagTest { +class TagTest { private final Tag model = new Tag(); /** * Model tests for Tag */ @Test - public void testTag() { + void testTag() { // TODO: test Tag } @@ -41,7 +41,7 @@ public void testTag() { * Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } @@ -49,7 +49,7 @@ public void idTest() { * Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } diff --git a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequestTest.java b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequestTest.java index 8488ed25358d..4d0b44d5fc39 100644 --- a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequestTest.java +++ b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequestTest.java @@ -28,14 +28,14 @@ /** * Model tests for TestInlineFreeformAdditionalPropertiesRequest */ -public class TestInlineFreeformAdditionalPropertiesRequestTest { +class TestInlineFreeformAdditionalPropertiesRequestTest { private final TestInlineFreeformAdditionalPropertiesRequest model = new TestInlineFreeformAdditionalPropertiesRequest(); /** * Model tests for TestInlineFreeformAdditionalPropertiesRequest */ @Test - public void testTestInlineFreeformAdditionalPropertiesRequest() { + void testTestInlineFreeformAdditionalPropertiesRequest() { // TODO: test TestInlineFreeformAdditionalPropertiesRequest } @@ -43,7 +43,7 @@ public void testTestInlineFreeformAdditionalPropertiesRequest() { * Test the property 'someProperty' */ @Test - public void somePropertyTest() { + void somePropertyTest() { // TODO: test someProperty } diff --git a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/TriangleInterfaceTest.java b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/TriangleInterfaceTest.java index afb79ca5d419..dff83416b008 100644 --- a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/TriangleInterfaceTest.java +++ b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/TriangleInterfaceTest.java @@ -18,22 +18,22 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for TriangleInterface */ -public class TriangleInterfaceTest { +class TriangleInterfaceTest { private final TriangleInterface model = new TriangleInterface(); /** * Model tests for TriangleInterface */ @Test - public void testTriangleInterface() { + void testTriangleInterface() { // TODO: test TriangleInterface } @@ -41,7 +41,7 @@ public void testTriangleInterface() { * Test the property 'triangleType' */ @Test - public void triangleTypeTest() { + void triangleTypeTest() { // TODO: test triangleType } diff --git a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/TriangleTest.java b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/TriangleTest.java index d260c70f40f0..2723c3523174 100644 --- a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/TriangleTest.java +++ b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/TriangleTest.java @@ -21,6 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.openapitools.client.model.EquilateralTriangle; import org.openapitools.client.model.IsoscelesTriangle; import org.openapitools.client.model.ScaleneTriangle; @@ -28,18 +29,17 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Triangle */ -public class TriangleTest { +class TriangleTest { private final Triangle model = new Triangle(); /** * Model tests for Triangle */ @Test - public void testTriangle() { + void testTriangle() { // TODO: test Triangle } @@ -47,7 +47,7 @@ public void testTriangle() { * Test the property 'shapeType' */ @Test - public void shapeTypeTest() { + void shapeTypeTest() { // TODO: test shapeType } @@ -55,7 +55,7 @@ public void shapeTypeTest() { * Test the property 'triangleType' */ @Test - public void triangleTypeTest() { + void triangleTypeTest() { // TODO: test triangleType } diff --git a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/UserTest.java b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/UserTest.java index eccfbf5e1263..b65187667ebc 100644 --- a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/UserTest.java +++ b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/UserTest.java @@ -18,22 +18,26 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import org.openapitools.jackson.nullable.JsonNullable; +import com.fasterxml.jackson.annotation.JsonIgnore; +import org.openapitools.jackson.nullable.JsonNullable; +import java.util.NoSuchElementException; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for User */ -public class UserTest { +class UserTest { private final User model = new User(); /** * Model tests for User */ @Test - public void testUser() { + void testUser() { // TODO: test User } @@ -41,7 +45,7 @@ public void testUser() { * Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } @@ -49,7 +53,7 @@ public void idTest() { * Test the property 'username' */ @Test - public void usernameTest() { + void usernameTest() { // TODO: test username } @@ -57,7 +61,7 @@ public void usernameTest() { * Test the property 'firstName' */ @Test - public void firstNameTest() { + void firstNameTest() { // TODO: test firstName } @@ -65,7 +69,7 @@ public void firstNameTest() { * Test the property 'lastName' */ @Test - public void lastNameTest() { + void lastNameTest() { // TODO: test lastName } @@ -73,7 +77,7 @@ public void lastNameTest() { * Test the property 'email' */ @Test - public void emailTest() { + void emailTest() { // TODO: test email } @@ -81,7 +85,7 @@ public void emailTest() { * Test the property 'password' */ @Test - public void passwordTest() { + void passwordTest() { // TODO: test password } @@ -89,7 +93,7 @@ public void passwordTest() { * Test the property 'phone' */ @Test - public void phoneTest() { + void phoneTest() { // TODO: test phone } @@ -97,8 +101,40 @@ public void phoneTest() { * Test the property 'userStatus' */ @Test - public void userStatusTest() { + void userStatusTest() { // TODO: test userStatus } + /** + * Test the property 'objectWithNoDeclaredProps' + */ + @Test + void objectWithNoDeclaredPropsTest() { + // TODO: test objectWithNoDeclaredProps + } + + /** + * Test the property 'objectWithNoDeclaredPropsNullable' + */ + @Test + void objectWithNoDeclaredPropsNullableTest() { + // TODO: test objectWithNoDeclaredPropsNullable + } + + /** + * Test the property 'anyTypeProp' + */ + @Test + void anyTypePropTest() { + // TODO: test anyTypeProp + } + + /** + * Test the property 'anyTypePropNullable' + */ + @Test + void anyTypePropNullableTest() { + // TODO: test anyTypePropNullable + } + } diff --git a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/WhaleTest.java b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/WhaleTest.java index 48f4f0715125..4d530c793a11 100644 --- a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/WhaleTest.java +++ b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/WhaleTest.java @@ -18,22 +18,22 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Whale */ -public class WhaleTest { +class WhaleTest { private final Whale model = new Whale(); /** * Model tests for Whale */ @Test - public void testWhale() { + void testWhale() { // TODO: test Whale } @@ -41,7 +41,7 @@ public void testWhale() { * Test the property 'hasBaleen' */ @Test - public void hasBaleenTest() { + void hasBaleenTest() { // TODO: test hasBaleen } @@ -49,7 +49,7 @@ public void hasBaleenTest() { * Test the property 'hasTeeth' */ @Test - public void hasTeethTest() { + void hasTeethTest() { // TODO: test hasTeeth } @@ -57,7 +57,7 @@ public void hasTeethTest() { * Test the property 'className' */ @Test - public void classNameTest() { + void classNameTest() { // TODO: test className } diff --git a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/ZebraTest.java b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/ZebraTest.java index 3be21d660bb7..b3a41605b559 100644 --- a/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/ZebraTest.java +++ b/samples/client/petstore/java/native/src/test/java/org/openapitools/client/model/ZebraTest.java @@ -18,24 +18,24 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import java.util.HashMap; import java.util.Map; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Zebra */ -public class ZebraTest { +class ZebraTest { private final Zebra model = new Zebra(); /** * Model tests for Zebra */ @Test - public void testZebra() { + void testZebra() { // TODO: test Zebra } @@ -43,7 +43,7 @@ public void testZebra() { * Test the property 'type' */ @Test - public void typeTest() { + void typeTest() { // TODO: test type } @@ -51,7 +51,7 @@ public void typeTest() { * Test the property 'className' */ @Test - public void classNameTest() { + void classNameTest() { // TODO: test className } diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/test/java/org/openapitools/client/api/FakeApiTest.java b/samples/client/petstore/java/okhttp-gson-3.1/src/test/java/org/openapitools/client/api/FakeApiTest.java index 097e64f0218d..aa4b626b191a 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/test/java/org/openapitools/client/api/FakeApiTest.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/test/java/org/openapitools/client/api/FakeApiTest.java @@ -14,6 +14,10 @@ package org.openapitools.client.api; import org.openapitools.client.ApiException; +import org.openapitools.client.model.CodesEnum; +import org.openapitools.client.model.RefRefToPathLevelParameterOneofRefToOneofParameter; +import org.openapitools.client.model.RefToRefParameterAnyofRefToAnyofParameter; +import java.util.UUID; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; @@ -30,6 +34,101 @@ public class FakeApiTest { private final FakeApi api = new FakeApi(); + /** + * @throws ApiException if the Api call fails + */ + @Test + public void fakeInlineSchemaAnyofPath1GetTest() throws ApiException { + Object response = api.fakeInlineSchemaAnyofPath1Get(); + // TODO: test validations + } + + /** + * @throws ApiException if the Api call fails + */ + @Test + public void fakeInlineSchemaAnyofPath2GetTest() throws ApiException { + Object response = api.fakeInlineSchemaAnyofPath2Get(); + // TODO: test validations + } + + /** + * @throws ApiException if the Api call fails + */ + @Test + public void fakeInlineSchemaAnyofPath3GetTest() throws ApiException { + List response = api.fakeInlineSchemaAnyofPath3Get(); + // TODO: test validations + } + + /** + * op1 + * + * @throws ApiException if the Api call fails + */ + @Test + public void op1Test() throws ApiException { + Object response = api.op1(); + // TODO: test validations + } + + /** + * op2 + * + * @throws ApiException if the Api call fails + */ + @Test + public void op2Test() throws ApiException { + Object response = api.op2(); + // TODO: test validations + } + + /** + * op3 + * + * @throws ApiException if the Api call fails + */ + @Test + public void op3Test() throws ApiException { + List queryEnum = null; + api.op3(queryEnum); + // TODO: test validations + } + + /** + * @throws ApiException if the Api call fails + */ + @Test + public void refToRefParameterTest() throws ApiException { + UUID refToUuid = null; + String response = api.refToRefParameter(refToUuid); + // TODO: test validations + } + + /** + * to test $ref to operation level parameters + * + * @throws ApiException if the Api call fails + */ + @Test + public void refToRefParameterAnyofTest() throws ApiException { + RefToRefParameterAnyofRefToAnyofParameter refToAnyof = null; + api.refToRefParameterAnyof(refToAnyof); + // TODO: test validations + } + + /** + * to test $ref to path level parameters + * + * @throws ApiException if the Api call fails + */ + @Test + public void refToRefParameterOneofTest() throws ApiException { + RefRefToPathLevelParameterOneofRefToOneofParameter refToOneof = null; + api.refToRefParameterOneof(refToOneof); + // TODO: test validations + } + /** * @throws ApiException if the Api call fails */ diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/test/java/org/openapitools/client/api/PetApiTest.java b/samples/client/petstore/java/okhttp-gson-3.1/src/test/java/org/openapitools/client/api/PetApiTest.java index 869dc302a973..44e74f1cf98b 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/test/java/org/openapitools/client/api/PetApiTest.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/test/java/org/openapitools/client/api/PetApiTest.java @@ -1,527 +1,153 @@ /* * OpenAPI Petstore - * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - * - * OpenAPI spec version: 1.0.0 + * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. * + * The version of the OpenAPI document: 1.0.0 + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -package org.openapitools.client.api; -import static org.junit.jupiter.api.Assertions.*; +package org.openapitools.client.api; -import java.io.BufferedWriter; +import org.openapitools.client.ApiException; import java.io.File; -import java.io.FileWriter; -import java.lang.reflect.Type; +import org.openapitools.client.model.ModelApiResponse; +import org.openapitools.client.model.Pet; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + import java.util.ArrayList; -import java.util.Arrays; import java.util.HashMap; -import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Set; -import java.util.concurrent.ConcurrentLinkedQueue; -import java.util.concurrent.CountDownLatch; -import java.util.concurrent.ThreadLocalRandom; -import java.util.concurrent.TimeUnit; - -import org.junit.jupiter.api.*; -import org.openapitools.client.*; -import org.openapitools.client.ApiException; -import org.openapitools.client.auth.*; -import org.openapitools.client.model.*; -import org.openapitools.client.model.Pet; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; /** * API tests for PetApi */ +@Disabled public class PetApiTest { - private PetApi api = new PetApi(); - private final Logger LOG = LoggerFactory.getLogger(PetApiTest.class); - // In the circle.yml file, /etc/host is configured with an entry to resolve petstore.swagger.io - // to 127.0.0.1 - private static String basePath = "http://petstore.swagger.io:80/v2"; - - @BeforeEach - public void setup() { - // setup authentication - ApiKeyAuth apiKeyAuth = (ApiKeyAuth) api.getApiClient().getAuthentication("api_key"); - apiKeyAuth.setApiKey("special-key"); - api.getApiClient().setBasePath(basePath); - } - - @Test - public void testApiClient() { - // the default api client is used - assertEquals(Configuration.getDefaultApiClient(), api.getApiClient()); - assertNotNull(api.getApiClient()); - assertEquals(basePath, api.getApiClient().getBasePath()); - assertFalse(api.getApiClient().isDebugging()); - - ApiClient oldClient = api.getApiClient(); - - ApiClient newClient = new ApiClient(); - newClient.setVerifyingSsl(true); - newClient.setBasePath("http://example.com"); - newClient.setDebugging(true); - - // set api client via constructor - api = new PetApi(newClient); - assertNotNull(api.getApiClient()); - assertEquals("http://example.com", api.getApiClient().getBasePath()); - assertTrue(api.getApiClient().isDebugging()); - - // set api client via setter method - api.setApiClient(oldClient); - assertNotNull(api.getApiClient()); - assertEquals(basePath, api.getApiClient().getBasePath()); - assertFalse(api.getApiClient().isDebugging()); - } - - @Test - public void testCreateAndGetPet() throws Exception { - Pet pet = createPet(); - api.addPet(pet); - - Pet fetched = api.getPetById(pet.getId()); - assertPetMatches(pet, fetched); - api.deletePet(pet.getId(), null); - } - - @Test - public void testCreateAndGetPetWithHttpInfo() throws Exception { - Pet pet = createPet(); - api.addPetWithHttpInfo(pet); - - ApiResponse resp = api.getPetByIdWithHttpInfo(pet.getId()); - assertEquals(200, resp.getStatusCode()); - assertEquals("application/json", resp.getHeaders().get("Content-Type").get(0)); - Pet fetched = resp.getData(); - - assertPetMatches(pet, fetched); - api.deletePet(pet.getId(), null); - } - - @Test - public void testCreateAndGetPetAsync() throws Exception { - Pet pet = createPet(); - api.addPet(pet); - // to store returned Pet or error message/exception - final Map result = new HashMap(); - - api.getPetByIdAsync( - pet.getId(), - new ApiCallback() { - @Override - public void onFailure( - ApiException e, - int statusCode, - Map> responseHeaders) { - result.put("error", e.getMessage()); - } - - @Override - public void onSuccess( - Pet pet, int statusCode, Map> responseHeaders) { - result.put("pet", pet); - } - - @Override - public void onUploadProgress( - long bytesWritten, long contentLength, boolean done) { - // empty - } - - @Override - public void onDownloadProgress( - long bytesRead, long contentLength, boolean done) { - // empty - } - }); - - // wait for the asynchronous call to finish (at most 10 seconds) - final int maxTry = 10; - int tryCount = 1; - Pet fetched = null; - do { - if (tryCount > maxTry) fail("have not got result of getPetByIdAsync after 10 seconds"); - Thread.sleep(1000); - tryCount += 1; - if (result.get("error") != null) fail((String) result.get("error")); - if (result.get("pet") != null) { - fetched = (Pet) result.get("pet"); - break; - } - } while (result.isEmpty()); - assertPetMatches(pet, fetched); - api.deletePet(pet.getId(), null); - } - - @Test - public void testCreateAndGetPetAsyncInvalidID() throws Exception { - Pet pet = createPet(); - api.addPet(pet); - // to store returned Pet or error message/exception - final Map result = new HashMap(); - - // test getting a nonexistent pet - result.clear(); - api.getPetByIdAsync( - -10000L, - new ApiCallback() { - @Override - public void onFailure( - ApiException e, - int statusCode, - Map> responseHeaders) { - result.put("exception", e); - } - - @Override - public void onSuccess( - Pet pet, int statusCode, Map> responseHeaders) { - result.put("pet", pet); - } - - @Override - public void onUploadProgress( - long bytesWritten, long contentLength, boolean done) { - // empty - } - - @Override - public void onDownloadProgress( - long bytesRead, long contentLength, boolean done) { - // empty - } - }); - - // wait for the asynchronous call to finish (at most 10 seconds) - final int maxTry = 10; - int tryCount = 1; - Pet fetched = null; - ApiException exception = null; - - do { - if (tryCount > maxTry) fail("have not got result of getPetByIdAsync after 10 seconds"); - Thread.sleep(1000); - tryCount += 1; - if (result.get("pet") != null) fail("expected an error"); - if (result.get("exception") != null) { - exception = (ApiException) result.get("exception"); - break; - } - } while (result.isEmpty()); - assertNotNull(exception); - assertEquals(404, exception.getCode()); - String pattern = "^Message: Not Found\\RHTTP response code: 404\\RHTTP response body: .*\\RHTTP response headers: .*$"; - assertTrue(exception.getMessage().matches(pattern)); - assertEquals("application/json", exception.getResponseHeaders().get("Content-Type").get(0)); - api.deletePet(pet.getId(), null); - } - + private final PetApi api = new PetApi(); + /** + * Add a new pet to the store + * + * + * + * @throws ApiException if the Api call fails + */ @Test - public void testUpdatePet() throws Exception { - Pet pet = createPet(); - api.addPet(pet); - pet.setName("programmer"); - - api.updatePet(pet); - - Pet fetched = api.getPetById(pet.getId()); - assertPetMatches(pet, fetched); - api.deletePet(pet.getId(), null); + public void addPetTest() throws ApiException { + Pet pet = null; + Pet response = api.addPet(pet); + // TODO: test validations } + /** + * Deletes a pet + * + * + * + * @throws ApiException if the Api call fails + */ @Test - public void testFindPetsByStatus() throws Exception { - assertEquals(basePath, api.getApiClient().getBasePath()); - Pet pet = createPet(); - api.addPet(pet); - pet.setName("programmer"); - pet.setStatus(Pet.StatusEnum.PENDING); - api.updatePet(pet); - - List pets = api.findPetsByStatus(Arrays.asList("pending")); - assertNotNull(pets); - - boolean found = false; - for (Pet fetched : pets) { - if (fetched.getId().equals(pet.getId())) { - found = true; - break; - } - } - - assertTrue(found); - - api.deletePet(pet.getId(), null); + public void deletePetTest() throws ApiException { + Long petId = null; + String apiKey = null; + api.deletePet(petId, apiKey); + // TODO: test validations } + /** + * Finds Pets by status + * + * Multiple status values can be provided with comma separated strings + * + * @throws ApiException if the Api call fails + */ @Test - @Disabled - public void testFindPetsByTags() throws Exception { - Pet pet = createPet(); - pet.setName("monster"); - pet.setStatus(Pet.StatusEnum.AVAILABLE); - - List tags = new ArrayList(); - org.openapitools.client.model.Tag tag1 = new org.openapitools.client.model.Tag(); - tag1.setName("friendly"); - tags.add(tag1); - pet.setTags(tags); - - api.updatePet(pet); - - List pets = api.findPetsByTags((Arrays.asList("friendly"))); - assertNotNull(pets); - - boolean found = false; - for (Pet fetched : pets) { - if (fetched.getId().equals(pet.getId())) { - found = true; - break; - } - } - assertTrue(found); - - api.deletePet(pet.getId(), null); - } - - @Test - public void testUpdatePetWithForm() throws Exception { - Pet pet = createPet(); - pet.setName("frank"); - api.addPet(pet); - - Pet fetched = api.getPetById(pet.getId()); - - api.updatePetWithForm(fetched.getId(), "furt", null); - Pet updated = api.getPetById(fetched.getId()); - - assertEquals(updated.getName(), "furt"); - api.deletePet(pet.getId(), null); + public void findPetsByStatusTest() throws ApiException { + List status = null; + List response = api.findPetsByStatus(status); + // TODO: test validations } + /** + * Finds Pets by tags + * + * Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. + * + * @throws ApiException if the Api call fails + */ @Test - @Disabled - public void testDeletePet() throws Exception { - Pet pet = createPet(); - api.addPet(pet); - - Pet fetched = api.getPetById(pet.getId()); - api.deletePet(pet.getId(), null); - - try { - fetched = api.getPetById(fetched.getId()); - fail("expected an error"); - } catch (ApiException e) { - LOG.info("Code: {}. Message: {}", e.getCode(), e.getMessage()); - assertEquals(404, e.getCode()); - } + public void findPetsByTagsTest() throws ApiException { + List tags = null; + List response = api.findPetsByTags(tags); + // TODO: test validations } + /** + * Find pet by ID + * + * Returns a single pet + * + * @throws ApiException if the Api call fails + */ @Test - public void testUploadFile() throws Exception { - Pet pet = createPet(); - api.addPet(pet); - - File file = new File("hello.txt"); - BufferedWriter writer = new BufferedWriter(new FileWriter(file)); - writer.write("Hello world!"); - writer.close(); - - api.uploadFile(pet.getId(), "a test file", new File(file.getAbsolutePath())); - api.deletePet(pet.getId(), null); + public void getPetByIdTest() throws ApiException { + Long petId = null; + Pet response = api.getPetById(petId); + // TODO: test validations } + /** + * Update an existing pet + * + * + * + * @throws ApiException if the Api call fails + */ @Test - public void testEqualsAndHashCode() { - Pet pet1 = new Pet(); - Pet pet2 = new Pet(); - assertTrue(pet1.equals(pet2)); - assertTrue(pet2.equals(pet1)); - assertTrue(pet1.hashCode() == pet2.hashCode()); - assertTrue(pet1.equals(pet1)); - assertTrue(pet1.hashCode() == pet1.hashCode()); - - pet2.setName("really-happy"); - pet2.setPhotoUrls( - (Arrays.asList("http://foo.bar.com/1", "http://foo.bar.com/2"))); - assertFalse(pet1.equals(pet2)); - assertFalse(pet2.equals(pet1)); - assertFalse(pet1.hashCode() == (pet2.hashCode())); - assertTrue(pet2.equals(pet2)); - assertTrue(pet2.hashCode() == pet2.hashCode()); - - pet1.setName("really-happy"); - pet1.setPhotoUrls( - (Arrays.asList("http://foo.bar.com/1", "http://foo.bar.com/2"))); - assertTrue(pet1.equals(pet2)); - assertTrue(pet2.equals(pet1)); - assertTrue(pet1.hashCode() == pet2.hashCode()); - assertTrue(pet1.equals(pet1)); - assertTrue(pet1.hashCode() == pet1.hashCode()); + public void updatePetTest() throws ApiException { + Pet pet = null; + Pet response = api.updatePet(pet); + // TODO: test validations } + /** + * Updates a pet in the store with form data + * + * + * + * @throws ApiException if the Api call fails + */ @Test - public void testAnyType() { // test any type in v3.1 spec - AnyTypeTest a = new AnyTypeTest(); - a.setAnyTypeProperty("test"); // shouldn't throw exception - assertEquals("test", a.getAnyTypeProperty()); - } - - private Pet createPet() { - Pet pet = new Pet(); - pet.setId(ThreadLocalRandom.current().nextLong(Long.MAX_VALUE)); - pet.setName("gorilla"); - - Category category = new Category(); - category.setName("really-happy"); - - pet.setCategory(category); - pet.setStatus(Pet.StatusEnum.AVAILABLE); - List photos = - (Arrays.asList("http://foo.bar.com/1", "http://foo.bar.com/2")); - pet.setPhotoUrls(photos); - - return pet; - } - - private String serializeJson(Object o, ApiClient apiClient) { - return apiClient.getJSON().serialize(o); - } - - private T deserializeJson(String json, Type type, ApiClient apiClient) { - return (T) apiClient.getJSON().deserialize(json, type); - } - - private void assertPetMatches(Pet expected, Pet actual) { - assertNotNull(actual); - assertEquals(expected.getId(), actual.getId()); - assertNotNull(actual.getCategory()); - assertEquals(expected.getCategory().getName(), actual.getCategory().getName()); + public void updatePetWithFormTest() throws ApiException { + Long petId = null; + String name = null; + String status = null; + api.updatePetWithForm(petId, name, status); + // TODO: test validations } /** - * Assert that the given upload/download progress list satisfies the following constraints: + * uploads an image * - *

- List is not empty - Byte count should be nondecreasing - The last element, and only the - * last element, should have done=true + * + * + * @throws ApiException if the Api call fails */ - private void assertValidProgress(List progressList) { - assertFalse(progressList.isEmpty()); - - Progress prev = null; - int index = 0; - for (Progress progress : progressList) { - if (prev != null) { - if (prev.done || prev.bytes > progress.bytes) { - fail("Progress list out of order at index " + index + ": " + progressList); - } - } - prev = progress; - index += 1; - } - - if (!prev.done) { - fail("Last progress item should have done=true: " + progressList); - } - } - - private static class TestApiCallback implements ApiCallback { - - private final CountDownLatch latch; - private final ConcurrentLinkedQueue uploadProgress = - new ConcurrentLinkedQueue(); - private final ConcurrentLinkedQueue downloadProgress = - new ConcurrentLinkedQueue(); - - private boolean done; - private boolean success; - private ApiException exception; - private T result; - - public TestApiCallback(CountDownLatch latch) { - this.latch = latch; - this.done = false; - } - - @Override - public void onFailure( - ApiException e, int statusCode, Map> responseHeaders) { - exception = e; - this.done = true; - this.success = false; - latch.countDown(); - } - - @Override - public void onSuccess(T result, int statusCode, Map> responseHeaders) { - this.result = result; - this.done = true; - this.success = true; - latch.countDown(); - } - - @Override - public void onUploadProgress(long bytesWritten, long contentLength, boolean done) { - uploadProgress.add(new Progress(bytesWritten, contentLength, done)); - } - - @Override - public void onDownloadProgress(long bytesRead, long contentLength, boolean done) { - downloadProgress.add(new Progress(bytesRead, contentLength, done)); - } - - public boolean isDone() { - return done; - } - - public boolean isSuccess() { - return success; - } - - public ApiException getException() { - return exception; - } - - public T getResult() { - return result; - } - - public List getUploadProgress() { - return new ArrayList(uploadProgress); - } - - public List getDownloadProgress() { - return new ArrayList(downloadProgress); - } + @Test + public void uploadFileTest() throws ApiException { + Long petId = null; + String additionalMetadata = null; + File _file = null; + ModelApiResponse response = api.uploadFile(petId, additionalMetadata, _file); + // TODO: test validations } - private static class Progress { - public final long bytes; - public final long contentLength; - public final boolean done; - - public Progress(long bytes, long contentLength, boolean done) { - this.bytes = bytes; - this.contentLength = contentLength; - this.done = done; - } - - @Override - public String toString() { - return ""; - } - } } diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/test/java/org/openapitools/client/model/AnyTypeTestTest.java b/samples/client/petstore/java/okhttp-gson-3.1/src/test/java/org/openapitools/client/model/AnyTypeTestTest.java index 98a31faf01ac..4f54c0a31379 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/test/java/org/openapitools/client/model/AnyTypeTestTest.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/test/java/org/openapitools/client/model/AnyTypeTestTest.java @@ -19,7 +19,9 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.util.ArrayList; import java.util.Arrays; +import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; @@ -46,4 +48,20 @@ public void anyTypePropertyTest() { // TODO: test anyTypeProperty } + /** + * Test the property 'arrayProp' + */ + @Test + public void arrayPropTest() { + // TODO: test arrayProp + } + + /** + * Test the property 'refArrayPrefixItems' + */ + @Test + public void refArrayPrefixItemsTest() { + // TODO: test refArrayPrefixItems + } + } diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/test/java/org/openapitools/client/model/SelfReferenceAdditionalPropertiesTest.java b/samples/client/petstore/java/okhttp-gson-3.1/src/test/java/org/openapitools/client/model/SelfReferenceAdditionalPropertiesTest.java index 72739dfb84bf..eb077f686c3d 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/test/java/org/openapitools/client/model/SelfReferenceAdditionalPropertiesTest.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/test/java/org/openapitools/client/model/SelfReferenceAdditionalPropertiesTest.java @@ -20,7 +20,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; import java.util.Arrays; -import org.openapitools.client.model.SelfReferenceAdditionalProperties; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; diff --git a/samples/client/petstore/java/okhttp-gson-awsv4signature/src/test/java/org/openapitools/client/model/CategoryTest.java b/samples/client/petstore/java/okhttp-gson-awsv4signature/src/test/java/org/openapitools/client/model/CategoryTest.java index 2582a39eec6d..0609d116a38d 100644 --- a/samples/client/petstore/java/okhttp-gson-awsv4signature/src/test/java/org/openapitools/client/model/CategoryTest.java +++ b/samples/client/petstore/java/okhttp-gson-awsv4signature/src/test/java/org/openapitools/client/model/CategoryTest.java @@ -19,10 +19,10 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Category */ diff --git a/samples/client/petstore/java/okhttp-gson-awsv4signature/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java b/samples/client/petstore/java/okhttp-gson-awsv4signature/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java index 209233fa8d3c..6018546d0531 100644 --- a/samples/client/petstore/java/okhttp-gson-awsv4signature/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java +++ b/samples/client/petstore/java/okhttp-gson-awsv4signature/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java @@ -19,10 +19,10 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for ModelApiResponse */ diff --git a/samples/client/petstore/java/okhttp-gson-awsv4signature/src/test/java/org/openapitools/client/model/OrderTest.java b/samples/client/petstore/java/okhttp-gson-awsv4signature/src/test/java/org/openapitools/client/model/OrderTest.java index f3563ff5bd58..bde30a7233dc 100644 --- a/samples/client/petstore/java/okhttp-gson-awsv4signature/src/test/java/org/openapitools/client/model/OrderTest.java +++ b/samples/client/petstore/java/okhttp-gson-awsv4signature/src/test/java/org/openapitools/client/model/OrderTest.java @@ -20,10 +20,10 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; import java.time.OffsetDateTime; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Order */ diff --git a/samples/client/petstore/java/okhttp-gson-awsv4signature/src/test/java/org/openapitools/client/model/PetTest.java b/samples/client/petstore/java/okhttp-gson-awsv4signature/src/test/java/org/openapitools/client/model/PetTest.java index a4e610582b11..1dbb74a230c4 100644 --- a/samples/client/petstore/java/okhttp-gson-awsv4signature/src/test/java/org/openapitools/client/model/PetTest.java +++ b/samples/client/petstore/java/okhttp-gson-awsv4signature/src/test/java/org/openapitools/client/model/PetTest.java @@ -20,13 +20,13 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.Category; import org.openapitools.client.model.Tag; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Pet */ diff --git a/samples/client/petstore/java/okhttp-gson-awsv4signature/src/test/java/org/openapitools/client/model/TagTest.java b/samples/client/petstore/java/okhttp-gson-awsv4signature/src/test/java/org/openapitools/client/model/TagTest.java index 144b14d5d805..0a89a2bc6f4d 100644 --- a/samples/client/petstore/java/okhttp-gson-awsv4signature/src/test/java/org/openapitools/client/model/TagTest.java +++ b/samples/client/petstore/java/okhttp-gson-awsv4signature/src/test/java/org/openapitools/client/model/TagTest.java @@ -19,10 +19,10 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Tag */ diff --git a/samples/client/petstore/java/okhttp-gson-awsv4signature/src/test/java/org/openapitools/client/model/UserTest.java b/samples/client/petstore/java/okhttp-gson-awsv4signature/src/test/java/org/openapitools/client/model/UserTest.java index 91ddcaa612a0..42c042309ce1 100644 --- a/samples/client/petstore/java/okhttp-gson-awsv4signature/src/test/java/org/openapitools/client/model/UserTest.java +++ b/samples/client/petstore/java/okhttp-gson-awsv4signature/src/test/java/org/openapitools/client/model/UserTest.java @@ -19,10 +19,10 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for User */ diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java index 331e9a6b8aa8..759193160447 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java @@ -15,6 +15,7 @@ import org.openapitools.client.ApiException; import org.openapitools.client.model.Client; +import java.util.UUID; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; @@ -40,8 +41,9 @@ public class AnotherFakeApiTest { */ @Test public void call123testSpecialTagsTest() throws ApiException { + UUID uuidTest = null; Client body = null; - Client response = api.call123testSpecialTags(body); + Client response = api.call123testSpecialTags(uuidTest, body); // TODO: test validations } diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/api/PetApiTest.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/api/PetApiTest.java index 2aa8a1881336..9c54e3b6ce2f 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/api/PetApiTest.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/api/PetApiTest.java @@ -2,8 +2,8 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 - * + * The version of the OpenAPI document: 1.0.0 + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,550 +14,145 @@ package org.openapitools.client.api; import org.openapitools.client.ApiException; +import java.io.File; +import org.openapitools.client.model.ModelApiResponse; import org.openapitools.client.model.Pet; -import org.openapitools.client.auth.*; -import org.openapitools.client.model.*; -import org.openapitools.client.*; +import java.util.Set; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; -import java.lang.reflect.Type; -import java.util.Arrays; import java.util.ArrayList; -import java.util.concurrent.ConcurrentLinkedQueue; -import java.util.concurrent.CountDownLatch; -import java.util.concurrent.TimeUnit; import java.util.HashMap; -import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Set; -import java.util.concurrent.ThreadLocalRandom; -import java.io.BufferedWriter; -import java.io.File; -import java.io.FileWriter; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -import org.junit.jupiter.api.*; -import static org.junit.jupiter.api.Assertions.*; /** * API tests for PetApi */ +@Disabled public class PetApiTest { - private PetApi api = new PetApi(); - private final Logger LOG = LoggerFactory.getLogger(PetApiTest.class); - // In the circle.yml file, /etc/host is configured with an entry to resolve petstore.swagger.io to 127.0.0.1 - private static String basePath = "http://petstore.swagger.io:80/v2"; - - @Before - public void setup() { - // setup authentication - ApiKeyAuth apiKeyAuth = (ApiKeyAuth) api.getApiClient().getAuthentication("api_key"); - apiKeyAuth.setApiKey("special-key"); - api.getApiClient().setBasePath(basePath); - } - - @Test - public void testApiClient() { - // the default api client is used - assertEquals(Configuration.getDefaultApiClient(), api.getApiClient()); - assertNotNull(api.getApiClient()); - assertEquals(basePath, api.getApiClient().getBasePath()); - assertFalse(api.getApiClient().isDebugging()); - - ApiClient oldClient = api.getApiClient(); - - ApiClient newClient = new ApiClient(); - newClient.setVerifyingSsl(true); - newClient.setBasePath("http://example.com"); - newClient.setDebugging(true); - - // set api client via constructor - api = new PetApi(newClient); - assertNotNull(api.getApiClient()); - assertEquals("http://example.com", api.getApiClient().getBasePath()); - assertTrue(api.getApiClient().isDebugging()); - - // set api client via setter method - api.setApiClient(oldClient); - assertNotNull(api.getApiClient()); - assertEquals(basePath, api.getApiClient().getBasePath()); - assertFalse(api.getApiClient().isDebugging()); - } - - @Test - public void testCreateAndGetPet() throws Exception { - Pet pet = createPet(); - api.addPet(pet); - - Pet fetched = api.getPetById(pet.getId()); - assertPetMatches(pet, fetched); - api.deletePet(pet.getId(), null); - } - - @Test - public void testCreateAndGetPetWithHttpInfo() throws Exception { - Pet pet = createPet(); - api.addPetWithHttpInfo(pet); - - ApiResponse resp = api.getPetByIdWithHttpInfo(pet.getId()); - assertEquals(200, resp.getStatusCode()); - assertEquals("application/json", resp.getHeaders().get("Content-Type").get(0)); - Pet fetched = resp.getData(); - - assertPetMatches(pet, fetched); - api.deletePet(pet.getId(), null); - } - - @Test - public void testCreateAndGetPetAsync() throws Exception { - Pet pet = createPet(); - api.addPet(pet); - // to store returned Pet or error message/exception - final Map result = new HashMap(); - - api.getPetByIdAsync(pet.getId(), new ApiCallback() { - @Override - public void onFailure(ApiException e, int statusCode, Map> responseHeaders) { - result.put("error", e.getMessage()); - } - - @Override - public void onSuccess(Pet pet, int statusCode, Map> responseHeaders) { - result.put("pet", pet); - } - - @Override - public void onUploadProgress(long bytesWritten, long contentLength, boolean done) { - //empty - } - - @Override - public void onDownloadProgress(long bytesRead, long contentLength, boolean done) { - //empty - } - }); - - // wait for the asynchronous call to finish (at most 10 seconds) - final int maxTry = 10; - int tryCount = 1; - Pet fetched = null; - do { - if (tryCount > maxTry) fail("have not got result of getPetByIdAsync after 10 seconds"); - Thread.sleep(1000); - tryCount += 1; - if (result.get("error") != null) fail((String) result.get("error")); - if (result.get("pet") != null) { - fetched = (Pet) result.get("pet"); - break; - } - } while (result.isEmpty()); - assertPetMatches(pet, fetched); - api.deletePet(pet.getId(), null); - } + private final PetApi api = new PetApi(); + /** + * Add a new pet to the store + * + * @throws ApiException if the Api call fails + */ @Test - public void testCreateAndGetPetAsyncInvalidID() throws Exception { - Pet pet = createPet(); - api.addPet(pet); - // to store returned Pet or error message/exception - final Map result = new HashMap(); - - // test getting a nonexistent pet - result.clear(); - api.getPetByIdAsync(-10000L, new ApiCallback() { - @Override - public void onFailure(ApiException e, int statusCode, Map> responseHeaders) { - result.put("exception", e); - } - - @Override - public void onSuccess(Pet pet, int statusCode, Map> responseHeaders) { - result.put("pet", pet); - } - - @Override - public void onUploadProgress(long bytesWritten, long contentLength, boolean done) { - //empty - } - - @Override - public void onDownloadProgress(long bytesRead, long contentLength, boolean done) { - //empty - } - }); - - // wait for the asynchronous call to finish (at most 10 seconds) - final int maxTry = 10; - int tryCount = 1; - Pet fetched = null; - ApiException exception = null; - - do { - if (tryCount > maxTry) fail("have not got result of getPetByIdAsync after 10 seconds"); - Thread.sleep(1000); - tryCount += 1; - if (result.get("pet") != null) fail("expected an error"); - if (result.get("exception") != null) { - exception = (ApiException) result.get("exception"); - break; - } - } while (result.isEmpty()); - assertNotNull(exception); - assertEquals(404, exception.getCode()); - assertEquals("Not Found", exception.getMessage()); - assertEquals("application/json", exception.getResponseHeaders().get("Content-Type").get(0)); - api.deletePet(pet.getId(), null); + public void addPetTest() throws ApiException { + Pet body = null; + api.addPet(body); + // TODO: test validations } + /** + * Deletes a pet + * + * @throws ApiException if the Api call fails + */ @Test - public void testCreateAndGetMultiplePetsAsync() throws Exception { - Pet pet1 = createPet(); - Pet pet2 = createPet(); - - final CountDownLatch addLatch = new CountDownLatch(2); - final TestApiCallback addCallback1 = new TestApiCallback(addLatch); - final TestApiCallback addCallback2 = new TestApiCallback(addLatch); - - // Make 2 simultaneous calls - api.addPetAsync(pet1, addCallback1); - api.addPetAsync(pet2, addCallback2); - - // wait for both asynchronous calls to finish (at most 10 seconds) - assertTrue(addLatch.await(10, TimeUnit.SECONDS)); - - assertTrue(addCallback1.isDone()); - assertTrue(addCallback2.isDone()); - - if (!addCallback1.isSuccess()) throw addCallback1.getException(); - if (!addCallback2.isSuccess()) throw addCallback2.getException(); - - assertValidProgress(addCallback1.getUploadProgress()); - assertValidProgress(addCallback2.getUploadProgress()); - - final CountDownLatch getLatch = new CountDownLatch(3); - final TestApiCallback getCallback1 = new TestApiCallback(getLatch); - final TestApiCallback getCallback2 = new TestApiCallback(getLatch); - final TestApiCallback getCallback3 = new TestApiCallback(getLatch); - - api.getPetByIdAsync(pet1.getId(), getCallback1); - api.getPetByIdAsync(pet2.getId(), getCallback2); - // Get nonexistent pet - api.getPetByIdAsync(-10000L, getCallback3); - - // wait for all asynchronous calls to finish (at most 10 seconds) - assertTrue(getLatch.await(10, TimeUnit.SECONDS)); - - assertTrue(getCallback1.isDone()); - assertTrue(getCallback2.isDone()); - assertTrue(getCallback3.isDone()); - - if (!getCallback1.isSuccess()) throw getCallback1.getException(); - if (!getCallback2.isSuccess()) throw getCallback2.getException(); - - assertPetMatches(pet1, getCallback1.getResult()); - assertPetMatches(pet2, getCallback2.getResult()); - - assertValidProgress(getCallback1.getDownloadProgress()); - assertValidProgress(getCallback2.getDownloadProgress()); - - // Last callback should fail with ApiException - assertFalse(getCallback3.isSuccess()); - final ApiException exception = getCallback3.getException(); - assertNotNull(exception); - assertEquals(404, exception.getCode()); - api.deletePet(pet1.getId(), null); - api.deletePet(pet2.getId(), null); - } - - - @Test - public void testUpdatePet() throws Exception { - Pet pet = createPet(); - api.addPet(pet); - pet.setName("programmer"); - - api.updatePet(pet); - - Pet fetched = api.getPetById(pet.getId()); - assertPetMatches(pet, fetched); - api.deletePet(pet.getId(), null); + public void deletePetTest() throws ApiException { + Long petId = null; + String apiKey = null; + api.deletePet(petId, apiKey); + // TODO: test validations } + /** + * Finds Pets by status + * + * Multiple status values can be provided with comma separated strings + * + * @throws ApiException if the Api call fails + */ @Test - public void testFindPetsByStatus() throws Exception { - assertEquals(basePath, api.getApiClient().getBasePath()); - Pet pet = createPet(); - api.addPet(pet); - pet.setName("programmer"); - pet.setStatus(Pet.StatusEnum.PENDING); - api.updatePet(pet); - - List pets = api.findPetsByStatus(Arrays.asList("pending")); - assertNotNull(pets); - - boolean found = false; - for (Pet fetched : pets) { - if (fetched.getId().equals(pet.getId())) { - found = true; - break; - } - } - - assertTrue(found); - - api.deletePet(pet.getId(), null); + public void findPetsByStatusTest() throws ApiException { + List status = null; + List response = api.findPetsByStatus(status); + // TODO: test validations } + /** + * Finds Pets by tags + * + * Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. + * + * @throws ApiException if the Api call fails + */ @Test - @Disabled - public void testFindPetsByTags() throws Exception { - Pet pet = createPet(); - pet.setName("monster"); - pet.setStatus(Pet.StatusEnum.AVAILABLE); - - List tags = new ArrayList(); - org.openapitools.client.model.Tag tag1 = new org.openapitools.client.model.Tag(); - tag1.setName("friendly"); - tags.add(tag1); - pet.setTags(tags); - - api.updatePet(pet); - - Set pets = api.findPetsByTags(new HashSet<>(Arrays.asList("friendly"))); - assertNotNull(pets); - - boolean found = false; - for (Pet fetched : pets) { - if (fetched.getId().equals(pet.getId())) { - found = true; - break; - } - } - assertTrue(found); - - api.deletePet(pet.getId(), null); + public void findPetsByTagsTest() throws ApiException { + Set tags = null; + Set response = api.findPetsByTags(tags); + // TODO: test validations } + /** + * Find pet by ID + * + * Returns a single pet + * + * @throws ApiException if the Api call fails + */ @Test - public void testUpdatePetWithForm() throws Exception { - Pet pet = createPet(); - pet.setName("frank"); - api.addPet(pet); - - Pet fetched = api.getPetById(pet.getId()); - - api.updatePetWithForm(fetched.getId(), "furt", null); - Pet updated = api.getPetById(fetched.getId()); - - assertEquals(updated.getName(), "furt"); - api.deletePet(pet.getId(), null); + public void getPetByIdTest() throws ApiException { + Long petId = null; + Pet response = api.getPetById(petId); + // TODO: test validations } + /** + * Update an existing pet + * + * @throws ApiException if the Api call fails + */ @Test - public void testDeletePet() throws Exception { - Pet pet = createPet(); - api.addPet(pet); - - Pet fetched = api.getPetById(pet.getId()); - api.deletePet(pet.getId(), null); - - try { - fetched = api.getPetById(fetched.getId()); - fail("expected an error"); - } catch (ApiException e) { - LOG.info("Code: {}. Message: {}", e.getCode(), e.getMessage()); - assertEquals(404, e.getCode()); - } + public void updatePetTest() throws ApiException { + Pet body = null; + api.updatePet(body); + // TODO: test validations } + /** + * Updates a pet in the store with form data + * + * @throws ApiException if the Api call fails + */ @Test - public void testUploadFile() throws Exception { - Pet pet = createPet(); - api.addPet(pet); - - File file = new File("hello.txt"); - BufferedWriter writer = new BufferedWriter(new FileWriter(file)); - writer.write("Hello world!"); - writer.close(); - - api.uploadFile(pet.getId(), "a test file", new File(file.getAbsolutePath())); - api.deletePet(pet.getId(), null); + public void updatePetWithFormTest() throws ApiException { + Long petId = null; + String name = null; + String status = null; + api.updatePetWithForm(petId, name, status); + // TODO: test validations } + /** + * uploads an image + * + * @throws ApiException if the Api call fails + */ @Test - public void testEqualsAndHashCode() { - Pet pet1 = new Pet(); - Pet pet2 = new Pet(); - assertTrue(pet1.equals(pet2)); - assertTrue(pet2.equals(pet1)); - assertTrue(pet1.hashCode() == pet2.hashCode()); - assertTrue(pet1.equals(pet1)); - assertTrue(pet1.hashCode() == pet1.hashCode()); - - pet2.setName("really-happy"); - pet2.setPhotoUrls(new HashSet<>(Arrays.asList("http://foo.bar.com/1", "http://foo.bar.com/2"))); - assertFalse(pet1.equals(pet2)); - assertFalse(pet2.equals(pet1)); - assertFalse(pet1.hashCode() == (pet2.hashCode())); - assertTrue(pet2.equals(pet2)); - assertTrue(pet2.hashCode() == pet2.hashCode()); - - pet1.setName("really-happy"); - pet1.setPhotoUrls(new HashSet<>(Arrays.asList("http://foo.bar.com/1", "http://foo.bar.com/2"))); - assertTrue(pet1.equals(pet2)); - assertTrue(pet2.equals(pet1)); - assertTrue(pet1.hashCode() == pet2.hashCode()); - assertTrue(pet1.equals(pet1)); - assertTrue(pet1.hashCode() == pet1.hashCode()); - } - - - private Pet createPet() { - Pet pet = new Pet(); - pet.setId(ThreadLocalRandom.current().nextLong(Long.MAX_VALUE)); - pet.setName("gorilla"); - - Category category = new Category(); - category.setName("really-happy"); - - pet.setCategory(category); - pet.setStatus(Pet.StatusEnum.AVAILABLE); - Set photos = new HashSet<>(Arrays.asList("http://foo.bar.com/1", "http://foo.bar.com/2")); - pet.setPhotoUrls(photos); - - return pet; - } - - private String serializeJson(Object o, ApiClient apiClient) { - return apiClient.getJSON().serialize(o); - } - - private T deserializeJson(String json, Type type, ApiClient apiClient) { - return (T) apiClient.getJSON().deserialize(json, type); - } - - private void assertPetMatches(Pet expected, Pet actual) { - assertNotNull(actual); - assertEquals(expected.getId(), actual.getId()); - assertNotNull(actual.getCategory()); - assertEquals(expected.getCategory().getName(), - actual.getCategory().getName()); + public void uploadFileTest() throws ApiException { + Long petId = null; + String additionalMetadata = null; + File _file = null; + ModelApiResponse response = api.uploadFile(petId, additionalMetadata, _file); + // TODO: test validations } /** - * Assert that the given upload/download progress list satisfies the - * following constraints: - *

- * - List is not empty - * - Byte count should be nondecreasing - * - The last element, and only the last element, should have done=true + * uploads an image (required) + * + * @throws ApiException if the Api call fails */ - private void assertValidProgress(List progressList) { - assertFalse(progressList.isEmpty()); - - Progress prev = null; - int index = 0; - for (Progress progress : progressList) { - if (prev != null) { - if (prev.done || prev.bytes > progress.bytes) { - fail("Progress list out of order at index " + index - + ": " + progressList); - } - } - prev = progress; - index += 1; - } - - if (!prev.done) { - fail("Last progress item should have done=true: " + progressList); - } - } - - private static class TestApiCallback implements ApiCallback { - - private final CountDownLatch latch; - private final ConcurrentLinkedQueue uploadProgress = - new ConcurrentLinkedQueue(); - private final ConcurrentLinkedQueue downloadProgress = - new ConcurrentLinkedQueue(); - - private boolean done; - private boolean success; - private ApiException exception; - private T result; - - public TestApiCallback(CountDownLatch latch) { - this.latch = latch; - this.done = false; - } - - @Override - public void onFailure(ApiException e, int statusCode, Map> responseHeaders) { - exception = e; - this.done = true; - this.success = false; - latch.countDown(); - } - - @Override - public void onSuccess(T result, int statusCode, Map> responseHeaders) { - this.result = result; - this.done = true; - this.success = true; - latch.countDown(); - } - - @Override - public void onUploadProgress(long bytesWritten, long contentLength, boolean done) { - uploadProgress.add(new Progress(bytesWritten, contentLength, done)); - } - - @Override - public void onDownloadProgress(long bytesRead, long contentLength, boolean done) { - downloadProgress.add(new Progress(bytesRead, contentLength, done)); - } - - public boolean isDone() { - return done; - } - - public boolean isSuccess() { - return success; - } - - public ApiException getException() { - return exception; - } - - public T getResult() { - return result; - } - - public List getUploadProgress() { - return new ArrayList(uploadProgress); - } - - public List getDownloadProgress() { - return new ArrayList(downloadProgress); - } + @Test + public void uploadFileWithRequiredFileTest() throws ApiException { + Long petId = null; + File requiredFile = null; + String additionalMetadata = null; + ModelApiResponse response = api.uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata); + // TODO: test validations } - private static class Progress { - public final long bytes; - public final long contentLength; - public final boolean done; - - public Progress(long bytes, long contentLength, boolean done) { - this.bytes = bytes; - this.contentLength = contentLength; - this.done = done; - } - - @Override - public String toString() { - return ""; - } - } } diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/AdditionalPropertiesAnyTypeTest.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/AdditionalPropertiesAnyTypeTest.java index d6ddcfbe4559..9d069083792e 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/AdditionalPropertiesAnyTypeTest.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/AdditionalPropertiesAnyTypeTest.java @@ -18,15 +18,11 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.HashMap; -import java.util.Map; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for AdditionalPropertiesAnyType */ diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/AdditionalPropertiesArrayTest.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/AdditionalPropertiesArrayTest.java index 63288bd12919..e9032c8b8b2f 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/AdditionalPropertiesArrayTest.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/AdditionalPropertiesArrayTest.java @@ -18,16 +18,12 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.HashMap; +import java.util.Arrays; import java.util.List; -import java.util.Map; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for AdditionalPropertiesArray */ diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/AdditionalPropertiesBooleanTest.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/AdditionalPropertiesBooleanTest.java index 6ca84a09f7c6..aaa789af6dfc 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/AdditionalPropertiesBooleanTest.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/AdditionalPropertiesBooleanTest.java @@ -18,15 +18,11 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.HashMap; -import java.util.Map; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for AdditionalPropertiesBoolean */ diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/AdditionalPropertiesClassTest.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/AdditionalPropertiesClassTest.java index 4018fbdf70e4..514cc9aebbb3 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/AdditionalPropertiesClassTest.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/AdditionalPropertiesClassTest.java @@ -18,17 +18,15 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.math.BigDecimal; +import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for AdditionalPropertiesClass */ diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/AdditionalPropertiesIntegerTest.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/AdditionalPropertiesIntegerTest.java index d40d8056a4d4..219db0f97ed5 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/AdditionalPropertiesIntegerTest.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/AdditionalPropertiesIntegerTest.java @@ -18,15 +18,11 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.HashMap; -import java.util.Map; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for AdditionalPropertiesInteger */ diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/AdditionalPropertiesNumberTest.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/AdditionalPropertiesNumberTest.java index 69cd113d7385..938a2fcf36d3 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/AdditionalPropertiesNumberTest.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/AdditionalPropertiesNumberTest.java @@ -18,16 +18,12 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.math.BigDecimal; -import java.util.HashMap; -import java.util.Map; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for AdditionalPropertiesNumber */ diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/AdditionalPropertiesObjectTest.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/AdditionalPropertiesObjectTest.java index 0a434005ef49..8f068a5bcce5 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/AdditionalPropertiesObjectTest.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/AdditionalPropertiesObjectTest.java @@ -18,15 +18,12 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.HashMap; +import java.util.Arrays; import java.util.Map; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for AdditionalPropertiesObject */ diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/AdditionalPropertiesStringTest.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/AdditionalPropertiesStringTest.java index 250590a3dad9..ee6fa0c4a269 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/AdditionalPropertiesStringTest.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/AdditionalPropertiesStringTest.java @@ -18,15 +18,11 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.HashMap; -import java.util.Map; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for AdditionalPropertiesString */ diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/AnimalTest.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/AnimalTest.java index e9057af31c0b..f30075833858 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/AnimalTest.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/AnimalTest.java @@ -18,16 +18,11 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import org.openapitools.client.model.BigCat; -import org.openapitools.client.model.Cat; -import org.openapitools.client.model.Dog; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Animal */ diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnlyTest.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnlyTest.java index dc2a20f163d4..618a21c8a982 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnlyTest.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnlyTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,20 +13,16 @@ package org.openapitools.client.model; -import org.apache.commons.lang3.builder.EqualsBuilder; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.math.BigDecimal; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; - -import org.junit.jupiter.api.Assertions.*; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; @@ -40,7 +36,7 @@ public class ArrayOfArrayOfNumberOnlyTest { * Model tests for ArrayOfArrayOfNumberOnly */ @Test - public void test() { + public void testArrayOfArrayOfNumberOnly() { // TODO: test ArrayOfArrayOfNumberOnly } @@ -49,25 +45,7 @@ public void test() { */ @Test public void arrayArrayNumberTest() { - BigDecimal b1 = new BigDecimal("12.3"); - BigDecimal b2 = new BigDecimal("5.6"); - List arrayArrayNumber = new ArrayList(); - arrayArrayNumber.add(b1); - arrayArrayNumber.add(b2); - model.setArrayArrayNumber(new ArrayList>()); - model.getArrayArrayNumber().add(arrayArrayNumber); - - // create another instance for comparison - BigDecimal b3 = new BigDecimal("12.3"); - BigDecimal b4 = new BigDecimal("5.6"); - ArrayOfArrayOfNumberOnly model2 = new ArrayOfArrayOfNumberOnly(); - List arrayArrayNumber2 = new ArrayList(); - arrayArrayNumber2.add(b1); - arrayArrayNumber2.add(b2); - model2.setArrayArrayNumber(new ArrayList>()); - model2.getArrayArrayNumber().add(arrayArrayNumber2); - - Assert.assertTrue(model2.equals(model)); + // TODO: test arrayArrayNumber } } diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/ArrayOfNumberOnlyTest.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/ArrayOfNumberOnlyTest.java index 71c5b2c49ae2..7121b15da89f 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/ArrayOfNumberOnlyTest.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/ArrayOfNumberOnlyTest.java @@ -18,16 +18,14 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.math.BigDecimal; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for ArrayOfNumberOnly */ diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/ArrayTestTest.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/ArrayTestTest.java index ae7c9ae171ba..da72462ec73d 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/ArrayTestTest.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/ArrayTestTest.java @@ -18,16 +18,14 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.ReadOnlyFirst; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for ArrayTest */ diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/BigCatTest.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/BigCatTest.java index e2f41cc959c9..06f152eace0e 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/BigCatTest.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/BigCatTest.java @@ -19,6 +19,7 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.util.Arrays; import org.openapitools.client.model.Cat; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/CapitalizationTest.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/CapitalizationTest.java index 4fbb4c7b201f..c3c69e049af7 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/CapitalizationTest.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/CapitalizationTest.java @@ -18,13 +18,11 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Capitalization */ diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/CatTest.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/CatTest.java index e67f6005c855..73309d4bec1f 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/CatTest.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/CatTest.java @@ -18,16 +18,12 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.util.Arrays; import org.openapitools.client.model.Animal; -import org.openapitools.client.model.BigCat; -import org.openapitools.client.model.CatAllOf; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Cat */ diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/CategoryTest.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/CategoryTest.java index 52b230df4ff8..03f1c7ec1d53 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/CategoryTest.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/CategoryTest.java @@ -18,13 +18,11 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Category */ diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/ClassModelTest.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/ClassModelTest.java index 07c08313db8c..1666ebc79969 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/ClassModelTest.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/ClassModelTest.java @@ -18,13 +18,11 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for ClassModel */ diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/ClientTest.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/ClientTest.java index f4d80128c975..140143b9573d 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/ClientTest.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/ClientTest.java @@ -18,13 +18,11 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Client */ diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/DogTest.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/DogTest.java index 4bcd8e2c9eb0..844e3e06f5e1 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/DogTest.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/DogTest.java @@ -18,15 +18,12 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.util.Arrays; import org.openapitools.client.model.Animal; -import org.openapitools.client.model.DogAllOf; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Dog */ diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/EnumArraysTest.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/EnumArraysTest.java index 77ee97144aeb..02954e6a6839 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/EnumArraysTest.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/EnumArraysTest.java @@ -18,15 +18,13 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for EnumArrays */ diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/EnumClassTest.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/EnumClassTest.java index 88c982a61df2..bed8681219e8 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/EnumClassTest.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/EnumClassTest.java @@ -17,7 +17,6 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for EnumClass */ diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/EnumTestTest.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/EnumTestTest.java index 7a8beabe1412..05820f3bb1cb 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/EnumTestTest.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/EnumTestTest.java @@ -18,14 +18,12 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.util.Arrays; import org.openapitools.client.model.OuterEnum; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for EnumTest */ diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/FileSchemaTestClassTest.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/FileSchemaTestClassTest.java index 2c11116e3af4..79eccbf4beef 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/FileSchemaTestClassTest.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/FileSchemaTestClassTest.java @@ -18,16 +18,14 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.ModelFile; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for FileSchemaTestClass */ diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/FormatTestTest.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/FormatTestTest.java index e6300c4253b1..d9dfac4e1951 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/FormatTestTest.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/FormatTestTest.java @@ -18,18 +18,16 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.File; import java.io.IOException; import java.math.BigDecimal; import java.time.LocalDate; import java.time.OffsetDateTime; +import java.util.Arrays; import java.util.UUID; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for FormatTest */ diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/HasOnlyReadOnlyTest.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/HasOnlyReadOnlyTest.java index ac3d1a4d4d7f..f63bf66b1775 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/HasOnlyReadOnlyTest.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/HasOnlyReadOnlyTest.java @@ -18,13 +18,11 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for HasOnlyReadOnly */ diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/MapTestTest.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/MapTestTest.java index b29767eb7c41..0587a961b146 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/MapTestTest.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/MapTestTest.java @@ -18,16 +18,13 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.util.Arrays; import java.util.HashMap; -import java.util.List; import java.util.Map; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for MapTest */ diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClassTest.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClassTest.java index b4f447143948..1cc69bedcd83 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClassTest.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClassTest.java @@ -18,19 +18,16 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; +import java.util.Arrays; import java.util.HashMap; -import java.util.List; import java.util.Map; import java.util.UUID; import org.openapitools.client.model.Animal; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for MixedPropertiesAndAdditionalPropertiesClass */ diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/Model200ResponseTest.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/Model200ResponseTest.java index a6660ce62365..01b44a53b4fa 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/Model200ResponseTest.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/Model200ResponseTest.java @@ -18,13 +18,11 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Model200Response */ diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java index 81a9bb5a4d7a..9480c9ee0ff7 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java @@ -18,13 +18,11 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for ModelApiResponse */ diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/ModelFileTest.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/ModelFileTest.java index b55340ef6195..a84242272474 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/ModelFileTest.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/ModelFileTest.java @@ -18,13 +18,11 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for ModelFile */ diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/ModelListTest.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/ModelListTest.java index dc7c6441885c..ea5a55185989 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/ModelListTest.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/ModelListTest.java @@ -18,13 +18,11 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for ModelList */ diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/ModelReturnTest.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/ModelReturnTest.java index 7a55f2ab476f..10c7841ba3c1 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/ModelReturnTest.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/ModelReturnTest.java @@ -18,13 +18,11 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for ModelReturn */ diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/NameTest.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/NameTest.java index 5dc7f515a443..52eae7974bc1 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/NameTest.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/NameTest.java @@ -18,13 +18,11 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Name */ diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/NumberOnlyTest.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/NumberOnlyTest.java index 637d4887e312..774200c9f6bc 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/NumberOnlyTest.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/NumberOnlyTest.java @@ -18,14 +18,12 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.math.BigDecimal; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for NumberOnly */ diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/OrderTest.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/OrderTest.java index 838191fecd07..adcfde4a33d0 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/OrderTest.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/OrderTest.java @@ -18,14 +18,12 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Order */ diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/OuterCompositeTest.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/OuterCompositeTest.java index a532cf086637..794328118065 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/OuterCompositeTest.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/OuterCompositeTest.java @@ -18,14 +18,12 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.math.BigDecimal; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for OuterComposite */ diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/OuterEnumTest.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/OuterEnumTest.java index 61cb88bb3dba..8ab11b65cbde 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/OuterEnumTest.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/OuterEnumTest.java @@ -17,7 +17,6 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for OuterEnum */ diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/PetTest.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/PetTest.java index 01395a956fc4..552828ac1f45 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/PetTest.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/PetTest.java @@ -18,10 +18,9 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.LinkedHashSet; import java.util.List; import java.util.Set; @@ -30,7 +29,6 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Pet */ diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/ReadOnlyFirstTest.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/ReadOnlyFirstTest.java index 3b8a3f64b7dd..c4b3c2a8d09d 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/ReadOnlyFirstTest.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/ReadOnlyFirstTest.java @@ -18,13 +18,11 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for ReadOnlyFirst */ diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/SpecialModelNameTest.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/SpecialModelNameTest.java index 066348a3fc93..d12e6c66af71 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/SpecialModelNameTest.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/SpecialModelNameTest.java @@ -18,13 +18,11 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for SpecialModelName */ diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/TagTest.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/TagTest.java index ed6daf3602c6..6f38d0223841 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/TagTest.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/TagTest.java @@ -18,13 +18,11 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Tag */ diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/TypeHolderDefaultTest.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/TypeHolderDefaultTest.java index 4da5bca66e8e..8c431a664bda 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/TypeHolderDefaultTest.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/TypeHolderDefaultTest.java @@ -18,16 +18,14 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.math.BigDecimal; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for TypeHolderDefault */ diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/TypeHolderExampleTest.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/TypeHolderExampleTest.java index 7adc92a265b0..65b2aa966eec 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/TypeHolderExampleTest.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/TypeHolderExampleTest.java @@ -18,16 +18,14 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.math.BigDecimal; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for TypeHolderExample */ diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/UserTest.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/UserTest.java index 147067ea011d..b2787eee9731 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/UserTest.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/UserTest.java @@ -18,13 +18,11 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for User */ diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/XmlItemTest.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/XmlItemTest.java index 0baea8f4fee0..9f7762e5dd92 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/XmlItemTest.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/XmlItemTest.java @@ -18,16 +18,14 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.math.BigDecimal; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for XmlItem */ diff --git a/samples/client/petstore/java/okhttp-gson-group-parameter/src/test/java/org/openapitools/client/model/CategoryTest.java b/samples/client/petstore/java/okhttp-gson-group-parameter/src/test/java/org/openapitools/client/model/CategoryTest.java index a7c58d0acbf4..0609d116a38d 100644 --- a/samples/client/petstore/java/okhttp-gson-group-parameter/src/test/java/org/openapitools/client/model/CategoryTest.java +++ b/samples/client/petstore/java/okhttp-gson-group-parameter/src/test/java/org/openapitools/client/model/CategoryTest.java @@ -18,13 +18,11 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Category */ diff --git a/samples/client/petstore/java/okhttp-gson-group-parameter/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java b/samples/client/petstore/java/okhttp-gson-group-parameter/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java index ed1673bdc763..6018546d0531 100644 --- a/samples/client/petstore/java/okhttp-gson-group-parameter/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java +++ b/samples/client/petstore/java/okhttp-gson-group-parameter/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java @@ -18,13 +18,11 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for ModelApiResponse */ diff --git a/samples/client/petstore/java/okhttp-gson-group-parameter/src/test/java/org/openapitools/client/model/OrderTest.java b/samples/client/petstore/java/okhttp-gson-group-parameter/src/test/java/org/openapitools/client/model/OrderTest.java index 1b27fe89a42e..bde30a7233dc 100644 --- a/samples/client/petstore/java/okhttp-gson-group-parameter/src/test/java/org/openapitools/client/model/OrderTest.java +++ b/samples/client/petstore/java/okhttp-gson-group-parameter/src/test/java/org/openapitools/client/model/OrderTest.java @@ -18,14 +18,12 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Order */ diff --git a/samples/client/petstore/java/okhttp-gson-group-parameter/src/test/java/org/openapitools/client/model/PetTest.java b/samples/client/petstore/java/okhttp-gson-group-parameter/src/test/java/org/openapitools/client/model/PetTest.java index 99c3d8911087..1dbb74a230c4 100644 --- a/samples/client/petstore/java/okhttp-gson-group-parameter/src/test/java/org/openapitools/client/model/PetTest.java +++ b/samples/client/petstore/java/okhttp-gson-group-parameter/src/test/java/org/openapitools/client/model/PetTest.java @@ -18,17 +18,15 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.Category; import org.openapitools.client.model.Tag; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Pet */ diff --git a/samples/client/petstore/java/okhttp-gson-group-parameter/src/test/java/org/openapitools/client/model/TagTest.java b/samples/client/petstore/java/okhttp-gson-group-parameter/src/test/java/org/openapitools/client/model/TagTest.java index 49228a52bb70..0a89a2bc6f4d 100644 --- a/samples/client/petstore/java/okhttp-gson-group-parameter/src/test/java/org/openapitools/client/model/TagTest.java +++ b/samples/client/petstore/java/okhttp-gson-group-parameter/src/test/java/org/openapitools/client/model/TagTest.java @@ -18,13 +18,11 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Tag */ diff --git a/samples/client/petstore/java/okhttp-gson-group-parameter/src/test/java/org/openapitools/client/model/UserTest.java b/samples/client/petstore/java/okhttp-gson-group-parameter/src/test/java/org/openapitools/client/model/UserTest.java index 851b9cc57ac4..42c042309ce1 100644 --- a/samples/client/petstore/java/okhttp-gson-group-parameter/src/test/java/org/openapitools/client/model/UserTest.java +++ b/samples/client/petstore/java/okhttp-gson-group-parameter/src/test/java/org/openapitools/client/model/UserTest.java @@ -18,13 +18,11 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for User */ diff --git a/samples/client/petstore/java/okhttp-gson-nullable-required/src/test/java/org/openapitools/client/api/PetApiTest.java b/samples/client/petstore/java/okhttp-gson-nullable-required/src/test/java/org/openapitools/client/api/PetApiTest.java index 839d7d0bcd68..0b99fe9d3414 100644 --- a/samples/client/petstore/java/okhttp-gson-nullable-required/src/test/java/org/openapitools/client/api/PetApiTest.java +++ b/samples/client/petstore/java/okhttp-gson-nullable-required/src/test/java/org/openapitools/client/api/PetApiTest.java @@ -3,7 +3,7 @@ * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. * * The version of the OpenAPI document: 1.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -36,7 +36,7 @@ public class PetApiTest { /** * Add a new pet to the store * - * + * * * @throws ApiException if the Api call fails */ @@ -50,7 +50,7 @@ public void addPetTest() throws ApiException { /** * Deletes a pet * - * + * * * @throws ApiException if the Api call fails */ @@ -107,7 +107,7 @@ public void getPetByIdTest() throws ApiException { /** * Update an existing pet * - * + * * * @throws ApiException if the Api call fails */ @@ -121,7 +121,7 @@ public void updatePetTest() throws ApiException { /** * Updates a pet in the store with form data * - * + * * * @throws ApiException if the Api call fails */ @@ -137,7 +137,7 @@ public void updatePetWithFormTest() throws ApiException { /** * uploads an image * - * + * * * @throws ApiException if the Api call fails */ diff --git a/samples/client/petstore/java/okhttp-gson-nullable-required/src/test/java/org/openapitools/client/api/StoreApiTest.java b/samples/client/petstore/java/okhttp-gson-nullable-required/src/test/java/org/openapitools/client/api/StoreApiTest.java index dfcdd4e96aab..3ca20d0b210b 100644 --- a/samples/client/petstore/java/okhttp-gson-nullable-required/src/test/java/org/openapitools/client/api/StoreApiTest.java +++ b/samples/client/petstore/java/okhttp-gson-nullable-required/src/test/java/org/openapitools/client/api/StoreApiTest.java @@ -3,7 +3,7 @@ * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. * * The version of the OpenAPI document: 1.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -75,7 +75,7 @@ public void getOrderByIdTest() throws ApiException { /** * Place an order for a pet * - * + * * * @throws ApiException if the Api call fails */ diff --git a/samples/client/petstore/java/okhttp-gson-nullable-required/src/test/java/org/openapitools/client/api/UserApiTest.java b/samples/client/petstore/java/okhttp-gson-nullable-required/src/test/java/org/openapitools/client/api/UserApiTest.java index 1a1c7cbb9c1b..a46743c4435d 100644 --- a/samples/client/petstore/java/okhttp-gson-nullable-required/src/test/java/org/openapitools/client/api/UserApiTest.java +++ b/samples/client/petstore/java/okhttp-gson-nullable-required/src/test/java/org/openapitools/client/api/UserApiTest.java @@ -3,7 +3,7 @@ * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. * * The version of the OpenAPI document: 1.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -49,7 +49,7 @@ public void createUserTest() throws ApiException { /** * Creates list of users with given input array * - * + * * * @throws ApiException if the Api call fails */ @@ -63,7 +63,7 @@ public void createUsersWithArrayInputTest() throws ApiException { /** * Creates list of users with given input array * - * + * * * @throws ApiException if the Api call fails */ @@ -91,7 +91,7 @@ public void deleteUserTest() throws ApiException { /** * Get user by user name * - * + * * * @throws ApiException if the Api call fails */ @@ -105,7 +105,7 @@ public void getUserByNameTest() throws ApiException { /** * Logs user into the system * - * + * * * @throws ApiException if the Api call fails */ @@ -120,7 +120,7 @@ public void loginUserTest() throws ApiException { /** * Logs out current logged in user session * - * + * * * @throws ApiException if the Api call fails */ diff --git a/samples/client/petstore/java/okhttp-gson-nullable-required/src/test/java/org/openapitools/client/model/CategoryTest.java b/samples/client/petstore/java/okhttp-gson-nullable-required/src/test/java/org/openapitools/client/model/CategoryTest.java index 73416e348cf9..0609d116a38d 100644 --- a/samples/client/petstore/java/okhttp-gson-nullable-required/src/test/java/org/openapitools/client/model/CategoryTest.java +++ b/samples/client/petstore/java/okhttp-gson-nullable-required/src/test/java/org/openapitools/client/model/CategoryTest.java @@ -3,7 +3,7 @@ * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. * * The version of the OpenAPI document: 1.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -19,10 +19,10 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Category */ diff --git a/samples/client/petstore/java/okhttp-gson-nullable-required/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java b/samples/client/petstore/java/okhttp-gson-nullable-required/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java index 21c2af9c4dc6..6018546d0531 100644 --- a/samples/client/petstore/java/okhttp-gson-nullable-required/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java +++ b/samples/client/petstore/java/okhttp-gson-nullable-required/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java @@ -3,7 +3,7 @@ * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. * * The version of the OpenAPI document: 1.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -19,10 +19,10 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for ModelApiResponse */ diff --git a/samples/client/petstore/java/okhttp-gson-nullable-required/src/test/java/org/openapitools/client/model/OrderTest.java b/samples/client/petstore/java/okhttp-gson-nullable-required/src/test/java/org/openapitools/client/model/OrderTest.java index d9ec70d5917a..bde30a7233dc 100644 --- a/samples/client/petstore/java/okhttp-gson-nullable-required/src/test/java/org/openapitools/client/model/OrderTest.java +++ b/samples/client/petstore/java/okhttp-gson-nullable-required/src/test/java/org/openapitools/client/model/OrderTest.java @@ -3,7 +3,7 @@ * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. * * The version of the OpenAPI document: 1.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -20,10 +20,10 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; import java.time.OffsetDateTime; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Order */ diff --git a/samples/client/petstore/java/okhttp-gson-nullable-required/src/test/java/org/openapitools/client/model/PetTest.java b/samples/client/petstore/java/okhttp-gson-nullable-required/src/test/java/org/openapitools/client/model/PetTest.java index 0b5860718dc5..1dbb74a230c4 100644 --- a/samples/client/petstore/java/okhttp-gson-nullable-required/src/test/java/org/openapitools/client/model/PetTest.java +++ b/samples/client/petstore/java/okhttp-gson-nullable-required/src/test/java/org/openapitools/client/model/PetTest.java @@ -3,7 +3,7 @@ * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. * * The version of the OpenAPI document: 1.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -20,13 +20,13 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.Category; import org.openapitools.client.model.Tag; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Pet */ diff --git a/samples/client/petstore/java/okhttp-gson-nullable-required/src/test/java/org/openapitools/client/model/PetWithRequiredNullableCases1Test.java b/samples/client/petstore/java/okhttp-gson-nullable-required/src/test/java/org/openapitools/client/model/PetWithRequiredNullableCases1Test.java index 7df934573032..22d6e60cebd1 100644 --- a/samples/client/petstore/java/okhttp-gson-nullable-required/src/test/java/org/openapitools/client/model/PetWithRequiredNullableCases1Test.java +++ b/samples/client/petstore/java/okhttp-gson-nullable-required/src/test/java/org/openapitools/client/model/PetWithRequiredNullableCases1Test.java @@ -20,6 +20,7 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.Category; import org.openapitools.client.model.Tag; @@ -27,7 +28,6 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for PetWithRequiredNullableCases1 */ diff --git a/samples/client/petstore/java/okhttp-gson-nullable-required/src/test/java/org/openapitools/client/model/PetWithRequiredNullableCases2Test.java b/samples/client/petstore/java/okhttp-gson-nullable-required/src/test/java/org/openapitools/client/model/PetWithRequiredNullableCases2Test.java index b7cfb37f5f23..c2db3ed6f9c2 100644 --- a/samples/client/petstore/java/okhttp-gson-nullable-required/src/test/java/org/openapitools/client/model/PetWithRequiredNullableCases2Test.java +++ b/samples/client/petstore/java/okhttp-gson-nullable-required/src/test/java/org/openapitools/client/model/PetWithRequiredNullableCases2Test.java @@ -20,13 +20,13 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.Category; import org.openapitools.client.model.Tag; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for PetWithRequiredNullableCases2 */ diff --git a/samples/client/petstore/java/okhttp-gson-nullable-required/src/test/java/org/openapitools/client/model/TagTest.java b/samples/client/petstore/java/okhttp-gson-nullable-required/src/test/java/org/openapitools/client/model/TagTest.java index ed0fd58c06e4..0a89a2bc6f4d 100644 --- a/samples/client/petstore/java/okhttp-gson-nullable-required/src/test/java/org/openapitools/client/model/TagTest.java +++ b/samples/client/petstore/java/okhttp-gson-nullable-required/src/test/java/org/openapitools/client/model/TagTest.java @@ -3,7 +3,7 @@ * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. * * The version of the OpenAPI document: 1.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -19,10 +19,10 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Tag */ diff --git a/samples/client/petstore/java/okhttp-gson-nullable-required/src/test/java/org/openapitools/client/model/UserTest.java b/samples/client/petstore/java/okhttp-gson-nullable-required/src/test/java/org/openapitools/client/model/UserTest.java index 5dc70c6fa406..42c042309ce1 100644 --- a/samples/client/petstore/java/okhttp-gson-nullable-required/src/test/java/org/openapitools/client/model/UserTest.java +++ b/samples/client/petstore/java/okhttp-gson-nullable-required/src/test/java/org/openapitools/client/model/UserTest.java @@ -3,7 +3,7 @@ * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. * * The version of the OpenAPI document: 1.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -19,10 +19,10 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for User */ diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java index 6fa396b48542..759193160447 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java @@ -15,8 +15,9 @@ import org.openapitools.client.ApiException; import org.openapitools.client.model.Client; -import org.junit.Test; -import org.junit.Ignore; +import java.util.UUID; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; import java.util.ArrayList; import java.util.HashMap; @@ -26,26 +27,24 @@ /** * API tests for AnotherFakeApi */ -@Ignore +@Disabled public class AnotherFakeApiTest { private final AnotherFakeApi api = new AnotherFakeApi(); - /** * To test special tags * * To test special tags and operation ID starting with number * - * @throws ApiException - * if the Api call fails + * @throws ApiException if the Api call fails */ @Test public void call123testSpecialTagsTest() throws ApiException { + UUID uuidTest = null; Client body = null; - Client response = api.call123testSpecialTags(body); - + Client response = api.call123testSpecialTags(uuidTest, body); // TODO: test validations } - + } diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/api/FakeApiTest.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/api/FakeApiTest.java index cbcadd005fd7..c5064962312c 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/api/FakeApiTest.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/api/FakeApiTest.java @@ -23,8 +23,8 @@ import org.openapitools.client.model.OuterComposite; import org.openapitools.client.model.User; import org.openapitools.client.model.XmlItem; -import org.junit.Test; -import org.junit.Ignore; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; import java.util.ArrayList; import java.util.HashMap; @@ -34,148 +34,116 @@ /** * API tests for FakeApi */ -@Ignore +@Disabled public class FakeApiTest { private final FakeApi api = new FakeApi(); - /** * creates an XmlItem * * this route creates an XmlItem * - * @throws ApiException - * if the Api call fails + * @throws ApiException if the Api call fails */ @Test public void createXmlItemTest() throws ApiException { XmlItem xmlItem = null; api.createXmlItem(xmlItem); - // TODO: test validations } - + /** - * - * * Test serialization of outer boolean types * - * @throws ApiException - * if the Api call fails + * @throws ApiException if the Api call fails */ @Test public void fakeOuterBooleanSerializeTest() throws ApiException { Boolean body = null; Boolean response = api.fakeOuterBooleanSerialize(body); - // TODO: test validations } - + /** - * - * * Test serialization of object with outer number type * - * @throws ApiException - * if the Api call fails + * @throws ApiException if the Api call fails */ @Test public void fakeOuterCompositeSerializeTest() throws ApiException { OuterComposite body = null; OuterComposite response = api.fakeOuterCompositeSerialize(body); - // TODO: test validations } - + /** - * - * * Test serialization of outer number types * - * @throws ApiException - * if the Api call fails + * @throws ApiException if the Api call fails */ @Test public void fakeOuterNumberSerializeTest() throws ApiException { BigDecimal body = null; BigDecimal response = api.fakeOuterNumberSerialize(body); - // TODO: test validations } - + /** - * - * * Test serialization of outer string types * - * @throws ApiException - * if the Api call fails + * @throws ApiException if the Api call fails */ @Test public void fakeOuterStringSerializeTest() throws ApiException { String body = null; String response = api.fakeOuterStringSerialize(body); - // TODO: test validations } - + /** - * - * * For this test, the body for this request much reference a schema named `File`. * - * @throws ApiException - * if the Api call fails + * @throws ApiException if the Api call fails */ @Test public void testBodyWithFileSchemaTest() throws ApiException { FileSchemaTestClass body = null; api.testBodyWithFileSchema(body); - // TODO: test validations } - + /** - * - * - * - * - * @throws ApiException - * if the Api call fails + * @throws ApiException if the Api call fails */ @Test public void testBodyWithQueryParamsTest() throws ApiException { String query = null; User body = null; api.testBodyWithQueryParams(query, body); - // TODO: test validations } - + /** * To test \"client\" model * * To test \"client\" model * - * @throws ApiException - * if the Api call fails + * @throws ApiException if the Api call fails */ @Test public void testClientModelTest() throws ApiException { Client body = null; Client response = api.testClientModel(body); - // TODO: test validations } - + /** * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 * * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 * - * @throws ApiException - * if the Api call fails + * @throws ApiException if the Api call fails */ @Test public void testEndpointParametersTest() throws ApiException { @@ -194,17 +162,15 @@ public void testEndpointParametersTest() throws ApiException { String password = null; String paramCallback = null; api.testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback); - // TODO: test validations } - + /** * To test enum parameters * * To test enum parameters * - * @throws ApiException - * if the Api call fails + * @throws ApiException if the Api call fails */ @Test public void testEnumParametersTest() throws ApiException { @@ -217,17 +183,15 @@ public void testEnumParametersTest() throws ApiException { List enumFormStringArray = null; String enumFormString = null; api.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString); - // TODO: test validations } - + /** * Fake endpoint to test group parameters (optional) * * Fake endpoint to test group parameters (optional) * - * @throws ApiException - * if the Api call fails + * @throws ApiException if the Api call fails */ @Test public void testGroupParametersTest() throws ApiException { @@ -242,50 +206,38 @@ public void testGroupParametersTest() throws ApiException { .booleanGroup(booleanGroup) .int64Group(int64Group) .execute(); - // TODO: test validations } - + /** * test inline additionalProperties * - * - * - * @throws ApiException - * if the Api call fails + * @throws ApiException if the Api call fails */ @Test public void testInlineAdditionalPropertiesTest() throws ApiException { Map param = null; api.testInlineAdditionalProperties(param); - // TODO: test validations } - + /** * test json serialization of form data * - * - * - * @throws ApiException - * if the Api call fails + * @throws ApiException if the Api call fails */ @Test public void testJsonFormDataTest() throws ApiException { String param = null; String param2 = null; api.testJsonFormData(param, param2); - // TODO: test validations } - + /** - * - * * To test the collection format in query parameters * - * @throws ApiException - * if the Api call fails + * @throws ApiException if the Api call fails */ @Test public void testQueryParameterCollectionFormatTest() throws ApiException { @@ -295,8 +247,7 @@ public void testQueryParameterCollectionFormatTest() throws ApiException { List url = null; List context = null; api.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context); - // TODO: test validations } - + } diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/api/FakeClassnameTags123ApiTest.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/api/FakeClassnameTags123ApiTest.java index 96f3b24e18bb..4899dbeac98c 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/api/FakeClassnameTags123ApiTest.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/api/FakeClassnameTags123ApiTest.java @@ -15,8 +15,8 @@ import org.openapitools.client.ApiException; import org.openapitools.client.model.Client; -import org.junit.Test; -import org.junit.Ignore; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; import java.util.ArrayList; import java.util.HashMap; @@ -26,26 +26,23 @@ /** * API tests for FakeClassnameTags123Api */ -@Ignore +@Disabled public class FakeClassnameTags123ApiTest { private final FakeClassnameTags123Api api = new FakeClassnameTags123Api(); - /** * To test class name in snake case * * To test class name in snake case * - * @throws ApiException - * if the Api call fails + * @throws ApiException if the Api call fails */ @Test public void testClassnameTest() throws ApiException { Client body = null; Client response = api.testClassname(body); - // TODO: test validations } - + } diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/api/PetApiTest.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/api/PetApiTest.java index 2c7aa5ad2d62..9c54e3b6ce2f 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/api/PetApiTest.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/api/PetApiTest.java @@ -18,8 +18,8 @@ import org.openapitools.client.model.ModelApiResponse; import org.openapitools.client.model.Pet; import java.util.Set; -import org.junit.Test; -import org.junit.Ignore; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; import java.util.ArrayList; import java.util.HashMap; @@ -29,116 +29,94 @@ /** * API tests for PetApi */ -@Ignore +@Disabled public class PetApiTest { private final PetApi api = new PetApi(); - /** * Add a new pet to the store * - * - * - * @throws ApiException - * if the Api call fails + * @throws ApiException if the Api call fails */ @Test public void addPetTest() throws ApiException { Pet body = null; api.addPet(body); - // TODO: test validations } - + /** * Deletes a pet * - * - * - * @throws ApiException - * if the Api call fails + * @throws ApiException if the Api call fails */ @Test public void deletePetTest() throws ApiException { Long petId = null; String apiKey = null; api.deletePet(petId, apiKey); - // TODO: test validations } - + /** * Finds Pets by status * * Multiple status values can be provided with comma separated strings * - * @throws ApiException - * if the Api call fails + * @throws ApiException if the Api call fails */ @Test public void findPetsByStatusTest() throws ApiException { List status = null; List response = api.findPetsByStatus(status); - // TODO: test validations } - + /** * Finds Pets by tags * * Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. * - * @throws ApiException - * if the Api call fails + * @throws ApiException if the Api call fails */ @Test public void findPetsByTagsTest() throws ApiException { Set tags = null; Set response = api.findPetsByTags(tags); - // TODO: test validations } - + /** * Find pet by ID * * Returns a single pet * - * @throws ApiException - * if the Api call fails + * @throws ApiException if the Api call fails */ @Test public void getPetByIdTest() throws ApiException { Long petId = null; Pet response = api.getPetById(petId); - // TODO: test validations } - + /** * Update an existing pet * - * - * - * @throws ApiException - * if the Api call fails + * @throws ApiException if the Api call fails */ @Test public void updatePetTest() throws ApiException { Pet body = null; api.updatePet(body); - // TODO: test validations } - + /** * Updates a pet in the store with form data * - * - * - * @throws ApiException - * if the Api call fails + * @throws ApiException if the Api call fails */ @Test public void updatePetWithFormTest() throws ApiException { @@ -146,35 +124,27 @@ public void updatePetWithFormTest() throws ApiException { String name = null; String status = null; api.updatePetWithForm(petId, name, status); - // TODO: test validations } - + /** * uploads an image * - * - * - * @throws ApiException - * if the Api call fails + * @throws ApiException if the Api call fails */ @Test public void uploadFileTest() throws ApiException { Long petId = null; String additionalMetadata = null; - File file = null; - ModelApiResponse response = api.uploadFile(petId, additionalMetadata, file); - + File _file = null; + ModelApiResponse response = api.uploadFile(petId, additionalMetadata, _file); // TODO: test validations } - + /** * uploads an image (required) * - * - * - * @throws ApiException - * if the Api call fails + * @throws ApiException if the Api call fails */ @Test public void uploadFileWithRequiredFileTest() throws ApiException { @@ -182,8 +152,7 @@ public void uploadFileWithRequiredFileTest() throws ApiException { File requiredFile = null; String additionalMetadata = null; ModelApiResponse response = api.uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata); - // TODO: test validations } - + } diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/api/StoreApiTest.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/api/StoreApiTest.java index 856dc21442c8..b6d81a6c5800 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/api/StoreApiTest.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/api/StoreApiTest.java @@ -15,8 +15,8 @@ import org.openapitools.client.ApiException; import org.openapitools.client.model.Order; -import org.junit.Test; -import org.junit.Ignore; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; import java.util.ArrayList; import java.util.HashMap; @@ -26,73 +26,62 @@ /** * API tests for StoreApi */ -@Ignore +@Disabled public class StoreApiTest { private final StoreApi api = new StoreApi(); - /** * Delete purchase order by ID * * For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors * - * @throws ApiException - * if the Api call fails + * @throws ApiException if the Api call fails */ @Test public void deleteOrderTest() throws ApiException { String orderId = null; api.deleteOrder(orderId); - // TODO: test validations } - + /** * Returns pet inventories by status * * Returns a map of status codes to quantities * - * @throws ApiException - * if the Api call fails + * @throws ApiException if the Api call fails */ @Test public void getInventoryTest() throws ApiException { Map response = api.getInventory(); - // TODO: test validations } - + /** * Find purchase order by ID * * For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions * - * @throws ApiException - * if the Api call fails + * @throws ApiException if the Api call fails */ @Test public void getOrderByIdTest() throws ApiException { Long orderId = null; Order response = api.getOrderById(orderId); - // TODO: test validations } - + /** * Place an order for a pet * - * - * - * @throws ApiException - * if the Api call fails + * @throws ApiException if the Api call fails */ @Test public void placeOrderTest() throws ApiException { Order body = null; Order response = api.placeOrder(body); - // TODO: test validations } - + } diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/api/UserApiTest.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/api/UserApiTest.java index c2feab9aea41..cb958423ece1 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/api/UserApiTest.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/api/UserApiTest.java @@ -14,9 +14,10 @@ package org.openapitools.client.api; import org.openapitools.client.ApiException; +import java.time.OffsetDateTime; import org.openapitools.client.model.User; -import org.junit.Test; -import org.junit.Ignore; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; import java.util.ArrayList; import java.util.HashMap; @@ -26,139 +27,112 @@ /** * API tests for UserApi */ -@Ignore +@Disabled public class UserApiTest { private final UserApi api = new UserApi(); - /** * Create user * * This can only be done by the logged in user. * - * @throws ApiException - * if the Api call fails + * @throws ApiException if the Api call fails */ @Test public void createUserTest() throws ApiException { User body = null; api.createUser(body); - // TODO: test validations } - + /** * Creates list of users with given input array * - * - * - * @throws ApiException - * if the Api call fails + * @throws ApiException if the Api call fails */ @Test public void createUsersWithArrayInputTest() throws ApiException { List body = null; api.createUsersWithArrayInput(body); - // TODO: test validations } - + /** * Creates list of users with given input array * - * - * - * @throws ApiException - * if the Api call fails + * @throws ApiException if the Api call fails */ @Test public void createUsersWithListInputTest() throws ApiException { List body = null; api.createUsersWithListInput(body); - // TODO: test validations } - + /** * Delete user * * This can only be done by the logged in user. * - * @throws ApiException - * if the Api call fails + * @throws ApiException if the Api call fails */ @Test public void deleteUserTest() throws ApiException { String username = null; api.deleteUser(username); - // TODO: test validations } - + /** * Get user by user name * - * - * - * @throws ApiException - * if the Api call fails + * @throws ApiException if the Api call fails */ @Test public void getUserByNameTest() throws ApiException { String username = null; User response = api.getUserByName(username); - // TODO: test validations } - + /** * Logs user into the system * - * - * - * @throws ApiException - * if the Api call fails + * @throws ApiException if the Api call fails */ @Test public void loginUserTest() throws ApiException { String username = null; String password = null; String response = api.loginUser(username, password); - // TODO: test validations } - + /** * Logs out current logged in user session * - * - * - * @throws ApiException - * if the Api call fails + * @throws ApiException if the Api call fails */ @Test public void logoutUserTest() throws ApiException { api.logoutUser(); - // TODO: test validations } - + /** * Updated user * * This can only be done by the logged in user. * - * @throws ApiException - * if the Api call fails + * @throws ApiException if the Api call fails */ @Test public void updateUserTest() throws ApiException { String username = null; User body = null; api.updateUser(username, body); - // TODO: test validations } - + } diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/AdditionalPropertiesAnyTypeTest.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/AdditionalPropertiesAnyTypeTest.java index 5507437bbe46..9d069083792e 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/AdditionalPropertiesAnyTypeTest.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/AdditionalPropertiesAnyTypeTest.java @@ -18,15 +18,10 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.HashMap; -import java.util.Map; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.Test; - +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; /** * Model tests for AdditionalPropertiesAnyType diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/AdditionalPropertiesArrayTest.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/AdditionalPropertiesArrayTest.java index d770842e2c32..e9032c8b8b2f 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/AdditionalPropertiesArrayTest.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/AdditionalPropertiesArrayTest.java @@ -18,16 +18,11 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.HashMap; +import java.util.Arrays; import java.util.List; -import java.util.Map; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.Test; - +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; /** * Model tests for AdditionalPropertiesArray diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/AdditionalPropertiesBooleanTest.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/AdditionalPropertiesBooleanTest.java index 17ad4aa94d87..aaa789af6dfc 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/AdditionalPropertiesBooleanTest.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/AdditionalPropertiesBooleanTest.java @@ -18,15 +18,10 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.HashMap; -import java.util.Map; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.Test; - +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; /** * Model tests for AdditionalPropertiesBoolean diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/AdditionalPropertiesClassTest.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/AdditionalPropertiesClassTest.java index 19f1a8fe7aab..514cc9aebbb3 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/AdditionalPropertiesClassTest.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/AdditionalPropertiesClassTest.java @@ -18,17 +18,14 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.math.BigDecimal; +import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.Test; - +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; /** * Model tests for AdditionalPropertiesClass diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/AdditionalPropertiesIntegerTest.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/AdditionalPropertiesIntegerTest.java index e6efde8fed97..219db0f97ed5 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/AdditionalPropertiesIntegerTest.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/AdditionalPropertiesIntegerTest.java @@ -18,15 +18,10 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.HashMap; -import java.util.Map; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.Test; - +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; /** * Model tests for AdditionalPropertiesInteger diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/AdditionalPropertiesNumberTest.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/AdditionalPropertiesNumberTest.java index 01433159e0f0..938a2fcf36d3 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/AdditionalPropertiesNumberTest.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/AdditionalPropertiesNumberTest.java @@ -18,16 +18,11 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.math.BigDecimal; -import java.util.HashMap; -import java.util.Map; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.Test; - +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; /** * Model tests for AdditionalPropertiesNumber diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/AdditionalPropertiesObjectTest.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/AdditionalPropertiesObjectTest.java index a307b7604d81..8f068a5bcce5 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/AdditionalPropertiesObjectTest.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/AdditionalPropertiesObjectTest.java @@ -18,15 +18,11 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.HashMap; +import java.util.Arrays; import java.util.Map; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.Test; - +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; /** * Model tests for AdditionalPropertiesObject diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/AdditionalPropertiesStringTest.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/AdditionalPropertiesStringTest.java index 6a66b95c7b46..ee6fa0c4a269 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/AdditionalPropertiesStringTest.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/AdditionalPropertiesStringTest.java @@ -18,15 +18,10 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.HashMap; -import java.util.Map; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.Test; - +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; /** * Model tests for AdditionalPropertiesString diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/AnimalTest.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/AnimalTest.java index 340abc2587a1..f30075833858 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/AnimalTest.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/AnimalTest.java @@ -18,16 +18,10 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import org.openapitools.client.model.BigCat; -import org.openapitools.client.model.Cat; -import org.openapitools.client.model.Dog; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.Test; - +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; /** * Model tests for Animal diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnlyTest.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnlyTest.java index d0e66d293541..618a21c8a982 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnlyTest.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnlyTest.java @@ -18,16 +18,13 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.math.BigDecimal; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.Test; - +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; /** * Model tests for ArrayOfArrayOfNumberOnly diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/ArrayOfNumberOnlyTest.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/ArrayOfNumberOnlyTest.java index 9afc3397f46c..7121b15da89f 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/ArrayOfNumberOnlyTest.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/ArrayOfNumberOnlyTest.java @@ -18,16 +18,13 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.math.BigDecimal; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.Test; - +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; /** * Model tests for ArrayOfNumberOnly diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/ArrayTestTest.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/ArrayTestTest.java index fab9a30565f3..da72462ec73d 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/ArrayTestTest.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/ArrayTestTest.java @@ -18,16 +18,13 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.ReadOnlyFirst; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.Test; - +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; /** * Model tests for ArrayTest diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/BigCatTest.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/BigCatTest.java index e2f41cc959c9..06f152eace0e 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/BigCatTest.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/BigCatTest.java @@ -19,6 +19,7 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.util.Arrays; import org.openapitools.client.model.Cat; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/CapitalizationTest.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/CapitalizationTest.java index ced4f48eb5f9..c3c69e049af7 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/CapitalizationTest.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/CapitalizationTest.java @@ -18,13 +18,10 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.Test; - +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; /** * Model tests for Capitalization diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/CatTest.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/CatTest.java index ac7ac3c80f60..73309d4bec1f 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/CatTest.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/CatTest.java @@ -18,16 +18,11 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.util.Arrays; import org.openapitools.client.model.Animal; -import org.openapitools.client.model.BigCat; -import org.openapitools.client.model.CatAllOf; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.Test; - +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; /** * Model tests for Cat diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/CategoryTest.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/CategoryTest.java index a6efa6e1fbc6..03f1c7ec1d53 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/CategoryTest.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/CategoryTest.java @@ -18,13 +18,10 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.Test; - +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; /** * Model tests for Category diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/ClassModelTest.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/ClassModelTest.java index 1233feec65ec..1666ebc79969 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/ClassModelTest.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/ClassModelTest.java @@ -18,13 +18,10 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.Test; - +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; /** * Model tests for ClassModel diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/ClientTest.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/ClientTest.java index 456fab74c4d7..140143b9573d 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/ClientTest.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/ClientTest.java @@ -18,13 +18,10 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.Test; - +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; /** * Model tests for Client diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/DogTest.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/DogTest.java index 124bc99c1f12..844e3e06f5e1 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/DogTest.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/DogTest.java @@ -18,15 +18,11 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.util.Arrays; import org.openapitools.client.model.Animal; -import org.openapitools.client.model.DogAllOf; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.Test; - +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; /** * Model tests for Dog diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/EnumArraysTest.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/EnumArraysTest.java index c25b05e9f0d1..02954e6a6839 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/EnumArraysTest.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/EnumArraysTest.java @@ -18,15 +18,12 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.Test; - +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; /** * Model tests for EnumArrays diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/EnumClassTest.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/EnumClassTest.java index 329454658e33..bed8681219e8 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/EnumClassTest.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/EnumClassTest.java @@ -14,10 +14,8 @@ package org.openapitools.client.model; import com.google.gson.annotations.SerializedName; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.Test; - +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; /** * Model tests for EnumClass diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/EnumTestTest.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/EnumTestTest.java index 8b76ef556061..05820f3bb1cb 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/EnumTestTest.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/EnumTestTest.java @@ -18,14 +18,11 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.util.Arrays; import org.openapitools.client.model.OuterEnum; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.Test; - +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; /** * Model tests for EnumTest diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/FileSchemaTestClassTest.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/FileSchemaTestClassTest.java index 0ca366212088..79eccbf4beef 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/FileSchemaTestClassTest.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/FileSchemaTestClassTest.java @@ -18,15 +18,13 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.Test; - +import org.openapitools.client.model.ModelFile; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; /** * Model tests for FileSchemaTestClass @@ -43,11 +41,11 @@ public void testFileSchemaTestClass() { } /** - * Test the property 'file' + * Test the property '_file' */ @Test - public void fileTest() { - // TODO: test file + public void _fileTest() { + // TODO: test _file } /** diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/FormatTestTest.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/FormatTestTest.java index 9c600e488b5f..d9dfac4e1951 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/FormatTestTest.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/FormatTestTest.java @@ -18,18 +18,15 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.File; import java.io.IOException; import java.math.BigDecimal; -import java.util.UUID; import java.time.LocalDate; import java.time.OffsetDateTime; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.Test; - +import java.util.Arrays; +import java.util.UUID; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; /** * Model tests for FormatTest diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/HasOnlyReadOnlyTest.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/HasOnlyReadOnlyTest.java index 0272d7b80004..f63bf66b1775 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/HasOnlyReadOnlyTest.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/HasOnlyReadOnlyTest.java @@ -18,13 +18,10 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.Test; - +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; /** * Model tests for HasOnlyReadOnly diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/MapTestTest.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/MapTestTest.java index f86a1303fc88..0587a961b146 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/MapTestTest.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/MapTestTest.java @@ -18,16 +18,12 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.util.Arrays; import java.util.HashMap; -import java.util.List; import java.util.Map; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.Test; - +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; /** * Model tests for MapTest diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClassTest.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClassTest.java index 3a23e8217ba4..1cc69bedcd83 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClassTest.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClassTest.java @@ -18,19 +18,15 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.time.OffsetDateTime; +import java.util.Arrays; import java.util.HashMap; -import java.util.List; import java.util.Map; import java.util.UUID; import org.openapitools.client.model.Animal; -import java.time.OffsetDateTime; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.Test; - +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; /** * Model tests for MixedPropertiesAndAdditionalPropertiesClass diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/Model200ResponseTest.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/Model200ResponseTest.java index d81fa5a0f669..01b44a53b4fa 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/Model200ResponseTest.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/Model200ResponseTest.java @@ -18,13 +18,10 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.Test; - +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; /** * Model tests for Model200Response diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java index 91bd8fada260..9480c9ee0ff7 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java @@ -18,13 +18,10 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.Test; - +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; /** * Model tests for ModelApiResponse diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/ModelFileTest.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/ModelFileTest.java index 132012d4c387..a84242272474 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/ModelFileTest.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/ModelFileTest.java @@ -18,13 +18,10 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.Test; - +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; /** * Model tests for ModelFile diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/ModelListTest.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/ModelListTest.java index d3ed2075e9a4..ea5a55185989 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/ModelListTest.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/ModelListTest.java @@ -18,13 +18,10 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.Test; - +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; /** * Model tests for ModelList diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/ModelReturnTest.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/ModelReturnTest.java index f317fef485ea..10c7841ba3c1 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/ModelReturnTest.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/ModelReturnTest.java @@ -18,13 +18,10 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.Test; - +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; /** * Model tests for ModelReturn diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/NameTest.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/NameTest.java index 1ed41a0f80c7..52eae7974bc1 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/NameTest.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/NameTest.java @@ -18,13 +18,10 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.Test; - +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; /** * Model tests for Name diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/NumberOnlyTest.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/NumberOnlyTest.java index 15b74f7ef8bf..774200c9f6bc 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/NumberOnlyTest.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/NumberOnlyTest.java @@ -18,14 +18,11 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.math.BigDecimal; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.Test; - +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; /** * Model tests for NumberOnly diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/OrderTest.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/OrderTest.java index 8bad0b69dc3e..adcfde4a33d0 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/OrderTest.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/OrderTest.java @@ -18,14 +18,11 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.Test; - +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; /** * Model tests for Order diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/OuterCompositeTest.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/OuterCompositeTest.java index 67ee59963636..794328118065 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/OuterCompositeTest.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/OuterCompositeTest.java @@ -18,14 +18,11 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.math.BigDecimal; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.Test; - +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; /** * Model tests for OuterComposite diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/OuterEnumTest.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/OuterEnumTest.java index 220d40e83cbb..8ab11b65cbde 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/OuterEnumTest.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/OuterEnumTest.java @@ -14,10 +14,8 @@ package org.openapitools.client.model; import com.google.gson.annotations.SerializedName; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.Test; - +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; /** * Model tests for OuterEnum diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/PetTest.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/PetTest.java index 8acfe87f62c1..552828ac1f45 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/PetTest.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/PetTest.java @@ -18,19 +18,16 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.LinkedHashSet; import java.util.List; import java.util.Set; import org.openapitools.client.model.Category; import org.openapitools.client.model.Tag; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.Test; - +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; /** * Model tests for Pet diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/ReadOnlyFirstTest.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/ReadOnlyFirstTest.java index 2dc9cb2ae2cd..c4b3c2a8d09d 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/ReadOnlyFirstTest.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/ReadOnlyFirstTest.java @@ -18,13 +18,10 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.Test; - +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; /** * Model tests for ReadOnlyFirst diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/SpecialModelNameTest.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/SpecialModelNameTest.java index bcf23eb3cbc8..d12e6c66af71 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/SpecialModelNameTest.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/SpecialModelNameTest.java @@ -18,13 +18,10 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.Test; - +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; /** * Model tests for SpecialModelName diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/TagTest.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/TagTest.java index 83f536d2fa39..6f38d0223841 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/TagTest.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/TagTest.java @@ -18,13 +18,10 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.Test; - +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; /** * Model tests for Tag diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/TypeHolderDefaultTest.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/TypeHolderDefaultTest.java index ca08c6362ce1..8c431a664bda 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/TypeHolderDefaultTest.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/TypeHolderDefaultTest.java @@ -18,16 +18,13 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.math.BigDecimal; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.Test; - +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; /** * Model tests for TypeHolderDefault diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/TypeHolderExampleTest.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/TypeHolderExampleTest.java index 763bccefe43d..65b2aa966eec 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/TypeHolderExampleTest.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/TypeHolderExampleTest.java @@ -18,16 +18,13 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.math.BigDecimal; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.Test; - +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; /** * Model tests for TypeHolderExample diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/UserTest.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/UserTest.java index b3a76f61da53..b2787eee9731 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/UserTest.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/UserTest.java @@ -18,13 +18,10 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.Test; - +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; /** * Model tests for User diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/XmlItemTest.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/XmlItemTest.java index f9790cd7c6bd..9f7762e5dd92 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/XmlItemTest.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java/org/openapitools/client/model/XmlItemTest.java @@ -18,16 +18,13 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.math.BigDecimal; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.Test; - +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; /** * Model tests for XmlItem diff --git a/samples/client/petstore/java/okhttp-gson-swagger2/src/test/java/org/openapitools/client/model/CategoryTest.java b/samples/client/petstore/java/okhttp-gson-swagger2/src/test/java/org/openapitools/client/model/CategoryTest.java index 55ca413893fe..229060e12406 100644 --- a/samples/client/petstore/java/okhttp-gson-swagger2/src/test/java/org/openapitools/client/model/CategoryTest.java +++ b/samples/client/petstore/java/okhttp-gson-swagger2/src/test/java/org/openapitools/client/model/CategoryTest.java @@ -20,10 +20,10 @@ import com.google.gson.stream.JsonWriter; import io.swagger.v3.oas.annotations.media.Schema; import java.io.IOException; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Category */ diff --git a/samples/client/petstore/java/okhttp-gson-swagger2/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java b/samples/client/petstore/java/okhttp-gson-swagger2/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java index 63c93588f754..30bc466c4b62 100644 --- a/samples/client/petstore/java/okhttp-gson-swagger2/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java +++ b/samples/client/petstore/java/okhttp-gson-swagger2/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java @@ -20,10 +20,10 @@ import com.google.gson.stream.JsonWriter; import io.swagger.v3.oas.annotations.media.Schema; import java.io.IOException; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for ModelApiResponse */ diff --git a/samples/client/petstore/java/okhttp-gson-swagger2/src/test/java/org/openapitools/client/model/OrderTest.java b/samples/client/petstore/java/okhttp-gson-swagger2/src/test/java/org/openapitools/client/model/OrderTest.java index cff816437558..d23177e5be18 100644 --- a/samples/client/petstore/java/okhttp-gson-swagger2/src/test/java/org/openapitools/client/model/OrderTest.java +++ b/samples/client/petstore/java/okhttp-gson-swagger2/src/test/java/org/openapitools/client/model/OrderTest.java @@ -21,10 +21,10 @@ import io.swagger.v3.oas.annotations.media.Schema; import java.io.IOException; import java.time.OffsetDateTime; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Order */ diff --git a/samples/client/petstore/java/okhttp-gson-swagger2/src/test/java/org/openapitools/client/model/PetTest.java b/samples/client/petstore/java/okhttp-gson-swagger2/src/test/java/org/openapitools/client/model/PetTest.java index 3b8203bb37d3..96df06bd7fb4 100644 --- a/samples/client/petstore/java/okhttp-gson-swagger2/src/test/java/org/openapitools/client/model/PetTest.java +++ b/samples/client/petstore/java/okhttp-gson-swagger2/src/test/java/org/openapitools/client/model/PetTest.java @@ -21,13 +21,13 @@ import io.swagger.v3.oas.annotations.media.Schema; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.Category; import org.openapitools.client.model.Tag; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Pet */ diff --git a/samples/client/petstore/java/okhttp-gson-swagger2/src/test/java/org/openapitools/client/model/TagTest.java b/samples/client/petstore/java/okhttp-gson-swagger2/src/test/java/org/openapitools/client/model/TagTest.java index 9314dab84bb0..55188d073060 100644 --- a/samples/client/petstore/java/okhttp-gson-swagger2/src/test/java/org/openapitools/client/model/TagTest.java +++ b/samples/client/petstore/java/okhttp-gson-swagger2/src/test/java/org/openapitools/client/model/TagTest.java @@ -20,10 +20,10 @@ import com.google.gson.stream.JsonWriter; import io.swagger.v3.oas.annotations.media.Schema; import java.io.IOException; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Tag */ diff --git a/samples/client/petstore/java/okhttp-gson-swagger2/src/test/java/org/openapitools/client/model/UserTest.java b/samples/client/petstore/java/okhttp-gson-swagger2/src/test/java/org/openapitools/client/model/UserTest.java index 770a23cfc98d..d3986c107b9b 100644 --- a/samples/client/petstore/java/okhttp-gson-swagger2/src/test/java/org/openapitools/client/model/UserTest.java +++ b/samples/client/petstore/java/okhttp-gson-swagger2/src/test/java/org/openapitools/client/model/UserTest.java @@ -20,10 +20,10 @@ import com.google.gson.stream.JsonWriter; import io.swagger.v3.oas.annotations.media.Schema; import java.io.IOException; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for User */ diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java index 0f49c5e2e01c..9f059948f816 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java @@ -2,23 +2,31 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 - * + * The version of the OpenAPI document: 1.0.0 + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -package org.openapitools.client.api; +package org.openapitools.client.api; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; import org.openapitools.client.ApiException; +import java.math.BigDecimal; import org.openapitools.client.model.Client; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; -/** API tests for AnotherFakeApi */ +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for AnotherFakeApi + */ @Disabled public class AnotherFakeApiTest { @@ -27,15 +35,51 @@ public class AnotherFakeApiTest { /** * To test special tags * - *

To test special tags and operation ID starting with number + * To test special tags and operation ID starting with number * * @throws ApiException if the Api call fails */ @Test public void call123testSpecialTagsTest() throws ApiException { - Client body = null; - Client response = api.call123testSpecialTags(body); + Client client = null; + Client response = api.call123testSpecialTags(client); + // TODO: test validations + } + /** + * parameter array number default value + * + * @throws ApiException if the Api call fails + */ + @Test + public void getParameterArrayNumberTest() throws ApiException { + List array = null; + api.getParameterArrayNumber(array); // TODO: test validations } + + /** + * parameter string number + * + * @throws ApiException if the Api call fails + */ + @Test + public void getParameterStringNumberTest() throws ApiException { + BigDecimal stringNumber = null; + api.getParameterStringNumber(stringNumber); + // TODO: test validations + } + + /** + * null request body + * + * @throws ApiException if the Api call fails + */ + @Test + public void nullRequestBodyTest() throws ApiException { + String acceptLanguage = null; + api.nullRequestBody(acceptLanguage); + // TODO: test validations + } + } diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/api/DefaultApiTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/api/DefaultApiTest.java index 2672798d71da..9dbc195b0857 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/api/DefaultApiTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/api/DefaultApiTest.java @@ -14,6 +14,8 @@ package org.openapitools.client.api; import org.openapitools.client.ApiException; +import org.openapitools.client.model.FakeAnyOfWIthSameErasureGet200Response; +import org.openapitools.client.model.FakeOneOfWIthSameErasureGet200Response; import org.openapitools.client.model.FooGetDefaultResponse; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; @@ -31,6 +33,39 @@ public class DefaultApiTest { private final DefaultApi api = new DefaultApi(); + /** + * Test route, this shouldn't cause a compiler error + * + * @throws ApiException if the Api call fails + */ + @Test + public void fakeAnyOfWIthSameErasureGetTest() throws ApiException { + FakeAnyOfWIthSameErasureGet200Response response = api.fakeAnyOfWIthSameErasureGet(); + // TODO: test validations + } + + /** + * @throws ApiException if the Api call fails + */ + @Test + public void fakeFreeFormQueryParametersGetTest() throws ApiException { + String fixed = null; + Object freeForm = null; + api.fakeFreeFormQueryParametersGet(fixed, freeForm); + // TODO: test validations + } + + /** + * Test route, this shouldn't cause a compiler error + * + * @throws ApiException if the Api call fails + */ + @Test + public void fakeOneOfWIthSameErasureGetTest() throws ApiException { + FakeOneOfWIthSameErasureGet200Response response = api.fakeOneOfWIthSameErasureGet(); + // TODO: test validations + } + /** * @throws ApiException if the Api call fails */ diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/api/FakeApiTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/api/FakeApiTest.java index 9a44aacd233a..d02ae0d2a053 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/api/FakeApiTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/api/FakeApiTest.java @@ -16,10 +16,13 @@ import org.openapitools.client.ApiException; import java.math.BigDecimal; import org.openapitools.client.model.Client; +import org.openapitools.client.model.FakeRefParameterPetIdParameter; import java.io.File; import org.openapitools.client.model.FileSchemaTestClass; +import org.openapitools.client.model.FreeFormObjectTestClass; import org.openapitools.client.model.HealthCheckResult; import java.time.LocalDate; +import org.openapitools.client.model.ModelApiResponse; import java.time.OffsetDateTime; import org.openapitools.client.model.OuterComposite; import org.openapitools.client.model.OuterEnum; @@ -41,6 +44,17 @@ public class FakeApiTest { private final FakeApi api = new FakeApi(); + /** + * Get a free form object or Json string + * + * @throws ApiException if the Api call fails + */ + @Test + public void fakeGetFreeFormObjectGetTest() throws ApiException { + FreeFormObjectTestClass response = api.fakeGetFreeFormObjectGet(); + // TODO: test validations + } + /** * Test serialization of outer boolean types * @@ -89,6 +103,36 @@ public void fakeOuterStringSerializeTest() throws ApiException { // TODO: test validations } + /** + * fake reference parameter + * + * + * + * @throws ApiException if the Api call fails + */ + @Test + public void fakeRefParameterTest() throws ApiException { + FakeRefParameterPetIdParameter petId = null; + api.fakeRefParameter(petId); + // TODO: test validations + } + + /** + * fake reference parameter + * + * + * + * @throws ApiException if the Api call fails + */ + @Test + public void fakeUploadRefRequestBodiesTest() throws ApiException { + Long petId = null; + String additionalMetadata = null; + File _file = null; + ModelApiResponse response = api.fakeUploadRefRequestBodies(petId, additionalMetadata, _file); + // TODO: test validations + } + /** * Array of Enums * diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/api/FakeClassnameTags123ApiTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/api/FakeClassnameTags123ApiTest.java index 3eb19491b9b0..aa1b824dd5a2 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/api/FakeClassnameTags123ApiTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/api/FakeClassnameTags123ApiTest.java @@ -2,23 +2,30 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 - * + * The version of the OpenAPI document: 1.0.0 + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -package org.openapitools.client.api; +package org.openapitools.client.api; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; import org.openapitools.client.ApiException; import org.openapitools.client.model.Client; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; -/** API tests for FakeClassnameTags123Api */ +/** + * API tests for FakeClassnameTags123Api + */ @Disabled public class FakeClassnameTags123ApiTest { @@ -27,15 +34,15 @@ public class FakeClassnameTags123ApiTest { /** * To test class name in snake case * - *

To test class name in snake case + * To test class name in snake case * * @throws ApiException if the Api call fails */ @Test public void testClassnameTest() throws ApiException { - Client body = null; - Client response = api.testClassname(body); - + Client client = null; + Client response = api.testClassname(client); // TODO: test validations } + } diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/api/StoreApiTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/api/StoreApiTest.java index b9c5785e5ca3..98354ba10c08 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/api/StoreApiTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/api/StoreApiTest.java @@ -2,24 +2,30 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 - * + * The version of the OpenAPI document: 1.0.0 + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -package org.openapitools.client.api; +package org.openapitools.client.api; -import java.util.Map; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; import org.openapitools.client.ApiException; import org.openapitools.client.model.Order; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; -/** API tests for StoreApi */ +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for StoreApi + */ @Disabled public class StoreApiTest { @@ -28,8 +34,7 @@ public class StoreApiTest { /** * Delete purchase order by ID * - *

For valid response try integer IDs with value < 1000. Anything above 1000 or - * nonintegers will generate API errors + * For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors * * @throws ApiException if the Api call fails */ @@ -37,29 +42,26 @@ public class StoreApiTest { public void deleteOrderTest() throws ApiException { String orderId = null; api.deleteOrder(orderId); - // TODO: test validations } /** * Returns pet inventories by status * - *

Returns a map of status codes to quantities + * Returns a map of status codes to quantities * * @throws ApiException if the Api call fails */ @Test public void getInventoryTest() throws ApiException { Map response = api.getInventory(); - // TODO: test validations } /** * Find purchase order by ID * - *

For valid response try integer IDs with value <= 5 or > 10. Other values will - * generated exceptions + * For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions * * @throws ApiException if the Api call fails */ @@ -67,20 +69,21 @@ public void getInventoryTest() throws ApiException { public void getOrderByIdTest() throws ApiException { Long orderId = null; Order response = api.getOrderById(orderId); - // TODO: test validations } /** * Place an order for a pet * + * + * * @throws ApiException if the Api call fails */ @Test public void placeOrderTest() throws ApiException { - Order body = null; - Order response = api.placeOrder(body); - + Order order = null; + Order response = api.placeOrder(order); // TODO: test validations } + } diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/api/UserApiTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/api/UserApiTest.java index 50a958f2fd01..aa9aff49b4df 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/api/UserApiTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/api/UserApiTest.java @@ -2,24 +2,31 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 - * + * The version of the OpenAPI document: 1.0.0 + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -package org.openapitools.client.api; +package org.openapitools.client.api; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; import org.openapitools.client.ApiException; +import java.time.OffsetDateTime; import org.openapitools.client.model.User; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; -/** API tests for UserApi */ +/** + * API tests for UserApi + */ @Disabled public class UserApiTest { @@ -28,48 +35,49 @@ public class UserApiTest { /** * Create user * - *

This can only be done by the logged in user. + * This can only be done by the logged in user. * * @throws ApiException if the Api call fails */ @Test public void createUserTest() throws ApiException { - User body = null; - api.createUser(body); - + User user = null; + api.createUser(user); // TODO: test validations } /** * Creates list of users with given input array * + * + * * @throws ApiException if the Api call fails */ @Test public void createUsersWithArrayInputTest() throws ApiException { - List body = null; - api.createUsersWithArrayInput(body); - + List user = null; + api.createUsersWithArrayInput(user); // TODO: test validations } /** * Creates list of users with given input array * + * + * * @throws ApiException if the Api call fails */ @Test public void createUsersWithListInputTest() throws ApiException { - List body = null; - api.createUsersWithListInput(body); - + List user = null; + api.createUsersWithListInput(user); // TODO: test validations } /** * Delete user * - *

This can only be done by the logged in user. + * This can only be done by the logged in user. * * @throws ApiException if the Api call fails */ @@ -77,26 +85,28 @@ public void createUsersWithListInputTest() throws ApiException { public void deleteUserTest() throws ApiException { String username = null; api.deleteUser(username); - // TODO: test validations } /** * Get user by user name * + * + * * @throws ApiException if the Api call fails */ @Test public void getUserByNameTest() throws ApiException { String username = null; User response = api.getUserByName(username); - // TODO: test validations } /** * Logs user into the system * + * + * * @throws ApiException if the Api call fails */ @Test @@ -104,35 +114,35 @@ public void loginUserTest() throws ApiException { String username = null; String password = null; String response = api.loginUser(username, password); - // TODO: test validations } /** * Logs out current logged in user session * + * + * * @throws ApiException if the Api call fails */ @Test public void logoutUserTest() throws ApiException { api.logoutUser(); - // TODO: test validations } /** * Updated user * - *

This can only be done by the logged in user. + * This can only be done by the logged in user. * * @throws ApiException if the Api call fails */ @Test public void updateUserTest() throws ApiException { String username = null; - User body = null; - api.updateUser(username, body); - + User user = null; + api.updateUser(username, user); // TODO: test validations } + } diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/AdditionalPropertiesClassTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/AdditionalPropertiesClassTest.java index 074e6add3cc7..4d17345a18e7 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/AdditionalPropertiesClassTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/AdditionalPropertiesClassTest.java @@ -19,13 +19,13 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.util.Arrays; import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for AdditionalPropertiesClass */ diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/AllOfModelArrayAnyOfTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/AllOfModelArrayAnyOfTest.java index 15cde8b947b5..b34067d86460 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/AllOfModelArrayAnyOfTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/AllOfModelArrayAnyOfTest.java @@ -20,6 +20,7 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; import java.util.Arrays; +import org.openapitools.client.model.AllOfModelArrayAnyOfAllOfAttributes; import org.openapitools.client.model.AllOfModelArrayAnyOfAllOfLinkListColumn1; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; @@ -62,4 +63,12 @@ public void linkListColumn1Test() { // TODO: test linkListColumn1 } + /** + * Test the property 'attributes' + */ + @Test + public void attributesTest() { + // TODO: test attributes + } + } diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/AnimalTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/AnimalTest.java index cc4678583018..f30075833858 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/AnimalTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/AnimalTest.java @@ -19,12 +19,10 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; -import org.openapitools.client.model.Cat; -import org.openapitools.client.model.Dog; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Animal */ diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/AppleReqTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/AppleReqTest.java index 772c2ac24bf3..ab1caf49d1bb 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/AppleReqTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/AppleReqTest.java @@ -19,10 +19,10 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for AppleReq */ diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/AppleTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/AppleTest.java index 1b9fd1706d46..0cde246f3dd8 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/AppleTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/AppleTest.java @@ -19,10 +19,10 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Apple */ diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/ArrayOfInlineAllOfArrayAllofDogPropertyInnerTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/ArrayOfInlineAllOfArrayAllofDogPropertyInnerTest.java index 15817f98e222..0be94bcc3466 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/ArrayOfInlineAllOfArrayAllofDogPropertyInnerTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/ArrayOfInlineAllOfArrayAllofDogPropertyInnerTest.java @@ -19,10 +19,10 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for ArrayOfInlineAllOfArrayAllofDogPropertyInner */ diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/ArrayOfInlineAllOfTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/ArrayOfInlineAllOfTest.java index c887d6b4bc39..385ead61ffe5 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/ArrayOfInlineAllOfTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/ArrayOfInlineAllOfTest.java @@ -20,12 +20,12 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.ArrayOfInlineAllOfArrayAllofDogPropertyInner; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for ArrayOfInlineAllOf */ diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/ArrayOfNumberOnlyTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/ArrayOfNumberOnlyTest.java index 8eb0bf5acd59..7121b15da89f 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/ArrayOfNumberOnlyTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/ArrayOfNumberOnlyTest.java @@ -21,11 +21,11 @@ import java.io.IOException; import java.math.BigDecimal; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for ArrayOfNumberOnly */ diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/ArrayTestTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/ArrayTestTest.java index 63a98fbeff6d..da72462ec73d 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/ArrayTestTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/ArrayTestTest.java @@ -20,12 +20,12 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.ReadOnlyFirst; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for ArrayTest */ diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/BananaReqTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/BananaReqTest.java index 30568207995f..cf02d90b8c2c 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/BananaReqTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/BananaReqTest.java @@ -20,10 +20,10 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; import java.math.BigDecimal; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for BananaReq */ diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/BananaTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/BananaTest.java index 10f407730718..889087a653d4 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/BananaTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/BananaTest.java @@ -20,10 +20,10 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; import java.math.BigDecimal; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Banana */ diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/BasquePigTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/BasquePigTest.java index 0d9eec8e0f0b..b4e3ebde1882 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/BasquePigTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/BasquePigTest.java @@ -19,10 +19,10 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for BasquePig */ diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/CapitalizationTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/CapitalizationTest.java index 51745e8a2214..c3c69e049af7 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/CapitalizationTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/CapitalizationTest.java @@ -19,10 +19,10 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Capitalization */ diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/CatTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/CatTest.java index 23ab7c6c9045..f635d58df928 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/CatTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/CatTest.java @@ -19,11 +19,12 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.util.Arrays; +import java.util.Map; import org.openapitools.client.model.Animal; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Cat */ diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/CategoryTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/CategoryTest.java index 30e7328449c0..03f1c7ec1d53 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/CategoryTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/CategoryTest.java @@ -19,10 +19,10 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Category */ diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/ClassModelTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/ClassModelTest.java index 0e6956b33269..1666ebc79969 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/ClassModelTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/ClassModelTest.java @@ -19,10 +19,10 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for ClassModel */ diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/ClientTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/ClientTest.java index 22c1e8596146..140143b9573d 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/ClientTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/ClientTest.java @@ -19,10 +19,10 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Client */ diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/ComplexQuadrilateralTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/ComplexQuadrilateralTest.java index c544a3da00cb..ae249afb2a59 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/ComplexQuadrilateralTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/ComplexQuadrilateralTest.java @@ -19,10 +19,10 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for ComplexQuadrilateral */ diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/DanishPigTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/DanishPigTest.java index 2a265236c260..f1a269899574 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/DanishPigTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/DanishPigTest.java @@ -19,10 +19,10 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for DanishPig */ diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/DeprecatedObjectTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/DeprecatedObjectTest.java index bf3e5f6e21da..1b298f1bd159 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/DeprecatedObjectTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/DeprecatedObjectTest.java @@ -19,10 +19,10 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for DeprecatedObject */ diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/DogTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/DogTest.java index 99c282235ce9..844e3e06f5e1 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/DogTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/DogTest.java @@ -19,11 +19,11 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.util.Arrays; import org.openapitools.client.model.Animal; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Dog */ diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/DrawingTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/DrawingTest.java index 8232c871009b..d6834d1985e3 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/DrawingTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/DrawingTest.java @@ -20,6 +20,7 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.Fruit; import org.openapitools.client.model.NullableShape; @@ -29,7 +30,6 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Drawing */ diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/EnumArraysTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/EnumArraysTest.java index 9ca44c3d5e53..02954e6a6839 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/EnumArraysTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/EnumArraysTest.java @@ -20,11 +20,11 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for EnumArrays */ diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/EnumClassTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/EnumClassTest.java index 88c982a61df2..bed8681219e8 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/EnumClassTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/EnumClassTest.java @@ -17,7 +17,6 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for EnumClass */ diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/EnumStringDiscriminatorTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/EnumStringDiscriminatorTest.java index 9d4c8e553954..ef8bbbfac3f2 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/EnumStringDiscriminatorTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/EnumStringDiscriminatorTest.java @@ -19,10 +19,10 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for EnumStringDiscriminator */ diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/EnumTestTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/EnumTestTest.java index 79bd51ad8532..320df9ad3ebf 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/EnumTestTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/EnumTestTest.java @@ -19,6 +19,7 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.util.Arrays; import org.openapitools.client.model.OuterEnum; import org.openapitools.client.model.OuterEnumDefaultValue; import org.openapitools.client.model.OuterEnumInteger; @@ -27,7 +28,6 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for EnumTest */ diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/EquilateralTriangleTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/EquilateralTriangleTest.java index edd7afe14210..181c439fa18c 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/EquilateralTriangleTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/EquilateralTriangleTest.java @@ -19,10 +19,10 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for EquilateralTriangle */ diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/FileSchemaTestClassTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/FileSchemaTestClassTest.java index 75af6c26a264..79eccbf4beef 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/FileSchemaTestClassTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/FileSchemaTestClassTest.java @@ -20,12 +20,12 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.ModelFile; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for FileSchemaTestClass */ diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/FooGetDefaultResponseTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/FooGetDefaultResponseTest.java index 4e9ebc39952c..83fc00cea450 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/FooGetDefaultResponseTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/FooGetDefaultResponseTest.java @@ -19,11 +19,11 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.util.Arrays; import org.openapitools.client.model.Foo; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for FooGetDefaultResponse */ diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/FooTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/FooTest.java index 562b545ffb65..8dd27992bc1c 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/FooTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/FooTest.java @@ -19,10 +19,10 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Foo */ diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/FormatTestTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/FormatTestTest.java index 9e091ac1614d..e2b6ed61d88b 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/FormatTestTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/FormatTestTest.java @@ -23,11 +23,11 @@ import java.math.BigDecimal; import java.time.LocalDate; import java.time.OffsetDateTime; +import java.util.Arrays; import java.util.UUID; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for FormatTest */ diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/FruitReqTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/FruitReqTest.java index 95ea123b1399..d4bdb5f312ff 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/FruitReqTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/FruitReqTest.java @@ -20,12 +20,12 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; import java.math.BigDecimal; +import java.util.Arrays; import org.openapitools.client.model.AppleReq; import org.openapitools.client.model.BananaReq; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for FruitReq */ diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/FruitTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/FruitTest.java index bd7cd5827a4b..bc4e5e54130d 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/FruitTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/FruitTest.java @@ -20,12 +20,12 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; import java.math.BigDecimal; +import java.util.Arrays; import org.openapitools.client.model.Apple; import org.openapitools.client.model.Banana; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Fruit */ diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/GmFruitTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/GmFruitTest.java index 03b9a54d490a..68c8179498de 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/GmFruitTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/GmFruitTest.java @@ -20,12 +20,12 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; import java.math.BigDecimal; +import java.util.Arrays; import org.openapitools.client.model.Apple; import org.openapitools.client.model.Banana; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for GmFruit */ diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/GrandparentAnimalTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/GrandparentAnimalTest.java index dccfda8c772d..8247ad12829b 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/GrandparentAnimalTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/GrandparentAnimalTest.java @@ -19,11 +19,10 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; -import org.openapitools.client.model.ParentPet; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for GrandparentAnimal */ diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/HasOnlyReadOnlyTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/HasOnlyReadOnlyTest.java index 12879ebf3951..f63bf66b1775 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/HasOnlyReadOnlyTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/HasOnlyReadOnlyTest.java @@ -19,10 +19,10 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for HasOnlyReadOnly */ diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/HealthCheckResultTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/HealthCheckResultTest.java index c424fb717e8e..a6e06e3dbd8c 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/HealthCheckResultTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/HealthCheckResultTest.java @@ -19,11 +19,11 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.util.Arrays; import org.openapitools.jackson.nullable.JsonNullable; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for HealthCheckResult */ diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/IsoscelesTriangleTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/IsoscelesTriangleTest.java index b45919dadadd..728d1af34f26 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/IsoscelesTriangleTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/IsoscelesTriangleTest.java @@ -19,10 +19,10 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for IsoscelesTriangle */ diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/MammalTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/MammalTest.java index a2682988c72e..af5250405311 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/MammalTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/MammalTest.java @@ -19,13 +19,13 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.util.Arrays; import org.openapitools.client.model.Pig; import org.openapitools.client.model.Whale; import org.openapitools.client.model.Zebra; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Mammal */ diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/MapTestTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/MapTestTest.java index f2515c398b94..0587a961b146 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/MapTestTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/MapTestTest.java @@ -19,12 +19,12 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.util.Arrays; import java.util.HashMap; import java.util.Map; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for MapTest */ diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClassTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClassTest.java index 03df28593f69..1cc69bedcd83 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClassTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClassTest.java @@ -20,6 +20,7 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; import java.time.OffsetDateTime; +import java.util.Arrays; import java.util.HashMap; import java.util.Map; import java.util.UUID; @@ -27,7 +28,6 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for MixedPropertiesAndAdditionalPropertiesClass */ diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/Model200ResponseTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/Model200ResponseTest.java index aa3d6381861b..01b44a53b4fa 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/Model200ResponseTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/Model200ResponseTest.java @@ -19,10 +19,10 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Model200Response */ diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java index 3f61010629ae..9480c9ee0ff7 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java @@ -19,10 +19,10 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for ModelApiResponse */ diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/ModelFileTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/ModelFileTest.java index 5e868346f88d..a84242272474 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/ModelFileTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/ModelFileTest.java @@ -19,10 +19,10 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for ModelFile */ diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/ModelListTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/ModelListTest.java index 8ec190bf5446..ea5a55185989 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/ModelListTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/ModelListTest.java @@ -19,10 +19,10 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for ModelList */ diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/ModelReturnTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/ModelReturnTest.java index dae92f89a6c4..10c7841ba3c1 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/ModelReturnTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/ModelReturnTest.java @@ -19,10 +19,10 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for ModelReturn */ diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/NameTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/NameTest.java index 7086457d5cf7..52eae7974bc1 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/NameTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/NameTest.java @@ -19,10 +19,10 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Name */ diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/NewPetTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/NewPetTest.java index 60bf0e74410b..dc4188473fd2 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/NewPetTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/NewPetTest.java @@ -50,6 +50,22 @@ public void idTest() { // TODO: test id } + /** + * Test the property 'categoryRefToInlineAllofString' + */ + @Test + public void categoryRefToInlineAllofStringTest() { + // TODO: test categoryRefToInlineAllofString + } + + /** + * Test the property 'categoryInlineAllofString' + */ + @Test + public void categoryInlineAllofStringTest() { + // TODO: test categoryInlineAllofString + } + /** * Test the property 'categoryInlineAllof' */ @@ -66,6 +82,22 @@ public void categoryAllOfRefTest() { // TODO: test categoryAllOfRef } + /** + * Test the property 'categoryAllOfRefDescription' + */ + @Test + public void categoryAllOfRefDescriptionTest() { + // TODO: test categoryAllOfRefDescription + } + + /** + * Test the property 'categoryAllOfRefDescriptionReadonly' + */ + @Test + public void categoryAllOfRefDescriptionReadonlyTest() { + // TODO: test categoryAllOfRefDescriptionReadonly + } + /** * Test the property 'name' */ diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/NullableClassTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/NullableClassTest.java index 1f72849e9f2e..0a0595ca0e65 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/NullableClassTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/NullableClassTest.java @@ -23,6 +23,7 @@ import java.time.LocalDate; import java.time.OffsetDateTime; import java.util.ArrayList; +import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; @@ -30,7 +31,6 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for NullableClass */ diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/NullableShapeTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/NullableShapeTest.java index 0026a5188e53..dbc420fae72d 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/NullableShapeTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/NullableShapeTest.java @@ -19,12 +19,12 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.util.Arrays; import org.openapitools.client.model.Quadrilateral; import org.openapitools.client.model.Triangle; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for NullableShape */ diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/NumberOnlyTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/NumberOnlyTest.java index b01e135a260c..774200c9f6bc 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/NumberOnlyTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/NumberOnlyTest.java @@ -20,10 +20,10 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; import java.math.BigDecimal; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for NumberOnly */ diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/ObjectWithDeprecatedFieldsTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/ObjectWithDeprecatedFieldsTest.java index 0f59cf5baec5..452495e83d31 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/ObjectWithDeprecatedFieldsTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/ObjectWithDeprecatedFieldsTest.java @@ -21,12 +21,12 @@ import java.io.IOException; import java.math.BigDecimal; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.DeprecatedObject; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for ObjectWithDeprecatedFields */ diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/OrderTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/OrderTest.java index 9dff581d403e..adcfde4a33d0 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/OrderTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/OrderTest.java @@ -20,10 +20,10 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; import java.time.OffsetDateTime; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Order */ diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/OuterCompositeTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/OuterCompositeTest.java index 3b6aa4c90338..794328118065 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/OuterCompositeTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/OuterCompositeTest.java @@ -20,10 +20,10 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; import java.math.BigDecimal; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for OuterComposite */ diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/OuterEnumDefaultValueTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/OuterEnumDefaultValueTest.java index 57ed09918adc..6b324784e1d6 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/OuterEnumDefaultValueTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/OuterEnumDefaultValueTest.java @@ -17,7 +17,6 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for OuterEnumDefaultValue */ diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/OuterEnumIntegerDefaultValueTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/OuterEnumIntegerDefaultValueTest.java index 70cae81500e3..ffb20a97973b 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/OuterEnumIntegerDefaultValueTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/OuterEnumIntegerDefaultValueTest.java @@ -17,7 +17,6 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for OuterEnumIntegerDefaultValue */ diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/OuterEnumIntegerTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/OuterEnumIntegerTest.java index fc666e9da3bb..be0665bb740e 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/OuterEnumIntegerTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/OuterEnumIntegerTest.java @@ -17,7 +17,6 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for OuterEnumInteger */ diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/OuterEnumTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/OuterEnumTest.java index 61cb88bb3dba..8ab11b65cbde 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/OuterEnumTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/OuterEnumTest.java @@ -17,7 +17,6 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for OuterEnum */ diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/ParentPetTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/ParentPetTest.java index 02011765f760..226366f49666 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/ParentPetTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/ParentPetTest.java @@ -19,11 +19,11 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.util.Arrays; import org.openapitools.client.model.GrandparentAnimal; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for ParentPet */ diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/PetRefTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/PetRefTest.java index cbad73a0cdec..a47d91415890 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/PetRefTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/PetRefTest.java @@ -19,7 +19,11 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.util.ArrayList; import java.util.Arrays; +import java.util.List; +import org.openapitools.client.model.Category; +import org.openapitools.client.model.Tag; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; @@ -37,6 +41,46 @@ public void testPetRef() { // TODO: test PetRef } + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'category' + */ + @Test + public void categoryTest() { + // TODO: test category + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'photoUrls' + */ + @Test + public void photoUrlsTest() { + // TODO: test photoUrls + } + + /** + * Test the property 'tags' + */ + @Test + public void tagsTest() { + // TODO: test tags + } + /** * Test the property 'status' */ diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/PetWithRequiredTagsTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/PetWithRequiredTagsTest.java index e511e57ccd11..a338a337dc6d 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/PetWithRequiredTagsTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/PetWithRequiredTagsTest.java @@ -20,13 +20,13 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.Category; import org.openapitools.client.model.Tag; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for PetWithRequiredTags */ diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/PigTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/PigTest.java index c9682283bf91..43341a064965 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/PigTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/PigTest.java @@ -19,12 +19,12 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.util.Arrays; import org.openapitools.client.model.BasquePig; import org.openapitools.client.model.DanishPig; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Pig */ diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/QuadrilateralInterfaceTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/QuadrilateralInterfaceTest.java index ef395cadb635..09636aa063b8 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/QuadrilateralInterfaceTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/QuadrilateralInterfaceTest.java @@ -19,10 +19,10 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for QuadrilateralInterface */ diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/QuadrilateralTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/QuadrilateralTest.java index ff4674d4cd38..9615c3cddbee 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/QuadrilateralTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/QuadrilateralTest.java @@ -19,12 +19,12 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.util.Arrays; import org.openapitools.client.model.ComplexQuadrilateral; import org.openapitools.client.model.SimpleQuadrilateral; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Quadrilateral */ diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/ReadOnlyFirstTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/ReadOnlyFirstTest.java index 28bbe600c7f3..c4b3c2a8d09d 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/ReadOnlyFirstTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/ReadOnlyFirstTest.java @@ -19,10 +19,10 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for ReadOnlyFirst */ diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/ScaleneTriangleTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/ScaleneTriangleTest.java index 38716e473983..eaa8c5949fb2 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/ScaleneTriangleTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/ScaleneTriangleTest.java @@ -19,10 +19,10 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for ScaleneTriangle */ diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/ShapeInterfaceTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/ShapeInterfaceTest.java index bd20c12251af..5ca1df738506 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/ShapeInterfaceTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/ShapeInterfaceTest.java @@ -19,10 +19,10 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for ShapeInterface */ diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/ShapeOrNullTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/ShapeOrNullTest.java index 0164b509cfd8..c6897d03888f 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/ShapeOrNullTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/ShapeOrNullTest.java @@ -19,12 +19,12 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.util.Arrays; import org.openapitools.client.model.Quadrilateral; import org.openapitools.client.model.Triangle; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for ShapeOrNull */ diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/ShapeTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/ShapeTest.java index 3343750c59c1..90dcd3533662 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/ShapeTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/ShapeTest.java @@ -19,12 +19,12 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.util.Arrays; import org.openapitools.client.model.Quadrilateral; import org.openapitools.client.model.Triangle; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Shape */ diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/SimpleQuadrilateralTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/SimpleQuadrilateralTest.java index b794d1cf052c..4479450f2a90 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/SimpleQuadrilateralTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/SimpleQuadrilateralTest.java @@ -19,10 +19,10 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for SimpleQuadrilateral */ diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/SpecialModelNameTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/SpecialModelNameTest.java index a61cb4663f26..49c1845b64ca 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/SpecialModelNameTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/SpecialModelNameTest.java @@ -19,10 +19,10 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for SpecialModelName */ diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/TagTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/TagTest.java index 4642d1e931d2..6f38d0223841 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/TagTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/TagTest.java @@ -19,10 +19,10 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Tag */ diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/TriangleInterfaceTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/TriangleInterfaceTest.java index 832f887bcf92..51c68d94db47 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/TriangleInterfaceTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/TriangleInterfaceTest.java @@ -19,10 +19,10 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for TriangleInterface */ diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/TriangleTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/TriangleTest.java index 26267f88100a..92acf4e566cb 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/TriangleTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/TriangleTest.java @@ -19,13 +19,13 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.util.Arrays; import org.openapitools.client.model.EquilateralTriangle; import org.openapitools.client.model.IsoscelesTriangle; import org.openapitools.client.model.ScaleneTriangle; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Triangle */ diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/UserTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/UserTest.java index 225980e83662..eea5bbb3866d 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/UserTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/UserTest.java @@ -19,11 +19,11 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.util.Arrays; import org.openapitools.jackson.nullable.JsonNullable; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for User */ diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/ValueTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/ValueTest.java index 2d375187d814..69a85d2116cc 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/ValueTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/ValueTest.java @@ -13,6 +13,7 @@ package org.openapitools.client.model; +import java.util.List; import org.openapitools.client.model.Scalar; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/WhaleTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/WhaleTest.java index 5ef53c4ee1c9..97bcae4987b4 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/WhaleTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/WhaleTest.java @@ -19,10 +19,10 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Whale */ diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/ZebraTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/ZebraTest.java index a893fca3fe31..73aa9b2b4e7a 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/ZebraTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/ZebraTest.java @@ -19,10 +19,10 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.util.Arrays; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; - /** * Model tests for Zebra */ diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java index f17f97c4def1..9960e0bec21f 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java @@ -14,8 +14,8 @@ package org.openapitools.client.api; import org.openapitools.client.model.Client; -import org.junit.Test; -import org.junit.Ignore; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; import java.util.ArrayList; import java.util.HashMap; @@ -26,7 +26,7 @@ /** * API tests for AnotherFakeApi */ -@Ignore +@Disabled public class AnotherFakeApiTest { private final AnotherFakeApi api = new AnotherFakeApi(); diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/test/java/org/openapitools/client/api/DefaultApiTest.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/test/java/org/openapitools/client/api/DefaultApiTest.java index be7d082abc61..6a143cec05bd 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/test/java/org/openapitools/client/api/DefaultApiTest.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/test/java/org/openapitools/client/api/DefaultApiTest.java @@ -14,8 +14,8 @@ package org.openapitools.client.api; import org.openapitools.client.model.FooGetDefaultResponse; -import org.junit.Test; -import org.junit.Ignore; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; import java.util.ArrayList; import java.util.HashMap; @@ -26,7 +26,7 @@ /** * API tests for DefaultApi */ -@Ignore +@Disabled public class DefaultApiTest { private final DefaultApi api = new DefaultApi(); diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/test/java/org/openapitools/client/api/FakeApiTest.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/test/java/org/openapitools/client/api/FakeApiTest.java index fd55e7b08a6e..232d5f66bdf0 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/test/java/org/openapitools/client/api/FakeApiTest.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/test/java/org/openapitools/client/api/FakeApiTest.java @@ -28,8 +28,8 @@ import org.openapitools.client.model.Pet; import org.openapitools.client.model.TestInlineFreeformAdditionalPropertiesRequest; import org.openapitools.client.model.User; -import org.junit.Test; -import org.junit.Ignore; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; import java.util.ArrayList; import java.util.HashMap; @@ -40,7 +40,7 @@ /** * API tests for FakeApi */ -@Ignore +@Disabled public class FakeApiTest { private final FakeApi api = new FakeApi(); diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/test/java/org/openapitools/client/api/FakeClassnameTags123ApiTest.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/test/java/org/openapitools/client/api/FakeClassnameTags123ApiTest.java index 9b9e18fb2339..b5902a7bafa6 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/test/java/org/openapitools/client/api/FakeClassnameTags123ApiTest.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/test/java/org/openapitools/client/api/FakeClassnameTags123ApiTest.java @@ -14,8 +14,8 @@ package org.openapitools.client.api; import org.openapitools.client.model.Client; -import org.junit.Test; -import org.junit.Ignore; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; import java.util.ArrayList; import java.util.HashMap; @@ -26,7 +26,7 @@ /** * API tests for FakeClassnameTags123Api */ -@Ignore +@Disabled public class FakeClassnameTags123ApiTest { private final FakeClassnameTags123Api api = new FakeClassnameTags123Api(); diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/test/java/org/openapitools/client/api/PetApiTest.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/test/java/org/openapitools/client/api/PetApiTest.java index 005740d942a3..ad5e55343b73 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/test/java/org/openapitools/client/api/PetApiTest.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/test/java/org/openapitools/client/api/PetApiTest.java @@ -17,8 +17,8 @@ import org.openapitools.client.model.ModelApiResponse; import org.openapitools.client.model.Pet; import java.util.Set; -import org.junit.Test; -import org.junit.Ignore; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; import java.util.ArrayList; import java.util.HashMap; @@ -29,7 +29,7 @@ /** * API tests for PetApi */ -@Ignore +@Disabled public class PetApiTest { private final PetApi api = new PetApi(); diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/test/java/org/openapitools/client/api/StoreApiTest.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/test/java/org/openapitools/client/api/StoreApiTest.java index 682b18f0b1d3..323ed1ee3403 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/test/java/org/openapitools/client/api/StoreApiTest.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/test/java/org/openapitools/client/api/StoreApiTest.java @@ -14,8 +14,8 @@ package org.openapitools.client.api; import org.openapitools.client.model.Order; -import org.junit.Test; -import org.junit.Ignore; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; import java.util.ArrayList; import java.util.HashMap; @@ -26,7 +26,7 @@ /** * API tests for StoreApi */ -@Ignore +@Disabled public class StoreApiTest { private final StoreApi api = new StoreApi(); diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/test/java/org/openapitools/client/api/UserApiTest.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/test/java/org/openapitools/client/api/UserApiTest.java index a0323a123514..8d57a6b24a94 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/test/java/org/openapitools/client/api/UserApiTest.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/test/java/org/openapitools/client/api/UserApiTest.java @@ -15,8 +15,8 @@ import java.time.OffsetDateTime; import org.openapitools.client.model.User; -import org.junit.Test; -import org.junit.Ignore; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; import java.util.ArrayList; import java.util.HashMap; @@ -27,7 +27,7 @@ /** * API tests for UserApi */ -@Ignore +@Disabled public class UserApiTest { private final UserApi api = new UserApi(); diff --git a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java index bfa256f1e32b..7fd5c073edf2 100644 --- a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java +++ b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java @@ -15,9 +15,9 @@ import org.openapitools.client.ApiException; import org.openapitools.client.model.Client; -import org.junit.jupiter.api.Test; -import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; import java.time.LocalDate; import java.time.OffsetDateTime; @@ -29,7 +29,7 @@ /** * API tests for AnotherFakeApi */ -public class AnotherFakeApiTest { +class AnotherFakeApiTest { private final AnotherFakeApi api = new AnotherFakeApi(); @@ -42,7 +42,7 @@ public class AnotherFakeApiTest { * if the Api call fails */ @Test - public void call123testSpecialTagsTest() throws ApiException { + void call123testSpecialTagsTest() throws ApiException { // //Client client = null; // diff --git a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/api/DefaultApiTest.java b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/api/DefaultApiTest.java index a4c30f626ba8..961c9d29c28d 100644 --- a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/api/DefaultApiTest.java +++ b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/api/DefaultApiTest.java @@ -15,9 +15,9 @@ import org.openapitools.client.ApiException; import org.openapitools.client.model.FooGetDefaultResponse; -import org.junit.jupiter.api.Test; -import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; import java.time.LocalDate; import java.time.OffsetDateTime; @@ -29,7 +29,7 @@ /** * API tests for DefaultApi */ -public class DefaultApiTest { +class DefaultApiTest { private final DefaultApi api = new DefaultApi(); @@ -38,7 +38,7 @@ public class DefaultApiTest { * if the Api call fails */ @Test - public void fooGetTest() throws ApiException { + void fooGetTest() throws ApiException { // //FooGetDefaultResponse response = api.fooGet(); diff --git a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/api/FakeApiTest.java b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/api/FakeApiTest.java index 168aeba61642..86c6e1ed9a06 100644 --- a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/api/FakeApiTest.java +++ b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/api/FakeApiTest.java @@ -15,6 +15,7 @@ import org.openapitools.client.ApiException; import java.math.BigDecimal; +import org.openapitools.client.model.ChildWithNullable; import org.openapitools.client.model.Client; import org.openapitools.client.model.EnumClass; import org.openapitools.client.model.FakeBigDecimalMap200Response; @@ -26,10 +27,11 @@ import org.openapitools.client.model.OuterComposite; import org.openapitools.client.model.OuterObjectWithEnumProperty; import org.openapitools.client.model.Pet; +import org.openapitools.client.model.TestInlineFreeformAdditionalPropertiesRequest; import org.openapitools.client.model.User; -import org.junit.jupiter.api.Test; -import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; import java.time.LocalDate; import java.time.OffsetDateTime; @@ -41,7 +43,7 @@ /** * API tests for FakeApi */ -public class FakeApiTest { +class FakeApiTest { private final FakeApi api = new FakeApi(); @@ -52,7 +54,7 @@ public class FakeApiTest { * if the Api call fails */ @Test - public void fakeBigDecimalMapTest() throws ApiException { + void fakeBigDecimalMapTest() throws ApiException { // //FakeBigDecimalMap200Response response = api.fakeBigDecimalMap(); @@ -65,7 +67,7 @@ public void fakeBigDecimalMapTest() throws ApiException { * if the Api call fails */ @Test - public void fakeHealthGetTest() throws ApiException { + void fakeHealthGetTest() throws ApiException { // //HealthCheckResult response = api.fakeHealthGet(); @@ -78,7 +80,7 @@ public void fakeHealthGetTest() throws ApiException { * if the Api call fails */ @Test - public void fakeHttpSignatureTestTest() throws ApiException { + void fakeHttpSignatureTestTest() throws ApiException { // //Pet pet = null; // @@ -97,7 +99,7 @@ public void fakeHttpSignatureTestTest() throws ApiException { * if the Api call fails */ @Test - public void fakeOuterBooleanSerializeTest() throws ApiException { + void fakeOuterBooleanSerializeTest() throws ApiException { // //Boolean body = null; // @@ -112,7 +114,7 @@ public void fakeOuterBooleanSerializeTest() throws ApiException { * if the Api call fails */ @Test - public void fakeOuterCompositeSerializeTest() throws ApiException { + void fakeOuterCompositeSerializeTest() throws ApiException { // //OuterComposite outerComposite = null; // @@ -127,7 +129,7 @@ public void fakeOuterCompositeSerializeTest() throws ApiException { * if the Api call fails */ @Test - public void fakeOuterNumberSerializeTest() throws ApiException { + void fakeOuterNumberSerializeTest() throws ApiException { // //BigDecimal body = null; // @@ -142,7 +144,7 @@ public void fakeOuterNumberSerializeTest() throws ApiException { * if the Api call fails */ @Test - public void fakeOuterStringSerializeTest() throws ApiException { + void fakeOuterStringSerializeTest() throws ApiException { // //String body = null; // @@ -157,7 +159,7 @@ public void fakeOuterStringSerializeTest() throws ApiException { * if the Api call fails */ @Test - public void fakePropertyEnumIntegerSerializeTest() throws ApiException { + void fakePropertyEnumIntegerSerializeTest() throws ApiException { // //OuterObjectWithEnumProperty outerObjectWithEnumProperty = null; // @@ -165,6 +167,23 @@ public void fakePropertyEnumIntegerSerializeTest() throws ApiException { // TODO: test validations } + /** + * test referenced additionalProperties + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + void testAdditionalPropertiesReferenceTest() throws ApiException { + // + //Map requestBody = null; + // + //api.testAdditionalPropertiesReference(requestBody); + + // TODO: test validations + } /** * For this test, the body has to be a binary file. * @@ -172,7 +191,7 @@ public void fakePropertyEnumIntegerSerializeTest() throws ApiException { * if the Api call fails */ @Test - public void testBodyWithBinaryTest() throws ApiException { + void testBodyWithBinaryTest() throws ApiException { // //File body = null; // @@ -187,7 +206,7 @@ public void testBodyWithBinaryTest() throws ApiException { * if the Api call fails */ @Test - public void testBodyWithFileSchemaTest() throws ApiException { + void testBodyWithFileSchemaTest() throws ApiException { // //FileSchemaTestClass fileSchemaTestClass = null; // @@ -200,7 +219,7 @@ public void testBodyWithFileSchemaTest() throws ApiException { * if the Api call fails */ @Test - public void testBodyWithQueryParamsTest() throws ApiException { + void testBodyWithQueryParamsTest() throws ApiException { // //String query = null; // @@ -219,7 +238,7 @@ public void testBodyWithQueryParamsTest() throws ApiException { * if the Api call fails */ @Test - public void testClientModelTest() throws ApiException { + void testClientModelTest() throws ApiException { // //Client client = null; // @@ -236,7 +255,7 @@ public void testClientModelTest() throws ApiException { * if the Api call fails */ @Test - public void testEndpointParametersTest() throws ApiException { + void testEndpointParametersTest() throws ApiException { // //BigDecimal number = null; // @@ -279,7 +298,7 @@ public void testEndpointParametersTest() throws ApiException { * if the Api call fails */ @Test - public void testEnumParametersTest() throws ApiException { + void testEnumParametersTest() throws ApiException { // //List enumHeaderStringArray = null; // @@ -312,7 +331,7 @@ public void testEnumParametersTest() throws ApiException { * if the Api call fails */ @Test - public void testGroupParametersTest() throws ApiException { + void testGroupParametersTest() throws ApiException { // //Integer requiredStringGroup = null; // @@ -339,7 +358,7 @@ public void testGroupParametersTest() throws ApiException { * if the Api call fails */ @Test - public void testInlineAdditionalPropertiesTest() throws ApiException { + void testInlineAdditionalPropertiesTest() throws ApiException { // //Map requestBody = null; // @@ -347,6 +366,23 @@ public void testInlineAdditionalPropertiesTest() throws ApiException { // TODO: test validations } + /** + * test inline free-form additionalProperties + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + void testInlineFreeformAdditionalPropertiesTest() throws ApiException { + // + //TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest = null; + // + //api.testInlineFreeformAdditionalProperties(testInlineFreeformAdditionalPropertiesRequest); + + // TODO: test validations + } /** * test json serialization of form data * @@ -356,7 +392,7 @@ public void testInlineAdditionalPropertiesTest() throws ApiException { * if the Api call fails */ @Test - public void testJsonFormDataTest() throws ApiException { + void testJsonFormDataTest() throws ApiException { // //String param = null; // @@ -366,6 +402,23 @@ public void testJsonFormDataTest() throws ApiException { // TODO: test validations } + /** + * test nullable parent property + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + void testNullableTest() throws ApiException { + // + //ChildWithNullable childWithNullable = null; + // + //api.testNullable(childWithNullable); + + // TODO: test validations + } /** * To test the collection format in query parameters * @@ -373,7 +426,7 @@ public void testJsonFormDataTest() throws ApiException { * if the Api call fails */ @Test - public void testQueryParameterCollectionFormatTest() throws ApiException { + void testQueryParameterCollectionFormatTest() throws ApiException { // //List pipe = null; // @@ -391,6 +444,23 @@ public void testQueryParameterCollectionFormatTest() throws ApiException { // //api.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, allowEmpty, language); + // TODO: test validations + } + /** + * test referenced string map + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + void testStringMapReferenceTest() throws ApiException { + // + //Map requestBody = null; + // + //api.testStringMapReference(requestBody); + // TODO: test validations } } diff --git a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/api/FakeClassnameTags123ApiTest.java b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/api/FakeClassnameTags123ApiTest.java index 631ee0453c3c..7c52ad99bb8f 100644 --- a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/api/FakeClassnameTags123ApiTest.java +++ b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/api/FakeClassnameTags123ApiTest.java @@ -15,9 +15,9 @@ import org.openapitools.client.ApiException; import org.openapitools.client.model.Client; -import org.junit.jupiter.api.Test; -import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; import java.time.LocalDate; import java.time.OffsetDateTime; @@ -29,7 +29,7 @@ /** * API tests for FakeClassnameTags123Api */ -public class FakeClassnameTags123ApiTest { +class FakeClassnameTags123ApiTest { private final FakeClassnameTags123Api api = new FakeClassnameTags123Api(); @@ -42,7 +42,7 @@ public class FakeClassnameTags123ApiTest { * if the Api call fails */ @Test - public void testClassnameTest() throws ApiException { + void testClassnameTest() throws ApiException { // //Client client = null; // diff --git a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/api/PetApiTest.java b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/api/PetApiTest.java index 494c91ba315f..2cab5e0d300e 100644 --- a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/api/PetApiTest.java +++ b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/api/PetApiTest.java @@ -14,26 +14,25 @@ package org.openapitools.client.api; import org.openapitools.client.ApiException; +import java.io.File; import org.openapitools.client.model.ModelApiResponse; import org.openapitools.client.model.Pet; -import org.junit.jupiter.api.Test; -import org.junit.jupiter.api.Disabled; +import java.util.Set; import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; -import java.io.File; -import java.io.FileWriter; import java.time.LocalDate; import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; -import java.util.Set; /** * API tests for PetApi */ -public class PetApiTest { +class PetApiTest { private final PetApi api = new PetApi(); @@ -46,7 +45,7 @@ public class PetApiTest { * if the Api call fails */ @Test - public void addPetTest() throws ApiException { + void addPetTest() throws ApiException { // //Pet pet = null; // @@ -63,7 +62,7 @@ public void addPetTest() throws ApiException { * if the Api call fails */ @Test - public void deletePetTest() throws ApiException { + void deletePetTest() throws ApiException { // //Long petId = null; // @@ -82,7 +81,7 @@ public void deletePetTest() throws ApiException { * if the Api call fails */ @Test - public void findPetsByStatusTest() throws ApiException { + void findPetsByStatusTest() throws ApiException { // //List status = null; // @@ -99,7 +98,7 @@ public void findPetsByStatusTest() throws ApiException { * if the Api call fails */ @Test - public void findPetsByTagsTest() throws ApiException { + void findPetsByTagsTest() throws ApiException { // //Set tags = null; // @@ -116,7 +115,7 @@ public void findPetsByTagsTest() throws ApiException { * if the Api call fails */ @Test - public void getPetByIdTest() throws ApiException { + void getPetByIdTest() throws ApiException { // //Long petId = null; // @@ -133,7 +132,7 @@ public void getPetByIdTest() throws ApiException { * if the Api call fails */ @Test - public void updatePetTest() throws ApiException { + void updatePetTest() throws ApiException { // //Pet pet = null; // @@ -150,7 +149,7 @@ public void updatePetTest() throws ApiException { * if the Api call fails */ @Test - public void updatePetWithFormTest() throws ApiException { + void updatePetWithFormTest() throws ApiException { // //Long petId = null; // @@ -171,19 +170,17 @@ public void updatePetWithFormTest() throws ApiException { * if the Api call fails */ @Test - public void uploadFileTest() throws Exception { - Long petId = 1L; - String additionalMetadata = "additoinal data"; - File file = new File("test.txt"); - if(!file.exists()){ - file.createNewFile(); - } - FileWriter fw = new FileWriter(file); - fw.write("testing only"); - fw.close(); - file.deleteOnExit(); - ModelApiResponse response = api.uploadFile(petId, additionalMetadata, file); - Assertions.assertEquals((long)response.getCode(), 200); + void uploadFileTest() throws ApiException { + // + //Long petId = null; + // + //String additionalMetadata = null; + // + //File _file = null; + // + //ModelApiResponse response = api.uploadFile(petId, additionalMetadata, _file); + + // TODO: test validations } /** * uploads an image (required) @@ -194,7 +191,7 @@ public void uploadFileTest() throws Exception { * if the Api call fails */ @Test - public void uploadFileWithRequiredFileTest() throws ApiException { + void uploadFileWithRequiredFileTest() throws ApiException { // //Long petId = null; // diff --git a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/api/StoreApiTest.java b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/api/StoreApiTest.java index 049b5387a8ee..68fa3939e5a3 100644 --- a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/api/StoreApiTest.java +++ b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/api/StoreApiTest.java @@ -15,9 +15,9 @@ import org.openapitools.client.ApiException; import org.openapitools.client.model.Order; -import org.junit.jupiter.api.Test; -import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; import java.time.LocalDate; import java.time.OffsetDateTime; @@ -29,7 +29,7 @@ /** * API tests for StoreApi */ -public class StoreApiTest { +class StoreApiTest { private final StoreApi api = new StoreApi(); @@ -42,7 +42,7 @@ public class StoreApiTest { * if the Api call fails */ @Test - public void deleteOrderTest() throws ApiException { + void deleteOrderTest() throws ApiException { // //String orderId = null; // @@ -59,7 +59,7 @@ public void deleteOrderTest() throws ApiException { * if the Api call fails */ @Test - public void getInventoryTest() throws ApiException { + void getInventoryTest() throws ApiException { // //Map response = api.getInventory(); @@ -74,7 +74,7 @@ public void getInventoryTest() throws ApiException { * if the Api call fails */ @Test - public void getOrderByIdTest() throws ApiException { + void getOrderByIdTest() throws ApiException { // //Long orderId = null; // @@ -91,7 +91,7 @@ public void getOrderByIdTest() throws ApiException { * if the Api call fails */ @Test - public void placeOrderTest() throws ApiException { + void placeOrderTest() throws ApiException { // //Order order = null; // diff --git a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/api/UserApiTest.java b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/api/UserApiTest.java index f4a9f3878228..d4da5c1c0d6e 100644 --- a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/api/UserApiTest.java +++ b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/api/UserApiTest.java @@ -16,9 +16,9 @@ import org.openapitools.client.ApiException; import java.time.OffsetDateTime; import org.openapitools.client.model.User; -import org.junit.jupiter.api.Test; -import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; import java.time.LocalDate; import java.time.OffsetDateTime; @@ -30,7 +30,7 @@ /** * API tests for UserApi */ -public class UserApiTest { +class UserApiTest { private final UserApi api = new UserApi(); @@ -43,7 +43,7 @@ public class UserApiTest { * if the Api call fails */ @Test - public void createUserTest() throws ApiException { + void createUserTest() throws ApiException { // //User user = null; // @@ -60,7 +60,7 @@ public void createUserTest() throws ApiException { * if the Api call fails */ @Test - public void createUsersWithArrayInputTest() throws ApiException { + void createUsersWithArrayInputTest() throws ApiException { // //List user = null; // @@ -77,7 +77,7 @@ public void createUsersWithArrayInputTest() throws ApiException { * if the Api call fails */ @Test - public void createUsersWithListInputTest() throws ApiException { + void createUsersWithListInputTest() throws ApiException { // //List user = null; // @@ -94,7 +94,7 @@ public void createUsersWithListInputTest() throws ApiException { * if the Api call fails */ @Test - public void deleteUserTest() throws ApiException { + void deleteUserTest() throws ApiException { // //String username = null; // @@ -111,7 +111,7 @@ public void deleteUserTest() throws ApiException { * if the Api call fails */ @Test - public void getUserByNameTest() throws ApiException { + void getUserByNameTest() throws ApiException { // //String username = null; // @@ -128,7 +128,7 @@ public void getUserByNameTest() throws ApiException { * if the Api call fails */ @Test - public void loginUserTest() throws ApiException { + void loginUserTest() throws ApiException { // //String username = null; // @@ -147,7 +147,7 @@ public void loginUserTest() throws ApiException { * if the Api call fails */ @Test - public void logoutUserTest() throws ApiException { + void logoutUserTest() throws ApiException { // //api.logoutUser(); @@ -162,7 +162,7 @@ public void logoutUserTest() throws ApiException { * if the Api call fails */ @Test - public void updateUserTest() throws ApiException { + void updateUserTest() throws ApiException { // //String username = null; // diff --git a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/AdditionalPropertiesClassTest.java b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/AdditionalPropertiesClassTest.java index 787d688e130c..6bdecfe07c92 100644 --- a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/AdditionalPropertiesClassTest.java +++ b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/AdditionalPropertiesClassTest.java @@ -27,14 +27,14 @@ /** * Model tests for AdditionalPropertiesClass */ -public class AdditionalPropertiesClassTest { +class AdditionalPropertiesClassTest { private final AdditionalPropertiesClass model = new AdditionalPropertiesClass(); /** * Model tests for AdditionalPropertiesClass */ @Test - public void testAdditionalPropertiesClass() { + void testAdditionalPropertiesClass() { // TODO: test AdditionalPropertiesClass } @@ -42,7 +42,7 @@ public void testAdditionalPropertiesClass() { * Test the property 'mapProperty' */ @Test - public void mapPropertyTest() { + void mapPropertyTest() { // TODO: test mapProperty } @@ -50,7 +50,7 @@ public void mapPropertyTest() { * Test the property 'mapOfMapProperty' */ @Test - public void mapOfMapPropertyTest() { + void mapOfMapPropertyTest() { // TODO: test mapOfMapProperty } diff --git a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/AllOfWithSingleRefTest.java b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/AllOfWithSingleRefTest.java index 3f04e91bf130..f4b06d323d63 100644 --- a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/AllOfWithSingleRefTest.java +++ b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/AllOfWithSingleRefTest.java @@ -26,14 +26,14 @@ /** * Model tests for AllOfWithSingleRef */ -public class AllOfWithSingleRefTest { +class AllOfWithSingleRefTest { private final AllOfWithSingleRef model = new AllOfWithSingleRef(); /** * Model tests for AllOfWithSingleRef */ @Test - public void testAllOfWithSingleRef() { + void testAllOfWithSingleRef() { // TODO: test AllOfWithSingleRef } @@ -41,7 +41,7 @@ public void testAllOfWithSingleRef() { * Test the property 'username' */ @Test - public void usernameTest() { + void usernameTest() { // TODO: test username } @@ -49,7 +49,7 @@ public void usernameTest() { * Test the property 'singleRefType' */ @Test - public void singleRefTypeTest() { + void singleRefTypeTest() { // TODO: test singleRefType } diff --git a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/AnimalTest.java b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/AnimalTest.java index f461e8aee76b..24776d3cb515 100644 --- a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/AnimalTest.java +++ b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/AnimalTest.java @@ -28,14 +28,14 @@ /** * Model tests for Animal */ -public class AnimalTest { +class AnimalTest { private final Animal model = new Animal(); /** * Model tests for Animal */ @Test - public void testAnimal() { + void testAnimal() { // TODO: test Animal } @@ -43,7 +43,7 @@ public void testAnimal() { * Test the property 'className' */ @Test - public void classNameTest() { + void classNameTest() { // TODO: test className } @@ -51,7 +51,7 @@ public void classNameTest() { * Test the property 'color' */ @Test - public void colorTest() { + void colorTest() { // TODO: test color } diff --git a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnlyTest.java b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnlyTest.java index a58ead431986..6bbe877044db 100644 --- a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnlyTest.java +++ b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnlyTest.java @@ -29,14 +29,14 @@ /** * Model tests for ArrayOfArrayOfNumberOnly */ -public class ArrayOfArrayOfNumberOnlyTest { +class ArrayOfArrayOfNumberOnlyTest { private final ArrayOfArrayOfNumberOnly model = new ArrayOfArrayOfNumberOnly(); /** * Model tests for ArrayOfArrayOfNumberOnly */ @Test - public void testArrayOfArrayOfNumberOnly() { + void testArrayOfArrayOfNumberOnly() { // TODO: test ArrayOfArrayOfNumberOnly } @@ -44,7 +44,7 @@ public void testArrayOfArrayOfNumberOnly() { * Test the property 'arrayArrayNumber' */ @Test - public void arrayArrayNumberTest() { + void arrayArrayNumberTest() { // TODO: test arrayArrayNumber } diff --git a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/ArrayOfNumberOnlyTest.java b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/ArrayOfNumberOnlyTest.java index 02ec7e7c56b5..eaf908bb1ab7 100644 --- a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/ArrayOfNumberOnlyTest.java +++ b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/ArrayOfNumberOnlyTest.java @@ -29,14 +29,14 @@ /** * Model tests for ArrayOfNumberOnly */ -public class ArrayOfNumberOnlyTest { +class ArrayOfNumberOnlyTest { private final ArrayOfNumberOnly model = new ArrayOfNumberOnly(); /** * Model tests for ArrayOfNumberOnly */ @Test - public void testArrayOfNumberOnly() { + void testArrayOfNumberOnly() { // TODO: test ArrayOfNumberOnly } @@ -44,7 +44,7 @@ public void testArrayOfNumberOnly() { * Test the property 'arrayNumber' */ @Test - public void arrayNumberTest() { + void arrayNumberTest() { // TODO: test arrayNumber } diff --git a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/ArrayTestTest.java b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/ArrayTestTest.java index ab92570feca3..99c6bcf53601 100644 --- a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/ArrayTestTest.java +++ b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/ArrayTestTest.java @@ -29,14 +29,14 @@ /** * Model tests for ArrayTest */ -public class ArrayTestTest { +class ArrayTestTest { private final ArrayTest model = new ArrayTest(); /** * Model tests for ArrayTest */ @Test - public void testArrayTest() { + void testArrayTest() { // TODO: test ArrayTest } @@ -44,7 +44,7 @@ public void testArrayTest() { * Test the property 'arrayOfString' */ @Test - public void arrayOfStringTest() { + void arrayOfStringTest() { // TODO: test arrayOfString } @@ -52,7 +52,7 @@ public void arrayOfStringTest() { * Test the property 'arrayArrayOfInteger' */ @Test - public void arrayArrayOfIntegerTest() { + void arrayArrayOfIntegerTest() { // TODO: test arrayArrayOfInteger } @@ -60,7 +60,7 @@ public void arrayArrayOfIntegerTest() { * Test the property 'arrayArrayOfModel' */ @Test - public void arrayArrayOfModelTest() { + void arrayArrayOfModelTest() { // TODO: test arrayArrayOfModel } diff --git a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/CapitalizationTest.java b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/CapitalizationTest.java index d6017d040975..a0217acd1f20 100644 --- a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/CapitalizationTest.java +++ b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/CapitalizationTest.java @@ -25,14 +25,14 @@ /** * Model tests for Capitalization */ -public class CapitalizationTest { +class CapitalizationTest { private final Capitalization model = new Capitalization(); /** * Model tests for Capitalization */ @Test - public void testCapitalization() { + void testCapitalization() { // TODO: test Capitalization } @@ -40,7 +40,7 @@ public void testCapitalization() { * Test the property 'smallCamel' */ @Test - public void smallCamelTest() { + void smallCamelTest() { // TODO: test smallCamel } @@ -48,7 +48,7 @@ public void smallCamelTest() { * Test the property 'capitalCamel' */ @Test - public void capitalCamelTest() { + void capitalCamelTest() { // TODO: test capitalCamel } @@ -56,7 +56,7 @@ public void capitalCamelTest() { * Test the property 'smallSnake' */ @Test - public void smallSnakeTest() { + void smallSnakeTest() { // TODO: test smallSnake } @@ -64,7 +64,7 @@ public void smallSnakeTest() { * Test the property 'capitalSnake' */ @Test - public void capitalSnakeTest() { + void capitalSnakeTest() { // TODO: test capitalSnake } @@ -72,7 +72,7 @@ public void capitalSnakeTest() { * Test the property 'scAETHFlowPoints' */ @Test - public void scAETHFlowPointsTest() { + void scAETHFlowPointsTest() { // TODO: test scAETHFlowPoints } @@ -80,7 +80,7 @@ public void scAETHFlowPointsTest() { * Test the property 'ATT_NAME' */ @Test - public void ATT_NAMETest() { + void ATT_NAMETest() { // TODO: test ATT_NAME } diff --git a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/CatTest.java b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/CatTest.java index 5a63409b79dd..1b389a075be0 100644 --- a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/CatTest.java +++ b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/CatTest.java @@ -29,14 +29,14 @@ /** * Model tests for Cat */ -public class CatTest { +class CatTest { private final Cat model = new Cat(); /** * Model tests for Cat */ @Test - public void testCat() { + void testCat() { // TODO: test Cat } @@ -44,7 +44,7 @@ public void testCat() { * Test the property 'className' */ @Test - public void classNameTest() { + void classNameTest() { // TODO: test className } @@ -52,7 +52,7 @@ public void classNameTest() { * Test the property 'color' */ @Test - public void colorTest() { + void colorTest() { // TODO: test color } @@ -60,7 +60,7 @@ public void colorTest() { * Test the property 'declawed' */ @Test - public void declawedTest() { + void declawedTest() { // TODO: test declawed } diff --git a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/CategoryTest.java b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/CategoryTest.java index d4909139f429..22fcbd7f3ccb 100644 --- a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/CategoryTest.java +++ b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/CategoryTest.java @@ -25,14 +25,14 @@ /** * Model tests for Category */ -public class CategoryTest { +class CategoryTest { private final Category model = new Category(); /** * Model tests for Category */ @Test - public void testCategory() { + void testCategory() { // TODO: test Category } @@ -40,7 +40,7 @@ public void testCategory() { * Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } @@ -48,7 +48,7 @@ public void idTest() { * Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } diff --git a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/ChildWithNullableTest.java b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/ChildWithNullableTest.java index a109c6f71758..a89d26497bc3 100644 --- a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/ChildWithNullableTest.java +++ b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/ChildWithNullableTest.java @@ -30,14 +30,14 @@ /** * Model tests for ChildWithNullable */ -public class ChildWithNullableTest { +class ChildWithNullableTest { private final ChildWithNullable model = new ChildWithNullable(); /** * Model tests for ChildWithNullable */ @Test - public void testChildWithNullable() { + void testChildWithNullable() { // TODO: test ChildWithNullable } @@ -45,7 +45,7 @@ public void testChildWithNullable() { * Test the property 'type' */ @Test - public void typeTest() { + void typeTest() { // TODO: test type } @@ -53,7 +53,7 @@ public void typeTest() { * Test the property 'nullableProperty' */ @Test - public void nullablePropertyTest() { + void nullablePropertyTest() { // TODO: test nullableProperty } @@ -61,7 +61,7 @@ public void nullablePropertyTest() { * Test the property 'otherProperty' */ @Test - public void otherPropertyTest() { + void otherPropertyTest() { // TODO: test otherProperty } diff --git a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/ClassModelTest.java b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/ClassModelTest.java index 7213ea0482b6..6ef5c744fbcb 100644 --- a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/ClassModelTest.java +++ b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/ClassModelTest.java @@ -25,14 +25,14 @@ /** * Model tests for ClassModel */ -public class ClassModelTest { +class ClassModelTest { private final ClassModel model = new ClassModel(); /** * Model tests for ClassModel */ @Test - public void testClassModel() { + void testClassModel() { // TODO: test ClassModel } @@ -40,7 +40,7 @@ public void testClassModel() { * Test the property 'propertyClass' */ @Test - public void propertyClassTest() { + void propertyClassTest() { // TODO: test propertyClass } diff --git a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/ClientTest.java b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/ClientTest.java index 94dc977fcb38..8028f11bc2b9 100644 --- a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/ClientTest.java +++ b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/ClientTest.java @@ -25,14 +25,14 @@ /** * Model tests for Client */ -public class ClientTest { +class ClientTest { private final Client model = new Client(); /** * Model tests for Client */ @Test - public void testClient() { + void testClient() { // TODO: test Client } @@ -40,7 +40,7 @@ public void testClient() { * Test the property 'client' */ @Test - public void clientTest() { + void clientTest() { // TODO: test client } diff --git a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/DeprecatedObjectTest.java b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/DeprecatedObjectTest.java index ef13089e92aa..b04c2097b209 100644 --- a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/DeprecatedObjectTest.java +++ b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/DeprecatedObjectTest.java @@ -25,14 +25,14 @@ /** * Model tests for DeprecatedObject */ -public class DeprecatedObjectTest { +class DeprecatedObjectTest { private final DeprecatedObject model = new DeprecatedObject(); /** * Model tests for DeprecatedObject */ @Test - public void testDeprecatedObject() { + void testDeprecatedObject() { // TODO: test DeprecatedObject } @@ -40,7 +40,7 @@ public void testDeprecatedObject() { * Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } diff --git a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/DogTest.java b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/DogTest.java index 8e8013c6108a..b2a12ab4c5e0 100644 --- a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/DogTest.java +++ b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/DogTest.java @@ -29,14 +29,14 @@ /** * Model tests for Dog */ -public class DogTest { +class DogTest { private final Dog model = new Dog(); /** * Model tests for Dog */ @Test - public void testDog() { + void testDog() { // TODO: test Dog } @@ -44,7 +44,7 @@ public void testDog() { * Test the property 'className' */ @Test - public void classNameTest() { + void classNameTest() { // TODO: test className } @@ -52,7 +52,7 @@ public void classNameTest() { * Test the property 'color' */ @Test - public void colorTest() { + void colorTest() { // TODO: test color } @@ -60,7 +60,7 @@ public void colorTest() { * Test the property 'breed' */ @Test - public void breedTest() { + void breedTest() { // TODO: test breed } diff --git a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/EnumArraysTest.java b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/EnumArraysTest.java index 64a0a0adc232..4a755b0d4425 100644 --- a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/EnumArraysTest.java +++ b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/EnumArraysTest.java @@ -28,14 +28,14 @@ /** * Model tests for EnumArrays */ -public class EnumArraysTest { +class EnumArraysTest { private final EnumArrays model = new EnumArrays(); /** * Model tests for EnumArrays */ @Test - public void testEnumArrays() { + void testEnumArrays() { // TODO: test EnumArrays } @@ -43,7 +43,7 @@ public void testEnumArrays() { * Test the property 'justSymbol' */ @Test - public void justSymbolTest() { + void justSymbolTest() { // TODO: test justSymbol } @@ -51,7 +51,7 @@ public void justSymbolTest() { * Test the property 'arrayEnum' */ @Test - public void arrayEnumTest() { + void arrayEnumTest() { // TODO: test arrayEnum } diff --git a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/EnumClassTest.java b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/EnumClassTest.java index ae6973ba6378..48aa1a737fce 100644 --- a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/EnumClassTest.java +++ b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/EnumClassTest.java @@ -20,12 +20,12 @@ /** * Model tests for EnumClass */ -public class EnumClassTest { +class EnumClassTest { /** * Model tests for EnumClass */ @Test - public void testEnumClass() { + void testEnumClass() { // TODO: test EnumClass } diff --git a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/EnumTestTest.java b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/EnumTestTest.java index a737a20f6c97..1e65944cbdc9 100644 --- a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/EnumTestTest.java +++ b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/EnumTestTest.java @@ -33,14 +33,14 @@ /** * Model tests for EnumTest */ -public class EnumTestTest { +class EnumTestTest { private final EnumTest model = new EnumTest(); /** * Model tests for EnumTest */ @Test - public void testEnumTest() { + void testEnumTest() { // TODO: test EnumTest } @@ -48,7 +48,7 @@ public void testEnumTest() { * Test the property 'enumString' */ @Test - public void enumStringTest() { + void enumStringTest() { // TODO: test enumString } @@ -56,7 +56,7 @@ public void enumStringTest() { * Test the property 'enumStringRequired' */ @Test - public void enumStringRequiredTest() { + void enumStringRequiredTest() { // TODO: test enumStringRequired } @@ -64,7 +64,7 @@ public void enumStringRequiredTest() { * Test the property 'enumInteger' */ @Test - public void enumIntegerTest() { + void enumIntegerTest() { // TODO: test enumInteger } @@ -72,7 +72,7 @@ public void enumIntegerTest() { * Test the property 'enumNumber' */ @Test - public void enumNumberTest() { + void enumNumberTest() { // TODO: test enumNumber } @@ -80,7 +80,7 @@ public void enumNumberTest() { * Test the property 'outerEnum' */ @Test - public void outerEnumTest() { + void outerEnumTest() { // TODO: test outerEnum } @@ -88,7 +88,7 @@ public void outerEnumTest() { * Test the property 'outerEnumInteger' */ @Test - public void outerEnumIntegerTest() { + void outerEnumIntegerTest() { // TODO: test outerEnumInteger } @@ -96,7 +96,7 @@ public void outerEnumIntegerTest() { * Test the property 'outerEnumDefaultValue' */ @Test - public void outerEnumDefaultValueTest() { + void outerEnumDefaultValueTest() { // TODO: test outerEnumDefaultValue } @@ -104,7 +104,7 @@ public void outerEnumDefaultValueTest() { * Test the property 'outerEnumIntegerDefaultValue' */ @Test - public void outerEnumIntegerDefaultValueTest() { + void outerEnumIntegerDefaultValueTest() { // TODO: test outerEnumIntegerDefaultValue } diff --git a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/FakeBigDecimalMap200ResponseTest.java b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/FakeBigDecimalMap200ResponseTest.java index 1792f6169d92..3250ad91974c 100644 --- a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/FakeBigDecimalMap200ResponseTest.java +++ b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/FakeBigDecimalMap200ResponseTest.java @@ -28,14 +28,14 @@ /** * Model tests for FakeBigDecimalMap200Response */ -public class FakeBigDecimalMap200ResponseTest { +class FakeBigDecimalMap200ResponseTest { private final FakeBigDecimalMap200Response model = new FakeBigDecimalMap200Response(); /** * Model tests for FakeBigDecimalMap200Response */ @Test - public void testFakeBigDecimalMap200Response() { + void testFakeBigDecimalMap200Response() { // TODO: test FakeBigDecimalMap200Response } @@ -43,7 +43,7 @@ public void testFakeBigDecimalMap200Response() { * Test the property 'someId' */ @Test - public void someIdTest() { + void someIdTest() { // TODO: test someId } @@ -51,7 +51,7 @@ public void someIdTest() { * Test the property 'someMap' */ @Test - public void someMapTest() { + void someMapTest() { // TODO: test someMap } diff --git a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/FileSchemaTestClassTest.java b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/FileSchemaTestClassTest.java index e346751e1b99..0048cb2c7497 100644 --- a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/FileSchemaTestClassTest.java +++ b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/FileSchemaTestClassTest.java @@ -29,14 +29,14 @@ /** * Model tests for FileSchemaTestClass */ -public class FileSchemaTestClassTest { +class FileSchemaTestClassTest { private final FileSchemaTestClass model = new FileSchemaTestClass(); /** * Model tests for FileSchemaTestClass */ @Test - public void testFileSchemaTestClass() { + void testFileSchemaTestClass() { // TODO: test FileSchemaTestClass } @@ -44,7 +44,7 @@ public void testFileSchemaTestClass() { * Test the property '_file' */ @Test - public void _fileTest() { + void _fileTest() { // TODO: test _file } @@ -52,7 +52,7 @@ public void _fileTest() { * Test the property 'files' */ @Test - public void filesTest() { + void filesTest() { // TODO: test files } diff --git a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/FooGetDefaultResponseTest.java b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/FooGetDefaultResponseTest.java index c1db998eb2d2..81bc69c9a7b4 100644 --- a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/FooGetDefaultResponseTest.java +++ b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/FooGetDefaultResponseTest.java @@ -26,14 +26,14 @@ /** * Model tests for FooGetDefaultResponse */ -public class FooGetDefaultResponseTest { +class FooGetDefaultResponseTest { private final FooGetDefaultResponse model = new FooGetDefaultResponse(); /** * Model tests for FooGetDefaultResponse */ @Test - public void testFooGetDefaultResponse() { + void testFooGetDefaultResponse() { // TODO: test FooGetDefaultResponse } @@ -41,7 +41,7 @@ public void testFooGetDefaultResponse() { * Test the property 'string' */ @Test - public void stringTest() { + void stringTest() { // TODO: test string } diff --git a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/FooTest.java b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/FooTest.java index ece58545bfd3..a9e2c8c126e1 100644 --- a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/FooTest.java +++ b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/FooTest.java @@ -25,14 +25,14 @@ /** * Model tests for Foo */ -public class FooTest { +class FooTest { private final Foo model = new Foo(); /** * Model tests for Foo */ @Test - public void testFoo() { + void testFoo() { // TODO: test Foo } @@ -40,7 +40,7 @@ public void testFoo() { * Test the property 'bar' */ @Test - public void barTest() { + void barTest() { // TODO: test bar } diff --git a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/FormatTestTest.java b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/FormatTestTest.java index d5ee3bc731da..38a39e1c0ca1 100644 --- a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/FormatTestTest.java +++ b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/FormatTestTest.java @@ -30,14 +30,14 @@ /** * Model tests for FormatTest */ -public class FormatTestTest { +class FormatTestTest { private final FormatTest model = new FormatTest(); /** * Model tests for FormatTest */ @Test - public void testFormatTest() { + void testFormatTest() { // TODO: test FormatTest } @@ -45,7 +45,7 @@ public void testFormatTest() { * Test the property 'integer' */ @Test - public void integerTest() { + void integerTest() { // TODO: test integer } @@ -53,7 +53,7 @@ public void integerTest() { * Test the property 'int32' */ @Test - public void int32Test() { + void int32Test() { // TODO: test int32 } @@ -61,7 +61,7 @@ public void int32Test() { * Test the property 'int64' */ @Test - public void int64Test() { + void int64Test() { // TODO: test int64 } @@ -69,7 +69,7 @@ public void int64Test() { * Test the property 'number' */ @Test - public void numberTest() { + void numberTest() { // TODO: test number } @@ -77,7 +77,7 @@ public void numberTest() { * Test the property '_float' */ @Test - public void _floatTest() { + void _floatTest() { // TODO: test _float } @@ -85,7 +85,7 @@ public void _floatTest() { * Test the property '_double' */ @Test - public void _doubleTest() { + void _doubleTest() { // TODO: test _double } @@ -93,7 +93,7 @@ public void _doubleTest() { * Test the property 'decimal' */ @Test - public void decimalTest() { + void decimalTest() { // TODO: test decimal } @@ -101,7 +101,7 @@ public void decimalTest() { * Test the property 'string' */ @Test - public void stringTest() { + void stringTest() { // TODO: test string } @@ -109,7 +109,7 @@ public void stringTest() { * Test the property '_byte' */ @Test - public void _byteTest() { + void _byteTest() { // TODO: test _byte } @@ -117,7 +117,7 @@ public void _byteTest() { * Test the property 'binary' */ @Test - public void binaryTest() { + void binaryTest() { // TODO: test binary } @@ -125,7 +125,7 @@ public void binaryTest() { * Test the property 'date' */ @Test - public void dateTest() { + void dateTest() { // TODO: test date } @@ -133,7 +133,7 @@ public void dateTest() { * Test the property 'dateTime' */ @Test - public void dateTimeTest() { + void dateTimeTest() { // TODO: test dateTime } @@ -141,7 +141,7 @@ public void dateTimeTest() { * Test the property 'uuid' */ @Test - public void uuidTest() { + void uuidTest() { // TODO: test uuid } @@ -149,7 +149,7 @@ public void uuidTest() { * Test the property 'password' */ @Test - public void passwordTest() { + void passwordTest() { // TODO: test password } @@ -157,7 +157,7 @@ public void passwordTest() { * Test the property 'patternWithDigits' */ @Test - public void patternWithDigitsTest() { + void patternWithDigitsTest() { // TODO: test patternWithDigits } @@ -165,7 +165,7 @@ public void patternWithDigitsTest() { * Test the property 'patternWithDigitsAndDelimiter' */ @Test - public void patternWithDigitsAndDelimiterTest() { + void patternWithDigitsAndDelimiterTest() { // TODO: test patternWithDigitsAndDelimiter } diff --git a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/HasOnlyReadOnlyTest.java b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/HasOnlyReadOnlyTest.java index b408ad1c4c04..908f0aff6ed7 100644 --- a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/HasOnlyReadOnlyTest.java +++ b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/HasOnlyReadOnlyTest.java @@ -25,14 +25,14 @@ /** * Model tests for HasOnlyReadOnly */ -public class HasOnlyReadOnlyTest { +class HasOnlyReadOnlyTest { private final HasOnlyReadOnly model = new HasOnlyReadOnly(); /** * Model tests for HasOnlyReadOnly */ @Test - public void testHasOnlyReadOnly() { + void testHasOnlyReadOnly() { // TODO: test HasOnlyReadOnly } @@ -40,7 +40,7 @@ public void testHasOnlyReadOnly() { * Test the property 'bar' */ @Test - public void barTest() { + void barTest() { // TODO: test bar } @@ -48,7 +48,7 @@ public void barTest() { * Test the property 'foo' */ @Test - public void fooTest() { + void fooTest() { // TODO: test foo } diff --git a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/HealthCheckResultTest.java b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/HealthCheckResultTest.java index 638820e3bb70..0f45c2fcd5ba 100644 --- a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/HealthCheckResultTest.java +++ b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/HealthCheckResultTest.java @@ -29,14 +29,14 @@ /** * Model tests for HealthCheckResult */ -public class HealthCheckResultTest { +class HealthCheckResultTest { private final HealthCheckResult model = new HealthCheckResult(); /** * Model tests for HealthCheckResult */ @Test - public void testHealthCheckResult() { + void testHealthCheckResult() { // TODO: test HealthCheckResult } @@ -44,7 +44,7 @@ public void testHealthCheckResult() { * Test the property 'nullableMessage' */ @Test - public void nullableMessageTest() { + void nullableMessageTest() { // TODO: test nullableMessage } diff --git a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/MapTestTest.java b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/MapTestTest.java index cbe8b3bfddc4..3752c5ba31fd 100644 --- a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/MapTestTest.java +++ b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/MapTestTest.java @@ -27,14 +27,14 @@ /** * Model tests for MapTest */ -public class MapTestTest { +class MapTestTest { private final MapTest model = new MapTest(); /** * Model tests for MapTest */ @Test - public void testMapTest() { + void testMapTest() { // TODO: test MapTest } @@ -42,7 +42,7 @@ public void testMapTest() { * Test the property 'mapMapOfString' */ @Test - public void mapMapOfStringTest() { + void mapMapOfStringTest() { // TODO: test mapMapOfString } @@ -50,7 +50,7 @@ public void mapMapOfStringTest() { * Test the property 'mapOfEnumString' */ @Test - public void mapOfEnumStringTest() { + void mapOfEnumStringTest() { // TODO: test mapOfEnumString } @@ -58,7 +58,7 @@ public void mapOfEnumStringTest() { * Test the property 'directMap' */ @Test - public void directMapTest() { + void directMapTest() { // TODO: test directMap } @@ -66,7 +66,7 @@ public void directMapTest() { * Test the property 'indirectMap' */ @Test - public void indirectMapTest() { + void indirectMapTest() { // TODO: test indirectMap } diff --git a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClassTest.java b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClassTest.java index 2c9924c2e73b..0f47e193af8d 100644 --- a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClassTest.java +++ b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClassTest.java @@ -30,14 +30,14 @@ /** * Model tests for MixedPropertiesAndAdditionalPropertiesClass */ -public class MixedPropertiesAndAdditionalPropertiesClassTest { +class MixedPropertiesAndAdditionalPropertiesClassTest { private final MixedPropertiesAndAdditionalPropertiesClass model = new MixedPropertiesAndAdditionalPropertiesClass(); /** * Model tests for MixedPropertiesAndAdditionalPropertiesClass */ @Test - public void testMixedPropertiesAndAdditionalPropertiesClass() { + void testMixedPropertiesAndAdditionalPropertiesClass() { // TODO: test MixedPropertiesAndAdditionalPropertiesClass } @@ -45,7 +45,7 @@ public void testMixedPropertiesAndAdditionalPropertiesClass() { * Test the property 'uuid' */ @Test - public void uuidTest() { + void uuidTest() { // TODO: test uuid } @@ -53,7 +53,7 @@ public void uuidTest() { * Test the property 'dateTime' */ @Test - public void dateTimeTest() { + void dateTimeTest() { // TODO: test dateTime } @@ -61,7 +61,7 @@ public void dateTimeTest() { * Test the property 'map' */ @Test - public void mapTest() { + void mapTest() { // TODO: test map } diff --git a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/Model200ResponseTest.java b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/Model200ResponseTest.java index b1bbea4045b1..5743b70142b8 100644 --- a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/Model200ResponseTest.java +++ b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/Model200ResponseTest.java @@ -25,14 +25,14 @@ /** * Model tests for Model200Response */ -public class Model200ResponseTest { +class Model200ResponseTest { private final Model200Response model = new Model200Response(); /** * Model tests for Model200Response */ @Test - public void testModel200Response() { + void testModel200Response() { // TODO: test Model200Response } @@ -40,7 +40,7 @@ public void testModel200Response() { * Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } @@ -48,7 +48,7 @@ public void nameTest() { * Test the property 'propertyClass' */ @Test - public void propertyClassTest() { + void propertyClassTest() { // TODO: test propertyClass } diff --git a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java index 972a351b1295..436e4abd59e3 100644 --- a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java +++ b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java @@ -25,14 +25,14 @@ /** * Model tests for ModelApiResponse */ -public class ModelApiResponseTest { +class ModelApiResponseTest { private final ModelApiResponse model = new ModelApiResponse(); /** * Model tests for ModelApiResponse */ @Test - public void testModelApiResponse() { + void testModelApiResponse() { // TODO: test ModelApiResponse } @@ -40,7 +40,7 @@ public void testModelApiResponse() { * Test the property 'code' */ @Test - public void codeTest() { + void codeTest() { // TODO: test code } @@ -48,7 +48,7 @@ public void codeTest() { * Test the property 'type' */ @Test - public void typeTest() { + void typeTest() { // TODO: test type } @@ -56,7 +56,7 @@ public void typeTest() { * Test the property 'message' */ @Test - public void messageTest() { + void messageTest() { // TODO: test message } diff --git a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/ModelFileTest.java b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/ModelFileTest.java index 97053c1ebd8e..f128d7b9ac2e 100644 --- a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/ModelFileTest.java +++ b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/ModelFileTest.java @@ -25,14 +25,14 @@ /** * Model tests for ModelFile */ -public class ModelFileTest { +class ModelFileTest { private final ModelFile model = new ModelFile(); /** * Model tests for ModelFile */ @Test - public void testModelFile() { + void testModelFile() { // TODO: test ModelFile } @@ -40,7 +40,7 @@ public void testModelFile() { * Test the property 'sourceURI' */ @Test - public void sourceURITest() { + void sourceURITest() { // TODO: test sourceURI } diff --git a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/ModelListTest.java b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/ModelListTest.java index 71a14983d090..92273f48d239 100644 --- a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/ModelListTest.java +++ b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/ModelListTest.java @@ -25,14 +25,14 @@ /** * Model tests for ModelList */ -public class ModelListTest { +class ModelListTest { private final ModelList model = new ModelList(); /** * Model tests for ModelList */ @Test - public void testModelList() { + void testModelList() { // TODO: test ModelList } @@ -40,7 +40,7 @@ public void testModelList() { * Test the property '_123list' */ @Test - public void _123listTest() { + void _123listTest() { // TODO: test _123list } diff --git a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/ModelReturnTest.java b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/ModelReturnTest.java index cad3f081c54a..1c5337654cd4 100644 --- a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/ModelReturnTest.java +++ b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/ModelReturnTest.java @@ -25,14 +25,14 @@ /** * Model tests for ModelReturn */ -public class ModelReturnTest { +class ModelReturnTest { private final ModelReturn model = new ModelReturn(); /** * Model tests for ModelReturn */ @Test - public void testModelReturn() { + void testModelReturn() { // TODO: test ModelReturn } @@ -40,7 +40,7 @@ public void testModelReturn() { * Test the property '_return' */ @Test - public void _returnTest() { + void _returnTest() { // TODO: test _return } diff --git a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/NameTest.java b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/NameTest.java index 9dafc643a8bb..1a6aa18fa20d 100644 --- a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/NameTest.java +++ b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/NameTest.java @@ -25,14 +25,14 @@ /** * Model tests for Name */ -public class NameTest { +class NameTest { private final Name model = new Name(); /** * Model tests for Name */ @Test - public void testName() { + void testName() { // TODO: test Name } @@ -40,7 +40,7 @@ public void testName() { * Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } @@ -48,7 +48,7 @@ public void nameTest() { * Test the property 'snakeCase' */ @Test - public void snakeCaseTest() { + void snakeCaseTest() { // TODO: test snakeCase } @@ -56,7 +56,7 @@ public void snakeCaseTest() { * Test the property 'property' */ @Test - public void propertyTest() { + void propertyTest() { // TODO: test property } @@ -64,7 +64,7 @@ public void propertyTest() { * Test the property '_123number' */ @Test - public void _123numberTest() { + void _123numberTest() { // TODO: test _123number } diff --git a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/NullableClassTest.java b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/NullableClassTest.java index 7d30912d4c86..d960ef76e5c3 100644 --- a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/NullableClassTest.java +++ b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/NullableClassTest.java @@ -37,14 +37,14 @@ /** * Model tests for NullableClass */ -public class NullableClassTest { +class NullableClassTest { private final NullableClass model = new NullableClass(); /** * Model tests for NullableClass */ @Test - public void testNullableClass() { + void testNullableClass() { // TODO: test NullableClass } @@ -52,7 +52,7 @@ public void testNullableClass() { * Test the property 'integerProp' */ @Test - public void integerPropTest() { + void integerPropTest() { // TODO: test integerProp } @@ -60,7 +60,7 @@ public void integerPropTest() { * Test the property 'numberProp' */ @Test - public void numberPropTest() { + void numberPropTest() { // TODO: test numberProp } @@ -68,7 +68,7 @@ public void numberPropTest() { * Test the property 'booleanProp' */ @Test - public void booleanPropTest() { + void booleanPropTest() { // TODO: test booleanProp } @@ -76,7 +76,7 @@ public void booleanPropTest() { * Test the property 'stringProp' */ @Test - public void stringPropTest() { + void stringPropTest() { // TODO: test stringProp } @@ -84,7 +84,7 @@ public void stringPropTest() { * Test the property 'dateProp' */ @Test - public void datePropTest() { + void datePropTest() { // TODO: test dateProp } @@ -92,7 +92,7 @@ public void datePropTest() { * Test the property 'datetimeProp' */ @Test - public void datetimePropTest() { + void datetimePropTest() { // TODO: test datetimeProp } @@ -100,7 +100,7 @@ public void datetimePropTest() { * Test the property 'arrayNullableProp' */ @Test - public void arrayNullablePropTest() { + void arrayNullablePropTest() { // TODO: test arrayNullableProp } @@ -108,7 +108,7 @@ public void arrayNullablePropTest() { * Test the property 'arrayAndItemsNullableProp' */ @Test - public void arrayAndItemsNullablePropTest() { + void arrayAndItemsNullablePropTest() { // TODO: test arrayAndItemsNullableProp } @@ -116,7 +116,7 @@ public void arrayAndItemsNullablePropTest() { * Test the property 'arrayItemsNullable' */ @Test - public void arrayItemsNullableTest() { + void arrayItemsNullableTest() { // TODO: test arrayItemsNullable } @@ -124,7 +124,7 @@ public void arrayItemsNullableTest() { * Test the property 'objectNullableProp' */ @Test - public void objectNullablePropTest() { + void objectNullablePropTest() { // TODO: test objectNullableProp } @@ -132,7 +132,7 @@ public void objectNullablePropTest() { * Test the property 'objectAndItemsNullableProp' */ @Test - public void objectAndItemsNullablePropTest() { + void objectAndItemsNullablePropTest() { // TODO: test objectAndItemsNullableProp } @@ -140,7 +140,7 @@ public void objectAndItemsNullablePropTest() { * Test the property 'objectItemsNullable' */ @Test - public void objectItemsNullableTest() { + void objectItemsNullableTest() { // TODO: test objectItemsNullable } diff --git a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/NumberOnlyTest.java b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/NumberOnlyTest.java index 46d3b1b334d5..8623386a5e95 100644 --- a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/NumberOnlyTest.java +++ b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/NumberOnlyTest.java @@ -26,14 +26,14 @@ /** * Model tests for NumberOnly */ -public class NumberOnlyTest { +class NumberOnlyTest { private final NumberOnly model = new NumberOnly(); /** * Model tests for NumberOnly */ @Test - public void testNumberOnly() { + void testNumberOnly() { // TODO: test NumberOnly } @@ -41,7 +41,7 @@ public void testNumberOnly() { * Test the property 'justNumber' */ @Test - public void justNumberTest() { + void justNumberTest() { // TODO: test justNumber } diff --git a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/ObjectWithDeprecatedFieldsTest.java b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/ObjectWithDeprecatedFieldsTest.java index a58269e7c3b7..aa755cf8cb48 100644 --- a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/ObjectWithDeprecatedFieldsTest.java +++ b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/ObjectWithDeprecatedFieldsTest.java @@ -30,14 +30,14 @@ /** * Model tests for ObjectWithDeprecatedFields */ -public class ObjectWithDeprecatedFieldsTest { +class ObjectWithDeprecatedFieldsTest { private final ObjectWithDeprecatedFields model = new ObjectWithDeprecatedFields(); /** * Model tests for ObjectWithDeprecatedFields */ @Test - public void testObjectWithDeprecatedFields() { + void testObjectWithDeprecatedFields() { // TODO: test ObjectWithDeprecatedFields } @@ -45,7 +45,7 @@ public void testObjectWithDeprecatedFields() { * Test the property 'uuid' */ @Test - public void uuidTest() { + void uuidTest() { // TODO: test uuid } @@ -53,7 +53,7 @@ public void uuidTest() { * Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } @@ -61,7 +61,7 @@ public void idTest() { * Test the property 'deprecatedRef' */ @Test - public void deprecatedRefTest() { + void deprecatedRefTest() { // TODO: test deprecatedRef } @@ -69,7 +69,7 @@ public void deprecatedRefTest() { * Test the property 'bars' */ @Test - public void barsTest() { + void barsTest() { // TODO: test bars } diff --git a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/OrderTest.java b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/OrderTest.java index 915233936f17..670c2535646b 100644 --- a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/OrderTest.java +++ b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/OrderTest.java @@ -26,14 +26,14 @@ /** * Model tests for Order */ -public class OrderTest { +class OrderTest { private final Order model = new Order(); /** * Model tests for Order */ @Test - public void testOrder() { + void testOrder() { // TODO: test Order } @@ -41,7 +41,7 @@ public void testOrder() { * Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } @@ -49,7 +49,7 @@ public void idTest() { * Test the property 'petId' */ @Test - public void petIdTest() { + void petIdTest() { // TODO: test petId } @@ -57,7 +57,7 @@ public void petIdTest() { * Test the property 'quantity' */ @Test - public void quantityTest() { + void quantityTest() { // TODO: test quantity } @@ -65,7 +65,7 @@ public void quantityTest() { * Test the property 'shipDate' */ @Test - public void shipDateTest() { + void shipDateTest() { // TODO: test shipDate } @@ -73,7 +73,7 @@ public void shipDateTest() { * Test the property 'status' */ @Test - public void statusTest() { + void statusTest() { // TODO: test status } @@ -81,7 +81,7 @@ public void statusTest() { * Test the property 'complete' */ @Test - public void completeTest() { + void completeTest() { // TODO: test complete } diff --git a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/OuterCompositeTest.java b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/OuterCompositeTest.java index 4106235863ab..870a977da944 100644 --- a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/OuterCompositeTest.java +++ b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/OuterCompositeTest.java @@ -26,14 +26,14 @@ /** * Model tests for OuterComposite */ -public class OuterCompositeTest { +class OuterCompositeTest { private final OuterComposite model = new OuterComposite(); /** * Model tests for OuterComposite */ @Test - public void testOuterComposite() { + void testOuterComposite() { // TODO: test OuterComposite } @@ -41,7 +41,7 @@ public void testOuterComposite() { * Test the property 'myNumber' */ @Test - public void myNumberTest() { + void myNumberTest() { // TODO: test myNumber } @@ -49,7 +49,7 @@ public void myNumberTest() { * Test the property 'myString' */ @Test - public void myStringTest() { + void myStringTest() { // TODO: test myString } @@ -57,7 +57,7 @@ public void myStringTest() { * Test the property 'myBoolean' */ @Test - public void myBooleanTest() { + void myBooleanTest() { // TODO: test myBoolean } diff --git a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/OuterEnumDefaultValueTest.java b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/OuterEnumDefaultValueTest.java index 31fc4a3cab28..d818b23c7d53 100644 --- a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/OuterEnumDefaultValueTest.java +++ b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/OuterEnumDefaultValueTest.java @@ -20,12 +20,12 @@ /** * Model tests for OuterEnumDefaultValue */ -public class OuterEnumDefaultValueTest { +class OuterEnumDefaultValueTest { /** * Model tests for OuterEnumDefaultValue */ @Test - public void testOuterEnumDefaultValue() { + void testOuterEnumDefaultValue() { // TODO: test OuterEnumDefaultValue } diff --git a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/OuterEnumIntegerDefaultValueTest.java b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/OuterEnumIntegerDefaultValueTest.java index 41a2e5a97ce5..1d7b3338bca2 100644 --- a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/OuterEnumIntegerDefaultValueTest.java +++ b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/OuterEnumIntegerDefaultValueTest.java @@ -20,12 +20,12 @@ /** * Model tests for OuterEnumIntegerDefaultValue */ -public class OuterEnumIntegerDefaultValueTest { +class OuterEnumIntegerDefaultValueTest { /** * Model tests for OuterEnumIntegerDefaultValue */ @Test - public void testOuterEnumIntegerDefaultValue() { + void testOuterEnumIntegerDefaultValue() { // TODO: test OuterEnumIntegerDefaultValue } diff --git a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/OuterEnumIntegerTest.java b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/OuterEnumIntegerTest.java index 2f25518a1b18..cacda46a76f4 100644 --- a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/OuterEnumIntegerTest.java +++ b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/OuterEnumIntegerTest.java @@ -20,12 +20,12 @@ /** * Model tests for OuterEnumInteger */ -public class OuterEnumIntegerTest { +class OuterEnumIntegerTest { /** * Model tests for OuterEnumInteger */ @Test - public void testOuterEnumInteger() { + void testOuterEnumInteger() { // TODO: test OuterEnumInteger } diff --git a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/OuterEnumTest.java b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/OuterEnumTest.java index 4b4689794b92..0333ee657a0f 100644 --- a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/OuterEnumTest.java +++ b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/OuterEnumTest.java @@ -20,12 +20,12 @@ /** * Model tests for OuterEnum */ -public class OuterEnumTest { +class OuterEnumTest { /** * Model tests for OuterEnum */ @Test - public void testOuterEnum() { + void testOuterEnum() { // TODO: test OuterEnum } diff --git a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/OuterObjectWithEnumPropertyTest.java b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/OuterObjectWithEnumPropertyTest.java index 569e16247e6c..ac7169192a50 100644 --- a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/OuterObjectWithEnumPropertyTest.java +++ b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/OuterObjectWithEnumPropertyTest.java @@ -26,14 +26,14 @@ /** * Model tests for OuterObjectWithEnumProperty */ -public class OuterObjectWithEnumPropertyTest { +class OuterObjectWithEnumPropertyTest { private final OuterObjectWithEnumProperty model = new OuterObjectWithEnumProperty(); /** * Model tests for OuterObjectWithEnumProperty */ @Test - public void testOuterObjectWithEnumProperty() { + void testOuterObjectWithEnumProperty() { // TODO: test OuterObjectWithEnumProperty } @@ -41,7 +41,7 @@ public void testOuterObjectWithEnumProperty() { * Test the property 'value' */ @Test - public void valueTest() { + void valueTest() { // TODO: test value } diff --git a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/ParentWithNullableTest.java b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/ParentWithNullableTest.java index 828d360428ed..2e4de5618065 100644 --- a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/ParentWithNullableTest.java +++ b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/ParentWithNullableTest.java @@ -32,14 +32,14 @@ /** * Model tests for ParentWithNullable */ -public class ParentWithNullableTest { +class ParentWithNullableTest { private final ParentWithNullable model = new ParentWithNullable(); /** * Model tests for ParentWithNullable */ @Test - public void testParentWithNullable() { + void testParentWithNullable() { // TODO: test ParentWithNullable } @@ -47,7 +47,7 @@ public void testParentWithNullable() { * Test the property 'type' */ @Test - public void typeTest() { + void typeTest() { // TODO: test type } @@ -55,7 +55,7 @@ public void typeTest() { * Test the property 'nullableProperty' */ @Test - public void nullablePropertyTest() { + void nullablePropertyTest() { // TODO: test nullableProperty } diff --git a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/PetTest.java b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/PetTest.java index 51c0563373c4..2e4303f1e4b5 100644 --- a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/PetTest.java +++ b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/PetTest.java @@ -33,14 +33,14 @@ /** * Model tests for Pet */ -public class PetTest { +class PetTest { private final Pet model = new Pet(); /** * Model tests for Pet */ @Test - public void testPet() { + void testPet() { // TODO: test Pet } @@ -48,7 +48,7 @@ public void testPet() { * Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } @@ -56,7 +56,7 @@ public void idTest() { * Test the property 'category' */ @Test - public void categoryTest() { + void categoryTest() { // TODO: test category } @@ -64,7 +64,7 @@ public void categoryTest() { * Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } @@ -72,7 +72,7 @@ public void nameTest() { * Test the property 'photoUrls' */ @Test - public void photoUrlsTest() { + void photoUrlsTest() { // TODO: test photoUrls } @@ -80,7 +80,7 @@ public void photoUrlsTest() { * Test the property 'tags' */ @Test - public void tagsTest() { + void tagsTest() { // TODO: test tags } @@ -88,7 +88,7 @@ public void tagsTest() { * Test the property 'status' */ @Test - public void statusTest() { + void statusTest() { // TODO: test status } diff --git a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/ReadOnlyFirstTest.java b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/ReadOnlyFirstTest.java index e98895945790..c56da4290fa9 100644 --- a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/ReadOnlyFirstTest.java +++ b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/ReadOnlyFirstTest.java @@ -25,14 +25,14 @@ /** * Model tests for ReadOnlyFirst */ -public class ReadOnlyFirstTest { +class ReadOnlyFirstTest { private final ReadOnlyFirst model = new ReadOnlyFirst(); /** * Model tests for ReadOnlyFirst */ @Test - public void testReadOnlyFirst() { + void testReadOnlyFirst() { // TODO: test ReadOnlyFirst } @@ -40,7 +40,7 @@ public void testReadOnlyFirst() { * Test the property 'bar' */ @Test - public void barTest() { + void barTest() { // TODO: test bar } @@ -48,7 +48,7 @@ public void barTest() { * Test the property 'baz' */ @Test - public void bazTest() { + void bazTest() { // TODO: test baz } diff --git a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/SingleRefTypeTest.java b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/SingleRefTypeTest.java index bdcda63a5129..476e4ca161b4 100644 --- a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/SingleRefTypeTest.java +++ b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/SingleRefTypeTest.java @@ -20,12 +20,12 @@ /** * Model tests for SingleRefType */ -public class SingleRefTypeTest { +class SingleRefTypeTest { /** * Model tests for SingleRefType */ @Test - public void testSingleRefType() { + void testSingleRefType() { // TODO: test SingleRefType } diff --git a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/SpecialModelNameTest.java b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/SpecialModelNameTest.java index 3fe4051508d0..9501cf722d66 100644 --- a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/SpecialModelNameTest.java +++ b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/SpecialModelNameTest.java @@ -25,14 +25,14 @@ /** * Model tests for SpecialModelName */ -public class SpecialModelNameTest { +class SpecialModelNameTest { private final SpecialModelName model = new SpecialModelName(); /** * Model tests for SpecialModelName */ @Test - public void testSpecialModelName() { + void testSpecialModelName() { // TODO: test SpecialModelName } @@ -40,7 +40,7 @@ public void testSpecialModelName() { * Test the property '$specialPropertyName' */ @Test - public void $specialPropertyNameTest() { + void $specialPropertyNameTest() { // TODO: test $specialPropertyName } diff --git a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/TagTest.java b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/TagTest.java index ef31f21248b0..dc9cf9742efa 100644 --- a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/TagTest.java +++ b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/TagTest.java @@ -25,14 +25,14 @@ /** * Model tests for Tag */ -public class TagTest { +class TagTest { private final Tag model = new Tag(); /** * Model tests for Tag */ @Test - public void testTag() { + void testTag() { // TODO: test Tag } @@ -40,7 +40,7 @@ public void testTag() { * Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } @@ -48,7 +48,7 @@ public void idTest() { * Test the property 'name' */ @Test - public void nameTest() { + void nameTest() { // TODO: test name } diff --git a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequestTest.java b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequestTest.java index 8e5a4ba75d27..edb986ca550f 100644 --- a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequestTest.java +++ b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequestTest.java @@ -27,14 +27,14 @@ /** * Model tests for TestInlineFreeformAdditionalPropertiesRequest */ -public class TestInlineFreeformAdditionalPropertiesRequestTest { +class TestInlineFreeformAdditionalPropertiesRequestTest { private final TestInlineFreeformAdditionalPropertiesRequest model = new TestInlineFreeformAdditionalPropertiesRequest(); /** * Model tests for TestInlineFreeformAdditionalPropertiesRequest */ @Test - public void testTestInlineFreeformAdditionalPropertiesRequest() { + void testTestInlineFreeformAdditionalPropertiesRequest() { // TODO: test TestInlineFreeformAdditionalPropertiesRequest } @@ -42,7 +42,7 @@ public void testTestInlineFreeformAdditionalPropertiesRequest() { * Test the property 'someProperty' */ @Test - public void somePropertyTest() { + void somePropertyTest() { // TODO: test someProperty } diff --git a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/UserTest.java b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/UserTest.java index 819e2d8f7610..69d274133b97 100644 --- a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/UserTest.java +++ b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/model/UserTest.java @@ -25,14 +25,14 @@ /** * Model tests for User */ -public class UserTest { +class UserTest { private final User model = new User(); /** * Model tests for User */ @Test - public void testUser() { + void testUser() { // TODO: test User } @@ -40,7 +40,7 @@ public void testUser() { * Test the property 'id' */ @Test - public void idTest() { + void idTest() { // TODO: test id } @@ -48,7 +48,7 @@ public void idTest() { * Test the property 'username' */ @Test - public void usernameTest() { + void usernameTest() { // TODO: test username } @@ -56,7 +56,7 @@ public void usernameTest() { * Test the property 'firstName' */ @Test - public void firstNameTest() { + void firstNameTest() { // TODO: test firstName } @@ -64,7 +64,7 @@ public void firstNameTest() { * Test the property 'lastName' */ @Test - public void lastNameTest() { + void lastNameTest() { // TODO: test lastName } @@ -72,7 +72,7 @@ public void lastNameTest() { * Test the property 'email' */ @Test - public void emailTest() { + void emailTest() { // TODO: test email } @@ -80,7 +80,7 @@ public void emailTest() { * Test the property 'password' */ @Test - public void passwordTest() { + void passwordTest() { // TODO: test password } @@ -88,7 +88,7 @@ public void passwordTest() { * Test the property 'phone' */ @Test - public void phoneTest() { + void phoneTest() { // TODO: test phone } @@ -96,7 +96,7 @@ public void phoneTest() { * Test the property 'userStatus' */ @Test - public void userStatusTest() { + void userStatusTest() { // TODO: test userStatus } diff --git a/samples/client/petstore/javascript-apollo/test/api/FakeApi.spec.js b/samples/client/petstore/javascript-apollo/test/api/FakeApi.spec.js index 9ecfa421cb6b..92db6213a7d2 100644 --- a/samples/client/petstore/javascript-apollo/test/api/FakeApi.spec.js +++ b/samples/client/petstore/javascript-apollo/test/api/FakeApi.spec.js @@ -118,6 +118,16 @@ done(); }); }); + describe('testAdditionalPropertiesReference', function() { + it('should call testAdditionalPropertiesReference successfully', function(done) { + //uncomment below and update the code to test testAdditionalPropertiesReference + //instance.testAdditionalPropertiesReference(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); describe('testBodyWithBinary', function() { it('should call testBodyWithBinary successfully', function(done) { //uncomment below and update the code to test testBodyWithBinary @@ -198,6 +208,16 @@ done(); }); }); + describe('testInlineFreeformAdditionalProperties', function() { + it('should call testInlineFreeformAdditionalProperties successfully', function(done) { + //uncomment below and update the code to test testInlineFreeformAdditionalProperties + //instance.testInlineFreeformAdditionalProperties(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); describe('testJsonFormData', function() { it('should call testJsonFormData successfully', function(done) { //uncomment below and update the code to test testJsonFormData @@ -218,6 +238,16 @@ done(); }); }); + describe('testStringMapReference', function() { + it('should call testStringMapReference successfully', function(done) { + //uncomment below and update the code to test testStringMapReference + //instance.testStringMapReference(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); }); })); diff --git a/samples/client/petstore/javascript-es6/test/api/FakeApi.spec.js b/samples/client/petstore/javascript-es6/test/api/FakeApi.spec.js index 9ecfa421cb6b..92db6213a7d2 100644 --- a/samples/client/petstore/javascript-es6/test/api/FakeApi.spec.js +++ b/samples/client/petstore/javascript-es6/test/api/FakeApi.spec.js @@ -118,6 +118,16 @@ done(); }); }); + describe('testAdditionalPropertiesReference', function() { + it('should call testAdditionalPropertiesReference successfully', function(done) { + //uncomment below and update the code to test testAdditionalPropertiesReference + //instance.testAdditionalPropertiesReference(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); describe('testBodyWithBinary', function() { it('should call testBodyWithBinary successfully', function(done) { //uncomment below and update the code to test testBodyWithBinary @@ -198,6 +208,16 @@ done(); }); }); + describe('testInlineFreeformAdditionalProperties', function() { + it('should call testInlineFreeformAdditionalProperties successfully', function(done) { + //uncomment below and update the code to test testInlineFreeformAdditionalProperties + //instance.testInlineFreeformAdditionalProperties(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); describe('testJsonFormData', function() { it('should call testJsonFormData successfully', function(done) { //uncomment below and update the code to test testJsonFormData @@ -218,6 +238,16 @@ done(); }); }); + describe('testStringMapReference', function() { + it('should call testStringMapReference successfully', function(done) { + //uncomment below and update the code to test testStringMapReference + //instance.testStringMapReference(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); }); })); diff --git a/samples/client/petstore/javascript-es6/test/api/PetApi.spec.js b/samples/client/petstore/javascript-es6/test/api/PetApi.spec.js index e21aa53f7d2c..16591a407d97 100644 --- a/samples/client/petstore/javascript-es6/test/api/PetApi.spec.js +++ b/samples/client/petstore/javascript-es6/test/api/PetApi.spec.js @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,10 +14,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + define(['expect.js', process.cwd()+'/src/index'], factory); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); @@ -25,11 +25,10 @@ }(this, function(expect, OpenApiPetstore) { 'use strict'; - var api_instance; - var id = 129038120; + var instance; beforeEach(function() { - api_instance = new OpenApiPetstore.PetApi(); + instance = new OpenApiPetstore.PetApi(); }); var getProperty = function(object, getter, property) { @@ -48,62 +47,7 @@ object[property] = value; } - var createRandomPet = function() { - var pet = new OpenApiPetstore.Pet(); - setProperty(pet, "setId", "id", id); - setProperty(pet, "setName", "name", "pet" + id); - - var category = new OpenApiPetstore.Category(); - setProperty(category, "setId", "id", id); - setProperty(category, "setName", "name", "category" + id); - setProperty(pet, "setCategory", "category", category); - - setProperty(pet, "setStatus", "status", "available"); - var photos = ["http://foo.bar.com/1", "http://foo.bar.com/2"]; - setProperty(pet, "setPhotoUrls", "photoUrls", photos); - - return pet; - } - describe('PetApi', function() { - it('should create and get pet', function(done) { - this.timeout(15000); - var pet = createRandomPet(); - try { - //api_instance.addPet(pet, {_base_path_index: 1}, function(error) { - api_instance.addPet(pet, null, function(error) { - if (error) throw error; - - api_instance.getPetById(pet.id, function(error, fetched, response) { - if (error) throw error; - expect(response.status).to.be(200); - expect(response.ok).to.be(true); - expect(response.get('Content-Type')).to.be('application/json'); - - expect(fetched).to.be.a(OpenApiPetstore.Pet); - expect(JSON.stringify(fetched)).to.be('{"name":"pet129038120","photoUrls":["http://foo.bar.com/1","http://foo.bar.com/2"],"id":129038120,"category":{"name":"category129038120","id":129038120},"tags":[],"status":"available"}'); - - // test ApiClient.convertToType - var tag_result = OpenApiPetstore.ApiClient.convertToType(JSON.stringify(fetched), OpenApiPetstore.Pet); - expect(tag_result).to.be.a(OpenApiPetstore.Pet); - - // test returned object `Pet` - expect(fetched.id).to.be(pet.id); - expect(getProperty(fetched, "getPhotoUrls", "photoUrls")) - .to.eql(getProperty(pet, "getPhotoUrls", "photoUrls")); - expect(getProperty(fetched, "getCategory", "category")) - .to.be.a(OpenApiPetstore.Category); - expect(getProperty(getProperty(fetched, "getCategory", "category"), "getName", "name")) - .to.be(getProperty(getProperty(pet, "getCategory", "category"), "getName", "name")); - - api_instance.deletePet(pet.id); - done(); - }); - }); - } catch (error) { - done(error); - } - }); describe('addPet', function() { it('should call addPet successfully', function(done) { //uncomment below and update the code to test addPet @@ -184,6 +128,16 @@ done(); }); }); + describe('uploadFileWithRequiredFile', function() { + it('should call uploadFileWithRequiredFile successfully', function(done) { + //uncomment below and update the code to test uploadFileWithRequiredFile + //instance.uploadFileWithRequiredFile(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); }); })); diff --git a/samples/client/petstore/javascript-es6/test/model/Color.spec.js b/samples/client/petstore/javascript-es6/test/model/Color.spec.js index f203fe44d256..c079e6e51113 100644 --- a/samples/client/petstore/javascript-es6/test/model/Color.spec.js +++ b/samples/client/petstore/javascript-es6/test/model/Color.spec.js @@ -28,7 +28,7 @@ var instance; beforeEach(function() { - //instance = new OpenApiPetstore.Color('#00FF00'); + instance = new OpenApiPetstore.Color(); }); var getProperty = function(object, getter, property) { diff --git a/samples/client/petstore/javascript-promise-es6/test/api/FakeApi.spec.js b/samples/client/petstore/javascript-promise-es6/test/api/FakeApi.spec.js index 9ecfa421cb6b..92db6213a7d2 100644 --- a/samples/client/petstore/javascript-promise-es6/test/api/FakeApi.spec.js +++ b/samples/client/petstore/javascript-promise-es6/test/api/FakeApi.spec.js @@ -118,6 +118,16 @@ done(); }); }); + describe('testAdditionalPropertiesReference', function() { + it('should call testAdditionalPropertiesReference successfully', function(done) { + //uncomment below and update the code to test testAdditionalPropertiesReference + //instance.testAdditionalPropertiesReference(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); describe('testBodyWithBinary', function() { it('should call testBodyWithBinary successfully', function(done) { //uncomment below and update the code to test testBodyWithBinary @@ -198,6 +208,16 @@ done(); }); }); + describe('testInlineFreeformAdditionalProperties', function() { + it('should call testInlineFreeformAdditionalProperties successfully', function(done) { + //uncomment below and update the code to test testInlineFreeformAdditionalProperties + //instance.testInlineFreeformAdditionalProperties(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); describe('testJsonFormData', function() { it('should call testJsonFormData successfully', function(done) { //uncomment below and update the code to test testJsonFormData @@ -218,6 +238,16 @@ done(); }); }); + describe('testStringMapReference', function() { + it('should call testStringMapReference successfully', function(done) { + //uncomment below and update the code to test testStringMapReference + //instance.testStringMapReference(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); }); })); diff --git a/samples/client/petstore/jaxrs-cxf-client-jackson/src/test/java/org/openapitools/api/PetApiTest.java b/samples/client/petstore/jaxrs-cxf-client-jackson/src/test/java/org/openapitools/api/PetApiTest.java index bb976e895224..5fc4823c1c74 100644 --- a/samples/client/petstore/jaxrs-cxf-client-jackson/src/test/java/org/openapitools/api/PetApiTest.java +++ b/samples/client/petstore/jaxrs-cxf-client-jackson/src/test/java/org/openapitools/api/PetApiTest.java @@ -41,23 +41,23 @@ * *

This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. * - * API tests for PetApi + * API tests for PetApi */ public class PetApiTest { private PetApi api; - + @Before public void setup() { JacksonJsonProvider provider = new JacksonJsonProvider(); List providers = new ArrayList(); providers.add(provider); - + api = JAXRSClientFactory.create("http://petstore.swagger.io/v2", PetApi.class, providers); org.apache.cxf.jaxrs.client.Client client = WebClient.client(api); - - ClientConfiguration config = WebClient.getConfig(client); + + ClientConfiguration config = WebClient.getConfig(client); } @@ -73,8 +73,8 @@ public void addPetTest() { //api.addPet(body); // TODO: test validations - - + + } /** @@ -90,8 +90,8 @@ public void deletePetTest() { //api.deletePet(petId, apiKey); // TODO: test validations - - + + } /** @@ -108,8 +108,8 @@ public void findPetsByStatusTest() { //List response = api.findPetsByStatus(status); //assertNotNull(response); // TODO: test validations - - + + } /** @@ -126,8 +126,8 @@ public void findPetsByTagsTest() { //List response = api.findPetsByTags(tags); //assertNotNull(response); // TODO: test validations - - + + } /** @@ -144,8 +144,8 @@ public void getPetByIdTest() { //Pet response = api.getPetById(petId); //assertNotNull(response); // TODO: test validations - - + + } /** @@ -160,8 +160,8 @@ public void updatePetTest() { //api.updatePet(body); // TODO: test validations - - + + } /** @@ -178,8 +178,8 @@ public void updatePetWithFormTest() { //api.updatePetWithForm(petId, name, status); // TODO: test validations - - + + } /** @@ -192,12 +192,12 @@ public void updatePetWithFormTest() { public void uploadFileTest() { Long petId = null; String additionalMetadata = null; - org.apache.cxf.jaxrs.ext.multipart.Attachment file = null; - //ModelApiResponse response = api.uploadFile(petId, additionalMetadata, file); + File _file = null; + //ModelApiResponse response = api.uploadFile(petId, additionalMetadata, _file); //assertNotNull(response); // TODO: test validations - - + + } } diff --git a/samples/client/petstore/jaxrs-cxf-client-jackson/src/test/java/org/openapitools/api/StoreApiTest.java b/samples/client/petstore/jaxrs-cxf-client-jackson/src/test/java/org/openapitools/api/StoreApiTest.java index b87dbe2c578b..b5c96c77b9bd 100644 --- a/samples/client/petstore/jaxrs-cxf-client-jackson/src/test/java/org/openapitools/api/StoreApiTest.java +++ b/samples/client/petstore/jaxrs-cxf-client-jackson/src/test/java/org/openapitools/api/StoreApiTest.java @@ -39,23 +39,23 @@ * *

This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. * - * API tests for StoreApi + * API tests for StoreApi */ public class StoreApiTest { private StoreApi api; - + @Before public void setup() { JacksonJsonProvider provider = new JacksonJsonProvider(); List providers = new ArrayList(); providers.add(provider); - + api = JAXRSClientFactory.create("http://petstore.swagger.io/v2", StoreApi.class, providers); org.apache.cxf.jaxrs.client.Client client = WebClient.client(api); - - ClientConfiguration config = WebClient.getConfig(client); + + ClientConfiguration config = WebClient.getConfig(client); } @@ -73,8 +73,8 @@ public void deleteOrderTest() { //api.deleteOrder(orderId); // TODO: test validations - - + + } /** @@ -90,8 +90,8 @@ public void getInventoryTest() { //Map response = api.getInventory(); //assertNotNull(response); // TODO: test validations - - + + } /** @@ -108,8 +108,8 @@ public void getOrderByIdTest() { //Order response = api.getOrderById(orderId); //assertNotNull(response); // TODO: test validations - - + + } /** @@ -124,8 +124,8 @@ public void placeOrderTest() { //Order response = api.placeOrder(body); //assertNotNull(response); // TODO: test validations - - + + } } diff --git a/samples/client/petstore/jaxrs-cxf-client-jackson/src/test/java/org/openapitools/api/UserApiTest.java b/samples/client/petstore/jaxrs-cxf-client-jackson/src/test/java/org/openapitools/api/UserApiTest.java index 811ace5aebba..0825dbb0f6e7 100644 --- a/samples/client/petstore/jaxrs-cxf-client-jackson/src/test/java/org/openapitools/api/UserApiTest.java +++ b/samples/client/petstore/jaxrs-cxf-client-jackson/src/test/java/org/openapitools/api/UserApiTest.java @@ -13,6 +13,7 @@ package org.openapitools.api; +import java.util.Date; import org.openapitools.model.User; import org.junit.Test; import org.junit.Before; @@ -39,23 +40,23 @@ * *

This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. * - * API tests for UserApi + * API tests for UserApi */ public class UserApiTest { private UserApi api; - + @Before public void setup() { JacksonJsonProvider provider = new JacksonJsonProvider(); List providers = new ArrayList(); providers.add(provider); - + api = JAXRSClientFactory.create("http://petstore.swagger.io/v2", UserApi.class, providers); org.apache.cxf.jaxrs.client.Client client = WebClient.client(api); - - ClientConfiguration config = WebClient.getConfig(client); + + ClientConfiguration config = WebClient.getConfig(client); } @@ -73,8 +74,8 @@ public void createUserTest() { //api.createUser(body); // TODO: test validations - - + + } /** @@ -89,8 +90,8 @@ public void createUsersWithArrayInputTest() { //api.createUsersWithArrayInput(body); // TODO: test validations - - + + } /** @@ -105,8 +106,8 @@ public void createUsersWithListInputTest() { //api.createUsersWithListInput(body); // TODO: test validations - - + + } /** @@ -123,8 +124,8 @@ public void deleteUserTest() { //api.deleteUser(username); // TODO: test validations - - + + } /** @@ -139,8 +140,8 @@ public void getUserByNameTest() { //User response = api.getUserByName(username); //assertNotNull(response); // TODO: test validations - - + + } /** @@ -156,8 +157,8 @@ public void loginUserTest() { //String response = api.loginUser(username, password); //assertNotNull(response); // TODO: test validations - - + + } /** @@ -171,8 +172,8 @@ public void logoutUserTest() { //api.logoutUser(); // TODO: test validations - - + + } /** @@ -190,8 +191,8 @@ public void updateUserTest() { //api.updateUser(username, body); // TODO: test validations - - + + } } diff --git a/samples/client/petstore/jaxrs-cxf-client/src/test/java/org/openapitools/api/PetApiTest.java b/samples/client/petstore/jaxrs-cxf-client/src/test/java/org/openapitools/api/PetApiTest.java index 48eec50eebe8..5fc4823c1c74 100644 --- a/samples/client/petstore/jaxrs-cxf-client/src/test/java/org/openapitools/api/PetApiTest.java +++ b/samples/client/petstore/jaxrs-cxf-client/src/test/java/org/openapitools/api/PetApiTest.java @@ -2,24 +2,12 @@ * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. */ @@ -53,23 +41,23 @@ * *

This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. * - * API tests for PetApi + * API tests for PetApi */ public class PetApiTest { private PetApi api; - + @Before public void setup() { JacksonJsonProvider provider = new JacksonJsonProvider(); List providers = new ArrayList(); providers.add(provider); - + api = JAXRSClientFactory.create("http://petstore.swagger.io/v2", PetApi.class, providers); org.apache.cxf.jaxrs.client.Client client = WebClient.client(api); - - ClientConfiguration config = WebClient.getConfig(client); + + ClientConfiguration config = WebClient.getConfig(client); } @@ -85,8 +73,8 @@ public void addPetTest() { //api.addPet(body); // TODO: test validations - - + + } /** @@ -102,8 +90,8 @@ public void deletePetTest() { //api.deletePet(petId, apiKey); // TODO: test validations - - + + } /** @@ -120,8 +108,8 @@ public void findPetsByStatusTest() { //List response = api.findPetsByStatus(status); //assertNotNull(response); // TODO: test validations - - + + } /** @@ -138,8 +126,8 @@ public void findPetsByTagsTest() { //List response = api.findPetsByTags(tags); //assertNotNull(response); // TODO: test validations - - + + } /** @@ -156,8 +144,8 @@ public void getPetByIdTest() { //Pet response = api.getPetById(petId); //assertNotNull(response); // TODO: test validations - - + + } /** @@ -172,8 +160,8 @@ public void updatePetTest() { //api.updatePet(body); // TODO: test validations - - + + } /** @@ -190,8 +178,8 @@ public void updatePetWithFormTest() { //api.updatePetWithForm(petId, name, status); // TODO: test validations - - + + } /** @@ -204,12 +192,12 @@ public void updatePetWithFormTest() { public void uploadFileTest() { Long petId = null; String additionalMetadata = null; - org.apache.cxf.jaxrs.ext.multipart.Attachment file = null; - //ModelApiResponse response = api.uploadFile(petId, additionalMetadata, file); + File _file = null; + //ModelApiResponse response = api.uploadFile(petId, additionalMetadata, _file); //assertNotNull(response); // TODO: test validations - - + + } } diff --git a/samples/client/petstore/jaxrs-cxf-client/src/test/java/org/openapitools/api/StoreApiTest.java b/samples/client/petstore/jaxrs-cxf-client/src/test/java/org/openapitools/api/StoreApiTest.java index 537e5da2200f..b5c96c77b9bd 100644 --- a/samples/client/petstore/jaxrs-cxf-client/src/test/java/org/openapitools/api/StoreApiTest.java +++ b/samples/client/petstore/jaxrs-cxf-client/src/test/java/org/openapitools/api/StoreApiTest.java @@ -2,24 +2,12 @@ * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. */ @@ -51,23 +39,23 @@ * *

This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. * - * API tests for StoreApi + * API tests for StoreApi */ public class StoreApiTest { private StoreApi api; - + @Before public void setup() { JacksonJsonProvider provider = new JacksonJsonProvider(); List providers = new ArrayList(); providers.add(provider); - + api = JAXRSClientFactory.create("http://petstore.swagger.io/v2", StoreApi.class, providers); org.apache.cxf.jaxrs.client.Client client = WebClient.client(api); - - ClientConfiguration config = WebClient.getConfig(client); + + ClientConfiguration config = WebClient.getConfig(client); } @@ -85,8 +73,8 @@ public void deleteOrderTest() { //api.deleteOrder(orderId); // TODO: test validations - - + + } /** @@ -102,8 +90,8 @@ public void getInventoryTest() { //Map response = api.getInventory(); //assertNotNull(response); // TODO: test validations - - + + } /** @@ -120,8 +108,8 @@ public void getOrderByIdTest() { //Order response = api.getOrderById(orderId); //assertNotNull(response); // TODO: test validations - - + + } /** @@ -136,8 +124,8 @@ public void placeOrderTest() { //Order response = api.placeOrder(body); //assertNotNull(response); // TODO: test validations - - + + } } diff --git a/samples/client/petstore/jaxrs-cxf-client/src/test/java/org/openapitools/api/UserApiTest.java b/samples/client/petstore/jaxrs-cxf-client/src/test/java/org/openapitools/api/UserApiTest.java index 4d2852447d9e..0825dbb0f6e7 100644 --- a/samples/client/petstore/jaxrs-cxf-client/src/test/java/org/openapitools/api/UserApiTest.java +++ b/samples/client/petstore/jaxrs-cxf-client/src/test/java/org/openapitools/api/UserApiTest.java @@ -2,29 +2,18 @@ * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. */ package org.openapitools.api; +import java.util.Date; import org.openapitools.model.User; import org.junit.Test; import org.junit.Before; @@ -51,23 +40,23 @@ * *

This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. * - * API tests for UserApi + * API tests for UserApi */ public class UserApiTest { private UserApi api; - + @Before public void setup() { JacksonJsonProvider provider = new JacksonJsonProvider(); List providers = new ArrayList(); providers.add(provider); - + api = JAXRSClientFactory.create("http://petstore.swagger.io/v2", UserApi.class, providers); org.apache.cxf.jaxrs.client.Client client = WebClient.client(api); - - ClientConfiguration config = WebClient.getConfig(client); + + ClientConfiguration config = WebClient.getConfig(client); } @@ -85,8 +74,8 @@ public void createUserTest() { //api.createUser(body); // TODO: test validations - - + + } /** @@ -101,8 +90,8 @@ public void createUsersWithArrayInputTest() { //api.createUsersWithArrayInput(body); // TODO: test validations - - + + } /** @@ -117,8 +106,8 @@ public void createUsersWithListInputTest() { //api.createUsersWithListInput(body); // TODO: test validations - - + + } /** @@ -135,8 +124,8 @@ public void deleteUserTest() { //api.deleteUser(username); // TODO: test validations - - + + } /** @@ -151,8 +140,8 @@ public void getUserByNameTest() { //User response = api.getUserByName(username); //assertNotNull(response); // TODO: test validations - - + + } /** @@ -168,8 +157,8 @@ public void loginUserTest() { //String response = api.loginUser(username, password); //assertNotNull(response); // TODO: test validations - - + + } /** @@ -183,8 +172,8 @@ public void logoutUserTest() { //api.logoutUser(); // TODO: test validations - - + + } /** @@ -202,8 +191,8 @@ public void updateUserTest() { //api.updateUser(username, body); // TODO: test validations - - + + } } diff --git a/samples/client/petstore/kotlin-model-prefix-type-mappings/src/test/kotlin/org/openapitools/client/models/AnyOfUserOrPetTest.kt b/samples/client/petstore/kotlin-model-prefix-type-mappings/src/test/kotlin/org/openapitools/client/models/AnyOfUserOrPetTest.kt index c3eeb87dbf11..edcff52fa48e 100644 --- a/samples/client/petstore/kotlin-model-prefix-type-mappings/src/test/kotlin/org/openapitools/client/models/AnyOfUserOrPetTest.kt +++ b/samples/client/petstore/kotlin-model-prefix-type-mappings/src/test/kotlin/org/openapitools/client/models/AnyOfUserOrPetTest.kt @@ -15,76 +15,96 @@ package org.openapitools.client.models -import com.google.gson.GsonBuilder -import com.google.gson.JsonSyntaxException import io.kotlintest.shouldBe import io.kotlintest.specs.ShouldSpec -import org.junit.jupiter.api.Assertions import org.openapitools.client.models.ApiAnyOfUserOrPet import org.openapitools.client.models.ApiCategory import org.openapitools.client.models.ApiPet import org.openapitools.client.models.ApiTag import org.openapitools.client.models.ApiUser -import java.lang.RuntimeException class ApiAnyOfUserOrPetTest : ShouldSpec() { init { - should("test custom type adapter") { - val gson = GsonBuilder() - .registerTypeAdapterFactory(ApiUser.CustomTypeAdapterFactory()) - .registerTypeAdapterFactory(ApiCategory.CustomTypeAdapterFactory()) - .registerTypeAdapterFactory(ApiPet.CustomTypeAdapterFactory()) - .registerTypeAdapterFactory(ApiTag.CustomTypeAdapterFactory()) - .registerTypeAdapterFactory(ApiAnyOfUserOrPet.CustomTypeAdapterFactory()) - .create() - - // test Category - val categoryJson = "{\"id\":123,\"name\":\"category\"}" - val category = gson.fromJson(categoryJson, ApiCategory::class.java) - //val category = gson.fromJson("{\"name\":\"category\"}", ApiCategory::class.java) - category.id shouldBe 123L - category.name shouldBe "category" - - // test Pet - val petJson = "{\"id\":123,\"name\":\"pet\",\"photoUrls\":[\"https://a.com\"],\"category\":{\"id\":456,\"name\":\"pet category\"},\"tags\":[{\"id\":678,\"name\":\"pet tag\"}],\"status\":\"available\"}" - val pet = gson.fromJson(petJson, ApiPet::class.java) - pet.id shouldBe 123L - pet.name shouldBe "pet" - pet.photoUrls shouldBe arrayOf("https://a.com") - pet.tags shouldBe arrayOf(ApiTag(678, "pet tag")) - pet.category shouldBe ApiCategory(456, "pet category") - pet.status shouldBe ApiPet.Status.AVAILABLE - - // test invalid json (missing required fields) - val petJsonMissingRequiredFields = "{\"id\":123,\"category\":{\"id\":456,\"name\":\"pet category\"},\"tags\":[{\"id\":678,\"name\":\"pet tag\"}],\"status\":\"available\"}" - Assertions.assertThrows(IllegalArgumentException::class.java) { - val failedPet = gson.fromJson(petJsonMissingRequiredFields, ApiPet::class.java) - failedPet.id shouldBe 123L - } - - // test AnyOfUserOrPet (anyOf schema) - // invalid json - Assertions.assertThrows(JsonSyntaxException::class.java) { - val failed = gson.fromJson(categoryJson, ApiAnyOfUserOrPet::class.java) - if (failed != null) { - throw RuntimeException("this exception shouldn't be thrown") - } - } - - // valid json, actualInstance should be Pet - val anyOfUserOrPet = gson.fromJson(petJson, ApiAnyOfUserOrPet::class.java) - (anyOfUserOrPet.actualInstance is ApiPet) shouldBe true - (anyOfUserOrPet.actualInstance is ApiUser) shouldBe false - - val petFromAnyOf: ApiPet = anyOfUserOrPet.actualInstance as ApiPet - - petFromAnyOf.id shouldBe 123L - petFromAnyOf.name shouldBe "pet" - petFromAnyOf.photoUrls shouldBe arrayOf("https://a.com") - petFromAnyOf.tags shouldBe arrayOf(ApiTag(678, "pet tag")) - petFromAnyOf.category shouldBe ApiCategory(456, "pet category") - petFromAnyOf.status shouldBe ApiPet.Status.AVAILABLE + // uncomment below to create an instance of ApiAnyOfUserOrPet + //val modelInstance = ApiAnyOfUserOrPet() + + // to test the property `username` + should("test username") { + // uncomment below to test the property + //modelInstance.username shouldBe ("TODO") + } + + // to test the property `name` + should("test name") { + // uncomment below to test the property + //modelInstance.name shouldBe ("TODO") + } + + // to test the property `photoUrls` + should("test photoUrls") { + // uncomment below to test the property + //modelInstance.photoUrls shouldBe ("TODO") + } + + // to test the property `id` + should("test id") { + // uncomment below to test the property + //modelInstance.id shouldBe ("TODO") + } + + // to test the property `firstName` + should("test firstName") { + // uncomment below to test the property + //modelInstance.firstName shouldBe ("TODO") + } + + // to test the property `lastName` + should("test lastName") { + // uncomment below to test the property + //modelInstance.lastName shouldBe ("TODO") + } + + // to test the property `email` + should("test email") { + // uncomment below to test the property + //modelInstance.email shouldBe ("TODO") + } + + // to test the property `password` + should("test password") { + // uncomment below to test the property + //modelInstance.password shouldBe ("TODO") + } + + // to test the property `phone` + should("test phone") { + // uncomment below to test the property + //modelInstance.phone shouldBe ("TODO") + } + + // to test the property `userStatus` - User Status + should("test userStatus") { + // uncomment below to test the property + //modelInstance.userStatus shouldBe ("TODO") + } + + // to test the property `category` + should("test category") { + // uncomment below to test the property + //modelInstance.category shouldBe ("TODO") + } + + // to test the property `tags` + should("test tags") { + // uncomment below to test the property + //modelInstance.tags shouldBe ("TODO") + } + + // to test the property `status` - pet status in the store + should("test status") { + // uncomment below to test the property + //modelInstance.status shouldBe ("TODO") } } diff --git a/samples/client/petstore/kotlin-model-prefix-type-mappings/src/test/kotlin/org/openapitools/client/models/UserOrPetTest.kt b/samples/client/petstore/kotlin-model-prefix-type-mappings/src/test/kotlin/org/openapitools/client/models/UserOrPetTest.kt index e33ae025bac5..0001fc064880 100644 --- a/samples/client/petstore/kotlin-model-prefix-type-mappings/src/test/kotlin/org/openapitools/client/models/UserOrPetTest.kt +++ b/samples/client/petstore/kotlin-model-prefix-type-mappings/src/test/kotlin/org/openapitools/client/models/UserOrPetTest.kt @@ -23,67 +23,89 @@ import org.openapitools.client.models.ApiCategory import org.openapitools.client.models.ApiPet import org.openapitools.client.models.ApiTag import org.openapitools.client.models.ApiUser -import com.google.gson.GsonBuilder -import io.kotlintest.matchers.types.shouldBeSameInstanceAs -import io.kotlintest.shouldNotBe -import org.junit.jupiter.api.Assertions.assertThrows -import org.openapitools.client.infrastructure.ApiClient -import org.openapitools.client.infrastructure.registerTypeAdapterFactoryForAllModels -import java.io.IOException -import java.lang.RuntimeException class ApiUserOrPetTest : ShouldSpec() { init { + // uncomment below to create an instance of ApiUserOrPet + //val modelInstance = ApiUserOrPet() - should("test custom type adapter") { - val gson = ApiClient().getSerializerBuilder().create() - - // test Category - val categoryJson = "{\"id\":123,\"name\":\"category\"}" - val category = gson.fromJson(categoryJson, ApiCategory::class.java) - //val category = gson.fromJson("{\"name\":\"category\"}", ApiCategory::class.java) - category.id shouldBe 123L - category.name shouldBe "category" - - // test Pet - val petJson = "{\"id\":123,\"name\":\"pet\",\"photoUrls\":[\"https://a.com\"],\"category\":{\"id\":456,\"name\":\"pet category\"},\"tags\":[{\"id\":678,\"name\":\"pet tag\"}],\"status\":\"available\"}" - val pet = gson.fromJson(petJson, ApiPet::class.java) - pet.id shouldBe 123L - pet.name shouldBe "pet" - pet.photoUrls shouldBe arrayOf("https://a.com") - pet.tags shouldBe arrayOf(ApiTag(678, "pet tag")) - pet.category shouldBe ApiCategory(456, "pet category") - pet.status shouldBe ApiPet.Status.AVAILABLE - - // test invalid json (missing required fields) - val petJsonMissingRequiredFields = "{\"id\":123,\"category\":{\"id\":456,\"name\":\"pet category\"},\"tags\":[{\"id\":678,\"name\":\"pet tag\"}],\"status\":\"available\"}" - assertThrows(IllegalArgumentException::class.java) { - val failedPet = gson.fromJson(petJsonMissingRequiredFields, ApiPet::class.java) - failedPet.id shouldBe 123L - } - - // test UserOrPet (oneOf schema) - // invalid json - assertThrows(com.google.gson.JsonSyntaxException::class.java) { - val failed = gson.fromJson(categoryJson, ApiUserOrPet::class.java) - if (failed != null) { - throw RuntimeException("this exception shouldn't be thrown") - } - } - - // valid json, actualInstance should be Pet - val userOrPet = gson.fromJson(petJson, ApiUserOrPet::class.java) - (userOrPet.actualInstance is ApiPet) shouldBe true - (userOrPet.actualInstance is ApiUser) shouldBe false - - val petFromOneOf: ApiPet = userOrPet.actualInstance as ApiPet - - petFromOneOf.id shouldBe 123L - petFromOneOf.name shouldBe "pet" - petFromOneOf.photoUrls shouldBe arrayOf("https://a.com") - petFromOneOf.tags shouldBe arrayOf(ApiTag(678, "pet tag")) - petFromOneOf.category shouldBe ApiCategory(456, "pet category") - petFromOneOf.status shouldBe ApiPet.Status.AVAILABLE + // to test the property `username` + should("test username") { + // uncomment below to test the property + //modelInstance.username shouldBe ("TODO") } + + // to test the property `name` + should("test name") { + // uncomment below to test the property + //modelInstance.name shouldBe ("TODO") + } + + // to test the property `photoUrls` + should("test photoUrls") { + // uncomment below to test the property + //modelInstance.photoUrls shouldBe ("TODO") + } + + // to test the property `id` + should("test id") { + // uncomment below to test the property + //modelInstance.id shouldBe ("TODO") + } + + // to test the property `firstName` + should("test firstName") { + // uncomment below to test the property + //modelInstance.firstName shouldBe ("TODO") + } + + // to test the property `lastName` + should("test lastName") { + // uncomment below to test the property + //modelInstance.lastName shouldBe ("TODO") + } + + // to test the property `email` + should("test email") { + // uncomment below to test the property + //modelInstance.email shouldBe ("TODO") + } + + // to test the property `password` + should("test password") { + // uncomment below to test the property + //modelInstance.password shouldBe ("TODO") + } + + // to test the property `phone` + should("test phone") { + // uncomment below to test the property + //modelInstance.phone shouldBe ("TODO") + } + + // to test the property `userStatus` - User Status + should("test userStatus") { + // uncomment below to test the property + //modelInstance.userStatus shouldBe ("TODO") + } + + // to test the property `category` + should("test category") { + // uncomment below to test the property + //modelInstance.category shouldBe ("TODO") + } + + // to test the property `tags` + should("test tags") { + // uncomment below to test the property + //modelInstance.tags shouldBe ("TODO") + } + + // to test the property `status` - pet status in the store + should("test status") { + // uncomment below to test the property + //modelInstance.status shouldBe ("TODO") + } + } } diff --git a/samples/client/petstore/kotlin-model-prefix-type-mappings/src/test/kotlin/org/openapitools/client/models/UserTest.kt b/samples/client/petstore/kotlin-model-prefix-type-mappings/src/test/kotlin/org/openapitools/client/models/UserTest.kt index 843c31fa0ead..8a4b74f609a6 100644 --- a/samples/client/petstore/kotlin-model-prefix-type-mappings/src/test/kotlin/org/openapitools/client/models/UserTest.kt +++ b/samples/client/petstore/kotlin-model-prefix-type-mappings/src/test/kotlin/org/openapitools/client/models/UserTest.kt @@ -25,18 +25,18 @@ class ApiUserTest : ShouldSpec() { // uncomment below to create an instance of ApiUser //val modelInstance = ApiUser() - // to test the property `id` - should("test id") { - // uncomment below to test the property - //modelInstance.id shouldBe ("TODO") - } - // to test the property `username` should("test username") { // uncomment below to test the property //modelInstance.username shouldBe ("TODO") } + // to test the property `id` + should("test id") { + // uncomment below to test the property + //modelInstance.id shouldBe ("TODO") + } + // to test the property `firstName` should("test firstName") { // uncomment below to test the property diff --git a/samples/client/petstore/kotlin-string/src/test/kotlin/org/openapitools/client/apis/PetApiTest.kt b/samples/client/petstore/kotlin-string/src/test/kotlin/org/openapitools/client/apis/PetApiTest.kt index 346fbb852ca6..0d0c3547695d 100644 --- a/samples/client/petstore/kotlin-string/src/test/kotlin/org/openapitools/client/apis/PetApiTest.kt +++ b/samples/client/petstore/kotlin-string/src/test/kotlin/org/openapitools/client/apis/PetApiTest.kt @@ -87,7 +87,7 @@ class PetApiTest : ShouldSpec() { // uncomment below to test uploadFile //val petId : kotlin.Long = 789 // kotlin.Long | ID of pet to update //val additionalMetadata : kotlin.String = additionalMetadata_example // kotlin.String | Additional data to pass to server - //val file : java.io.File = BINARY_DATA_HERE // java.io.File | file to upload + //val file : kotlin.ByteArray = BINARY_DATA_HERE // kotlin.ByteArray | file to upload //val result : ModelApiResponse = apiInstance.uploadFile(petId, additionalMetadata, file) //result shouldBe ("TODO") } diff --git a/samples/client/petstore/lua/spec/api_response_spec.lua b/samples/client/petstore/lua/spec/api_response_spec.lua index 3d463e6f9be4..774af1c57e0b 100644 --- a/samples/client/petstore/lua/spec/api_response_spec.lua +++ b/samples/client/petstore/lua/spec/api_response_spec.lua @@ -1,9 +1,9 @@ --[[ OpenAPI Petstore - + This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. - - OpenAPI spec version: 1.0.0 + + The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech ]] diff --git a/samples/client/petstore/lua/spec/category_spec.lua b/samples/client/petstore/lua/spec/category_spec.lua index 411832b5f3d4..27132dd3d336 100644 --- a/samples/client/petstore/lua/spec/category_spec.lua +++ b/samples/client/petstore/lua/spec/category_spec.lua @@ -1,9 +1,9 @@ --[[ OpenAPI Petstore - + This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. - - OpenAPI spec version: 1.0.0 + + The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech ]] diff --git a/samples/client/petstore/lua/spec/order_spec.lua b/samples/client/petstore/lua/spec/order_spec.lua index 2dc80e00692a..86aaacf5b878 100644 --- a/samples/client/petstore/lua/spec/order_spec.lua +++ b/samples/client/petstore/lua/spec/order_spec.lua @@ -1,9 +1,9 @@ --[[ OpenAPI Petstore - + This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. - - OpenAPI spec version: 1.0.0 + + The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech ]] diff --git a/samples/client/petstore/lua/spec/pet_api_spec.lua b/samples/client/petstore/lua/spec/pet_api_spec.lua index fc7c09ad1f90..88d4c5a36183 100644 --- a/samples/client/petstore/lua/spec/pet_api_spec.lua +++ b/samples/client/petstore/lua/spec/pet_api_spec.lua @@ -1,9 +1,9 @@ --[[ OpenAPI Petstore - + This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. - - OpenAPI spec version: 1.0.0 + + The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech ]] diff --git a/samples/client/petstore/lua/spec/pet_spec.lua b/samples/client/petstore/lua/spec/pet_spec.lua index 88581e108286..b0ae36abd6c5 100644 --- a/samples/client/petstore/lua/spec/pet_spec.lua +++ b/samples/client/petstore/lua/spec/pet_spec.lua @@ -1,9 +1,9 @@ --[[ OpenAPI Petstore - + This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. - - OpenAPI spec version: 1.0.0 + + The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech ]] diff --git a/samples/client/petstore/lua/spec/store_api_spec.lua b/samples/client/petstore/lua/spec/store_api_spec.lua index dca897654964..85527d8e329d 100644 --- a/samples/client/petstore/lua/spec/store_api_spec.lua +++ b/samples/client/petstore/lua/spec/store_api_spec.lua @@ -1,9 +1,9 @@ --[[ OpenAPI Petstore - + This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. - - OpenAPI spec version: 1.0.0 + + The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech ]] diff --git a/samples/client/petstore/lua/spec/tag_spec.lua b/samples/client/petstore/lua/spec/tag_spec.lua index c23d5de3ef29..0b8e91592805 100644 --- a/samples/client/petstore/lua/spec/tag_spec.lua +++ b/samples/client/petstore/lua/spec/tag_spec.lua @@ -1,9 +1,9 @@ --[[ OpenAPI Petstore - + This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. - - OpenAPI spec version: 1.0.0 + + The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech ]] diff --git a/samples/client/petstore/lua/spec/user_api_spec.lua b/samples/client/petstore/lua/spec/user_api_spec.lua index eae858d3e001..a94faa2fdf12 100644 --- a/samples/client/petstore/lua/spec/user_api_spec.lua +++ b/samples/client/petstore/lua/spec/user_api_spec.lua @@ -1,9 +1,9 @@ --[[ OpenAPI Petstore - + This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. - - OpenAPI spec version: 1.0.0 + + The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech ]] diff --git a/samples/client/petstore/lua/spec/user_spec.lua b/samples/client/petstore/lua/spec/user_spec.lua index 17d97e2f455f..29c09b6d80ef 100644 --- a/samples/client/petstore/lua/spec/user_spec.lua +++ b/samples/client/petstore/lua/spec/user_spec.lua @@ -1,9 +1,9 @@ --[[ OpenAPI Petstore - + This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. - - OpenAPI spec version: 1.0.0 + + The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech ]] @@ -58,8 +58,8 @@ describe("user", function() end) end) - -- unit tests for the property 'phone' - describe("property phone test", function() + -- unit tests for the property 'mobile' + describe("property mobile test", function() it("should work", function() -- TODO assertion here: http://olivinelabs.com/busted/#asserts end) diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Api/AnotherFakeApiTest.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Api/AnotherFakeApiTest.php index d41d0bfbea86..0ccde4e65a79 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Api/AnotherFakeApiTest.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Api/AnotherFakeApiTest.php @@ -15,7 +15,7 @@ * * The version of the OpenAPI document: 1.0.0 * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.9.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Api/DefaultApiTest.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Api/DefaultApiTest.php index 7e8c0ef73d8b..bac0ba5f9e9d 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Api/DefaultApiTest.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Api/DefaultApiTest.php @@ -15,7 +15,7 @@ * * The version of the OpenAPI document: 1.0.0 * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.9.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Api/FakeApiTest.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Api/FakeApiTest.php index b4552d738ec9..9e160f61ff68 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Api/FakeApiTest.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Api/FakeApiTest.php @@ -15,7 +15,7 @@ * * The version of the OpenAPI document: 1.0.0 * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.9.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** @@ -81,6 +81,18 @@ public function testFakeBigDecimalMap() self::markTestIncomplete('Not implemented'); } + /** + * Test case for fakeEnumEndpoint + * + * test endpoint with enum parameter. + * + */ + public function testFakeEnumEndpoint() + { + // TODO: implement + self::markTestIncomplete('Not implemented'); + } + /** * Test case for fakeHealthGet * diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Api/FakeClassnameTags123ApiTest.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Api/FakeClassnameTags123ApiTest.php index c7da744a9111..5f07e196cf53 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Api/FakeClassnameTags123ApiTest.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Api/FakeClassnameTags123ApiTest.php @@ -15,7 +15,7 @@ * * The version of the OpenAPI document: 1.0.0 * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.9.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Api/PetApiTest.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Api/PetApiTest.php index 561564337259..bdd0a55f1100 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Api/PetApiTest.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Api/PetApiTest.php @@ -15,7 +15,7 @@ * * The version of the OpenAPI document: 1.0.0 * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.9.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Api/StoreApiTest.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Api/StoreApiTest.php index b28dbd2c9786..ed48f586d714 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Api/StoreApiTest.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Api/StoreApiTest.php @@ -15,7 +15,7 @@ * * The version of the OpenAPI document: 1.0.0 * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.9.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Api/UserApiTest.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Api/UserApiTest.php index d8499404a950..a0c070e6bfc6 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Api/UserApiTest.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Api/UserApiTest.php @@ -15,7 +15,7 @@ * * The version of the OpenAPI document: 1.0.0 * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.9.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/AdditionalPropertiesClassTest.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/AdditionalPropertiesClassTest.php index a697735c4862..5bb122cfafb5 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/AdditionalPropertiesClassTest.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/AdditionalPropertiesClassTest.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: 1.0.0 * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.9.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/AllOfWithSingleRefTest.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/AllOfWithSingleRefTest.php index ea744ff2fe33..e2d6cae88ef4 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/AllOfWithSingleRefTest.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/AllOfWithSingleRefTest.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: 1.0.0 * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.9.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/AnimalTest.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/AnimalTest.php index 747fbc352bf3..fbcf6c62c9d9 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/AnimalTest.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/AnimalTest.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: 1.0.0 * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.9.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/ApiResponseTest.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/ApiResponseTest.php index 839b82063d6f..9b85d9c438ea 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/ApiResponseTest.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/ApiResponseTest.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: 1.0.0 * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.9.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/ArrayOfArrayOfNumberOnlyTest.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/ArrayOfArrayOfNumberOnlyTest.php index 2b505898c802..6ef0f0bd61ea 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/ArrayOfArrayOfNumberOnlyTest.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/ArrayOfArrayOfNumberOnlyTest.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: 1.0.0 * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.9.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/ArrayOfNumberOnlyTest.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/ArrayOfNumberOnlyTest.php index 63e7028df37d..d8b714cf04f1 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/ArrayOfNumberOnlyTest.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/ArrayOfNumberOnlyTest.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: 1.0.0 * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.9.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/ArrayTestTest.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/ArrayTestTest.php index a11d64914b73..db27d393a5e8 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/ArrayTestTest.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/ArrayTestTest.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: 1.0.0 * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.9.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/CapitalizationTest.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/CapitalizationTest.php index 1fe968fb4a54..2f33dc0061cc 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/CapitalizationTest.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/CapitalizationTest.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: 1.0.0 * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.9.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/CatTest.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/CatTest.php index 2be2d9177f02..fbf42805d445 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/CatTest.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/CatTest.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: 1.0.0 * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.9.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/CategoryTest.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/CategoryTest.php index 46dade34b6ca..03ca767ac080 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/CategoryTest.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/CategoryTest.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: 1.0.0 * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.9.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/ChildWithNullableTest.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/ChildWithNullableTest.php index 45dbbbe0d572..432efa2e3260 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/ChildWithNullableTest.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/ChildWithNullableTest.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: 1.0.0 * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.9.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/ClassModelTest.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/ClassModelTest.php index 61bc306d8f1e..2c1ba13eaaf8 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/ClassModelTest.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/ClassModelTest.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: 1.0.0 * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.9.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/ClientTest.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/ClientTest.php index 447b3e33ad12..f1f08356855a 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/ClientTest.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/ClientTest.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: 1.0.0 * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.9.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/DeprecatedObjectTest.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/DeprecatedObjectTest.php index 66853f4e7b65..b3e4ced8abf3 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/DeprecatedObjectTest.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/DeprecatedObjectTest.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: 1.0.0 * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.9.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/DogTest.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/DogTest.php index 3de80308f3e2..b67ac0f2e21e 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/DogTest.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/DogTest.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: 1.0.0 * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.9.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/EnumArraysTest.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/EnumArraysTest.php index 2522422cbdea..74cc6d9737b1 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/EnumArraysTest.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/EnumArraysTest.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: 1.0.0 * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.9.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/EnumClassTest.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/EnumClassTest.php index 6d71c616f227..07611c3f5574 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/EnumClassTest.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/EnumClassTest.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: 1.0.0 * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.9.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/EnumTestTest.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/EnumTestTest.php index 7f7957795379..dcc809901882 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/EnumTestTest.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/EnumTestTest.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: 1.0.0 * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.9.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/EnumWithNameAndDescriptionTest.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/EnumWithNameAndDescriptionTest.php index 3b5c2cb11257..e2c2940c193e 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/EnumWithNameAndDescriptionTest.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/EnumWithNameAndDescriptionTest.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: 1.0.0 * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.9.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/FakeBigDecimalMap200ResponseTest.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/FakeBigDecimalMap200ResponseTest.php index 5dd7c2216d6a..07548319aaf4 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/FakeBigDecimalMap200ResponseTest.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/FakeBigDecimalMap200ResponseTest.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: 1.0.0 * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.9.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/FileSchemaTestClassTest.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/FileSchemaTestClassTest.php index 3204feec1582..26a81f10e7e0 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/FileSchemaTestClassTest.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/FileSchemaTestClassTest.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: 1.0.0 * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.9.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/FileTest.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/FileTest.php index 793d00f475c0..9619f869584e 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/FileTest.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/FileTest.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: 1.0.0 * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.9.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/FooGetDefaultResponseTest.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/FooGetDefaultResponseTest.php index 948c663f5c15..90d9aadfcf3b 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/FooGetDefaultResponseTest.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/FooGetDefaultResponseTest.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: 1.0.0 * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.9.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/FooTest.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/FooTest.php index 746f76887abf..ccf4052188ae 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/FooTest.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/FooTest.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: 1.0.0 * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.9.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/FormatTestTest.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/FormatTestTest.php index aa2a9a74ddee..0e9627d58b15 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/FormatTestTest.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/FormatTestTest.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: 1.0.0 * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.9.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/HasOnlyReadOnlyTest.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/HasOnlyReadOnlyTest.php index 53ed37481143..86e5f0469c7e 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/HasOnlyReadOnlyTest.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/HasOnlyReadOnlyTest.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: 1.0.0 * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.9.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/HealthCheckResultTest.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/HealthCheckResultTest.php index 863055b0f16c..d94729b5681e 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/HealthCheckResultTest.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/HealthCheckResultTest.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: 1.0.0 * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.9.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/MapTestTest.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/MapTestTest.php index bee8213801cf..52c995d8003b 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/MapTestTest.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/MapTestTest.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: 1.0.0 * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.9.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/MixedPropertiesAndAdditionalPropertiesClassTest.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/MixedPropertiesAndAdditionalPropertiesClassTest.php index d8ad392b2d1f..e57a2479df1b 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/MixedPropertiesAndAdditionalPropertiesClassTest.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/MixedPropertiesAndAdditionalPropertiesClassTest.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: 1.0.0 * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.9.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/Model200ResponseTest.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/Model200ResponseTest.php index e8d429fdd4ab..511296ca4aaf 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/Model200ResponseTest.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/Model200ResponseTest.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: 1.0.0 * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.9.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/ModelListTest.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/ModelListTest.php index 5f54074db0a8..6c1b3804d44f 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/ModelListTest.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/ModelListTest.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: 1.0.0 * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.9.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/ModelReturnTest.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/ModelReturnTest.php index 31d6f7777d98..5995d37756b5 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/ModelReturnTest.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/ModelReturnTest.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: 1.0.0 * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.9.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/NameTest.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/NameTest.php index c662b457806f..92991e0cb489 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/NameTest.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/NameTest.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: 1.0.0 * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.9.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/NullableClassTest.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/NullableClassTest.php index 9f13b486d2bd..0dddc304e487 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/NullableClassTest.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/NullableClassTest.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: 1.0.0 * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.9.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/NumberOnlyTest.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/NumberOnlyTest.php index ebe12df2228d..9320fe0200f2 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/NumberOnlyTest.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/NumberOnlyTest.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: 1.0.0 * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.9.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/ObjectWithDeprecatedFieldsTest.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/ObjectWithDeprecatedFieldsTest.php index a8dd2ca6b5a8..a59d3dda9ad9 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/ObjectWithDeprecatedFieldsTest.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/ObjectWithDeprecatedFieldsTest.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: 1.0.0 * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.9.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/OrderTest.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/OrderTest.php index 63b7ba920ce6..de05b4f75993 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/OrderTest.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/OrderTest.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: 1.0.0 * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.9.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/OuterCompositeTest.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/OuterCompositeTest.php index 7a200f33a921..2d62aa1f6e8d 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/OuterCompositeTest.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/OuterCompositeTest.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: 1.0.0 * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.9.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/OuterEnumDefaultValueTest.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/OuterEnumDefaultValueTest.php index 27ad52dd0022..092c5c43074a 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/OuterEnumDefaultValueTest.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/OuterEnumDefaultValueTest.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: 1.0.0 * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.9.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/OuterEnumIntegerDefaultValueTest.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/OuterEnumIntegerDefaultValueTest.php index 945256fbd80f..61d904adcf3f 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/OuterEnumIntegerDefaultValueTest.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/OuterEnumIntegerDefaultValueTest.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: 1.0.0 * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.9.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/OuterEnumIntegerTest.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/OuterEnumIntegerTest.php index cea3d5e448d2..fc5a7863774f 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/OuterEnumIntegerTest.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/OuterEnumIntegerTest.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: 1.0.0 * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.9.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/OuterEnumTest.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/OuterEnumTest.php index 8892f2abd8bc..00a47d0cb4a4 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/OuterEnumTest.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/OuterEnumTest.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: 1.0.0 * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.9.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/OuterObjectWithEnumPropertyTest.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/OuterObjectWithEnumPropertyTest.php index d14cb2820790..dc8766b9741d 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/OuterObjectWithEnumPropertyTest.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/OuterObjectWithEnumPropertyTest.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: 1.0.0 * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.9.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/ParentWithNullableTest.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/ParentWithNullableTest.php index d8ef5fc5281c..816c4f61fc8f 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/ParentWithNullableTest.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/ParentWithNullableTest.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: 1.0.0 * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.9.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/PetTest.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/PetTest.php index 36fd67c0cc8e..4b7eaaf1bef3 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/PetTest.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/PetTest.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: 1.0.0 * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.9.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/ReadOnlyFirstTest.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/ReadOnlyFirstTest.php index 084db5df3bfd..6db6604e1d68 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/ReadOnlyFirstTest.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/ReadOnlyFirstTest.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: 1.0.0 * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.9.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/SingleRefTypeTest.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/SingleRefTypeTest.php index 375f3e4c0ec6..fb3282e73b84 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/SingleRefTypeTest.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/SingleRefTypeTest.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: 1.0.0 * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.9.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/SpecialModelNameTest.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/SpecialModelNameTest.php index 6331b8f0ddf0..51d360bfd3a1 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/SpecialModelNameTest.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/SpecialModelNameTest.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: 1.0.0 * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.9.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/TagTest.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/TagTest.php index 12a7d64bf28c..c93b8c5ad6fc 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/TagTest.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/TagTest.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: 1.0.0 * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.9.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/TestInlineFreeformAdditionalPropertiesRequestTest.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/TestInlineFreeformAdditionalPropertiesRequestTest.php index 1c5a8764cd9e..67cee4b71578 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/TestInlineFreeformAdditionalPropertiesRequestTest.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/TestInlineFreeformAdditionalPropertiesRequestTest.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: 1.0.0 * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.9.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/UserTest.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/UserTest.php index 8aa8522a5472..450d7e01f2d2 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/UserTest.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/tests/Model/UserTest.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: 1.0.0 * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.9.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/OpenAPIClient-php/test/Api/AnotherFakeApiTest.php b/samples/client/petstore/php/OpenAPIClient-php/test/Api/AnotherFakeApiTest.php index 15f07c38c7ad..5d035e8208a3 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/test/Api/AnotherFakeApiTest.php +++ b/samples/client/petstore/php/OpenAPIClient-php/test/Api/AnotherFakeApiTest.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 6.1.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/OpenAPIClient-php/test/Api/DefaultApiTest.php b/samples/client/petstore/php/OpenAPIClient-php/test/Api/DefaultApiTest.php index 8bd61e48e055..1c5ea9403145 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/test/Api/DefaultApiTest.php +++ b/samples/client/petstore/php/OpenAPIClient-php/test/Api/DefaultApiTest.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 6.1.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/OpenAPIClient-php/test/Api/FakeApiTest.php b/samples/client/petstore/php/OpenAPIClient-php/test/Api/FakeApiTest.php index 11951a3a552f..2918a1b7f878 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/test/Api/FakeApiTest.php +++ b/samples/client/petstore/php/OpenAPIClient-php/test/Api/FakeApiTest.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 6.1.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** @@ -71,6 +71,30 @@ public static function tearDownAfterClass(): void { } + /** + * Test case for fakeBigDecimalMap + * + * . + * + */ + public function testFakeBigDecimalMap() + { + // TODO: implement + self::markTestIncomplete('Not implemented'); + } + + /** + * Test case for fakeEnumEndpoint + * + * test endpoint with enum parameter. + * + */ + public function testFakeEnumEndpoint() + { + // TODO: implement + self::markTestIncomplete('Not implemented'); + } + /** * Test case for fakeHealthGet * @@ -155,6 +179,30 @@ public function testFakePropertyEnumIntegerSerialize() self::markTestIncomplete('Not implemented'); } + /** + * Test case for getParameterNameMapping + * + * parameter name mapping test. + * + */ + public function testGetParameterNameMapping() + { + // TODO: implement + self::markTestIncomplete('Not implemented'); + } + + /** + * Test case for testAdditionalPropertiesReference + * + * test referenced additionalProperties. + * + */ + public function testTestAdditionalPropertiesReference() + { + // TODO: implement + self::markTestIncomplete('Not implemented'); + } + /** * Test case for testBodyWithBinary * @@ -251,6 +299,18 @@ public function testTestInlineAdditionalProperties() self::markTestIncomplete('Not implemented'); } + /** + * Test case for testInlineFreeformAdditionalProperties + * + * test inline free-form additionalProperties. + * + */ + public function testTestInlineFreeformAdditionalProperties() + { + // TODO: implement + self::markTestIncomplete('Not implemented'); + } + /** * Test case for testJsonFormData * @@ -274,4 +334,16 @@ public function testTestQueryParameterCollectionFormat() // TODO: implement self::markTestIncomplete('Not implemented'); } + + /** + * Test case for testStringMapReference + * + * test referenced string map. + * + */ + public function testTestStringMapReference() + { + // TODO: implement + self::markTestIncomplete('Not implemented'); + } } diff --git a/samples/client/petstore/php/OpenAPIClient-php/test/Api/FakeClassnameTags123ApiTest.php b/samples/client/petstore/php/OpenAPIClient-php/test/Api/FakeClassnameTags123ApiTest.php index d99c19cb845b..bab512f28a83 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/test/Api/FakeClassnameTags123ApiTest.php +++ b/samples/client/petstore/php/OpenAPIClient-php/test/Api/FakeClassnameTags123ApiTest.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 6.1.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/OpenAPIClient-php/test/Api/PetApiTest.php b/samples/client/petstore/php/OpenAPIClient-php/test/Api/PetApiTest.php index 3466c1d21741..daeb96730442 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/test/Api/PetApiTest.php +++ b/samples/client/petstore/php/OpenAPIClient-php/test/Api/PetApiTest.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 6.1.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/OpenAPIClient-php/test/Api/StoreApiTest.php b/samples/client/petstore/php/OpenAPIClient-php/test/Api/StoreApiTest.php index 5fd0bd8c0908..38b93d07611f 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/test/Api/StoreApiTest.php +++ b/samples/client/petstore/php/OpenAPIClient-php/test/Api/StoreApiTest.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 6.1.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/OpenAPIClient-php/test/Api/UserApiTest.php b/samples/client/petstore/php/OpenAPIClient-php/test/Api/UserApiTest.php index ecea69378a82..8850d12a935c 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/test/Api/UserApiTest.php +++ b/samples/client/petstore/php/OpenAPIClient-php/test/Api/UserApiTest.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 6.1.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/OpenAPIClient-php/test/Model/AdditionalPropertiesClassTest.php b/samples/client/petstore/php/OpenAPIClient-php/test/Model/AdditionalPropertiesClassTest.php index 5b2fc51309b2..98c535f87a85 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/test/Model/AdditionalPropertiesClassTest.php +++ b/samples/client/petstore/php/OpenAPIClient-php/test/Model/AdditionalPropertiesClassTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 6.1.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/OpenAPIClient-php/test/Model/AllOfWithSingleRefTest.php b/samples/client/petstore/php/OpenAPIClient-php/test/Model/AllOfWithSingleRefTest.php index 6eeeb7fa71d9..09fbfc05bb3b 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/test/Model/AllOfWithSingleRefTest.php +++ b/samples/client/petstore/php/OpenAPIClient-php/test/Model/AllOfWithSingleRefTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.0.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/OpenAPIClient-php/test/Model/AnimalTest.php b/samples/client/petstore/php/OpenAPIClient-php/test/Model/AnimalTest.php index 4040a5a5f221..70608f492a7b 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/test/Model/AnimalTest.php +++ b/samples/client/petstore/php/OpenAPIClient-php/test/Model/AnimalTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 6.1.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/OpenAPIClient-php/test/Model/ApiResponseTest.php b/samples/client/petstore/php/OpenAPIClient-php/test/Model/ApiResponseTest.php index 3bdad8846d07..e57704a8da0d 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/test/Model/ApiResponseTest.php +++ b/samples/client/petstore/php/OpenAPIClient-php/test/Model/ApiResponseTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 6.1.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/OpenAPIClient-php/test/Model/ArrayOfArrayOfNumberOnlyTest.php b/samples/client/petstore/php/OpenAPIClient-php/test/Model/ArrayOfArrayOfNumberOnlyTest.php index 7ce7afd41e92..404ade8322df 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/test/Model/ArrayOfArrayOfNumberOnlyTest.php +++ b/samples/client/petstore/php/OpenAPIClient-php/test/Model/ArrayOfArrayOfNumberOnlyTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 6.1.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/OpenAPIClient-php/test/Model/ArrayOfNumberOnlyTest.php b/samples/client/petstore/php/OpenAPIClient-php/test/Model/ArrayOfNumberOnlyTest.php index bf326be7eb35..212bc03b752f 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/test/Model/ArrayOfNumberOnlyTest.php +++ b/samples/client/petstore/php/OpenAPIClient-php/test/Model/ArrayOfNumberOnlyTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 6.1.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/OpenAPIClient-php/test/Model/ArrayTestTest.php b/samples/client/petstore/php/OpenAPIClient-php/test/Model/ArrayTestTest.php index 8871cd0fc405..4555438b716d 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/test/Model/ArrayTestTest.php +++ b/samples/client/petstore/php/OpenAPIClient-php/test/Model/ArrayTestTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 6.1.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/OpenAPIClient-php/test/Model/CapitalizationTest.php b/samples/client/petstore/php/OpenAPIClient-php/test/Model/CapitalizationTest.php index 601ef2e260c4..acd19eba4426 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/test/Model/CapitalizationTest.php +++ b/samples/client/petstore/php/OpenAPIClient-php/test/Model/CapitalizationTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 6.1.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/OpenAPIClient-php/test/Model/CatTest.php b/samples/client/petstore/php/OpenAPIClient-php/test/Model/CatTest.php index bf7e9e5e14f4..376356239785 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/test/Model/CatTest.php +++ b/samples/client/petstore/php/OpenAPIClient-php/test/Model/CatTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 6.1.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/OpenAPIClient-php/test/Model/CategoryTest.php b/samples/client/petstore/php/OpenAPIClient-php/test/Model/CategoryTest.php index d9fd9d5fc007..5c69416f3c3f 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/test/Model/CategoryTest.php +++ b/samples/client/petstore/php/OpenAPIClient-php/test/Model/CategoryTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 6.1.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/OpenAPIClient-php/test/Model/ClassModelTest.php b/samples/client/petstore/php/OpenAPIClient-php/test/Model/ClassModelTest.php index d35f207a07d0..79768819ca3d 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/test/Model/ClassModelTest.php +++ b/samples/client/petstore/php/OpenAPIClient-php/test/Model/ClassModelTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 6.1.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/OpenAPIClient-php/test/Model/ClientTest.php b/samples/client/petstore/php/OpenAPIClient-php/test/Model/ClientTest.php index 5693b81eafcd..f39901bcacf2 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/test/Model/ClientTest.php +++ b/samples/client/petstore/php/OpenAPIClient-php/test/Model/ClientTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 6.1.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/OpenAPIClient-php/test/Model/DeprecatedObjectTest.php b/samples/client/petstore/php/OpenAPIClient-php/test/Model/DeprecatedObjectTest.php index 900cac8c2cbb..05c4fa424a06 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/test/Model/DeprecatedObjectTest.php +++ b/samples/client/petstore/php/OpenAPIClient-php/test/Model/DeprecatedObjectTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 6.1.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/OpenAPIClient-php/test/Model/DogTest.php b/samples/client/petstore/php/OpenAPIClient-php/test/Model/DogTest.php index 79e3e8a98f84..a41be933ed81 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/test/Model/DogTest.php +++ b/samples/client/petstore/php/OpenAPIClient-php/test/Model/DogTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 6.1.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/OpenAPIClient-php/test/Model/EnumArraysTest.php b/samples/client/petstore/php/OpenAPIClient-php/test/Model/EnumArraysTest.php index dc3d33741e11..2096704f5449 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/test/Model/EnumArraysTest.php +++ b/samples/client/petstore/php/OpenAPIClient-php/test/Model/EnumArraysTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 6.1.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/OpenAPIClient-php/test/Model/EnumClassTest.php b/samples/client/petstore/php/OpenAPIClient-php/test/Model/EnumClassTest.php index a1ca2e7d284b..59fd66fab99a 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/test/Model/EnumClassTest.php +++ b/samples/client/petstore/php/OpenAPIClient-php/test/Model/EnumClassTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 6.1.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/OpenAPIClient-php/test/Model/EnumTestTest.php b/samples/client/petstore/php/OpenAPIClient-php/test/Model/EnumTestTest.php index 6303bf4f06b4..62a012b6f279 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/test/Model/EnumTestTest.php +++ b/samples/client/petstore/php/OpenAPIClient-php/test/Model/EnumTestTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 6.1.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/OpenAPIClient-php/test/Model/EnumWithNameAndDescriptionTest.php b/samples/client/petstore/php/OpenAPIClient-php/test/Model/EnumWithNameAndDescriptionTest.php index e3c7e6991ea9..dcdeec9d99e0 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/test/Model/EnumWithNameAndDescriptionTest.php +++ b/samples/client/petstore/php/OpenAPIClient-php/test/Model/EnumWithNameAndDescriptionTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.9.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/OpenAPIClient-php/test/Model/FakeBigDecimalMap200ResponseTest.php b/samples/client/petstore/php/OpenAPIClient-php/test/Model/FakeBigDecimalMap200ResponseTest.php index 63439f46a9d0..fa2c4c9269bc 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/test/Model/FakeBigDecimalMap200ResponseTest.php +++ b/samples/client/petstore/php/OpenAPIClient-php/test/Model/FakeBigDecimalMap200ResponseTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.0.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/OpenAPIClient-php/test/Model/FileSchemaTestClassTest.php b/samples/client/petstore/php/OpenAPIClient-php/test/Model/FileSchemaTestClassTest.php index 3c49e3a65c7c..c54f880ba7c3 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/test/Model/FileSchemaTestClassTest.php +++ b/samples/client/petstore/php/OpenAPIClient-php/test/Model/FileSchemaTestClassTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 6.1.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/OpenAPIClient-php/test/Model/FileTest.php b/samples/client/petstore/php/OpenAPIClient-php/test/Model/FileTest.php index 64b29dcd6b10..0ccbfb0b0aa1 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/test/Model/FileTest.php +++ b/samples/client/petstore/php/OpenAPIClient-php/test/Model/FileTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 6.1.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/OpenAPIClient-php/test/Model/FooGetDefaultResponseTest.php b/samples/client/petstore/php/OpenAPIClient-php/test/Model/FooGetDefaultResponseTest.php index a1f689961a3d..1ee83eedb6b9 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/test/Model/FooGetDefaultResponseTest.php +++ b/samples/client/petstore/php/OpenAPIClient-php/test/Model/FooGetDefaultResponseTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 6.1.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/OpenAPIClient-php/test/Model/FooTest.php b/samples/client/petstore/php/OpenAPIClient-php/test/Model/FooTest.php index 7c0a87e384e4..3ab1afa63a55 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/test/Model/FooTest.php +++ b/samples/client/petstore/php/OpenAPIClient-php/test/Model/FooTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 6.1.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/OpenAPIClient-php/test/Model/FormatTestTest.php b/samples/client/petstore/php/OpenAPIClient-php/test/Model/FormatTestTest.php index 79893a6083a0..6d053b7cc6ac 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/test/Model/FormatTestTest.php +++ b/samples/client/petstore/php/OpenAPIClient-php/test/Model/FormatTestTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 6.1.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/OpenAPIClient-php/test/Model/HasOnlyReadOnlyTest.php b/samples/client/petstore/php/OpenAPIClient-php/test/Model/HasOnlyReadOnlyTest.php index 4858b0bb0666..22ca1fb5f4bf 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/test/Model/HasOnlyReadOnlyTest.php +++ b/samples/client/petstore/php/OpenAPIClient-php/test/Model/HasOnlyReadOnlyTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 6.1.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/OpenAPIClient-php/test/Model/HealthCheckResultTest.php b/samples/client/petstore/php/OpenAPIClient-php/test/Model/HealthCheckResultTest.php index 97c97742b1de..f2302d119e3b 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/test/Model/HealthCheckResultTest.php +++ b/samples/client/petstore/php/OpenAPIClient-php/test/Model/HealthCheckResultTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 6.1.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/OpenAPIClient-php/test/Model/MapTestTest.php b/samples/client/petstore/php/OpenAPIClient-php/test/Model/MapTestTest.php index 4b079dce7524..90d3078b17c8 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/test/Model/MapTestTest.php +++ b/samples/client/petstore/php/OpenAPIClient-php/test/Model/MapTestTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 6.1.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/OpenAPIClient-php/test/Model/MixedPropertiesAndAdditionalPropertiesClassTest.php b/samples/client/petstore/php/OpenAPIClient-php/test/Model/MixedPropertiesAndAdditionalPropertiesClassTest.php index 595060801c85..50172c489932 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/test/Model/MixedPropertiesAndAdditionalPropertiesClassTest.php +++ b/samples/client/petstore/php/OpenAPIClient-php/test/Model/MixedPropertiesAndAdditionalPropertiesClassTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 6.1.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/OpenAPIClient-php/test/Model/Model200ResponseTest.php b/samples/client/petstore/php/OpenAPIClient-php/test/Model/Model200ResponseTest.php index 99b32582a0be..f84183708b78 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/test/Model/Model200ResponseTest.php +++ b/samples/client/petstore/php/OpenAPIClient-php/test/Model/Model200ResponseTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 6.1.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/OpenAPIClient-php/test/Model/ModelListTest.php b/samples/client/petstore/php/OpenAPIClient-php/test/Model/ModelListTest.php index 2bdd4595bd02..73c624e18a9c 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/test/Model/ModelListTest.php +++ b/samples/client/petstore/php/OpenAPIClient-php/test/Model/ModelListTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 6.1.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/OpenAPIClient-php/test/Model/ModelReturnTest.php b/samples/client/petstore/php/OpenAPIClient-php/test/Model/ModelReturnTest.php index f9390a7ba96c..90dea585eaf6 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/test/Model/ModelReturnTest.php +++ b/samples/client/petstore/php/OpenAPIClient-php/test/Model/ModelReturnTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 6.1.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/OpenAPIClient-php/test/Model/NameTest.php b/samples/client/petstore/php/OpenAPIClient-php/test/Model/NameTest.php index 0c2fa5f8babf..8909403dd166 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/test/Model/NameTest.php +++ b/samples/client/petstore/php/OpenAPIClient-php/test/Model/NameTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 6.1.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/OpenAPIClient-php/test/Model/NullableClassTest.php b/samples/client/petstore/php/OpenAPIClient-php/test/Model/NullableClassTest.php index 98a85272da06..a9d7a5175527 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/test/Model/NullableClassTest.php +++ b/samples/client/petstore/php/OpenAPIClient-php/test/Model/NullableClassTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 6.1.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/OpenAPIClient-php/test/Model/NumberOnlyTest.php b/samples/client/petstore/php/OpenAPIClient-php/test/Model/NumberOnlyTest.php index 85aab557c32b..6f90edb980a3 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/test/Model/NumberOnlyTest.php +++ b/samples/client/petstore/php/OpenAPIClient-php/test/Model/NumberOnlyTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 6.1.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/OpenAPIClient-php/test/Model/ObjectWithDeprecatedFieldsTest.php b/samples/client/petstore/php/OpenAPIClient-php/test/Model/ObjectWithDeprecatedFieldsTest.php index e7bde9e82271..4570d831ab6b 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/test/Model/ObjectWithDeprecatedFieldsTest.php +++ b/samples/client/petstore/php/OpenAPIClient-php/test/Model/ObjectWithDeprecatedFieldsTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 6.1.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/OpenAPIClient-php/test/Model/OrderTest.php b/samples/client/petstore/php/OpenAPIClient-php/test/Model/OrderTest.php index ed14957b5c0d..d899498dcc24 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/test/Model/OrderTest.php +++ b/samples/client/petstore/php/OpenAPIClient-php/test/Model/OrderTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 6.1.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/OpenAPIClient-php/test/Model/OuterCompositeTest.php b/samples/client/petstore/php/OpenAPIClient-php/test/Model/OuterCompositeTest.php index 23abf10c0eb4..208158dabcd9 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/test/Model/OuterCompositeTest.php +++ b/samples/client/petstore/php/OpenAPIClient-php/test/Model/OuterCompositeTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 6.1.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/OpenAPIClient-php/test/Model/OuterEnumDefaultValueTest.php b/samples/client/petstore/php/OpenAPIClient-php/test/Model/OuterEnumDefaultValueTest.php index 003d79f5fbbd..b887dbbd85ce 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/test/Model/OuterEnumDefaultValueTest.php +++ b/samples/client/petstore/php/OpenAPIClient-php/test/Model/OuterEnumDefaultValueTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 6.1.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/OpenAPIClient-php/test/Model/OuterEnumIntegerDefaultValueTest.php b/samples/client/petstore/php/OpenAPIClient-php/test/Model/OuterEnumIntegerDefaultValueTest.php index f7ddfb27575f..b92be15b1d43 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/test/Model/OuterEnumIntegerDefaultValueTest.php +++ b/samples/client/petstore/php/OpenAPIClient-php/test/Model/OuterEnumIntegerDefaultValueTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 6.1.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/OpenAPIClient-php/test/Model/OuterEnumIntegerTest.php b/samples/client/petstore/php/OpenAPIClient-php/test/Model/OuterEnumIntegerTest.php index cab5d97d1531..048cc0916a06 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/test/Model/OuterEnumIntegerTest.php +++ b/samples/client/petstore/php/OpenAPIClient-php/test/Model/OuterEnumIntegerTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 6.1.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/OpenAPIClient-php/test/Model/OuterEnumTest.php b/samples/client/petstore/php/OpenAPIClient-php/test/Model/OuterEnumTest.php index 9c74db356630..30030d470822 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/test/Model/OuterEnumTest.php +++ b/samples/client/petstore/php/OpenAPIClient-php/test/Model/OuterEnumTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 6.1.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/OpenAPIClient-php/test/Model/OuterObjectWithEnumPropertyTest.php b/samples/client/petstore/php/OpenAPIClient-php/test/Model/OuterObjectWithEnumPropertyTest.php index d6a8ff6408e6..81a25b39d9d7 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/test/Model/OuterObjectWithEnumPropertyTest.php +++ b/samples/client/petstore/php/OpenAPIClient-php/test/Model/OuterObjectWithEnumPropertyTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 6.1.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/OpenAPIClient-php/test/Model/PetTest.php b/samples/client/petstore/php/OpenAPIClient-php/test/Model/PetTest.php index d76e6fc4cf96..5ec91146aae0 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/test/Model/PetTest.php +++ b/samples/client/petstore/php/OpenAPIClient-php/test/Model/PetTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 6.1.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/OpenAPIClient-php/test/Model/PropertyNameMappingTest.php b/samples/client/petstore/php/OpenAPIClient-php/test/Model/PropertyNameMappingTest.php index 9f0037ad763c..9ff6f7983f35 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/test/Model/PropertyNameMappingTest.php +++ b/samples/client/petstore/php/OpenAPIClient-php/test/Model/PropertyNameMappingTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.0.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/OpenAPIClient-php/test/Model/ReadOnlyFirstTest.php b/samples/client/petstore/php/OpenAPIClient-php/test/Model/ReadOnlyFirstTest.php index f1f87f9cf10c..5f6ef42c05e9 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/test/Model/ReadOnlyFirstTest.php +++ b/samples/client/petstore/php/OpenAPIClient-php/test/Model/ReadOnlyFirstTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 6.1.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/OpenAPIClient-php/test/Model/SingleRefTypeTest.php b/samples/client/petstore/php/OpenAPIClient-php/test/Model/SingleRefTypeTest.php index 1cf69fb05cf9..c8a441710111 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/test/Model/SingleRefTypeTest.php +++ b/samples/client/petstore/php/OpenAPIClient-php/test/Model/SingleRefTypeTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 6.1.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/OpenAPIClient-php/test/Model/SpecialModelNameTest.php b/samples/client/petstore/php/OpenAPIClient-php/test/Model/SpecialModelNameTest.php index fe191e59d086..d975eda44193 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/test/Model/SpecialModelNameTest.php +++ b/samples/client/petstore/php/OpenAPIClient-php/test/Model/SpecialModelNameTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 6.1.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/OpenAPIClient-php/test/Model/TagTest.php b/samples/client/petstore/php/OpenAPIClient-php/test/Model/TagTest.php index 423b446011a1..f38e1d921d88 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/test/Model/TagTest.php +++ b/samples/client/petstore/php/OpenAPIClient-php/test/Model/TagTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 6.1.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/OpenAPIClient-php/test/Model/TestInlineFreeformAdditionalPropertiesRequestTest.php b/samples/client/petstore/php/OpenAPIClient-php/test/Model/TestInlineFreeformAdditionalPropertiesRequestTest.php index 43059adc83ec..49503d91c675 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/test/Model/TestInlineFreeformAdditionalPropertiesRequestTest.php +++ b/samples/client/petstore/php/OpenAPIClient-php/test/Model/TestInlineFreeformAdditionalPropertiesRequestTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.0.1-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/OpenAPIClient-php/test/Model/UserTest.php b/samples/client/petstore/php/OpenAPIClient-php/test/Model/UserTest.php index f972a7db31c9..ea73afd09f95 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/test/Model/UserTest.php +++ b/samples/client/petstore/php/OpenAPIClient-php/test/Model/UserTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 6.1.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/psr-18/test/Api/AnotherFakeApiTest.php b/samples/client/petstore/php/psr-18/test/Api/AnotherFakeApiTest.php index eb638f8ee6a2..5d035e8208a3 100644 --- a/samples/client/petstore/php/psr-18/test/Api/AnotherFakeApiTest.php +++ b/samples/client/petstore/php/psr-18/test/Api/AnotherFakeApiTest.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.0.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/psr-18/test/Api/DefaultApiTest.php b/samples/client/petstore/php/psr-18/test/Api/DefaultApiTest.php index cbcb57a46b74..1c5ea9403145 100644 --- a/samples/client/petstore/php/psr-18/test/Api/DefaultApiTest.php +++ b/samples/client/petstore/php/psr-18/test/Api/DefaultApiTest.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.0.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/psr-18/test/Api/FakeApiTest.php b/samples/client/petstore/php/psr-18/test/Api/FakeApiTest.php index 2c1552967dfc..2918a1b7f878 100644 --- a/samples/client/petstore/php/psr-18/test/Api/FakeApiTest.php +++ b/samples/client/petstore/php/psr-18/test/Api/FakeApiTest.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.0.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** @@ -83,6 +83,18 @@ public function testFakeBigDecimalMap() self::markTestIncomplete('Not implemented'); } + /** + * Test case for fakeEnumEndpoint + * + * test endpoint with enum parameter. + * + */ + public function testFakeEnumEndpoint() + { + // TODO: implement + self::markTestIncomplete('Not implemented'); + } + /** * Test case for fakeHealthGet * @@ -179,6 +191,18 @@ public function testGetParameterNameMapping() self::markTestIncomplete('Not implemented'); } + /** + * Test case for testAdditionalPropertiesReference + * + * test referenced additionalProperties. + * + */ + public function testTestAdditionalPropertiesReference() + { + // TODO: implement + self::markTestIncomplete('Not implemented'); + } + /** * Test case for testBodyWithBinary * @@ -275,6 +299,18 @@ public function testTestInlineAdditionalProperties() self::markTestIncomplete('Not implemented'); } + /** + * Test case for testInlineFreeformAdditionalProperties + * + * test inline free-form additionalProperties. + * + */ + public function testTestInlineFreeformAdditionalProperties() + { + // TODO: implement + self::markTestIncomplete('Not implemented'); + } + /** * Test case for testJsonFormData * @@ -298,4 +334,16 @@ public function testTestQueryParameterCollectionFormat() // TODO: implement self::markTestIncomplete('Not implemented'); } + + /** + * Test case for testStringMapReference + * + * test referenced string map. + * + */ + public function testTestStringMapReference() + { + // TODO: implement + self::markTestIncomplete('Not implemented'); + } } diff --git a/samples/client/petstore/php/psr-18/test/Api/FakeClassnameTags123ApiTest.php b/samples/client/petstore/php/psr-18/test/Api/FakeClassnameTags123ApiTest.php index a2cdce2f6eba..bab512f28a83 100644 --- a/samples/client/petstore/php/psr-18/test/Api/FakeClassnameTags123ApiTest.php +++ b/samples/client/petstore/php/psr-18/test/Api/FakeClassnameTags123ApiTest.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.0.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/psr-18/test/Api/PetApiTest.php b/samples/client/petstore/php/psr-18/test/Api/PetApiTest.php index 9e449b563be6..daeb96730442 100644 --- a/samples/client/petstore/php/psr-18/test/Api/PetApiTest.php +++ b/samples/client/petstore/php/psr-18/test/Api/PetApiTest.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.0.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/psr-18/test/Api/StoreApiTest.php b/samples/client/petstore/php/psr-18/test/Api/StoreApiTest.php index d2d83940ef27..38b93d07611f 100644 --- a/samples/client/petstore/php/psr-18/test/Api/StoreApiTest.php +++ b/samples/client/petstore/php/psr-18/test/Api/StoreApiTest.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.0.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/psr-18/test/Api/UserApiTest.php b/samples/client/petstore/php/psr-18/test/Api/UserApiTest.php index cb45027ed4aa..8850d12a935c 100644 --- a/samples/client/petstore/php/psr-18/test/Api/UserApiTest.php +++ b/samples/client/petstore/php/psr-18/test/Api/UserApiTest.php @@ -16,7 +16,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.0.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/psr-18/test/Model/AdditionalPropertiesClassTest.php b/samples/client/petstore/php/psr-18/test/Model/AdditionalPropertiesClassTest.php index 287808971e41..98c535f87a85 100644 --- a/samples/client/petstore/php/psr-18/test/Model/AdditionalPropertiesClassTest.php +++ b/samples/client/petstore/php/psr-18/test/Model/AdditionalPropertiesClassTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.0.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/psr-18/test/Model/AllOfWithSingleRefTest.php b/samples/client/petstore/php/psr-18/test/Model/AllOfWithSingleRefTest.php index 6eeeb7fa71d9..09fbfc05bb3b 100644 --- a/samples/client/petstore/php/psr-18/test/Model/AllOfWithSingleRefTest.php +++ b/samples/client/petstore/php/psr-18/test/Model/AllOfWithSingleRefTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.0.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/psr-18/test/Model/AnimalTest.php b/samples/client/petstore/php/psr-18/test/Model/AnimalTest.php index bc3710a28824..70608f492a7b 100644 --- a/samples/client/petstore/php/psr-18/test/Model/AnimalTest.php +++ b/samples/client/petstore/php/psr-18/test/Model/AnimalTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.0.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/psr-18/test/Model/ApiResponseTest.php b/samples/client/petstore/php/psr-18/test/Model/ApiResponseTest.php index 3e8b301e397d..e57704a8da0d 100644 --- a/samples/client/petstore/php/psr-18/test/Model/ApiResponseTest.php +++ b/samples/client/petstore/php/psr-18/test/Model/ApiResponseTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.0.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/psr-18/test/Model/ArrayOfArrayOfNumberOnlyTest.php b/samples/client/petstore/php/psr-18/test/Model/ArrayOfArrayOfNumberOnlyTest.php index 3f534fc3dca0..404ade8322df 100644 --- a/samples/client/petstore/php/psr-18/test/Model/ArrayOfArrayOfNumberOnlyTest.php +++ b/samples/client/petstore/php/psr-18/test/Model/ArrayOfArrayOfNumberOnlyTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.0.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/psr-18/test/Model/ArrayOfNumberOnlyTest.php b/samples/client/petstore/php/psr-18/test/Model/ArrayOfNumberOnlyTest.php index 0a6c7d2c1649..212bc03b752f 100644 --- a/samples/client/petstore/php/psr-18/test/Model/ArrayOfNumberOnlyTest.php +++ b/samples/client/petstore/php/psr-18/test/Model/ArrayOfNumberOnlyTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.0.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/psr-18/test/Model/ArrayTestTest.php b/samples/client/petstore/php/psr-18/test/Model/ArrayTestTest.php index fc366d625e2a..4555438b716d 100644 --- a/samples/client/petstore/php/psr-18/test/Model/ArrayTestTest.php +++ b/samples/client/petstore/php/psr-18/test/Model/ArrayTestTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.0.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/psr-18/test/Model/CapitalizationTest.php b/samples/client/petstore/php/psr-18/test/Model/CapitalizationTest.php index 62d10d5099bc..acd19eba4426 100644 --- a/samples/client/petstore/php/psr-18/test/Model/CapitalizationTest.php +++ b/samples/client/petstore/php/psr-18/test/Model/CapitalizationTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.0.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/psr-18/test/Model/CatTest.php b/samples/client/petstore/php/psr-18/test/Model/CatTest.php index 29ce99288d88..376356239785 100644 --- a/samples/client/petstore/php/psr-18/test/Model/CatTest.php +++ b/samples/client/petstore/php/psr-18/test/Model/CatTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.0.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/psr-18/test/Model/CategoryTest.php b/samples/client/petstore/php/psr-18/test/Model/CategoryTest.php index fad932a31981..5c69416f3c3f 100644 --- a/samples/client/petstore/php/psr-18/test/Model/CategoryTest.php +++ b/samples/client/petstore/php/psr-18/test/Model/CategoryTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.0.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/psr-18/test/Model/ClassModelTest.php b/samples/client/petstore/php/psr-18/test/Model/ClassModelTest.php index 2b59c4f09b02..79768819ca3d 100644 --- a/samples/client/petstore/php/psr-18/test/Model/ClassModelTest.php +++ b/samples/client/petstore/php/psr-18/test/Model/ClassModelTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.0.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/psr-18/test/Model/ClientTest.php b/samples/client/petstore/php/psr-18/test/Model/ClientTest.php index acba1853268b..f39901bcacf2 100644 --- a/samples/client/petstore/php/psr-18/test/Model/ClientTest.php +++ b/samples/client/petstore/php/psr-18/test/Model/ClientTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.0.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/psr-18/test/Model/DeprecatedObjectTest.php b/samples/client/petstore/php/psr-18/test/Model/DeprecatedObjectTest.php index a780bdf3d800..05c4fa424a06 100644 --- a/samples/client/petstore/php/psr-18/test/Model/DeprecatedObjectTest.php +++ b/samples/client/petstore/php/psr-18/test/Model/DeprecatedObjectTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.0.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/psr-18/test/Model/DogTest.php b/samples/client/petstore/php/psr-18/test/Model/DogTest.php index 41e2d8ebdad4..a41be933ed81 100644 --- a/samples/client/petstore/php/psr-18/test/Model/DogTest.php +++ b/samples/client/petstore/php/psr-18/test/Model/DogTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.0.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/psr-18/test/Model/EnumArraysTest.php b/samples/client/petstore/php/psr-18/test/Model/EnumArraysTest.php index aa99f21b5952..2096704f5449 100644 --- a/samples/client/petstore/php/psr-18/test/Model/EnumArraysTest.php +++ b/samples/client/petstore/php/psr-18/test/Model/EnumArraysTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.0.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/psr-18/test/Model/EnumClassTest.php b/samples/client/petstore/php/psr-18/test/Model/EnumClassTest.php index 9a63b11e5346..59fd66fab99a 100644 --- a/samples/client/petstore/php/psr-18/test/Model/EnumClassTest.php +++ b/samples/client/petstore/php/psr-18/test/Model/EnumClassTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.0.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/psr-18/test/Model/EnumTestTest.php b/samples/client/petstore/php/psr-18/test/Model/EnumTestTest.php index 853e73b67ac4..62a012b6f279 100644 --- a/samples/client/petstore/php/psr-18/test/Model/EnumTestTest.php +++ b/samples/client/petstore/php/psr-18/test/Model/EnumTestTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.0.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/psr-18/test/Model/EnumWithNameAndDescriptionTest.php b/samples/client/petstore/php/psr-18/test/Model/EnumWithNameAndDescriptionTest.php index e3c7e6991ea9..dcdeec9d99e0 100644 --- a/samples/client/petstore/php/psr-18/test/Model/EnumWithNameAndDescriptionTest.php +++ b/samples/client/petstore/php/psr-18/test/Model/EnumWithNameAndDescriptionTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * Generator version: 7.9.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/psr-18/test/Model/FakeBigDecimalMap200ResponseTest.php b/samples/client/petstore/php/psr-18/test/Model/FakeBigDecimalMap200ResponseTest.php index 63439f46a9d0..fa2c4c9269bc 100644 --- a/samples/client/petstore/php/psr-18/test/Model/FakeBigDecimalMap200ResponseTest.php +++ b/samples/client/petstore/php/psr-18/test/Model/FakeBigDecimalMap200ResponseTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.0.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/psr-18/test/Model/FileSchemaTestClassTest.php b/samples/client/petstore/php/psr-18/test/Model/FileSchemaTestClassTest.php index 4351f64b3578..c54f880ba7c3 100644 --- a/samples/client/petstore/php/psr-18/test/Model/FileSchemaTestClassTest.php +++ b/samples/client/petstore/php/psr-18/test/Model/FileSchemaTestClassTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.0.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/psr-18/test/Model/FileTest.php b/samples/client/petstore/php/psr-18/test/Model/FileTest.php index eb8ca4f2d106..0ccbfb0b0aa1 100644 --- a/samples/client/petstore/php/psr-18/test/Model/FileTest.php +++ b/samples/client/petstore/php/psr-18/test/Model/FileTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.0.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/psr-18/test/Model/FooGetDefaultResponseTest.php b/samples/client/petstore/php/psr-18/test/Model/FooGetDefaultResponseTest.php index f76c720e4a55..1ee83eedb6b9 100644 --- a/samples/client/petstore/php/psr-18/test/Model/FooGetDefaultResponseTest.php +++ b/samples/client/petstore/php/psr-18/test/Model/FooGetDefaultResponseTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.0.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/psr-18/test/Model/FooTest.php b/samples/client/petstore/php/psr-18/test/Model/FooTest.php index b2a6c807ab17..3ab1afa63a55 100644 --- a/samples/client/petstore/php/psr-18/test/Model/FooTest.php +++ b/samples/client/petstore/php/psr-18/test/Model/FooTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.0.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/psr-18/test/Model/FormatTestTest.php b/samples/client/petstore/php/psr-18/test/Model/FormatTestTest.php index 296a4aaa9537..6d053b7cc6ac 100644 --- a/samples/client/petstore/php/psr-18/test/Model/FormatTestTest.php +++ b/samples/client/petstore/php/psr-18/test/Model/FormatTestTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.0.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/psr-18/test/Model/HasOnlyReadOnlyTest.php b/samples/client/petstore/php/psr-18/test/Model/HasOnlyReadOnlyTest.php index c08dc5609c77..22ca1fb5f4bf 100644 --- a/samples/client/petstore/php/psr-18/test/Model/HasOnlyReadOnlyTest.php +++ b/samples/client/petstore/php/psr-18/test/Model/HasOnlyReadOnlyTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.0.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/psr-18/test/Model/HealthCheckResultTest.php b/samples/client/petstore/php/psr-18/test/Model/HealthCheckResultTest.php index 930fe240ed8a..f2302d119e3b 100644 --- a/samples/client/petstore/php/psr-18/test/Model/HealthCheckResultTest.php +++ b/samples/client/petstore/php/psr-18/test/Model/HealthCheckResultTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.0.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/psr-18/test/Model/MapTestTest.php b/samples/client/petstore/php/psr-18/test/Model/MapTestTest.php index c15b0fd42872..90d3078b17c8 100644 --- a/samples/client/petstore/php/psr-18/test/Model/MapTestTest.php +++ b/samples/client/petstore/php/psr-18/test/Model/MapTestTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.0.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/psr-18/test/Model/MixedPropertiesAndAdditionalPropertiesClassTest.php b/samples/client/petstore/php/psr-18/test/Model/MixedPropertiesAndAdditionalPropertiesClassTest.php index 6663f28c6dfe..50172c489932 100644 --- a/samples/client/petstore/php/psr-18/test/Model/MixedPropertiesAndAdditionalPropertiesClassTest.php +++ b/samples/client/petstore/php/psr-18/test/Model/MixedPropertiesAndAdditionalPropertiesClassTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.0.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/psr-18/test/Model/Model200ResponseTest.php b/samples/client/petstore/php/psr-18/test/Model/Model200ResponseTest.php index ab2dd5ae1aa9..f84183708b78 100644 --- a/samples/client/petstore/php/psr-18/test/Model/Model200ResponseTest.php +++ b/samples/client/petstore/php/psr-18/test/Model/Model200ResponseTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.0.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/psr-18/test/Model/ModelListTest.php b/samples/client/petstore/php/psr-18/test/Model/ModelListTest.php index 0abf86225faa..73c624e18a9c 100644 --- a/samples/client/petstore/php/psr-18/test/Model/ModelListTest.php +++ b/samples/client/petstore/php/psr-18/test/Model/ModelListTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.0.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/psr-18/test/Model/ModelReturnTest.php b/samples/client/petstore/php/psr-18/test/Model/ModelReturnTest.php index b1c010fe76b8..90dea585eaf6 100644 --- a/samples/client/petstore/php/psr-18/test/Model/ModelReturnTest.php +++ b/samples/client/petstore/php/psr-18/test/Model/ModelReturnTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.0.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/psr-18/test/Model/NameTest.php b/samples/client/petstore/php/psr-18/test/Model/NameTest.php index 1b503949370c..8909403dd166 100644 --- a/samples/client/petstore/php/psr-18/test/Model/NameTest.php +++ b/samples/client/petstore/php/psr-18/test/Model/NameTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.0.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/psr-18/test/Model/NullableClassTest.php b/samples/client/petstore/php/psr-18/test/Model/NullableClassTest.php index 176ac7e1259a..a9d7a5175527 100644 --- a/samples/client/petstore/php/psr-18/test/Model/NullableClassTest.php +++ b/samples/client/petstore/php/psr-18/test/Model/NullableClassTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.0.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/psr-18/test/Model/NumberOnlyTest.php b/samples/client/petstore/php/psr-18/test/Model/NumberOnlyTest.php index 47b21b7f5a72..6f90edb980a3 100644 --- a/samples/client/petstore/php/psr-18/test/Model/NumberOnlyTest.php +++ b/samples/client/petstore/php/psr-18/test/Model/NumberOnlyTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.0.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/psr-18/test/Model/ObjectWithDeprecatedFieldsTest.php b/samples/client/petstore/php/psr-18/test/Model/ObjectWithDeprecatedFieldsTest.php index 6676fce1e840..4570d831ab6b 100644 --- a/samples/client/petstore/php/psr-18/test/Model/ObjectWithDeprecatedFieldsTest.php +++ b/samples/client/petstore/php/psr-18/test/Model/ObjectWithDeprecatedFieldsTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.0.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/psr-18/test/Model/OrderTest.php b/samples/client/petstore/php/psr-18/test/Model/OrderTest.php index 7b462a84240d..d899498dcc24 100644 --- a/samples/client/petstore/php/psr-18/test/Model/OrderTest.php +++ b/samples/client/petstore/php/psr-18/test/Model/OrderTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.0.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/psr-18/test/Model/OuterCompositeTest.php b/samples/client/petstore/php/psr-18/test/Model/OuterCompositeTest.php index 1ba7ddfd532e..208158dabcd9 100644 --- a/samples/client/petstore/php/psr-18/test/Model/OuterCompositeTest.php +++ b/samples/client/petstore/php/psr-18/test/Model/OuterCompositeTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.0.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/psr-18/test/Model/OuterEnumDefaultValueTest.php b/samples/client/petstore/php/psr-18/test/Model/OuterEnumDefaultValueTest.php index 8d49246a231e..b887dbbd85ce 100644 --- a/samples/client/petstore/php/psr-18/test/Model/OuterEnumDefaultValueTest.php +++ b/samples/client/petstore/php/psr-18/test/Model/OuterEnumDefaultValueTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.0.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/psr-18/test/Model/OuterEnumIntegerDefaultValueTest.php b/samples/client/petstore/php/psr-18/test/Model/OuterEnumIntegerDefaultValueTest.php index ccfe76e7e360..b92be15b1d43 100644 --- a/samples/client/petstore/php/psr-18/test/Model/OuterEnumIntegerDefaultValueTest.php +++ b/samples/client/petstore/php/psr-18/test/Model/OuterEnumIntegerDefaultValueTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.0.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/psr-18/test/Model/OuterEnumIntegerTest.php b/samples/client/petstore/php/psr-18/test/Model/OuterEnumIntegerTest.php index 41a52eaf7ccc..048cc0916a06 100644 --- a/samples/client/petstore/php/psr-18/test/Model/OuterEnumIntegerTest.php +++ b/samples/client/petstore/php/psr-18/test/Model/OuterEnumIntegerTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.0.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/psr-18/test/Model/OuterEnumTest.php b/samples/client/petstore/php/psr-18/test/Model/OuterEnumTest.php index 92161a25ec0c..30030d470822 100644 --- a/samples/client/petstore/php/psr-18/test/Model/OuterEnumTest.php +++ b/samples/client/petstore/php/psr-18/test/Model/OuterEnumTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.0.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/psr-18/test/Model/OuterObjectWithEnumPropertyTest.php b/samples/client/petstore/php/psr-18/test/Model/OuterObjectWithEnumPropertyTest.php index 830121ff2f33..81a25b39d9d7 100644 --- a/samples/client/petstore/php/psr-18/test/Model/OuterObjectWithEnumPropertyTest.php +++ b/samples/client/petstore/php/psr-18/test/Model/OuterObjectWithEnumPropertyTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.0.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/psr-18/test/Model/PetTest.php b/samples/client/petstore/php/psr-18/test/Model/PetTest.php index 5ebf4bf5c559..5ec91146aae0 100644 --- a/samples/client/petstore/php/psr-18/test/Model/PetTest.php +++ b/samples/client/petstore/php/psr-18/test/Model/PetTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.0.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/psr-18/test/Model/PropertyNameMappingTest.php b/samples/client/petstore/php/psr-18/test/Model/PropertyNameMappingTest.php index 9f0037ad763c..9ff6f7983f35 100644 --- a/samples/client/petstore/php/psr-18/test/Model/PropertyNameMappingTest.php +++ b/samples/client/petstore/php/psr-18/test/Model/PropertyNameMappingTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.0.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/psr-18/test/Model/ReadOnlyFirstTest.php b/samples/client/petstore/php/psr-18/test/Model/ReadOnlyFirstTest.php index 712317972ce5..5f6ef42c05e9 100644 --- a/samples/client/petstore/php/psr-18/test/Model/ReadOnlyFirstTest.php +++ b/samples/client/petstore/php/psr-18/test/Model/ReadOnlyFirstTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.0.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/psr-18/test/Model/SingleRefTypeTest.php b/samples/client/petstore/php/psr-18/test/Model/SingleRefTypeTest.php index 2a7ad6b5bd9f..c8a441710111 100644 --- a/samples/client/petstore/php/psr-18/test/Model/SingleRefTypeTest.php +++ b/samples/client/petstore/php/psr-18/test/Model/SingleRefTypeTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.0.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/psr-18/test/Model/SpecialModelNameTest.php b/samples/client/petstore/php/psr-18/test/Model/SpecialModelNameTest.php index 6a71585f7f9c..d975eda44193 100644 --- a/samples/client/petstore/php/psr-18/test/Model/SpecialModelNameTest.php +++ b/samples/client/petstore/php/psr-18/test/Model/SpecialModelNameTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.0.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/psr-18/test/Model/TagTest.php b/samples/client/petstore/php/psr-18/test/Model/TagTest.php index a3cf97687a92..f38e1d921d88 100644 --- a/samples/client/petstore/php/psr-18/test/Model/TagTest.php +++ b/samples/client/petstore/php/psr-18/test/Model/TagTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.0.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/psr-18/test/Model/TestInlineFreeformAdditionalPropertiesRequestTest.php b/samples/client/petstore/php/psr-18/test/Model/TestInlineFreeformAdditionalPropertiesRequestTest.php index 43059adc83ec..49503d91c675 100644 --- a/samples/client/petstore/php/psr-18/test/Model/TestInlineFreeformAdditionalPropertiesRequestTest.php +++ b/samples/client/petstore/php/psr-18/test/Model/TestInlineFreeformAdditionalPropertiesRequestTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.0.1-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/php/psr-18/test/Model/UserTest.php b/samples/client/petstore/php/psr-18/test/Model/UserTest.php index 3ddf40d669db..ea73afd09f95 100644 --- a/samples/client/petstore/php/psr-18/test/Model/UserTest.php +++ b/samples/client/petstore/php/psr-18/test/Model/UserTest.php @@ -17,7 +17,7 @@ * * The version of the OpenAPI document: 1.0.0 * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 7.0.0-SNAPSHOT + * Generator version: 7.11.0-SNAPSHOT */ /** diff --git a/samples/client/petstore/powershell/tests/Api/PSFakeApi.Tests.ps1 b/samples/client/petstore/powershell/tests/Api/PSFakeApi.Tests.ps1 index 1900eab70f81..cfe3d3e3c4cf 100644 --- a/samples/client/petstore/powershell/tests/Api/PSFakeApi.Tests.ps1 +++ b/samples/client/petstore/powershell/tests/Api/PSFakeApi.Tests.ps1 @@ -54,6 +54,14 @@ Describe -tag 'PSPetstore' -name 'PSPSFakeApi' { } } + Context 'Test-PSAdditionalPropertiesReference' { + It 'Test Test-PSAdditionalPropertiesReference' { + #$TestResult = Test-PSAdditionalPropertiesReference -RequestBody "TEST_VALUE" + #$TestResult | Should -BeOfType TODO + #$TestResult.property | Should -Be 0 + } + } + Context 'Test-PSBodyWithFileSchema' { It 'Test Test-PSBodyWithFileSchema' { #$TestResult = Test-PSBodyWithFileSchema -FileSchemaTestClass "TEST_VALUE" @@ -110,6 +118,14 @@ Describe -tag 'PSPetstore' -name 'PSPSFakeApi' { } } + Context 'Test-PSInlineFreeformAdditionalProperties' { + It 'Test Test-PSInlineFreeformAdditionalProperties' { + #$TestResult = Test-PSInlineFreeformAdditionalProperties -TestInlineFreeformAdditionalPropertiesRequest "TEST_VALUE" + #$TestResult | Should -BeOfType TODO + #$TestResult.property | Should -Be 0 + } + } + Context 'Test-PSJsonFormData' { It 'Test Test-PSJsonFormData' { #$TestResult = Test-PSJsonFormData -Param "TEST_VALUE" -Param2 "TEST_VALUE" @@ -126,4 +142,12 @@ Describe -tag 'PSPetstore' -name 'PSPSFakeApi' { } } + Context 'Test-PSStringMapReference' { + It 'Test Test-PSStringMapReference' { + #$TestResult = Test-PSStringMapReference -RequestBody "TEST_VALUE" + #$TestResult | Should -BeOfType TODO + #$TestResult.property | Should -Be 0 + } + } + } diff --git a/samples/client/petstore/powershell/tests/Api/PSPetApi.Tests.ps1 b/samples/client/petstore/powershell/tests/Api/PSPetApi.Tests.ps1 index 89fba4eed997..1135a5e35eac 100644 --- a/samples/client/petstore/powershell/tests/Api/PSPetApi.Tests.ps1 +++ b/samples/client/petstore/powershell/tests/Api/PSPetApi.Tests.ps1 @@ -1,6 +1,6 @@ # # OpenAPI Petstore -# This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. +# This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: "" \ # Version: 1.0.0 # Generated by OpenAPI Generator: https://openapi-generator.tech # @@ -70,4 +70,12 @@ Describe -tag 'PSPetstore' -name 'PSPSPetApi' { } } + Context 'Invoke-PSUploadFileWithRequiredFile' { + It 'Test Invoke-PSUploadFileWithRequiredFile' { + #$TestResult = Invoke-PSUploadFileWithRequiredFile -PetId "TEST_VALUE" -RequiredFile "TEST_VALUE" -AdditionalMetadata "TEST_VALUE" + #$TestResult | Should -BeOfType TODO + #$TestResult.property | Should -Be 0 + } + } + } diff --git a/samples/client/petstore/powershell/tests/Api/PSStoreApi.Tests.ps1 b/samples/client/petstore/powershell/tests/Api/PSStoreApi.Tests.ps1 index 509019fe2ef9..4022668e26ec 100644 --- a/samples/client/petstore/powershell/tests/Api/PSStoreApi.Tests.ps1 +++ b/samples/client/petstore/powershell/tests/Api/PSStoreApi.Tests.ps1 @@ -1,6 +1,6 @@ # # OpenAPI Petstore -# This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. +# This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: "" \ # Version: 1.0.0 # Generated by OpenAPI Generator: https://openapi-generator.tech # diff --git a/samples/client/petstore/powershell/tests/Api/PSUserApi.Tests.ps1 b/samples/client/petstore/powershell/tests/Api/PSUserApi.Tests.ps1 index 21978edb37f3..0d032178918b 100644 --- a/samples/client/petstore/powershell/tests/Api/PSUserApi.Tests.ps1 +++ b/samples/client/petstore/powershell/tests/Api/PSUserApi.Tests.ps1 @@ -1,6 +1,6 @@ # # OpenAPI Petstore -# This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. +# This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: "" \ # Version: 1.0.0 # Generated by OpenAPI Generator: https://openapi-generator.tech # diff --git a/samples/client/petstore/powershell/tests/Model/ApiResponse.Tests.ps1 b/samples/client/petstore/powershell/tests/Model/ApiResponse.Tests.ps1 index 792526347142..b2de8f846705 100644 --- a/samples/client/petstore/powershell/tests/Model/ApiResponse.Tests.ps1 +++ b/samples/client/petstore/powershell/tests/Model/ApiResponse.Tests.ps1 @@ -1,6 +1,6 @@ # # OpenAPI Petstore -# This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. +# This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: "" \ # Version: 1.0.0 # Generated by OpenAPI Generator: https://openapi-generator.tech # diff --git a/samples/client/petstore/powershell/tests/Model/Category.Tests.ps1 b/samples/client/petstore/powershell/tests/Model/Category.Tests.ps1 index b4782f412b40..faaff2b19380 100644 --- a/samples/client/petstore/powershell/tests/Model/Category.Tests.ps1 +++ b/samples/client/petstore/powershell/tests/Model/Category.Tests.ps1 @@ -1,6 +1,6 @@ # # OpenAPI Petstore -# This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. +# This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: "" \ # Version: 1.0.0 # Generated by OpenAPI Generator: https://openapi-generator.tech # diff --git a/samples/client/petstore/powershell/tests/Model/EnumTest.Tests.ps1 b/samples/client/petstore/powershell/tests/Model/EnumTest.Tests.ps1 index e7f1a863029b..4a22a9b45c8b 100644 --- a/samples/client/petstore/powershell/tests/Model/EnumTest.Tests.ps1 +++ b/samples/client/petstore/powershell/tests/Model/EnumTest.Tests.ps1 @@ -9,7 +9,7 @@ Describe -tag 'PSPetstore' -name 'PSEnumTest' { Context 'PSEnumTest' { It 'Initialize-PSEnumTest' { # a simple test to create an object - #$NewObject = Initialize-PSEnumTest -EnumString "TEST_VALUE" -EnumStringRequired "TEST_VALUE" -EnumInteger "TEST_VALUE" -EnumIntegerOnly "TEST_VALUE" -EnumNumber "TEST_VALUE" -OuterEnum "TEST_VALUE" -OuterEnumInteger "TEST_VALUE" -OuterEnumDefaultValue "TEST_VALUE" -OuterEnumIntegerDefaultValue "TEST_VALUE" + #$NewObject = Initialize-PSEnumTest -EnumString "TEST_VALUE" -EnumStringRequired "TEST_VALUE" -EnumInteger "TEST_VALUE" -EnumIntegerOnly "TEST_VALUE" -EnumNumber "TEST_VALUE" -OuterEnum "TEST_VALUE" #$NewObject | Should -BeOfType EnumTest #$NewObject.property | Should -Be 0 } diff --git a/samples/client/petstore/powershell/tests/Model/ObjectWithDeprecatedFields.Tests.ps1 b/samples/client/petstore/powershell/tests/Model/ObjectWithDeprecatedFields.Tests.ps1 index 10ae61483760..985fc50f4f84 100644 --- a/samples/client/petstore/powershell/tests/Model/ObjectWithDeprecatedFields.Tests.ps1 +++ b/samples/client/petstore/powershell/tests/Model/ObjectWithDeprecatedFields.Tests.ps1 @@ -9,7 +9,7 @@ Describe -tag 'PSPetstore' -name 'PSObjectWithDeprecatedFields' { Context 'PSObjectWithDeprecatedFields' { It 'Initialize-PSObjectWithDeprecatedFields' { # a simple test to create an object - #$NewObject = Initialize-PSObjectWithDeprecatedFields -Uuid "TEST_VALUE" -Id "TEST_VALUE" -DeprecatedRef "TEST_VALUE" -Bars "TEST_VALUE" + #$NewObject = Initialize-PSObjectWithDeprecatedFields -Uuid "TEST_VALUE" -Id "TEST_VALUE" -DeprecatedRef "TEST_VALUE" -Bars "TEST_VALUE" -SomethingElse "TEST_VALUE" #$NewObject | Should -BeOfType ObjectWithDeprecatedFields #$NewObject.property | Should -Be 0 } diff --git a/samples/client/petstore/powershell/tests/Model/Order.Tests.ps1 b/samples/client/petstore/powershell/tests/Model/Order.Tests.ps1 index 5bf036e01fa2..5710b6b99dd9 100644 --- a/samples/client/petstore/powershell/tests/Model/Order.Tests.ps1 +++ b/samples/client/petstore/powershell/tests/Model/Order.Tests.ps1 @@ -1,6 +1,6 @@ # # OpenAPI Petstore -# This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. +# This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: "" \ # Version: 1.0.0 # Generated by OpenAPI Generator: https://openapi-generator.tech # diff --git a/samples/client/petstore/powershell/tests/Model/Pet.Tests.ps1 b/samples/client/petstore/powershell/tests/Model/Pet.Tests.ps1 index 1f6e189b8365..7d82d10caae1 100644 --- a/samples/client/petstore/powershell/tests/Model/Pet.Tests.ps1 +++ b/samples/client/petstore/powershell/tests/Model/Pet.Tests.ps1 @@ -1,6 +1,6 @@ # # OpenAPI Petstore -# This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. +# This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: "" \ # Version: 1.0.0 # Generated by OpenAPI Generator: https://openapi-generator.tech # diff --git a/samples/client/petstore/powershell/tests/Model/Tag.Tests.ps1 b/samples/client/petstore/powershell/tests/Model/Tag.Tests.ps1 index ae168f27dc79..36516e8264f7 100644 --- a/samples/client/petstore/powershell/tests/Model/Tag.Tests.ps1 +++ b/samples/client/petstore/powershell/tests/Model/Tag.Tests.ps1 @@ -1,6 +1,6 @@ # # OpenAPI Petstore -# This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. +# This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: "" \ # Version: 1.0.0 # Generated by OpenAPI Generator: https://openapi-generator.tech # diff --git a/samples/client/petstore/powershell/tests/Model/User.Tests.ps1 b/samples/client/petstore/powershell/tests/Model/User.Tests.ps1 index 1c9f4d6dee40..df1cff9be009 100644 --- a/samples/client/petstore/powershell/tests/Model/User.Tests.ps1 +++ b/samples/client/petstore/powershell/tests/Model/User.Tests.ps1 @@ -1,6 +1,6 @@ # # OpenAPI Petstore -# This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. +# This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: "" \ # Version: 1.0.0 # Generated by OpenAPI Generator: https://openapi-generator.tech # @@ -9,7 +9,7 @@ Describe -tag 'PSPetstore' -name 'PSUser' { Context 'PSUser' { It 'Initialize-PSUser' { # a simple test to create an object - #$NewObject = Initialize-PSUser -Id "TEST_VALUE" -Username "TEST_VALUE" -FirstName "TEST_VALUE" -LastName "TEST_VALUE" -Email "TEST_VALUE" -Password "TEST_VALUE" -Phone "TEST_VALUE" -UserStatus "TEST_VALUE" + #$NewObject = Initialize-PSUser -Id "TEST_VALUE" -Username "TEST_VALUE" -FirstName "TEST_VALUE" -LastName "TEST_VALUE" -Email "TEST_VALUE" -Password "TEST_VALUE" -Phone "TEST_VALUE" -UserStatus "TEST_VALUE" -ObjectWithNoDeclaredProps "TEST_VALUE" -ObjectWithNoDeclaredPropsNullable "TEST_VALUE" -AnyTypeProp "TEST_VALUE" -AnyTypePropNullable "TEST_VALUE" #$NewObject | Should -BeOfType User #$NewObject.property | Should -Be 0 } diff --git a/samples/client/petstore/ruby-autoload/spec/api/another_fake_api_spec.rb b/samples/client/petstore/ruby-autoload/spec/api/another_fake_api_spec.rb index 1343b2a9cc66..4db2cbc9d00f 100644 --- a/samples/client/petstore/ruby-autoload/spec/api/another_fake_api_spec.rb +++ b/samples/client/petstore/ruby-autoload/spec/api/another_fake_api_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end diff --git a/samples/client/petstore/ruby-autoload/spec/api/default_api_spec.rb b/samples/client/petstore/ruby-autoload/spec/api/default_api_spec.rb index f453852b8c08..fc1db9dae748 100644 --- a/samples/client/petstore/ruby-autoload/spec/api/default_api_spec.rb +++ b/samples/client/petstore/ruby-autoload/spec/api/default_api_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end diff --git a/samples/client/petstore/ruby-autoload/spec/api/fake_api_spec.rb b/samples/client/petstore/ruby-autoload/spec/api/fake_api_spec.rb index 45df141292bd..4fb9b347337a 100644 --- a/samples/client/petstore/ruby-autoload/spec/api/fake_api_spec.rb +++ b/samples/client/petstore/ruby-autoload/spec/api/fake_api_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -32,6 +32,16 @@ end end + # unit tests for fake_big_decimal_map + # for Java apache and Java native, test toUrlQueryString for maps with BegDecimal keys + # @param [Hash] opts the optional parameters + # @return [FakeBigDecimalMap200Response] + describe 'fake_big_decimal_map test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + # unit tests for fake_health_get # Health check endpoint # @param [Hash] opts the optional parameters @@ -110,6 +120,18 @@ end end + # unit tests for test_additional_properties_reference + # test referenced additionalProperties + # + # @param request_body request body + # @param [Hash] opts the optional parameters + # @return [nil] + describe 'test_additional_properties_reference test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + # unit tests for test_body_with_binary # For this test, the body has to be a binary file. # @param body image to upload @@ -123,7 +145,7 @@ # unit tests for test_body_with_file_schema # For this test, the body for this request must reference a schema named `File`. - # @param file_schema_test_class + # @param file_schema_test_class # @param [Hash] opts the optional parameters # @return [nil] describe 'test_body_with_file_schema test' do @@ -133,8 +155,8 @@ end # unit tests for test_body_with_query_params - # @param query - # @param user + # @param query + # @param user # @param [Hash] opts the optional parameters # @return [nil] describe 'test_body_with_query_params test' do @@ -156,8 +178,8 @@ end # unit tests for test_endpoint_parameters - # Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 - # Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 + # Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 + # Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 # @param number None # @param double None # @param pattern_without_delimiter None @@ -190,7 +212,7 @@ # @option opts [String] :enum_query_string Query parameter enum test (string) # @option opts [Integer] :enum_query_integer Query parameter enum test (double) # @option opts [Float] :enum_query_double Query parameter enum test (double) - # @option opts [Array] :enum_query_model_array + # @option opts [Array] :enum_query_model_array # @option opts [Array] :enum_form_string_array Form parameter enum test (string array) # @option opts [String] :enum_form_string Form parameter enum test (string) # @return [nil] @@ -219,7 +241,7 @@ # unit tests for test_inline_additional_properties # test inline additionalProperties - # + # # @param request_body request body # @param [Hash] opts the optional parameters # @return [nil] @@ -229,9 +251,21 @@ end end + # unit tests for test_inline_freeform_additional_properties + # test inline free-form additionalProperties + # + # @param test_inline_freeform_additional_properties_request request body + # @param [Hash] opts the optional parameters + # @return [nil] + describe 'test_inline_freeform_additional_properties test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + # unit tests for test_json_form_data # test json serialization of form data - # + # # @param param field1 # @param param2 field2 # @param [Hash] opts the optional parameters @@ -242,16 +276,28 @@ end end + # unit tests for test_nullable + # test nullable parent property + # + # @param child_with_nullable request body + # @param [Hash] opts the optional parameters + # @return [nil] + describe 'test_nullable test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + # unit tests for test_query_parameter_collection_format # To test the collection format in query parameters - # @param pipe - # @param ioutil - # @param http - # @param url - # @param context - # @param allow_empty + # @param pipe + # @param ioutil + # @param http + # @param url + # @param context + # @param allow_empty # @param [Hash] opts the optional parameters - # @option opts [Hash] :language + # @option opts [Hash] :language # @return [nil] describe 'test_query_parameter_collection_format test' do it 'should work' do @@ -259,4 +305,16 @@ end end + # unit tests for test_string_map_reference + # test referenced string map + # + # @param request_body request body + # @param [Hash] opts the optional parameters + # @return [nil] + describe 'test_string_map_reference test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + end diff --git a/samples/client/petstore/ruby-autoload/spec/api/fake_classname_tags123_api_spec.rb b/samples/client/petstore/ruby-autoload/spec/api/fake_classname_tags123_api_spec.rb index 8daabe80f4e5..afb4cda40bd4 100644 --- a/samples/client/petstore/ruby-autoload/spec/api/fake_classname_tags123_api_spec.rb +++ b/samples/client/petstore/ruby-autoload/spec/api/fake_classname_tags123_api_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end diff --git a/samples/client/petstore/ruby-autoload/spec/api/pet_api_spec.rb b/samples/client/petstore/ruby-autoload/spec/api/pet_api_spec.rb index ab4a3e7122f2..cf65f21d62c7 100644 --- a/samples/client/petstore/ruby-autoload/spec/api/pet_api_spec.rb +++ b/samples/client/petstore/ruby-autoload/spec/api/pet_api_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -34,7 +34,7 @@ # unit tests for add_pet # Add a new pet to the store - # + # # @param pet Pet object that needs to be added to the store # @param [Hash] opts the optional parameters # @return [nil] @@ -46,10 +46,10 @@ # unit tests for delete_pet # Deletes a pet - # + # # @param pet_id Pet id to delete # @param [Hash] opts the optional parameters - # @option opts [String] :api_key + # @option opts [String] :api_key # @return [nil] describe 'delete_pet test' do it 'should work' do @@ -95,7 +95,7 @@ # unit tests for update_pet # Update an existing pet - # + # # @param pet Pet object that needs to be added to the store # @param [Hash] opts the optional parameters # @return [nil] @@ -107,7 +107,7 @@ # unit tests for update_pet_with_form # Updates a pet in the store with form data - # + # # @param pet_id ID of pet that needs to be updated # @param [Hash] opts the optional parameters # @option opts [String] :name Updated name of the pet @@ -121,7 +121,7 @@ # unit tests for upload_file # uploads an image - # + # # @param pet_id ID of pet to update # @param [Hash] opts the optional parameters # @option opts [String] :additional_metadata Additional data to pass to server @@ -135,7 +135,7 @@ # unit tests for upload_file_with_required_file # uploads an image (required) - # + # # @param pet_id ID of pet to update # @param required_file file to upload # @param [Hash] opts the optional parameters diff --git a/samples/client/petstore/ruby-autoload/spec/api/store_api_spec.rb b/samples/client/petstore/ruby-autoload/spec/api/store_api_spec.rb index 5c06e5ca1026..e1b4ac45bce8 100644 --- a/samples/client/petstore/ruby-autoload/spec/api/store_api_spec.rb +++ b/samples/client/petstore/ruby-autoload/spec/api/store_api_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -69,7 +69,7 @@ # unit tests for place_order # Place an order for a pet - # + # # @param order order placed for purchasing the pet # @param [Hash] opts the optional parameters # @return [Order] diff --git a/samples/client/petstore/ruby-autoload/spec/api/user_api_spec.rb b/samples/client/petstore/ruby-autoload/spec/api/user_api_spec.rb index 52d890147719..d12e6a0d20ab 100644 --- a/samples/client/petstore/ruby-autoload/spec/api/user_api_spec.rb +++ b/samples/client/petstore/ruby-autoload/spec/api/user_api_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -46,7 +46,7 @@ # unit tests for create_users_with_array_input # Creates list of users with given input array - # + # # @param user List of user object # @param [Hash] opts the optional parameters # @return [nil] @@ -58,7 +58,7 @@ # unit tests for create_users_with_list_input # Creates list of users with given input array - # + # # @param user List of user object # @param [Hash] opts the optional parameters # @return [nil] @@ -82,7 +82,7 @@ # unit tests for get_user_by_name # Get user by user name - # + # # @param username The name that needs to be fetched. Use user1 for testing. # @param [Hash] opts the optional parameters # @return [User] @@ -94,7 +94,7 @@ # unit tests for login_user # Logs user into the system - # + # # @param username The user name for login # @param password The password for login in clear text # @param [Hash] opts the optional parameters @@ -107,7 +107,7 @@ # unit tests for logout_user # Logs out current logged in user session - # + # # @param [Hash] opts the optional parameters # @return [nil] describe 'logout_user test' do diff --git a/samples/client/petstore/ruby-autoload/spec/models/additional_properties_class_spec.rb b/samples/client/petstore/ruby-autoload/spec/models/additional_properties_class_spec.rb index d3438441833d..52c6b4c9522c 100644 --- a/samples/client/petstore/ruby-autoload/spec/models/additional_properties_class_spec.rb +++ b/samples/client/petstore/ruby-autoload/spec/models/additional_properties_class_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -22,9 +22,11 @@ describe 'test an instance of AdditionalPropertiesClass' do it 'should create an instance of AdditionalPropertiesClass' do - expect(instance).to be_instance_of(Petstore::AdditionalPropertiesClass) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::AdditionalPropertiesClass) end end + describe 'test attribute "map_property"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-autoload/spec/models/all_of_with_single_ref_spec.rb b/samples/client/petstore/ruby-autoload/spec/models/all_of_with_single_ref_spec.rb index f13ef665f5d8..890830a8460d 100644 --- a/samples/client/petstore/ruby-autoload/spec/models/all_of_with_single_ref_spec.rb +++ b/samples/client/petstore/ruby-autoload/spec/models/all_of_with_single_ref_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 7.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -22,9 +22,11 @@ describe 'test an instance of AllOfWithSingleRef' do it 'should create an instance of AllOfWithSingleRef' do - expect(instance).to be_instance_of(Petstore::AllOfWithSingleRef) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::AllOfWithSingleRef) end end + describe 'test attribute "username"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-autoload/spec/models/animal_spec.rb b/samples/client/petstore/ruby-autoload/spec/models/animal_spec.rb index ae94f3ac820b..1ee72ce7ab15 100644 --- a/samples/client/petstore/ruby-autoload/spec/models/animal_spec.rb +++ b/samples/client/petstore/ruby-autoload/spec/models/animal_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -22,9 +22,11 @@ describe 'test an instance of Animal' do it 'should create an instance of Animal' do - expect(instance).to be_instance_of(Petstore::Animal) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::Animal) end end + describe 'test attribute "class_name"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-autoload/spec/models/api_response_spec.rb b/samples/client/petstore/ruby-autoload/spec/models/api_response_spec.rb index bd991b2ae5f9..ed6b223f1359 100644 --- a/samples/client/petstore/ruby-autoload/spec/models/api_response_spec.rb +++ b/samples/client/petstore/ruby-autoload/spec/models/api_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -22,9 +22,11 @@ describe 'test an instance of ApiResponse' do it 'should create an instance of ApiResponse' do - expect(instance).to be_instance_of(Petstore::ApiResponse) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::ApiResponse) end end + describe 'test attribute "code"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-autoload/spec/models/array_of_array_of_number_only_spec.rb b/samples/client/petstore/ruby-autoload/spec/models/array_of_array_of_number_only_spec.rb index ea3a61f3b813..fd0fa9306d59 100644 --- a/samples/client/petstore/ruby-autoload/spec/models/array_of_array_of_number_only_spec.rb +++ b/samples/client/petstore/ruby-autoload/spec/models/array_of_array_of_number_only_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -22,9 +22,11 @@ describe 'test an instance of ArrayOfArrayOfNumberOnly' do it 'should create an instance of ArrayOfArrayOfNumberOnly' do - expect(instance).to be_instance_of(Petstore::ArrayOfArrayOfNumberOnly) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::ArrayOfArrayOfNumberOnly) end end + describe 'test attribute "array_array_number"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-autoload/spec/models/array_of_number_only_spec.rb b/samples/client/petstore/ruby-autoload/spec/models/array_of_number_only_spec.rb index da9a4775f144..b77ec009649c 100644 --- a/samples/client/petstore/ruby-autoload/spec/models/array_of_number_only_spec.rb +++ b/samples/client/petstore/ruby-autoload/spec/models/array_of_number_only_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -22,9 +22,11 @@ describe 'test an instance of ArrayOfNumberOnly' do it 'should create an instance of ArrayOfNumberOnly' do - expect(instance).to be_instance_of(Petstore::ArrayOfNumberOnly) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::ArrayOfNumberOnly) end end + describe 'test attribute "array_number"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-autoload/spec/models/array_test_spec.rb b/samples/client/petstore/ruby-autoload/spec/models/array_test_spec.rb index 9d443b1caded..0ccba22d9a04 100644 --- a/samples/client/petstore/ruby-autoload/spec/models/array_test_spec.rb +++ b/samples/client/petstore/ruby-autoload/spec/models/array_test_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -22,9 +22,11 @@ describe 'test an instance of ArrayTest' do it 'should create an instance of ArrayTest' do - expect(instance).to be_instance_of(Petstore::ArrayTest) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::ArrayTest) end end + describe 'test attribute "array_of_string"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-autoload/spec/models/capitalization_spec.rb b/samples/client/petstore/ruby-autoload/spec/models/capitalization_spec.rb index 0fd4c21411f6..7d4e8b9ea06c 100644 --- a/samples/client/petstore/ruby-autoload/spec/models/capitalization_spec.rb +++ b/samples/client/petstore/ruby-autoload/spec/models/capitalization_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -22,9 +22,11 @@ describe 'test an instance of Capitalization' do it 'should create an instance of Capitalization' do - expect(instance).to be_instance_of(Petstore::Capitalization) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::Capitalization) end end + describe 'test attribute "small_camel"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-autoload/spec/models/cat_spec.rb b/samples/client/petstore/ruby-autoload/spec/models/cat_spec.rb index 06dc81c184ca..9f09d5fbaf83 100644 --- a/samples/client/petstore/ruby-autoload/spec/models/cat_spec.rb +++ b/samples/client/petstore/ruby-autoload/spec/models/cat_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -22,9 +22,11 @@ describe 'test an instance of Cat' do it 'should create an instance of Cat' do - expect(instance).to be_instance_of(Petstore::Cat) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::Cat) end end + describe 'test attribute "declawed"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-autoload/spec/models/category_spec.rb b/samples/client/petstore/ruby-autoload/spec/models/category_spec.rb index d701e19b29ed..522c20bd3b09 100644 --- a/samples/client/petstore/ruby-autoload/spec/models/category_spec.rb +++ b/samples/client/petstore/ruby-autoload/spec/models/category_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -22,9 +22,11 @@ describe 'test an instance of Category' do it 'should create an instance of Category' do - expect(instance).to be_instance_of(Petstore::Category) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::Category) end end + describe 'test attribute "id"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-autoload/spec/models/child_with_nullable_spec.rb b/samples/client/petstore/ruby-autoload/spec/models/child_with_nullable_spec.rb index 2858c0502dbb..f86837bbbb91 100644 --- a/samples/client/petstore/ruby-autoload/spec/models/child_with_nullable_spec.rb +++ b/samples/client/petstore/ruby-autoload/spec/models/child_with_nullable_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 7.0.1-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -22,9 +22,11 @@ describe 'test an instance of ChildWithNullable' do it 'should create an instance of ChildWithNullable' do - expect(instance).to be_instance_of(Petstore::ChildWithNullable) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::ChildWithNullable) end end + describe 'test attribute "other_property"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-autoload/spec/models/class_model_spec.rb b/samples/client/petstore/ruby-autoload/spec/models/class_model_spec.rb index 415895ec06cc..d1affa000236 100644 --- a/samples/client/petstore/ruby-autoload/spec/models/class_model_spec.rb +++ b/samples/client/petstore/ruby-autoload/spec/models/class_model_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -22,9 +22,11 @@ describe 'test an instance of ClassModel' do it 'should create an instance of ClassModel' do - expect(instance).to be_instance_of(Petstore::ClassModel) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::ClassModel) end end + describe 'test attribute "_class"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-autoload/spec/models/client_spec.rb b/samples/client/petstore/ruby-autoload/spec/models/client_spec.rb index 09abf9c08ba0..b747d7b47ba8 100644 --- a/samples/client/petstore/ruby-autoload/spec/models/client_spec.rb +++ b/samples/client/petstore/ruby-autoload/spec/models/client_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -22,9 +22,11 @@ describe 'test an instance of Client' do it 'should create an instance of Client' do - expect(instance).to be_instance_of(Petstore::Client) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::Client) end end + describe 'test attribute "client"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-autoload/spec/models/deprecated_object_spec.rb b/samples/client/petstore/ruby-autoload/spec/models/deprecated_object_spec.rb index ba3b7d46fe89..832e48f0fdc1 100644 --- a/samples/client/petstore/ruby-autoload/spec/models/deprecated_object_spec.rb +++ b/samples/client/petstore/ruby-autoload/spec/models/deprecated_object_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -22,9 +22,11 @@ describe 'test an instance of DeprecatedObject' do it 'should create an instance of DeprecatedObject' do - expect(instance).to be_instance_of(Petstore::DeprecatedObject) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::DeprecatedObject) end end + describe 'test attribute "name"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-autoload/spec/models/dog_spec.rb b/samples/client/petstore/ruby-autoload/spec/models/dog_spec.rb index 782e471b0a34..fd446c30fee4 100644 --- a/samples/client/petstore/ruby-autoload/spec/models/dog_spec.rb +++ b/samples/client/petstore/ruby-autoload/spec/models/dog_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -22,9 +22,11 @@ describe 'test an instance of Dog' do it 'should create an instance of Dog' do - expect(instance).to be_instance_of(Petstore::Dog) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::Dog) end end + describe 'test attribute "breed"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-autoload/spec/models/enum_arrays_spec.rb b/samples/client/petstore/ruby-autoload/spec/models/enum_arrays_spec.rb index badee6e1398b..615041859d8b 100644 --- a/samples/client/petstore/ruby-autoload/spec/models/enum_arrays_spec.rb +++ b/samples/client/petstore/ruby-autoload/spec/models/enum_arrays_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -22,9 +22,11 @@ describe 'test an instance of EnumArrays' do it 'should create an instance of EnumArrays' do - expect(instance).to be_instance_of(Petstore::EnumArrays) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::EnumArrays) end end + describe 'test attribute "just_symbol"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-autoload/spec/models/enum_class_spec.rb b/samples/client/petstore/ruby-autoload/spec/models/enum_class_spec.rb index 0cdc3dc890de..094873fa960c 100644 --- a/samples/client/petstore/ruby-autoload/spec/models/enum_class_spec.rb +++ b/samples/client/petstore/ruby-autoload/spec/models/enum_class_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -22,7 +22,9 @@ describe 'test an instance of EnumClass' do it 'should create an instance of EnumClass' do - expect(instance).to be_instance_of(Petstore::EnumClass) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::EnumClass) end end + end diff --git a/samples/client/petstore/ruby-autoload/spec/models/enum_test_spec.rb b/samples/client/petstore/ruby-autoload/spec/models/enum_test_spec.rb index 4872de907ada..e7d00c78711c 100644 --- a/samples/client/petstore/ruby-autoload/spec/models/enum_test_spec.rb +++ b/samples/client/petstore/ruby-autoload/spec/models/enum_test_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -22,9 +22,11 @@ describe 'test an instance of EnumTest' do it 'should create an instance of EnumTest' do - expect(instance).to be_instance_of(Petstore::EnumTest) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::EnumTest) end end + describe 'test attribute "enum_string"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-autoload/spec/models/fake_big_decimal_map200_response_spec.rb b/samples/client/petstore/ruby-autoload/spec/models/fake_big_decimal_map200_response_spec.rb index a1b4a6c4641f..d41e455a4517 100644 --- a/samples/client/petstore/ruby-autoload/spec/models/fake_big_decimal_map200_response_spec.rb +++ b/samples/client/petstore/ruby-autoload/spec/models/fake_big_decimal_map200_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 7.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -22,9 +22,11 @@ describe 'test an instance of FakeBigDecimalMap200Response' do it 'should create an instance of FakeBigDecimalMap200Response' do - expect(instance).to be_instance_of(Petstore::FakeBigDecimalMap200Response) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::FakeBigDecimalMap200Response) end end + describe 'test attribute "some_id"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-autoload/spec/models/file_schema_test_class_spec.rb b/samples/client/petstore/ruby-autoload/spec/models/file_schema_test_class_spec.rb index 38c34f9c50cb..cc6535c3688f 100644 --- a/samples/client/petstore/ruby-autoload/spec/models/file_schema_test_class_spec.rb +++ b/samples/client/petstore/ruby-autoload/spec/models/file_schema_test_class_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -22,9 +22,11 @@ describe 'test an instance of FileSchemaTestClass' do it 'should create an instance of FileSchemaTestClass' do - expect(instance).to be_instance_of(Petstore::FileSchemaTestClass) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::FileSchemaTestClass) end end + describe 'test attribute "file"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-autoload/spec/models/file_spec.rb b/samples/client/petstore/ruby-autoload/spec/models/file_spec.rb index 7d857e0f8356..8ba1f89c5c00 100644 --- a/samples/client/petstore/ruby-autoload/spec/models/file_spec.rb +++ b/samples/client/petstore/ruby-autoload/spec/models/file_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -22,9 +22,11 @@ describe 'test an instance of File' do it 'should create an instance of File' do - expect(instance).to be_instance_of(Petstore::File) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::File) end end + describe 'test attribute "source_uri"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-autoload/spec/models/foo_get_default_response_spec.rb b/samples/client/petstore/ruby-autoload/spec/models/foo_get_default_response_spec.rb index d6f85f77b516..22d9bc8dc5ed 100644 --- a/samples/client/petstore/ruby-autoload/spec/models/foo_get_default_response_spec.rb +++ b/samples/client/petstore/ruby-autoload/spec/models/foo_get_default_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -22,9 +22,11 @@ describe 'test an instance of FooGetDefaultResponse' do it 'should create an instance of FooGetDefaultResponse' do - expect(instance).to be_instance_of(Petstore::FooGetDefaultResponse) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::FooGetDefaultResponse) end end + describe 'test attribute "string"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-autoload/spec/models/foo_spec.rb b/samples/client/petstore/ruby-autoload/spec/models/foo_spec.rb index a6021d760b41..6b4b4f559484 100644 --- a/samples/client/petstore/ruby-autoload/spec/models/foo_spec.rb +++ b/samples/client/petstore/ruby-autoload/spec/models/foo_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -22,9 +22,11 @@ describe 'test an instance of Foo' do it 'should create an instance of Foo' do - expect(instance).to be_instance_of(Petstore::Foo) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::Foo) end end + describe 'test attribute "bar"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-autoload/spec/models/format_test_spec.rb b/samples/client/petstore/ruby-autoload/spec/models/format_test_spec.rb index 4ed014c36174..c1a318014e95 100644 --- a/samples/client/petstore/ruby-autoload/spec/models/format_test_spec.rb +++ b/samples/client/petstore/ruby-autoload/spec/models/format_test_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -18,18 +18,15 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe Petstore::FormatTest do - let(:instance) { Petstore::FormatTest.new({ - number: 65, - byte: '1234356', - date: Date.parse('2007-12-03T10:15:30+01:00'), - password: 'password123' - }) } + let(:instance) { Petstore::FormatTest.new } describe 'test an instance of FormatTest' do it 'should create an instance of FormatTest' do - expect(instance).to be_instance_of(Petstore::FormatTest) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::FormatTest) end end + describe 'test attribute "integer"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-autoload/spec/models/has_only_read_only_spec.rb b/samples/client/petstore/ruby-autoload/spec/models/has_only_read_only_spec.rb index 0a0abcf5047f..543f72a9e865 100644 --- a/samples/client/petstore/ruby-autoload/spec/models/has_only_read_only_spec.rb +++ b/samples/client/petstore/ruby-autoload/spec/models/has_only_read_only_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -22,9 +22,11 @@ describe 'test an instance of HasOnlyReadOnly' do it 'should create an instance of HasOnlyReadOnly' do - expect(instance).to be_instance_of(Petstore::HasOnlyReadOnly) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::HasOnlyReadOnly) end end + describe 'test attribute "bar"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-autoload/spec/models/health_check_result_spec.rb b/samples/client/petstore/ruby-autoload/spec/models/health_check_result_spec.rb index 6145f63bef84..797d914e363c 100644 --- a/samples/client/petstore/ruby-autoload/spec/models/health_check_result_spec.rb +++ b/samples/client/petstore/ruby-autoload/spec/models/health_check_result_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -22,9 +22,11 @@ describe 'test an instance of HealthCheckResult' do it 'should create an instance of HealthCheckResult' do - expect(instance).to be_instance_of(Petstore::HealthCheckResult) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::HealthCheckResult) end end + describe 'test attribute "nullable_message"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-autoload/spec/models/list_spec.rb b/samples/client/petstore/ruby-autoload/spec/models/list_spec.rb index 7c8d0e30b9f3..d08f9daee56e 100644 --- a/samples/client/petstore/ruby-autoload/spec/models/list_spec.rb +++ b/samples/client/petstore/ruby-autoload/spec/models/list_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -22,9 +22,11 @@ describe 'test an instance of List' do it 'should create an instance of List' do - expect(instance).to be_instance_of(Petstore::List) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::List) end end + describe 'test attribute "_123_list"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-autoload/spec/models/map_test_spec.rb b/samples/client/petstore/ruby-autoload/spec/models/map_test_spec.rb index 3fa64927bc8f..e4840c2a4816 100644 --- a/samples/client/petstore/ruby-autoload/spec/models/map_test_spec.rb +++ b/samples/client/petstore/ruby-autoload/spec/models/map_test_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -22,9 +22,11 @@ describe 'test an instance of MapTest' do it 'should create an instance of MapTest' do - expect(instance).to be_instance_of(Petstore::MapTest) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::MapTest) end end + describe 'test attribute "map_map_of_string"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-autoload/spec/models/mixed_properties_and_additional_properties_class_spec.rb b/samples/client/petstore/ruby-autoload/spec/models/mixed_properties_and_additional_properties_class_spec.rb index b92861268130..fe265ae70279 100644 --- a/samples/client/petstore/ruby-autoload/spec/models/mixed_properties_and_additional_properties_class_spec.rb +++ b/samples/client/petstore/ruby-autoload/spec/models/mixed_properties_and_additional_properties_class_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -22,9 +22,11 @@ describe 'test an instance of MixedPropertiesAndAdditionalPropertiesClass' do it 'should create an instance of MixedPropertiesAndAdditionalPropertiesClass' do - expect(instance).to be_instance_of(Petstore::MixedPropertiesAndAdditionalPropertiesClass) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::MixedPropertiesAndAdditionalPropertiesClass) end end + describe 'test attribute "uuid"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-autoload/spec/models/model200_response_spec.rb b/samples/client/petstore/ruby-autoload/spec/models/model200_response_spec.rb index b8ca5a4d37ab..061281a8c1c5 100644 --- a/samples/client/petstore/ruby-autoload/spec/models/model200_response_spec.rb +++ b/samples/client/petstore/ruby-autoload/spec/models/model200_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -22,9 +22,11 @@ describe 'test an instance of Model200Response' do it 'should create an instance of Model200Response' do - expect(instance).to be_instance_of(Petstore::Model200Response) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::Model200Response) end end + describe 'test attribute "name"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-autoload/spec/models/model_return_spec.rb b/samples/client/petstore/ruby-autoload/spec/models/model_return_spec.rb index 0c02c25d3362..bbcd3f0d5fcd 100644 --- a/samples/client/petstore/ruby-autoload/spec/models/model_return_spec.rb +++ b/samples/client/petstore/ruby-autoload/spec/models/model_return_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -22,9 +22,11 @@ describe 'test an instance of ModelReturn' do it 'should create an instance of ModelReturn' do - expect(instance).to be_instance_of(Petstore::ModelReturn) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::ModelReturn) end end + describe 'test attribute "_return"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-autoload/spec/models/name_spec.rb b/samples/client/petstore/ruby-autoload/spec/models/name_spec.rb index d7c62387e6bf..4ffe903deff4 100644 --- a/samples/client/petstore/ruby-autoload/spec/models/name_spec.rb +++ b/samples/client/petstore/ruby-autoload/spec/models/name_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -22,9 +22,11 @@ describe 'test an instance of Name' do it 'should create an instance of Name' do - expect(instance).to be_instance_of(Petstore::Name) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::Name) end end + describe 'test attribute "name"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-autoload/spec/models/nullable_class_spec.rb b/samples/client/petstore/ruby-autoload/spec/models/nullable_class_spec.rb index 5fb93182e06f..28d85a223408 100644 --- a/samples/client/petstore/ruby-autoload/spec/models/nullable_class_spec.rb +++ b/samples/client/petstore/ruby-autoload/spec/models/nullable_class_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -22,9 +22,11 @@ describe 'test an instance of NullableClass' do it 'should create an instance of NullableClass' do - expect(instance).to be_instance_of(Petstore::NullableClass) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::NullableClass) end end + describe 'test attribute "integer_prop"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-autoload/spec/models/number_only_spec.rb b/samples/client/petstore/ruby-autoload/spec/models/number_only_spec.rb index 7c98ce3f4048..1907d9638a71 100644 --- a/samples/client/petstore/ruby-autoload/spec/models/number_only_spec.rb +++ b/samples/client/petstore/ruby-autoload/spec/models/number_only_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -22,9 +22,11 @@ describe 'test an instance of NumberOnly' do it 'should create an instance of NumberOnly' do - expect(instance).to be_instance_of(Petstore::NumberOnly) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::NumberOnly) end end + describe 'test attribute "just_number"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-autoload/spec/models/object_with_deprecated_fields_spec.rb b/samples/client/petstore/ruby-autoload/spec/models/object_with_deprecated_fields_spec.rb index ea6fa4915b56..69fced6f0c19 100644 --- a/samples/client/petstore/ruby-autoload/spec/models/object_with_deprecated_fields_spec.rb +++ b/samples/client/petstore/ruby-autoload/spec/models/object_with_deprecated_fields_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -22,9 +22,11 @@ describe 'test an instance of ObjectWithDeprecatedFields' do it 'should create an instance of ObjectWithDeprecatedFields' do - expect(instance).to be_instance_of(Petstore::ObjectWithDeprecatedFields) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::ObjectWithDeprecatedFields) end end + describe 'test attribute "uuid"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-autoload/spec/models/order_spec.rb b/samples/client/petstore/ruby-autoload/spec/models/order_spec.rb index 6de4d11801d7..beb1893b114e 100644 --- a/samples/client/petstore/ruby-autoload/spec/models/order_spec.rb +++ b/samples/client/petstore/ruby-autoload/spec/models/order_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -22,9 +22,11 @@ describe 'test an instance of Order' do it 'should create an instance of Order' do - expect(instance).to be_instance_of(Petstore::Order) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::Order) end end + describe 'test attribute "id"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-autoload/spec/models/outer_composite_spec.rb b/samples/client/petstore/ruby-autoload/spec/models/outer_composite_spec.rb index eda7fd2942fd..832939d3e24a 100644 --- a/samples/client/petstore/ruby-autoload/spec/models/outer_composite_spec.rb +++ b/samples/client/petstore/ruby-autoload/spec/models/outer_composite_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -22,9 +22,11 @@ describe 'test an instance of OuterComposite' do it 'should create an instance of OuterComposite' do - expect(instance).to be_instance_of(Petstore::OuterComposite) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::OuterComposite) end end + describe 'test attribute "my_number"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-autoload/spec/models/outer_enum_default_value_spec.rb b/samples/client/petstore/ruby-autoload/spec/models/outer_enum_default_value_spec.rb index 4b48a9f6a6c9..c8c66b84884d 100644 --- a/samples/client/petstore/ruby-autoload/spec/models/outer_enum_default_value_spec.rb +++ b/samples/client/petstore/ruby-autoload/spec/models/outer_enum_default_value_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -22,7 +22,9 @@ describe 'test an instance of OuterEnumDefaultValue' do it 'should create an instance of OuterEnumDefaultValue' do - expect(instance).to be_instance_of(Petstore::OuterEnumDefaultValue) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::OuterEnumDefaultValue) end end + end diff --git a/samples/client/petstore/ruby-autoload/spec/models/outer_enum_integer_default_value_spec.rb b/samples/client/petstore/ruby-autoload/spec/models/outer_enum_integer_default_value_spec.rb index 1ae37781452a..91f477b156e6 100644 --- a/samples/client/petstore/ruby-autoload/spec/models/outer_enum_integer_default_value_spec.rb +++ b/samples/client/petstore/ruby-autoload/spec/models/outer_enum_integer_default_value_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -22,7 +22,9 @@ describe 'test an instance of OuterEnumIntegerDefaultValue' do it 'should create an instance of OuterEnumIntegerDefaultValue' do - expect(instance).to be_instance_of(Petstore::OuterEnumIntegerDefaultValue) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::OuterEnumIntegerDefaultValue) end end + end diff --git a/samples/client/petstore/ruby-autoload/spec/models/outer_enum_integer_spec.rb b/samples/client/petstore/ruby-autoload/spec/models/outer_enum_integer_spec.rb index 11c0c903ce44..98141a4b64f2 100644 --- a/samples/client/petstore/ruby-autoload/spec/models/outer_enum_integer_spec.rb +++ b/samples/client/petstore/ruby-autoload/spec/models/outer_enum_integer_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -22,7 +22,9 @@ describe 'test an instance of OuterEnumInteger' do it 'should create an instance of OuterEnumInteger' do - expect(instance).to be_instance_of(Petstore::OuterEnumInteger) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::OuterEnumInteger) end end + end diff --git a/samples/client/petstore/ruby-autoload/spec/models/outer_enum_spec.rb b/samples/client/petstore/ruby-autoload/spec/models/outer_enum_spec.rb index ef02b0f406ee..06e00d35afec 100644 --- a/samples/client/petstore/ruby-autoload/spec/models/outer_enum_spec.rb +++ b/samples/client/petstore/ruby-autoload/spec/models/outer_enum_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -22,7 +22,9 @@ describe 'test an instance of OuterEnum' do it 'should create an instance of OuterEnum' do - expect(instance).to be_instance_of(Petstore::OuterEnum) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::OuterEnum) end end + end diff --git a/samples/client/petstore/ruby-autoload/spec/models/outer_object_with_enum_property_spec.rb b/samples/client/petstore/ruby-autoload/spec/models/outer_object_with_enum_property_spec.rb index a2ee31a7fd7d..69ecd157eb6c 100644 --- a/samples/client/petstore/ruby-autoload/spec/models/outer_object_with_enum_property_spec.rb +++ b/samples/client/petstore/ruby-autoload/spec/models/outer_object_with_enum_property_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -22,9 +22,11 @@ describe 'test an instance of OuterObjectWithEnumProperty' do it 'should create an instance of OuterObjectWithEnumProperty' do - expect(instance).to be_instance_of(Petstore::OuterObjectWithEnumProperty) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::OuterObjectWithEnumProperty) end end + describe 'test attribute "value"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-autoload/spec/models/parent_with_nullable_spec.rb b/samples/client/petstore/ruby-autoload/spec/models/parent_with_nullable_spec.rb index 763820497048..a12e06f7e265 100644 --- a/samples/client/petstore/ruby-autoload/spec/models/parent_with_nullable_spec.rb +++ b/samples/client/petstore/ruby-autoload/spec/models/parent_with_nullable_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 7.0.1-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -22,9 +22,11 @@ describe 'test an instance of ParentWithNullable' do it 'should create an instance of ParentWithNullable' do - expect(instance).to be_instance_of(Petstore::ParentWithNullable) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::ParentWithNullable) end end + describe 'test attribute "type"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-autoload/spec/models/pet_spec.rb b/samples/client/petstore/ruby-autoload/spec/models/pet_spec.rb index 6f7a9f9df7bd..d56bbb9cc2de 100644 --- a/samples/client/petstore/ruby-autoload/spec/models/pet_spec.rb +++ b/samples/client/petstore/ruby-autoload/spec/models/pet_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -18,13 +18,15 @@ # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe Petstore::Pet do - let(:instance) { Petstore::Pet.new({ name: 'Kitty', photo_urls: ['www.photo-url.test'] }) } + let(:instance) { Petstore::Pet.new } describe 'test an instance of Pet' do it 'should create an instance of Pet' do - expect(instance).to be_instance_of(Petstore::Pet) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::Pet) end end + describe 'test attribute "id"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-autoload/spec/models/read_only_first_spec.rb b/samples/client/petstore/ruby-autoload/spec/models/read_only_first_spec.rb index 6f24ff8b8a36..e35fe201e39a 100644 --- a/samples/client/petstore/ruby-autoload/spec/models/read_only_first_spec.rb +++ b/samples/client/petstore/ruby-autoload/spec/models/read_only_first_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -22,9 +22,11 @@ describe 'test an instance of ReadOnlyFirst' do it 'should create an instance of ReadOnlyFirst' do - expect(instance).to be_instance_of(Petstore::ReadOnlyFirst) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::ReadOnlyFirst) end end + describe 'test attribute "bar"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-autoload/spec/models/single_ref_type_spec.rb b/samples/client/petstore/ruby-autoload/spec/models/single_ref_type_spec.rb index 7cf871f27e65..0cdc540e563a 100644 --- a/samples/client/petstore/ruby-autoload/spec/models/single_ref_type_spec.rb +++ b/samples/client/petstore/ruby-autoload/spec/models/single_ref_type_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -22,7 +22,9 @@ describe 'test an instance of SingleRefType' do it 'should create an instance of SingleRefType' do - expect(instance).to be_instance_of(Petstore::SingleRefType) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::SingleRefType) end end + end diff --git a/samples/client/petstore/ruby-autoload/spec/models/special_model_name_spec.rb b/samples/client/petstore/ruby-autoload/spec/models/special_model_name_spec.rb index a3bedaa162de..25926fd381a7 100644 --- a/samples/client/petstore/ruby-autoload/spec/models/special_model_name_spec.rb +++ b/samples/client/petstore/ruby-autoload/spec/models/special_model_name_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -22,9 +22,11 @@ describe 'test an instance of SpecialModelName' do it 'should create an instance of SpecialModelName' do - expect(instance).to be_instance_of(Petstore::SpecialModelName) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::SpecialModelName) end end + describe 'test attribute "special_property_name"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-autoload/spec/models/tag_spec.rb b/samples/client/petstore/ruby-autoload/spec/models/tag_spec.rb index 4da8e4d48f7e..359fc8c0b761 100644 --- a/samples/client/petstore/ruby-autoload/spec/models/tag_spec.rb +++ b/samples/client/petstore/ruby-autoload/spec/models/tag_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -22,9 +22,11 @@ describe 'test an instance of Tag' do it 'should create an instance of Tag' do - expect(instance).to be_instance_of(Petstore::Tag) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::Tag) end end + describe 'test attribute "id"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-autoload/spec/models/test_inline_freeform_additional_properties_request_spec.rb b/samples/client/petstore/ruby-autoload/spec/models/test_inline_freeform_additional_properties_request_spec.rb index 2508babe7272..8cda9ab078b2 100644 --- a/samples/client/petstore/ruby-autoload/spec/models/test_inline_freeform_additional_properties_request_spec.rb +++ b/samples/client/petstore/ruby-autoload/spec/models/test_inline_freeform_additional_properties_request_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 7.0.1-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -22,9 +22,11 @@ describe 'test an instance of TestInlineFreeformAdditionalPropertiesRequest' do it 'should create an instance of TestInlineFreeformAdditionalPropertiesRequest' do - expect(instance).to be_instance_of(Petstore::TestInlineFreeformAdditionalPropertiesRequest) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::TestInlineFreeformAdditionalPropertiesRequest) end end + describe 'test attribute "some_property"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-autoload/spec/models/user_spec.rb b/samples/client/petstore/ruby-autoload/spec/models/user_spec.rb index ec6864f1c8c3..b07fb462fba1 100644 --- a/samples/client/petstore/ruby-autoload/spec/models/user_spec.rb +++ b/samples/client/petstore/ruby-autoload/spec/models/user_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -22,9 +22,11 @@ describe 'test an instance of User' do it 'should create an instance of User' do - expect(instance).to be_instance_of(Petstore::User) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::User) end end + describe 'test attribute "id"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-faraday/spec/api/another_fake_api_spec.rb b/samples/client/petstore/ruby-faraday/spec/api/another_fake_api_spec.rb index c4ae33b8e94a..4db2cbc9d00f 100644 --- a/samples/client/petstore/ruby-faraday/spec/api/another_fake_api_spec.rb +++ b/samples/client/petstore/ruby-faraday/spec/api/another_fake_api_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end diff --git a/samples/client/petstore/ruby-faraday/spec/api/default_api_spec.rb b/samples/client/petstore/ruby-faraday/spec/api/default_api_spec.rb index a4c4123b2f47..fc1db9dae748 100644 --- a/samples/client/petstore/ruby-faraday/spec/api/default_api_spec.rb +++ b/samples/client/petstore/ruby-faraday/spec/api/default_api_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -34,7 +34,7 @@ # unit tests for foo_get # @param [Hash] opts the optional parameters - # @return [InlineResponseDefault] + # @return [FooGetDefaultResponse] describe 'foo_get test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-faraday/spec/api/fake_api_spec.rb b/samples/client/petstore/ruby-faraday/spec/api/fake_api_spec.rb index 659c054e04d6..4fb9b347337a 100644 --- a/samples/client/petstore/ruby-faraday/spec/api/fake_api_spec.rb +++ b/samples/client/petstore/ruby-faraday/spec/api/fake_api_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -32,6 +32,16 @@ end end + # unit tests for fake_big_decimal_map + # for Java apache and Java native, test toUrlQueryString for maps with BegDecimal keys + # @param [Hash] opts the optional parameters + # @return [FakeBigDecimalMap200Response] + describe 'fake_big_decimal_map test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + # unit tests for fake_health_get # Health check endpoint # @param [Hash] opts the optional parameters @@ -99,9 +109,43 @@ end end + # unit tests for fake_property_enum_integer_serialize + # Test serialization of enum (int) properties with examples + # @param outer_object_with_enum_property Input enum (int) as post body + # @param [Hash] opts the optional parameters + # @return [OuterObjectWithEnumProperty] + describe 'fake_property_enum_integer_serialize test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + # unit tests for test_additional_properties_reference + # test referenced additionalProperties + # + # @param request_body request body + # @param [Hash] opts the optional parameters + # @return [nil] + describe 'test_additional_properties_reference test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + # unit tests for test_body_with_binary + # For this test, the body has to be a binary file. + # @param body image to upload + # @param [Hash] opts the optional parameters + # @return [nil] + describe 'test_body_with_binary test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + # unit tests for test_body_with_file_schema - # For this test, the body for this request much reference a schema named `File`. - # @param file_schema_test_class + # For this test, the body for this request must reference a schema named `File`. + # @param file_schema_test_class # @param [Hash] opts the optional parameters # @return [nil] describe 'test_body_with_file_schema test' do @@ -111,8 +155,8 @@ end # unit tests for test_body_with_query_params - # @param query - # @param user + # @param query + # @param user # @param [Hash] opts the optional parameters # @return [nil] describe 'test_body_with_query_params test' do @@ -134,8 +178,8 @@ end # unit tests for test_endpoint_parameters - # Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 - # Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 + # Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 + # Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 # @param number None # @param double None # @param pattern_without_delimiter None @@ -148,7 +192,7 @@ # @option opts [String] :string None # @option opts [File] :binary None # @option opts [Date] :date None - # @option opts [DateTime] :date_time None + # @option opts [Time] :date_time None # @option opts [String] :password None # @option opts [String] :callback None # @return [nil] @@ -168,6 +212,7 @@ # @option opts [String] :enum_query_string Query parameter enum test (string) # @option opts [Integer] :enum_query_integer Query parameter enum test (double) # @option opts [Float] :enum_query_double Query parameter enum test (double) + # @option opts [Array] :enum_query_model_array # @option opts [Array] :enum_form_string_array Form parameter enum test (string array) # @option opts [String] :enum_form_string Form parameter enum test (string) # @return [nil] @@ -196,6 +241,7 @@ # unit tests for test_inline_additional_properties # test inline additionalProperties + # # @param request_body request body # @param [Hash] opts the optional parameters # @return [nil] @@ -205,8 +251,21 @@ end end + # unit tests for test_inline_freeform_additional_properties + # test inline free-form additionalProperties + # + # @param test_inline_freeform_additional_properties_request request body + # @param [Hash] opts the optional parameters + # @return [nil] + describe 'test_inline_freeform_additional_properties test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + # unit tests for test_json_form_data # test json serialization of form data + # # @param param field1 # @param param2 field2 # @param [Hash] opts the optional parameters @@ -217,14 +276,28 @@ end end + # unit tests for test_nullable + # test nullable parent property + # + # @param child_with_nullable request body + # @param [Hash] opts the optional parameters + # @return [nil] + describe 'test_nullable test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + # unit tests for test_query_parameter_collection_format # To test the collection format in query parameters - # @param pipe - # @param ioutil - # @param http - # @param url - # @param context + # @param pipe + # @param ioutil + # @param http + # @param url + # @param context + # @param allow_empty # @param [Hash] opts the optional parameters + # @option opts [Hash] :language # @return [nil] describe 'test_query_parameter_collection_format test' do it 'should work' do @@ -232,4 +305,16 @@ end end + # unit tests for test_string_map_reference + # test referenced string map + # + # @param request_body request body + # @param [Hash] opts the optional parameters + # @return [nil] + describe 'test_string_map_reference test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + end diff --git a/samples/client/petstore/ruby-faraday/spec/api/fake_classname_tags123_api_spec.rb b/samples/client/petstore/ruby-faraday/spec/api/fake_classname_tags123_api_spec.rb index e102683e57ea..afb4cda40bd4 100644 --- a/samples/client/petstore/ruby-faraday/spec/api/fake_classname_tags123_api_spec.rb +++ b/samples/client/petstore/ruby-faraday/spec/api/fake_classname_tags123_api_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end diff --git a/samples/client/petstore/ruby-faraday/spec/api/pet_api_spec.rb b/samples/client/petstore/ruby-faraday/spec/api/pet_api_spec.rb index f20fc2c623b5..cf65f21d62c7 100644 --- a/samples/client/petstore/ruby-faraday/spec/api/pet_api_spec.rb +++ b/samples/client/petstore/ruby-faraday/spec/api/pet_api_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -34,6 +34,7 @@ # unit tests for add_pet # Add a new pet to the store + # # @param pet Pet object that needs to be added to the store # @param [Hash] opts the optional parameters # @return [nil] @@ -45,9 +46,10 @@ # unit tests for delete_pet # Deletes a pet + # # @param pet_id Pet id to delete # @param [Hash] opts the optional parameters - # @option opts [String] :api_key + # @option opts [String] :api_key # @return [nil] describe 'delete_pet test' do it 'should work' do @@ -93,6 +95,7 @@ # unit tests for update_pet # Update an existing pet + # # @param pet Pet object that needs to be added to the store # @param [Hash] opts the optional parameters # @return [nil] @@ -104,6 +107,7 @@ # unit tests for update_pet_with_form # Updates a pet in the store with form data + # # @param pet_id ID of pet that needs to be updated # @param [Hash] opts the optional parameters # @option opts [String] :name Updated name of the pet @@ -117,6 +121,7 @@ # unit tests for upload_file # uploads an image + # # @param pet_id ID of pet to update # @param [Hash] opts the optional parameters # @option opts [String] :additional_metadata Additional data to pass to server @@ -130,6 +135,7 @@ # unit tests for upload_file_with_required_file # uploads an image (required) + # # @param pet_id ID of pet to update # @param required_file file to upload # @param [Hash] opts the optional parameters diff --git a/samples/client/petstore/ruby-faraday/spec/api/store_api_spec.rb b/samples/client/petstore/ruby-faraday/spec/api/store_api_spec.rb index 7ef3b058dd7e..e1b4ac45bce8 100644 --- a/samples/client/petstore/ruby-faraday/spec/api/store_api_spec.rb +++ b/samples/client/petstore/ruby-faraday/spec/api/store_api_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -69,6 +69,7 @@ # unit tests for place_order # Place an order for a pet + # # @param order order placed for purchasing the pet # @param [Hash] opts the optional parameters # @return [Order] diff --git a/samples/client/petstore/ruby-faraday/spec/api/user_api_spec.rb b/samples/client/petstore/ruby-faraday/spec/api/user_api_spec.rb index d534f5198612..d12e6a0d20ab 100644 --- a/samples/client/petstore/ruby-faraday/spec/api/user_api_spec.rb +++ b/samples/client/petstore/ruby-faraday/spec/api/user_api_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -46,6 +46,7 @@ # unit tests for create_users_with_array_input # Creates list of users with given input array + # # @param user List of user object # @param [Hash] opts the optional parameters # @return [nil] @@ -57,6 +58,7 @@ # unit tests for create_users_with_list_input # Creates list of users with given input array + # # @param user List of user object # @param [Hash] opts the optional parameters # @return [nil] @@ -80,6 +82,7 @@ # unit tests for get_user_by_name # Get user by user name + # # @param username The name that needs to be fetched. Use user1 for testing. # @param [Hash] opts the optional parameters # @return [User] @@ -91,6 +94,7 @@ # unit tests for login_user # Logs user into the system + # # @param username The user name for login # @param password The password for login in clear text # @param [Hash] opts the optional parameters @@ -103,6 +107,7 @@ # unit tests for logout_user # Logs out current logged in user session + # # @param [Hash] opts the optional parameters # @return [nil] describe 'logout_user test' do diff --git a/samples/client/petstore/ruby-faraday/spec/models/additional_properties_class_spec.rb b/samples/client/petstore/ruby-faraday/spec/models/additional_properties_class_spec.rb index 2cfb6c671496..52c6b4c9522c 100644 --- a/samples/client/petstore/ruby-faraday/spec/models/additional_properties_class_spec.rb +++ b/samples/client/petstore/ruby-faraday/spec/models/additional_properties_class_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::AdditionalPropertiesClass # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'AdditionalPropertiesClass' do - before do - # run before each test - @instance = Petstore::AdditionalPropertiesClass.new - end - - after do - # run after each test - end +describe Petstore::AdditionalPropertiesClass do + let(:instance) { Petstore::AdditionalPropertiesClass.new } describe 'test an instance of AdditionalPropertiesClass' do it 'should create an instance of AdditionalPropertiesClass' do - expect(@instance).to be_instance_of(Petstore::AdditionalPropertiesClass) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::AdditionalPropertiesClass) end end + describe 'test attribute "map_property"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-faraday/spec/models/all_of_with_single_ref_spec.rb b/samples/client/petstore/ruby-faraday/spec/models/all_of_with_single_ref_spec.rb index f13ef665f5d8..890830a8460d 100644 --- a/samples/client/petstore/ruby-faraday/spec/models/all_of_with_single_ref_spec.rb +++ b/samples/client/petstore/ruby-faraday/spec/models/all_of_with_single_ref_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 7.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -22,9 +22,11 @@ describe 'test an instance of AllOfWithSingleRef' do it 'should create an instance of AllOfWithSingleRef' do - expect(instance).to be_instance_of(Petstore::AllOfWithSingleRef) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::AllOfWithSingleRef) end end + describe 'test attribute "username"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-faraday/spec/models/animal_spec.rb b/samples/client/petstore/ruby-faraday/spec/models/animal_spec.rb index 2bb034b310ff..1ee72ce7ab15 100644 --- a/samples/client/petstore/ruby-faraday/spec/models/animal_spec.rb +++ b/samples/client/petstore/ruby-faraday/spec/models/animal_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::Animal # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'Animal' do - before do - # run before each test - @instance = Petstore::Animal.new - end - - after do - # run after each test - end +describe Petstore::Animal do + let(:instance) { Petstore::Animal.new } describe 'test an instance of Animal' do it 'should create an instance of Animal' do - expect(@instance).to be_instance_of(Petstore::Animal) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::Animal) end end + describe 'test attribute "class_name"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-faraday/spec/models/api_response_spec.rb b/samples/client/petstore/ruby-faraday/spec/models/api_response_spec.rb index 267301460d95..ed6b223f1359 100644 --- a/samples/client/petstore/ruby-faraday/spec/models/api_response_spec.rb +++ b/samples/client/petstore/ruby-faraday/spec/models/api_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::ApiResponse # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'ApiResponse' do - before do - # run before each test - @instance = Petstore::ApiResponse.new - end - - after do - # run after each test - end +describe Petstore::ApiResponse do + let(:instance) { Petstore::ApiResponse.new } describe 'test an instance of ApiResponse' do it 'should create an instance of ApiResponse' do - expect(@instance).to be_instance_of(Petstore::ApiResponse) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::ApiResponse) end end + describe 'test attribute "code"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-faraday/spec/models/array_of_array_of_number_only_spec.rb b/samples/client/petstore/ruby-faraday/spec/models/array_of_array_of_number_only_spec.rb index 78f4a08761a1..fd0fa9306d59 100644 --- a/samples/client/petstore/ruby-faraday/spec/models/array_of_array_of_number_only_spec.rb +++ b/samples/client/petstore/ruby-faraday/spec/models/array_of_array_of_number_only_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::ArrayOfArrayOfNumberOnly # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'ArrayOfArrayOfNumberOnly' do - before do - # run before each test - @instance = Petstore::ArrayOfArrayOfNumberOnly.new - end - - after do - # run after each test - end +describe Petstore::ArrayOfArrayOfNumberOnly do + let(:instance) { Petstore::ArrayOfArrayOfNumberOnly.new } describe 'test an instance of ArrayOfArrayOfNumberOnly' do it 'should create an instance of ArrayOfArrayOfNumberOnly' do - expect(@instance).to be_instance_of(Petstore::ArrayOfArrayOfNumberOnly) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::ArrayOfArrayOfNumberOnly) end end + describe 'test attribute "array_array_number"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-faraday/spec/models/array_of_number_only_spec.rb b/samples/client/petstore/ruby-faraday/spec/models/array_of_number_only_spec.rb index 3e2ea611ecad..b77ec009649c 100644 --- a/samples/client/petstore/ruby-faraday/spec/models/array_of_number_only_spec.rb +++ b/samples/client/petstore/ruby-faraday/spec/models/array_of_number_only_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::ArrayOfNumberOnly # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'ArrayOfNumberOnly' do - before do - # run before each test - @instance = Petstore::ArrayOfNumberOnly.new - end - - after do - # run after each test - end +describe Petstore::ArrayOfNumberOnly do + let(:instance) { Petstore::ArrayOfNumberOnly.new } describe 'test an instance of ArrayOfNumberOnly' do it 'should create an instance of ArrayOfNumberOnly' do - expect(@instance).to be_instance_of(Petstore::ArrayOfNumberOnly) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::ArrayOfNumberOnly) end end + describe 'test attribute "array_number"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-faraday/spec/models/array_test_spec.rb b/samples/client/petstore/ruby-faraday/spec/models/array_test_spec.rb index 4633c0d8f3d6..0ccba22d9a04 100644 --- a/samples/client/petstore/ruby-faraday/spec/models/array_test_spec.rb +++ b/samples/client/petstore/ruby-faraday/spec/models/array_test_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::ArrayTest # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'ArrayTest' do - before do - # run before each test - @instance = Petstore::ArrayTest.new - end - - after do - # run after each test - end +describe Petstore::ArrayTest do + let(:instance) { Petstore::ArrayTest.new } describe 'test an instance of ArrayTest' do it 'should create an instance of ArrayTest' do - expect(@instance).to be_instance_of(Petstore::ArrayTest) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::ArrayTest) end end + describe 'test attribute "array_of_string"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-faraday/spec/models/capitalization_spec.rb b/samples/client/petstore/ruby-faraday/spec/models/capitalization_spec.rb index 025a0c5b09c0..7d4e8b9ea06c 100644 --- a/samples/client/petstore/ruby-faraday/spec/models/capitalization_spec.rb +++ b/samples/client/petstore/ruby-faraday/spec/models/capitalization_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::Capitalization # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'Capitalization' do - before do - # run before each test - @instance = Petstore::Capitalization.new - end - - after do - # run after each test - end +describe Petstore::Capitalization do + let(:instance) { Petstore::Capitalization.new } describe 'test an instance of Capitalization' do it 'should create an instance of Capitalization' do - expect(@instance).to be_instance_of(Petstore::Capitalization) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::Capitalization) end end + describe 'test attribute "small_camel"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-faraday/spec/models/cat_spec.rb b/samples/client/petstore/ruby-faraday/spec/models/cat_spec.rb index 3007a05924f6..9f09d5fbaf83 100644 --- a/samples/client/petstore/ruby-faraday/spec/models/cat_spec.rb +++ b/samples/client/petstore/ruby-faraday/spec/models/cat_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::Cat # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'Cat' do - before do - # run before each test - @instance = Petstore::Cat.new - end - - after do - # run after each test - end +describe Petstore::Cat do + let(:instance) { Petstore::Cat.new } describe 'test an instance of Cat' do it 'should create an instance of Cat' do - expect(@instance).to be_instance_of(Petstore::Cat) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::Cat) end end + describe 'test attribute "declawed"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-faraday/spec/models/category_spec.rb b/samples/client/petstore/ruby-faraday/spec/models/category_spec.rb index aa9fb18d97f8..522c20bd3b09 100644 --- a/samples/client/petstore/ruby-faraday/spec/models/category_spec.rb +++ b/samples/client/petstore/ruby-faraday/spec/models/category_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::Category # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'Category' do - before do - # run before each test - @instance = Petstore::Category.new - end - - after do - # run after each test - end +describe Petstore::Category do + let(:instance) { Petstore::Category.new } describe 'test an instance of Category' do it 'should create an instance of Category' do - expect(@instance).to be_instance_of(Petstore::Category) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::Category) end end + describe 'test attribute "id"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-faraday/spec/models/child_with_nullable_spec.rb b/samples/client/petstore/ruby-faraday/spec/models/child_with_nullable_spec.rb index 2858c0502dbb..f86837bbbb91 100644 --- a/samples/client/petstore/ruby-faraday/spec/models/child_with_nullable_spec.rb +++ b/samples/client/petstore/ruby-faraday/spec/models/child_with_nullable_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 7.0.1-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -22,9 +22,11 @@ describe 'test an instance of ChildWithNullable' do it 'should create an instance of ChildWithNullable' do - expect(instance).to be_instance_of(Petstore::ChildWithNullable) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::ChildWithNullable) end end + describe 'test attribute "other_property"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-faraday/spec/models/class_model_spec.rb b/samples/client/petstore/ruby-faraday/spec/models/class_model_spec.rb index e5cadd24dad2..d1affa000236 100644 --- a/samples/client/petstore/ruby-faraday/spec/models/class_model_spec.rb +++ b/samples/client/petstore/ruby-faraday/spec/models/class_model_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::ClassModel # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'ClassModel' do - before do - # run before each test - @instance = Petstore::ClassModel.new - end - - after do - # run after each test - end +describe Petstore::ClassModel do + let(:instance) { Petstore::ClassModel.new } describe 'test an instance of ClassModel' do it 'should create an instance of ClassModel' do - expect(@instance).to be_instance_of(Petstore::ClassModel) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::ClassModel) end end + describe 'test attribute "_class"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-faraday/spec/models/client_spec.rb b/samples/client/petstore/ruby-faraday/spec/models/client_spec.rb index ef798f27dad5..b747d7b47ba8 100644 --- a/samples/client/petstore/ruby-faraday/spec/models/client_spec.rb +++ b/samples/client/petstore/ruby-faraday/spec/models/client_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::Client # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'Client' do - before do - # run before each test - @instance = Petstore::Client.new - end - - after do - # run after each test - end +describe Petstore::Client do + let(:instance) { Petstore::Client.new } describe 'test an instance of Client' do it 'should create an instance of Client' do - expect(@instance).to be_instance_of(Petstore::Client) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::Client) end end + describe 'test attribute "client"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-faraday/spec/models/deprecated_object_spec.rb b/samples/client/petstore/ruby-faraday/spec/models/deprecated_object_spec.rb index 244cae374649..832e48f0fdc1 100644 --- a/samples/client/petstore/ruby-faraday/spec/models/deprecated_object_spec.rb +++ b/samples/client/petstore/ruby-faraday/spec/models/deprecated_object_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.2.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -22,9 +22,11 @@ describe 'test an instance of DeprecatedObject' do it 'should create an instance of DeprecatedObject' do - expect(instance).to be_instance_of(Petstore::DeprecatedObject) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::DeprecatedObject) end end + describe 'test attribute "name"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-faraday/spec/models/dog_spec.rb b/samples/client/petstore/ruby-faraday/spec/models/dog_spec.rb index 4263bda06f12..fd446c30fee4 100644 --- a/samples/client/petstore/ruby-faraday/spec/models/dog_spec.rb +++ b/samples/client/petstore/ruby-faraday/spec/models/dog_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::Dog # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'Dog' do - before do - # run before each test - @instance = Petstore::Dog.new - end - - after do - # run after each test - end +describe Petstore::Dog do + let(:instance) { Petstore::Dog.new } describe 'test an instance of Dog' do it 'should create an instance of Dog' do - expect(@instance).to be_instance_of(Petstore::Dog) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::Dog) end end + describe 'test attribute "breed"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-faraday/spec/models/enum_arrays_spec.rb b/samples/client/petstore/ruby-faraday/spec/models/enum_arrays_spec.rb index a839505446d9..615041859d8b 100644 --- a/samples/client/petstore/ruby-faraday/spec/models/enum_arrays_spec.rb +++ b/samples/client/petstore/ruby-faraday/spec/models/enum_arrays_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,27 +17,22 @@ # Unit tests for Petstore::EnumArrays # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'EnumArrays' do - before do - # run before each test - @instance = Petstore::EnumArrays.new - end - - after do - # run after each test - end +describe Petstore::EnumArrays do + let(:instance) { Petstore::EnumArrays.new } describe 'test an instance of EnumArrays' do it 'should create an instance of EnumArrays' do - expect(@instance).to be_instance_of(Petstore::EnumArrays) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::EnumArrays) end end + describe 'test attribute "just_symbol"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', [">=", "$"]) # validator.allowable_values.each do |value| - # expect { @instance.just_symbol = value }.not_to raise_error + # expect { instance.just_symbol = value }.not_to raise_error # end end end @@ -47,7 +42,7 @@ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ # validator = Petstore::EnumTest::EnumAttributeValidator.new('Array', ["fish", "crab"]) # validator.allowable_values.each do |value| - # expect { @instance.array_enum = value }.not_to raise_error + # expect { instance.array_enum = value }.not_to raise_error # end end end diff --git a/samples/client/petstore/ruby-faraday/spec/models/enum_class_spec.rb b/samples/client/petstore/ruby-faraday/spec/models/enum_class_spec.rb index 29fcd05aa750..094873fa960c 100644 --- a/samples/client/petstore/ruby-faraday/spec/models/enum_class_spec.rb +++ b/samples/client/petstore/ruby-faraday/spec/models/enum_class_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,19 +17,14 @@ # Unit tests for Petstore::EnumClass # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'EnumClass' do - before do - # run before each test - @instance = Petstore::EnumClass.new - end - - after do - # run after each test - end +describe Petstore::EnumClass do + let(:instance) { Petstore::EnumClass.new } describe 'test an instance of EnumClass' do it 'should create an instance of EnumClass' do - expect(@instance).to be_instance_of(Petstore::EnumClass) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::EnumClass) end end + end diff --git a/samples/client/petstore/ruby-faraday/spec/models/enum_test_spec.rb b/samples/client/petstore/ruby-faraday/spec/models/enum_test_spec.rb index 0235c261aa47..e7d00c78711c 100644 --- a/samples/client/petstore/ruby-faraday/spec/models/enum_test_spec.rb +++ b/samples/client/petstore/ruby-faraday/spec/models/enum_test_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,27 +17,22 @@ # Unit tests for Petstore::EnumTest # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'EnumTest' do - before do - # run before each test - @instance = Petstore::EnumTest.new - end - - after do - # run after each test - end +describe Petstore::EnumTest do + let(:instance) { Petstore::EnumTest.new } describe 'test an instance of EnumTest' do it 'should create an instance of EnumTest' do - expect(@instance).to be_instance_of(Petstore::EnumTest) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::EnumTest) end end + describe 'test attribute "enum_string"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["UPPER", "lower", ""]) # validator.allowable_values.each do |value| - # expect { @instance.enum_string = value }.not_to raise_error + # expect { instance.enum_string = value }.not_to raise_error # end end end @@ -47,7 +42,7 @@ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["UPPER", "lower", ""]) # validator.allowable_values.each do |value| - # expect { @instance.enum_string_required = value }.not_to raise_error + # expect { instance.enum_string_required = value }.not_to raise_error # end end end @@ -57,7 +52,7 @@ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ # validator = Petstore::EnumTest::EnumAttributeValidator.new('Integer', [1, -1]) # validator.allowable_values.each do |value| - # expect { @instance.enum_integer = value }.not_to raise_error + # expect { instance.enum_integer = value }.not_to raise_error # end end end @@ -67,7 +62,7 @@ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ # validator = Petstore::EnumTest::EnumAttributeValidator.new('Float', [1.1, -1.2]) # validator.allowable_values.each do |value| - # expect { @instance.enum_number = value }.not_to raise_error + # expect { instance.enum_number = value }.not_to raise_error # end end end diff --git a/samples/client/petstore/ruby-faraday/spec/models/fake_big_decimal_map200_response_spec.rb b/samples/client/petstore/ruby-faraday/spec/models/fake_big_decimal_map200_response_spec.rb index a1b4a6c4641f..d41e455a4517 100644 --- a/samples/client/petstore/ruby-faraday/spec/models/fake_big_decimal_map200_response_spec.rb +++ b/samples/client/petstore/ruby-faraday/spec/models/fake_big_decimal_map200_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 7.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -22,9 +22,11 @@ describe 'test an instance of FakeBigDecimalMap200Response' do it 'should create an instance of FakeBigDecimalMap200Response' do - expect(instance).to be_instance_of(Petstore::FakeBigDecimalMap200Response) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::FakeBigDecimalMap200Response) end end + describe 'test attribute "some_id"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-faraday/spec/models/file_schema_test_class_spec.rb b/samples/client/petstore/ruby-faraday/spec/models/file_schema_test_class_spec.rb index 4c8d3f9d80a4..cc6535c3688f 100644 --- a/samples/client/petstore/ruby-faraday/spec/models/file_schema_test_class_spec.rb +++ b/samples/client/petstore/ruby-faraday/spec/models/file_schema_test_class_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::FileSchemaTestClass # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'FileSchemaTestClass' do - before do - # run before each test - @instance = Petstore::FileSchemaTestClass.new - end - - after do - # run after each test - end +describe Petstore::FileSchemaTestClass do + let(:instance) { Petstore::FileSchemaTestClass.new } describe 'test an instance of FileSchemaTestClass' do it 'should create an instance of FileSchemaTestClass' do - expect(@instance).to be_instance_of(Petstore::FileSchemaTestClass) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::FileSchemaTestClass) end end + describe 'test attribute "file"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-faraday/spec/models/file_spec.rb b/samples/client/petstore/ruby-faraday/spec/models/file_spec.rb index 0afb47c7a962..8ba1f89c5c00 100644 --- a/samples/client/petstore/ruby-faraday/spec/models/file_spec.rb +++ b/samples/client/petstore/ruby-faraday/spec/models/file_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::File # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'File' do - before do - # run before each test - @instance = Petstore::File.new - end - - after do - # run after each test - end +describe Petstore::File do + let(:instance) { Petstore::File.new } describe 'test an instance of File' do it 'should create an instance of File' do - expect(@instance).to be_instance_of(Petstore::File) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::File) end end + describe 'test attribute "source_uri"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-faraday/spec/models/foo_get_default_response_spec.rb b/samples/client/petstore/ruby-faraday/spec/models/foo_get_default_response_spec.rb index 3ce38971bc30..22d9bc8dc5ed 100644 --- a/samples/client/petstore/ruby-faraday/spec/models/foo_get_default_response_spec.rb +++ b/samples/client/petstore/ruby-faraday/spec/models/foo_get_default_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -22,9 +22,11 @@ describe 'test an instance of FooGetDefaultResponse' do it 'should create an instance of FooGetDefaultResponse' do - expect(instance).to be_instance_of(Petstore::FooGetDefaultResponse) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::FooGetDefaultResponse) end end + describe 'test attribute "string"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-faraday/spec/models/foo_spec.rb b/samples/client/petstore/ruby-faraday/spec/models/foo_spec.rb index fc54b3ac92f6..6b4b4f559484 100644 --- a/samples/client/petstore/ruby-faraday/spec/models/foo_spec.rb +++ b/samples/client/petstore/ruby-faraday/spec/models/foo_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::Foo # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'Foo' do - before do - # run before each test - @instance = Petstore::Foo.new - end - - after do - # run after each test - end +describe Petstore::Foo do + let(:instance) { Petstore::Foo.new } describe 'test an instance of Foo' do it 'should create an instance of Foo' do - expect(@instance).to be_instance_of(Petstore::Foo) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::Foo) end end + describe 'test attribute "bar"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-faraday/spec/models/format_test_spec.rb b/samples/client/petstore/ruby-faraday/spec/models/format_test_spec.rb index c6408011fbc5..c1a318014e95 100644 --- a/samples/client/petstore/ruby-faraday/spec/models/format_test_spec.rb +++ b/samples/client/petstore/ruby-faraday/spec/models/format_test_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,26 +17,16 @@ # Unit tests for Petstore::FormatTest # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'FormatTest' do - before do - # run before each test - @instance = Petstore::FormatTest.new({ - number: 65, - byte: '1234356', - date: Date.parse('2007-12-03T10:15:30+01:00'), - password: 'password123' - }) - end - - after do - # run after each test - end +describe Petstore::FormatTest do + let(:instance) { Petstore::FormatTest.new } describe 'test an instance of FormatTest' do it 'should create an instance of FormatTest' do - expect(@instance).to be_instance_of(Petstore::FormatTest) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::FormatTest) end end + describe 'test attribute "integer"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -73,6 +63,12 @@ end end + describe 'test attribute "decimal"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + describe 'test attribute "string"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-faraday/spec/models/has_only_read_only_spec.rb b/samples/client/petstore/ruby-faraday/spec/models/has_only_read_only_spec.rb index 5630b1cf97d2..543f72a9e865 100644 --- a/samples/client/petstore/ruby-faraday/spec/models/has_only_read_only_spec.rb +++ b/samples/client/petstore/ruby-faraday/spec/models/has_only_read_only_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::HasOnlyReadOnly # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'HasOnlyReadOnly' do - before do - # run before each test - @instance = Petstore::HasOnlyReadOnly.new - end - - after do - # run after each test - end +describe Petstore::HasOnlyReadOnly do + let(:instance) { Petstore::HasOnlyReadOnly.new } describe 'test an instance of HasOnlyReadOnly' do it 'should create an instance of HasOnlyReadOnly' do - expect(@instance).to be_instance_of(Petstore::HasOnlyReadOnly) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::HasOnlyReadOnly) end end + describe 'test attribute "bar"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-faraday/spec/models/health_check_result_spec.rb b/samples/client/petstore/ruby-faraday/spec/models/health_check_result_spec.rb index 797ee9704d3f..797d914e363c 100644 --- a/samples/client/petstore/ruby-faraday/spec/models/health_check_result_spec.rb +++ b/samples/client/petstore/ruby-faraday/spec/models/health_check_result_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::HealthCheckResult # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'HealthCheckResult' do - before do - # run before each test - @instance = Petstore::HealthCheckResult.new - end - - after do - # run after each test - end +describe Petstore::HealthCheckResult do + let(:instance) { Petstore::HealthCheckResult.new } describe 'test an instance of HealthCheckResult' do it 'should create an instance of HealthCheckResult' do - expect(@instance).to be_instance_of(Petstore::HealthCheckResult) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::HealthCheckResult) end end + describe 'test attribute "nullable_message"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-faraday/spec/models/list_spec.rb b/samples/client/petstore/ruby-faraday/spec/models/list_spec.rb index 88716e869424..d08f9daee56e 100644 --- a/samples/client/petstore/ruby-faraday/spec/models/list_spec.rb +++ b/samples/client/petstore/ruby-faraday/spec/models/list_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::List # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'List' do - before do - # run before each test - @instance = Petstore::List.new - end - - after do - # run after each test - end +describe Petstore::List do + let(:instance) { Petstore::List.new } describe 'test an instance of List' do it 'should create an instance of List' do - expect(@instance).to be_instance_of(Petstore::List) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::List) end end + describe 'test attribute "_123_list"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-faraday/spec/models/map_test_spec.rb b/samples/client/petstore/ruby-faraday/spec/models/map_test_spec.rb index 012b9cc251f7..e4840c2a4816 100644 --- a/samples/client/petstore/ruby-faraday/spec/models/map_test_spec.rb +++ b/samples/client/petstore/ruby-faraday/spec/models/map_test_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::MapTest # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'MapTest' do - before do - # run before each test - @instance = Petstore::MapTest.new - end - - after do - # run after each test - end +describe Petstore::MapTest do + let(:instance) { Petstore::MapTest.new } describe 'test an instance of MapTest' do it 'should create an instance of MapTest' do - expect(@instance).to be_instance_of(Petstore::MapTest) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::MapTest) end end + describe 'test attribute "map_map_of_string"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -43,7 +38,7 @@ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ # validator = Petstore::EnumTest::EnumAttributeValidator.new('Hash', ["UPPER", "lower"]) # validator.allowable_values.each do |value| - # expect { @instance.map_of_enum_string = value }.not_to raise_error + # expect { instance.map_of_enum_string = value }.not_to raise_error # end end end diff --git a/samples/client/petstore/ruby-faraday/spec/models/mixed_properties_and_additional_properties_class_spec.rb b/samples/client/petstore/ruby-faraday/spec/models/mixed_properties_and_additional_properties_class_spec.rb index f58460e50e0c..fe265ae70279 100644 --- a/samples/client/petstore/ruby-faraday/spec/models/mixed_properties_and_additional_properties_class_spec.rb +++ b/samples/client/petstore/ruby-faraday/spec/models/mixed_properties_and_additional_properties_class_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::MixedPropertiesAndAdditionalPropertiesClass # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'MixedPropertiesAndAdditionalPropertiesClass' do - before do - # run before each test - @instance = Petstore::MixedPropertiesAndAdditionalPropertiesClass.new - end - - after do - # run after each test - end +describe Petstore::MixedPropertiesAndAdditionalPropertiesClass do + let(:instance) { Petstore::MixedPropertiesAndAdditionalPropertiesClass.new } describe 'test an instance of MixedPropertiesAndAdditionalPropertiesClass' do it 'should create an instance of MixedPropertiesAndAdditionalPropertiesClass' do - expect(@instance).to be_instance_of(Petstore::MixedPropertiesAndAdditionalPropertiesClass) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::MixedPropertiesAndAdditionalPropertiesClass) end end + describe 'test attribute "uuid"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-faraday/spec/models/model200_response_spec.rb b/samples/client/petstore/ruby-faraday/spec/models/model200_response_spec.rb index 245390ee6c09..061281a8c1c5 100644 --- a/samples/client/petstore/ruby-faraday/spec/models/model200_response_spec.rb +++ b/samples/client/petstore/ruby-faraday/spec/models/model200_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::Model200Response # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'Model200Response' do - before do - # run before each test - @instance = Petstore::Model200Response.new - end - - after do - # run after each test - end +describe Petstore::Model200Response do + let(:instance) { Petstore::Model200Response.new } describe 'test an instance of Model200Response' do it 'should create an instance of Model200Response' do - expect(@instance).to be_instance_of(Petstore::Model200Response) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::Model200Response) end end + describe 'test attribute "name"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-faraday/spec/models/model_return_spec.rb b/samples/client/petstore/ruby-faraday/spec/models/model_return_spec.rb index 5881f54839af..bbcd3f0d5fcd 100644 --- a/samples/client/petstore/ruby-faraday/spec/models/model_return_spec.rb +++ b/samples/client/petstore/ruby-faraday/spec/models/model_return_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::ModelReturn # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'ModelReturn' do - before do - # run before each test - @instance = Petstore::ModelReturn.new - end - - after do - # run after each test - end +describe Petstore::ModelReturn do + let(:instance) { Petstore::ModelReturn.new } describe 'test an instance of ModelReturn' do it 'should create an instance of ModelReturn' do - expect(@instance).to be_instance_of(Petstore::ModelReturn) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::ModelReturn) end end + describe 'test attribute "_return"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-faraday/spec/models/name_spec.rb b/samples/client/petstore/ruby-faraday/spec/models/name_spec.rb index 1edec1a94632..4ffe903deff4 100644 --- a/samples/client/petstore/ruby-faraday/spec/models/name_spec.rb +++ b/samples/client/petstore/ruby-faraday/spec/models/name_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::Name # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'Name' do - before do - # run before each test - @instance = Petstore::Name.new - end - - after do - # run after each test - end +describe Petstore::Name do + let(:instance) { Petstore::Name.new } describe 'test an instance of Name' do it 'should create an instance of Name' do - expect(@instance).to be_instance_of(Petstore::Name) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::Name) end end + describe 'test attribute "name"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-faraday/spec/models/nullable_class_spec.rb b/samples/client/petstore/ruby-faraday/spec/models/nullable_class_spec.rb index 5507799a0aae..28d85a223408 100644 --- a/samples/client/petstore/ruby-faraday/spec/models/nullable_class_spec.rb +++ b/samples/client/petstore/ruby-faraday/spec/models/nullable_class_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::NullableClass # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'NullableClass' do - before do - # run before each test - @instance = Petstore::NullableClass.new - end - - after do - # run after each test - end +describe Petstore::NullableClass do + let(:instance) { Petstore::NullableClass.new } describe 'test an instance of NullableClass' do it 'should create an instance of NullableClass' do - expect(@instance).to be_instance_of(Petstore::NullableClass) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::NullableClass) end end + describe 'test attribute "integer_prop"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-faraday/spec/models/number_only_spec.rb b/samples/client/petstore/ruby-faraday/spec/models/number_only_spec.rb index 2ecc4260dda8..1907d9638a71 100644 --- a/samples/client/petstore/ruby-faraday/spec/models/number_only_spec.rb +++ b/samples/client/petstore/ruby-faraday/spec/models/number_only_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::NumberOnly # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'NumberOnly' do - before do - # run before each test - @instance = Petstore::NumberOnly.new - end - - after do - # run after each test - end +describe Petstore::NumberOnly do + let(:instance) { Petstore::NumberOnly.new } describe 'test an instance of NumberOnly' do it 'should create an instance of NumberOnly' do - expect(@instance).to be_instance_of(Petstore::NumberOnly) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::NumberOnly) end end + describe 'test attribute "just_number"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-faraday/spec/models/object_with_deprecated_fields_spec.rb b/samples/client/petstore/ruby-faraday/spec/models/object_with_deprecated_fields_spec.rb index d6372aa68b57..69fced6f0c19 100644 --- a/samples/client/petstore/ruby-faraday/spec/models/object_with_deprecated_fields_spec.rb +++ b/samples/client/petstore/ruby-faraday/spec/models/object_with_deprecated_fields_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.2.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -22,9 +22,11 @@ describe 'test an instance of ObjectWithDeprecatedFields' do it 'should create an instance of ObjectWithDeprecatedFields' do - expect(instance).to be_instance_of(Petstore::ObjectWithDeprecatedFields) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::ObjectWithDeprecatedFields) end end + describe 'test attribute "uuid"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-faraday/spec/models/order_spec.rb b/samples/client/petstore/ruby-faraday/spec/models/order_spec.rb index e7a9dea74da1..beb1893b114e 100644 --- a/samples/client/petstore/ruby-faraday/spec/models/order_spec.rb +++ b/samples/client/petstore/ruby-faraday/spec/models/order_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::Order # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'Order' do - before do - # run before each test - @instance = Petstore::Order.new - end - - after do - # run after each test - end +describe Petstore::Order do + let(:instance) { Petstore::Order.new } describe 'test an instance of Order' do it 'should create an instance of Order' do - expect(@instance).to be_instance_of(Petstore::Order) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::Order) end end + describe 'test attribute "id"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -61,7 +56,7 @@ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["placed", "approved", "delivered"]) # validator.allowable_values.each do |value| - # expect { @instance.status = value }.not_to raise_error + # expect { instance.status = value }.not_to raise_error # end end end diff --git a/samples/client/petstore/ruby-faraday/spec/models/outer_composite_spec.rb b/samples/client/petstore/ruby-faraday/spec/models/outer_composite_spec.rb index ad4053e2c4a0..832939d3e24a 100644 --- a/samples/client/petstore/ruby-faraday/spec/models/outer_composite_spec.rb +++ b/samples/client/petstore/ruby-faraday/spec/models/outer_composite_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::OuterComposite # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'OuterComposite' do - before do - # run before each test - @instance = Petstore::OuterComposite.new - end - - after do - # run after each test - end +describe Petstore::OuterComposite do + let(:instance) { Petstore::OuterComposite.new } describe 'test an instance of OuterComposite' do it 'should create an instance of OuterComposite' do - expect(@instance).to be_instance_of(Petstore::OuterComposite) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::OuterComposite) end end + describe 'test attribute "my_number"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-faraday/spec/models/outer_enum_default_value_spec.rb b/samples/client/petstore/ruby-faraday/spec/models/outer_enum_default_value_spec.rb index 7bd96a7abaf4..c8c66b84884d 100644 --- a/samples/client/petstore/ruby-faraday/spec/models/outer_enum_default_value_spec.rb +++ b/samples/client/petstore/ruby-faraday/spec/models/outer_enum_default_value_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,19 +17,14 @@ # Unit tests for Petstore::OuterEnumDefaultValue # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'OuterEnumDefaultValue' do - before do - # run before each test - @instance = Petstore::OuterEnumDefaultValue.new - end - - after do - # run after each test - end +describe Petstore::OuterEnumDefaultValue do + let(:instance) { Petstore::OuterEnumDefaultValue.new } describe 'test an instance of OuterEnumDefaultValue' do it 'should create an instance of OuterEnumDefaultValue' do - expect(@instance).to be_instance_of(Petstore::OuterEnumDefaultValue) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::OuterEnumDefaultValue) end end + end diff --git a/samples/client/petstore/ruby-faraday/spec/models/outer_enum_integer_default_value_spec.rb b/samples/client/petstore/ruby-faraday/spec/models/outer_enum_integer_default_value_spec.rb index 48a94827e568..91f477b156e6 100644 --- a/samples/client/petstore/ruby-faraday/spec/models/outer_enum_integer_default_value_spec.rb +++ b/samples/client/petstore/ruby-faraday/spec/models/outer_enum_integer_default_value_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,19 +17,14 @@ # Unit tests for Petstore::OuterEnumIntegerDefaultValue # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'OuterEnumIntegerDefaultValue' do - before do - # run before each test - @instance = Petstore::OuterEnumIntegerDefaultValue.new - end - - after do - # run after each test - end +describe Petstore::OuterEnumIntegerDefaultValue do + let(:instance) { Petstore::OuterEnumIntegerDefaultValue.new } describe 'test an instance of OuterEnumIntegerDefaultValue' do it 'should create an instance of OuterEnumIntegerDefaultValue' do - expect(@instance).to be_instance_of(Petstore::OuterEnumIntegerDefaultValue) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::OuterEnumIntegerDefaultValue) end end + end diff --git a/samples/client/petstore/ruby-faraday/spec/models/outer_enum_integer_spec.rb b/samples/client/petstore/ruby-faraday/spec/models/outer_enum_integer_spec.rb index a0ac4c81f077..98141a4b64f2 100644 --- a/samples/client/petstore/ruby-faraday/spec/models/outer_enum_integer_spec.rb +++ b/samples/client/petstore/ruby-faraday/spec/models/outer_enum_integer_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,19 +17,14 @@ # Unit tests for Petstore::OuterEnumInteger # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'OuterEnumInteger' do - before do - # run before each test - @instance = Petstore::OuterEnumInteger.new - end - - after do - # run after each test - end +describe Petstore::OuterEnumInteger do + let(:instance) { Petstore::OuterEnumInteger.new } describe 'test an instance of OuterEnumInteger' do it 'should create an instance of OuterEnumInteger' do - expect(@instance).to be_instance_of(Petstore::OuterEnumInteger) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::OuterEnumInteger) end end + end diff --git a/samples/client/petstore/ruby-faraday/spec/models/outer_enum_spec.rb b/samples/client/petstore/ruby-faraday/spec/models/outer_enum_spec.rb index ea9762da93bf..06e00d35afec 100644 --- a/samples/client/petstore/ruby-faraday/spec/models/outer_enum_spec.rb +++ b/samples/client/petstore/ruby-faraday/spec/models/outer_enum_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,19 +17,14 @@ # Unit tests for Petstore::OuterEnum # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'OuterEnum' do - before do - # run before each test - @instance = Petstore::OuterEnum.new - end - - after do - # run after each test - end +describe Petstore::OuterEnum do + let(:instance) { Petstore::OuterEnum.new } describe 'test an instance of OuterEnum' do it 'should create an instance of OuterEnum' do - expect(@instance).to be_instance_of(Petstore::OuterEnum) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::OuterEnum) end end + end diff --git a/samples/client/petstore/ruby-faraday/spec/models/outer_object_with_enum_property_spec.rb b/samples/client/petstore/ruby-faraday/spec/models/outer_object_with_enum_property_spec.rb index 1a590a78b29a..69ecd157eb6c 100644 --- a/samples/client/petstore/ruby-faraday/spec/models/outer_object_with_enum_property_spec.rb +++ b/samples/client/petstore/ruby-faraday/spec/models/outer_object_with_enum_property_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -22,9 +22,11 @@ describe 'test an instance of OuterObjectWithEnumProperty' do it 'should create an instance of OuterObjectWithEnumProperty' do - expect(instance).to be_instance_of(Petstore::OuterObjectWithEnumProperty) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::OuterObjectWithEnumProperty) end end + describe 'test attribute "value"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-faraday/spec/models/parent_with_nullable_spec.rb b/samples/client/petstore/ruby-faraday/spec/models/parent_with_nullable_spec.rb index 763820497048..a12e06f7e265 100644 --- a/samples/client/petstore/ruby-faraday/spec/models/parent_with_nullable_spec.rb +++ b/samples/client/petstore/ruby-faraday/spec/models/parent_with_nullable_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 7.0.1-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -22,9 +22,11 @@ describe 'test an instance of ParentWithNullable' do it 'should create an instance of ParentWithNullable' do - expect(instance).to be_instance_of(Petstore::ParentWithNullable) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::ParentWithNullable) end end + describe 'test attribute "type"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-faraday/spec/models/pet_spec.rb b/samples/client/petstore/ruby-faraday/spec/models/pet_spec.rb index 08a4e8f61c98..d56bbb9cc2de 100644 --- a/samples/client/petstore/ruby-faraday/spec/models/pet_spec.rb +++ b/samples/client/petstore/ruby-faraday/spec/models/pet_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::Pet # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'Pet' do - before do - # run before each test - @instance = Petstore::Pet.new({ name: 'Kitty', photo_urls: ['www.photo-url.test'] }) - end - - after do - # run after each test - end +describe Petstore::Pet do + let(:instance) { Petstore::Pet.new } describe 'test an instance of Pet' do it 'should create an instance of Pet' do - expect(@instance).to be_instance_of(Petstore::Pet) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::Pet) end end + describe 'test attribute "id"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -67,7 +62,7 @@ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["available", "pending", "sold"]) # validator.allowable_values.each do |value| - # expect { @instance.status = value }.not_to raise_error + # expect { instance.status = value }.not_to raise_error # end end end diff --git a/samples/client/petstore/ruby-faraday/spec/models/read_only_first_spec.rb b/samples/client/petstore/ruby-faraday/spec/models/read_only_first_spec.rb index 036dd5581eed..e35fe201e39a 100644 --- a/samples/client/petstore/ruby-faraday/spec/models/read_only_first_spec.rb +++ b/samples/client/petstore/ruby-faraday/spec/models/read_only_first_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::ReadOnlyFirst # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'ReadOnlyFirst' do - before do - # run before each test - @instance = Petstore::ReadOnlyFirst.new - end - - after do - # run after each test - end +describe Petstore::ReadOnlyFirst do + let(:instance) { Petstore::ReadOnlyFirst.new } describe 'test an instance of ReadOnlyFirst' do it 'should create an instance of ReadOnlyFirst' do - expect(@instance).to be_instance_of(Petstore::ReadOnlyFirst) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::ReadOnlyFirst) end end + describe 'test attribute "bar"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-faraday/spec/models/single_ref_type_spec.rb b/samples/client/petstore/ruby-faraday/spec/models/single_ref_type_spec.rb index 7686eb34d2dc..0cdc540e563a 100644 --- a/samples/client/petstore/ruby-faraday/spec/models/single_ref_type_spec.rb +++ b/samples/client/petstore/ruby-faraday/spec/models/single_ref_type_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -22,7 +22,9 @@ describe 'test an instance of SingleRefType' do it 'should create an instance of SingleRefType' do - expect(instance).to be_instance_of(Petstore::SingleRefType) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::SingleRefType) end end + end diff --git a/samples/client/petstore/ruby-faraday/spec/models/special_model_name_spec.rb b/samples/client/petstore/ruby-faraday/spec/models/special_model_name_spec.rb index 78555f967cc6..25926fd381a7 100644 --- a/samples/client/petstore/ruby-faraday/spec/models/special_model_name_spec.rb +++ b/samples/client/petstore/ruby-faraday/spec/models/special_model_name_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::SpecialModelName # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'SpecialModelName' do - before do - # run before each test - @instance = Petstore::SpecialModelName.new - end - - after do - # run after each test - end +describe Petstore::SpecialModelName do + let(:instance) { Petstore::SpecialModelName.new } describe 'test an instance of SpecialModelName' do it 'should create an instance of SpecialModelName' do - expect(@instance).to be_instance_of(Petstore::SpecialModelName) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::SpecialModelName) end end + describe 'test attribute "special_property_name"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-faraday/spec/models/tag_spec.rb b/samples/client/petstore/ruby-faraday/spec/models/tag_spec.rb index e791cb35e149..359fc8c0b761 100644 --- a/samples/client/petstore/ruby-faraday/spec/models/tag_spec.rb +++ b/samples/client/petstore/ruby-faraday/spec/models/tag_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::Tag # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'Tag' do - before do - # run before each test - @instance = Petstore::Tag.new - end - - after do - # run after each test - end +describe Petstore::Tag do + let(:instance) { Petstore::Tag.new } describe 'test an instance of Tag' do it 'should create an instance of Tag' do - expect(@instance).to be_instance_of(Petstore::Tag) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::Tag) end end + describe 'test attribute "id"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-faraday/spec/models/test_inline_freeform_additional_properties_request_spec.rb b/samples/client/petstore/ruby-faraday/spec/models/test_inline_freeform_additional_properties_request_spec.rb index 2508babe7272..8cda9ab078b2 100644 --- a/samples/client/petstore/ruby-faraday/spec/models/test_inline_freeform_additional_properties_request_spec.rb +++ b/samples/client/petstore/ruby-faraday/spec/models/test_inline_freeform_additional_properties_request_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 7.0.1-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -22,9 +22,11 @@ describe 'test an instance of TestInlineFreeformAdditionalPropertiesRequest' do it 'should create an instance of TestInlineFreeformAdditionalPropertiesRequest' do - expect(instance).to be_instance_of(Petstore::TestInlineFreeformAdditionalPropertiesRequest) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::TestInlineFreeformAdditionalPropertiesRequest) end end + describe 'test attribute "some_property"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-faraday/spec/models/user_spec.rb b/samples/client/petstore/ruby-faraday/spec/models/user_spec.rb index 9d162c5d9993..b07fb462fba1 100644 --- a/samples/client/petstore/ruby-faraday/spec/models/user_spec.rb +++ b/samples/client/petstore/ruby-faraday/spec/models/user_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::User # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'User' do - before do - # run before each test - @instance = Petstore::User.new - end - - after do - # run after each test - end +describe Petstore::User do + let(:instance) { Petstore::User.new } describe 'test an instance of User' do it 'should create an instance of User' do - expect(@instance).to be_instance_of(Petstore::User) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::User) end end + describe 'test attribute "id"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-httpx/spec/api/another_fake_api_spec.rb b/samples/client/petstore/ruby-httpx/spec/api/another_fake_api_spec.rb index c4ae33b8e94a..4db2cbc9d00f 100644 --- a/samples/client/petstore/ruby-httpx/spec/api/another_fake_api_spec.rb +++ b/samples/client/petstore/ruby-httpx/spec/api/another_fake_api_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end diff --git a/samples/client/petstore/ruby-httpx/spec/api/default_api_spec.rb b/samples/client/petstore/ruby-httpx/spec/api/default_api_spec.rb index a4c4123b2f47..fc1db9dae748 100644 --- a/samples/client/petstore/ruby-httpx/spec/api/default_api_spec.rb +++ b/samples/client/petstore/ruby-httpx/spec/api/default_api_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -34,7 +34,7 @@ # unit tests for foo_get # @param [Hash] opts the optional parameters - # @return [InlineResponseDefault] + # @return [FooGetDefaultResponse] describe 'foo_get test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-httpx/spec/api/fake_api_spec.rb b/samples/client/petstore/ruby-httpx/spec/api/fake_api_spec.rb index 659c054e04d6..e8caebf4e6ef 100644 --- a/samples/client/petstore/ruby-httpx/spec/api/fake_api_spec.rb +++ b/samples/client/petstore/ruby-httpx/spec/api/fake_api_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -32,6 +32,16 @@ end end + # unit tests for fake_big_decimal_map + # for Java apache and Java native, test toUrlQueryString for maps with BegDecimal keys + # @param [Hash] opts the optional parameters + # @return [FakeBigDecimalMap200Response] + describe 'fake_big_decimal_map test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + # unit tests for fake_health_get # Health check endpoint # @param [Hash] opts the optional parameters @@ -99,9 +109,57 @@ end end + # unit tests for fake_property_enum_integer_serialize + # Test serialization of enum (int) properties with examples + # @param outer_object_with_enum_property Input enum (int) as post body + # @param [Hash] opts the optional parameters + # @return [OuterObjectWithEnumProperty] + describe 'fake_property_enum_integer_serialize test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + # unit tests for get_parameter_name_mapping + # parameter name mapping test + # @param _type _type + # @param type type + # @param type_ type_ + # @param http_debug_option http debug option (to test parameter naming option) + # @param [Hash] opts the optional parameters + # @return [nil] + describe 'get_parameter_name_mapping test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + # unit tests for test_additional_properties_reference + # test referenced additionalProperties + # + # @param request_body request body + # @param [Hash] opts the optional parameters + # @return [nil] + describe 'test_additional_properties_reference test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + # unit tests for test_body_with_binary + # For this test, the body has to be a binary file. + # @param body image to upload + # @param [Hash] opts the optional parameters + # @return [nil] + describe 'test_body_with_binary test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + # unit tests for test_body_with_file_schema - # For this test, the body for this request much reference a schema named `File`. - # @param file_schema_test_class + # For this test, the body for this request must reference a schema named `File`. + # @param file_schema_test_class # @param [Hash] opts the optional parameters # @return [nil] describe 'test_body_with_file_schema test' do @@ -111,8 +169,8 @@ end # unit tests for test_body_with_query_params - # @param query - # @param user + # @param query + # @param user # @param [Hash] opts the optional parameters # @return [nil] describe 'test_body_with_query_params test' do @@ -134,8 +192,8 @@ end # unit tests for test_endpoint_parameters - # Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 - # Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 + # Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 + # Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 # @param number None # @param double None # @param pattern_without_delimiter None @@ -148,7 +206,7 @@ # @option opts [String] :string None # @option opts [File] :binary None # @option opts [Date] :date None - # @option opts [DateTime] :date_time None + # @option opts [Time] :date_time None # @option opts [String] :password None # @option opts [String] :callback None # @return [nil] @@ -168,6 +226,7 @@ # @option opts [String] :enum_query_string Query parameter enum test (string) # @option opts [Integer] :enum_query_integer Query parameter enum test (double) # @option opts [Float] :enum_query_double Query parameter enum test (double) + # @option opts [Array] :enum_query_model_array # @option opts [Array] :enum_form_string_array Form parameter enum test (string array) # @option opts [String] :enum_form_string Form parameter enum test (string) # @return [nil] @@ -196,6 +255,7 @@ # unit tests for test_inline_additional_properties # test inline additionalProperties + # # @param request_body request body # @param [Hash] opts the optional parameters # @return [nil] @@ -205,8 +265,21 @@ end end + # unit tests for test_inline_freeform_additional_properties + # test inline free-form additionalProperties + # + # @param test_inline_freeform_additional_properties_request request body + # @param [Hash] opts the optional parameters + # @return [nil] + describe 'test_inline_freeform_additional_properties test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + # unit tests for test_json_form_data # test json serialization of form data + # # @param param field1 # @param param2 field2 # @param [Hash] opts the optional parameters @@ -219,12 +292,14 @@ # unit tests for test_query_parameter_collection_format # To test the collection format in query parameters - # @param pipe - # @param ioutil - # @param http - # @param url - # @param context + # @param pipe + # @param ioutil + # @param http + # @param url + # @param context + # @param allow_empty # @param [Hash] opts the optional parameters + # @option opts [Hash] :language # @return [nil] describe 'test_query_parameter_collection_format test' do it 'should work' do @@ -232,4 +307,16 @@ end end + # unit tests for test_string_map_reference + # test referenced string map + # + # @param request_body request body + # @param [Hash] opts the optional parameters + # @return [nil] + describe 'test_string_map_reference test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + end diff --git a/samples/client/petstore/ruby-httpx/spec/api/fake_classname_tags123_api_spec.rb b/samples/client/petstore/ruby-httpx/spec/api/fake_classname_tags123_api_spec.rb index e102683e57ea..afb4cda40bd4 100644 --- a/samples/client/petstore/ruby-httpx/spec/api/fake_classname_tags123_api_spec.rb +++ b/samples/client/petstore/ruby-httpx/spec/api/fake_classname_tags123_api_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end diff --git a/samples/client/petstore/ruby-httpx/spec/api/pet_api_spec.rb b/samples/client/petstore/ruby-httpx/spec/api/pet_api_spec.rb index f20fc2c623b5..cf65f21d62c7 100644 --- a/samples/client/petstore/ruby-httpx/spec/api/pet_api_spec.rb +++ b/samples/client/petstore/ruby-httpx/spec/api/pet_api_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -34,6 +34,7 @@ # unit tests for add_pet # Add a new pet to the store + # # @param pet Pet object that needs to be added to the store # @param [Hash] opts the optional parameters # @return [nil] @@ -45,9 +46,10 @@ # unit tests for delete_pet # Deletes a pet + # # @param pet_id Pet id to delete # @param [Hash] opts the optional parameters - # @option opts [String] :api_key + # @option opts [String] :api_key # @return [nil] describe 'delete_pet test' do it 'should work' do @@ -93,6 +95,7 @@ # unit tests for update_pet # Update an existing pet + # # @param pet Pet object that needs to be added to the store # @param [Hash] opts the optional parameters # @return [nil] @@ -104,6 +107,7 @@ # unit tests for update_pet_with_form # Updates a pet in the store with form data + # # @param pet_id ID of pet that needs to be updated # @param [Hash] opts the optional parameters # @option opts [String] :name Updated name of the pet @@ -117,6 +121,7 @@ # unit tests for upload_file # uploads an image + # # @param pet_id ID of pet to update # @param [Hash] opts the optional parameters # @option opts [String] :additional_metadata Additional data to pass to server @@ -130,6 +135,7 @@ # unit tests for upload_file_with_required_file # uploads an image (required) + # # @param pet_id ID of pet to update # @param required_file file to upload # @param [Hash] opts the optional parameters diff --git a/samples/client/petstore/ruby-httpx/spec/api/store_api_spec.rb b/samples/client/petstore/ruby-httpx/spec/api/store_api_spec.rb index 7ef3b058dd7e..e1b4ac45bce8 100644 --- a/samples/client/petstore/ruby-httpx/spec/api/store_api_spec.rb +++ b/samples/client/petstore/ruby-httpx/spec/api/store_api_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -69,6 +69,7 @@ # unit tests for place_order # Place an order for a pet + # # @param order order placed for purchasing the pet # @param [Hash] opts the optional parameters # @return [Order] diff --git a/samples/client/petstore/ruby-httpx/spec/api/user_api_spec.rb b/samples/client/petstore/ruby-httpx/spec/api/user_api_spec.rb index d534f5198612..d12e6a0d20ab 100644 --- a/samples/client/petstore/ruby-httpx/spec/api/user_api_spec.rb +++ b/samples/client/petstore/ruby-httpx/spec/api/user_api_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -46,6 +46,7 @@ # unit tests for create_users_with_array_input # Creates list of users with given input array + # # @param user List of user object # @param [Hash] opts the optional parameters # @return [nil] @@ -57,6 +58,7 @@ # unit tests for create_users_with_list_input # Creates list of users with given input array + # # @param user List of user object # @param [Hash] opts the optional parameters # @return [nil] @@ -80,6 +82,7 @@ # unit tests for get_user_by_name # Get user by user name + # # @param username The name that needs to be fetched. Use user1 for testing. # @param [Hash] opts the optional parameters # @return [User] @@ -91,6 +94,7 @@ # unit tests for login_user # Logs user into the system + # # @param username The user name for login # @param password The password for login in clear text # @param [Hash] opts the optional parameters @@ -103,6 +107,7 @@ # unit tests for logout_user # Logs out current logged in user session + # # @param [Hash] opts the optional parameters # @return [nil] describe 'logout_user test' do diff --git a/samples/client/petstore/ruby-httpx/spec/models/additional_properties_class_spec.rb b/samples/client/petstore/ruby-httpx/spec/models/additional_properties_class_spec.rb index 2cfb6c671496..52c6b4c9522c 100644 --- a/samples/client/petstore/ruby-httpx/spec/models/additional_properties_class_spec.rb +++ b/samples/client/petstore/ruby-httpx/spec/models/additional_properties_class_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::AdditionalPropertiesClass # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'AdditionalPropertiesClass' do - before do - # run before each test - @instance = Petstore::AdditionalPropertiesClass.new - end - - after do - # run after each test - end +describe Petstore::AdditionalPropertiesClass do + let(:instance) { Petstore::AdditionalPropertiesClass.new } describe 'test an instance of AdditionalPropertiesClass' do it 'should create an instance of AdditionalPropertiesClass' do - expect(@instance).to be_instance_of(Petstore::AdditionalPropertiesClass) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::AdditionalPropertiesClass) end end + describe 'test attribute "map_property"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-httpx/spec/models/all_of_with_single_ref_spec.rb b/samples/client/petstore/ruby-httpx/spec/models/all_of_with_single_ref_spec.rb index f13ef665f5d8..890830a8460d 100644 --- a/samples/client/petstore/ruby-httpx/spec/models/all_of_with_single_ref_spec.rb +++ b/samples/client/petstore/ruby-httpx/spec/models/all_of_with_single_ref_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 7.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -22,9 +22,11 @@ describe 'test an instance of AllOfWithSingleRef' do it 'should create an instance of AllOfWithSingleRef' do - expect(instance).to be_instance_of(Petstore::AllOfWithSingleRef) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::AllOfWithSingleRef) end end + describe 'test attribute "username"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-httpx/spec/models/animal_spec.rb b/samples/client/petstore/ruby-httpx/spec/models/animal_spec.rb index 2bb034b310ff..1ee72ce7ab15 100644 --- a/samples/client/petstore/ruby-httpx/spec/models/animal_spec.rb +++ b/samples/client/petstore/ruby-httpx/spec/models/animal_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::Animal # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'Animal' do - before do - # run before each test - @instance = Petstore::Animal.new - end - - after do - # run after each test - end +describe Petstore::Animal do + let(:instance) { Petstore::Animal.new } describe 'test an instance of Animal' do it 'should create an instance of Animal' do - expect(@instance).to be_instance_of(Petstore::Animal) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::Animal) end end + describe 'test attribute "class_name"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-httpx/spec/models/api_response_spec.rb b/samples/client/petstore/ruby-httpx/spec/models/api_response_spec.rb index 267301460d95..ed6b223f1359 100644 --- a/samples/client/petstore/ruby-httpx/spec/models/api_response_spec.rb +++ b/samples/client/petstore/ruby-httpx/spec/models/api_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::ApiResponse # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'ApiResponse' do - before do - # run before each test - @instance = Petstore::ApiResponse.new - end - - after do - # run after each test - end +describe Petstore::ApiResponse do + let(:instance) { Petstore::ApiResponse.new } describe 'test an instance of ApiResponse' do it 'should create an instance of ApiResponse' do - expect(@instance).to be_instance_of(Petstore::ApiResponse) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::ApiResponse) end end + describe 'test attribute "code"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-httpx/spec/models/array_of_array_of_number_only_spec.rb b/samples/client/petstore/ruby-httpx/spec/models/array_of_array_of_number_only_spec.rb index 78f4a08761a1..fd0fa9306d59 100644 --- a/samples/client/petstore/ruby-httpx/spec/models/array_of_array_of_number_only_spec.rb +++ b/samples/client/petstore/ruby-httpx/spec/models/array_of_array_of_number_only_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::ArrayOfArrayOfNumberOnly # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'ArrayOfArrayOfNumberOnly' do - before do - # run before each test - @instance = Petstore::ArrayOfArrayOfNumberOnly.new - end - - after do - # run after each test - end +describe Petstore::ArrayOfArrayOfNumberOnly do + let(:instance) { Petstore::ArrayOfArrayOfNumberOnly.new } describe 'test an instance of ArrayOfArrayOfNumberOnly' do it 'should create an instance of ArrayOfArrayOfNumberOnly' do - expect(@instance).to be_instance_of(Petstore::ArrayOfArrayOfNumberOnly) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::ArrayOfArrayOfNumberOnly) end end + describe 'test attribute "array_array_number"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-httpx/spec/models/array_of_number_only_spec.rb b/samples/client/petstore/ruby-httpx/spec/models/array_of_number_only_spec.rb index 3e2ea611ecad..b77ec009649c 100644 --- a/samples/client/petstore/ruby-httpx/spec/models/array_of_number_only_spec.rb +++ b/samples/client/petstore/ruby-httpx/spec/models/array_of_number_only_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::ArrayOfNumberOnly # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'ArrayOfNumberOnly' do - before do - # run before each test - @instance = Petstore::ArrayOfNumberOnly.new - end - - after do - # run after each test - end +describe Petstore::ArrayOfNumberOnly do + let(:instance) { Petstore::ArrayOfNumberOnly.new } describe 'test an instance of ArrayOfNumberOnly' do it 'should create an instance of ArrayOfNumberOnly' do - expect(@instance).to be_instance_of(Petstore::ArrayOfNumberOnly) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::ArrayOfNumberOnly) end end + describe 'test attribute "array_number"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-httpx/spec/models/array_test_spec.rb b/samples/client/petstore/ruby-httpx/spec/models/array_test_spec.rb index 4633c0d8f3d6..0ccba22d9a04 100644 --- a/samples/client/petstore/ruby-httpx/spec/models/array_test_spec.rb +++ b/samples/client/petstore/ruby-httpx/spec/models/array_test_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::ArrayTest # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'ArrayTest' do - before do - # run before each test - @instance = Petstore::ArrayTest.new - end - - after do - # run after each test - end +describe Petstore::ArrayTest do + let(:instance) { Petstore::ArrayTest.new } describe 'test an instance of ArrayTest' do it 'should create an instance of ArrayTest' do - expect(@instance).to be_instance_of(Petstore::ArrayTest) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::ArrayTest) end end + describe 'test attribute "array_of_string"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-httpx/spec/models/capitalization_spec.rb b/samples/client/petstore/ruby-httpx/spec/models/capitalization_spec.rb index 025a0c5b09c0..7d4e8b9ea06c 100644 --- a/samples/client/petstore/ruby-httpx/spec/models/capitalization_spec.rb +++ b/samples/client/petstore/ruby-httpx/spec/models/capitalization_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::Capitalization # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'Capitalization' do - before do - # run before each test - @instance = Petstore::Capitalization.new - end - - after do - # run after each test - end +describe Petstore::Capitalization do + let(:instance) { Petstore::Capitalization.new } describe 'test an instance of Capitalization' do it 'should create an instance of Capitalization' do - expect(@instance).to be_instance_of(Petstore::Capitalization) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::Capitalization) end end + describe 'test attribute "small_camel"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-httpx/spec/models/cat_spec.rb b/samples/client/petstore/ruby-httpx/spec/models/cat_spec.rb index 3007a05924f6..9f09d5fbaf83 100644 --- a/samples/client/petstore/ruby-httpx/spec/models/cat_spec.rb +++ b/samples/client/petstore/ruby-httpx/spec/models/cat_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::Cat # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'Cat' do - before do - # run before each test - @instance = Petstore::Cat.new - end - - after do - # run after each test - end +describe Petstore::Cat do + let(:instance) { Petstore::Cat.new } describe 'test an instance of Cat' do it 'should create an instance of Cat' do - expect(@instance).to be_instance_of(Petstore::Cat) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::Cat) end end + describe 'test attribute "declawed"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-httpx/spec/models/category_spec.rb b/samples/client/petstore/ruby-httpx/spec/models/category_spec.rb index aa9fb18d97f8..522c20bd3b09 100644 --- a/samples/client/petstore/ruby-httpx/spec/models/category_spec.rb +++ b/samples/client/petstore/ruby-httpx/spec/models/category_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::Category # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'Category' do - before do - # run before each test - @instance = Petstore::Category.new - end - - after do - # run after each test - end +describe Petstore::Category do + let(:instance) { Petstore::Category.new } describe 'test an instance of Category' do it 'should create an instance of Category' do - expect(@instance).to be_instance_of(Petstore::Category) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::Category) end end + describe 'test attribute "id"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-httpx/spec/models/class_model_spec.rb b/samples/client/petstore/ruby-httpx/spec/models/class_model_spec.rb index e5cadd24dad2..d1affa000236 100644 --- a/samples/client/petstore/ruby-httpx/spec/models/class_model_spec.rb +++ b/samples/client/petstore/ruby-httpx/spec/models/class_model_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::ClassModel # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'ClassModel' do - before do - # run before each test - @instance = Petstore::ClassModel.new - end - - after do - # run after each test - end +describe Petstore::ClassModel do + let(:instance) { Petstore::ClassModel.new } describe 'test an instance of ClassModel' do it 'should create an instance of ClassModel' do - expect(@instance).to be_instance_of(Petstore::ClassModel) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::ClassModel) end end + describe 'test attribute "_class"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-httpx/spec/models/client_spec.rb b/samples/client/petstore/ruby-httpx/spec/models/client_spec.rb index ef798f27dad5..b747d7b47ba8 100644 --- a/samples/client/petstore/ruby-httpx/spec/models/client_spec.rb +++ b/samples/client/petstore/ruby-httpx/spec/models/client_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::Client # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'Client' do - before do - # run before each test - @instance = Petstore::Client.new - end - - after do - # run after each test - end +describe Petstore::Client do + let(:instance) { Petstore::Client.new } describe 'test an instance of Client' do it 'should create an instance of Client' do - expect(@instance).to be_instance_of(Petstore::Client) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::Client) end end + describe 'test attribute "client"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-httpx/spec/models/cow_spec.rb b/samples/client/petstore/ruby-httpx/spec/models/cow_spec.rb index e1cf66c03ac0..080344a8ca91 100644 --- a/samples/client/petstore/ruby-httpx/spec/models/cow_spec.rb +++ b/samples/client/petstore/ruby-httpx/spec/models/cow_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 7.3.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end diff --git a/samples/client/petstore/ruby-httpx/spec/models/deprecated_object_spec.rb b/samples/client/petstore/ruby-httpx/spec/models/deprecated_object_spec.rb index 244cae374649..832e48f0fdc1 100644 --- a/samples/client/petstore/ruby-httpx/spec/models/deprecated_object_spec.rb +++ b/samples/client/petstore/ruby-httpx/spec/models/deprecated_object_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.2.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -22,9 +22,11 @@ describe 'test an instance of DeprecatedObject' do it 'should create an instance of DeprecatedObject' do - expect(instance).to be_instance_of(Petstore::DeprecatedObject) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::DeprecatedObject) end end + describe 'test attribute "name"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-httpx/spec/models/dog_spec.rb b/samples/client/petstore/ruby-httpx/spec/models/dog_spec.rb index 4263bda06f12..fd446c30fee4 100644 --- a/samples/client/petstore/ruby-httpx/spec/models/dog_spec.rb +++ b/samples/client/petstore/ruby-httpx/spec/models/dog_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::Dog # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'Dog' do - before do - # run before each test - @instance = Petstore::Dog.new - end - - after do - # run after each test - end +describe Petstore::Dog do + let(:instance) { Petstore::Dog.new } describe 'test an instance of Dog' do it 'should create an instance of Dog' do - expect(@instance).to be_instance_of(Petstore::Dog) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::Dog) end end + describe 'test attribute "breed"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-httpx/spec/models/enum_arrays_spec.rb b/samples/client/petstore/ruby-httpx/spec/models/enum_arrays_spec.rb index a839505446d9..615041859d8b 100644 --- a/samples/client/petstore/ruby-httpx/spec/models/enum_arrays_spec.rb +++ b/samples/client/petstore/ruby-httpx/spec/models/enum_arrays_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,27 +17,22 @@ # Unit tests for Petstore::EnumArrays # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'EnumArrays' do - before do - # run before each test - @instance = Petstore::EnumArrays.new - end - - after do - # run after each test - end +describe Petstore::EnumArrays do + let(:instance) { Petstore::EnumArrays.new } describe 'test an instance of EnumArrays' do it 'should create an instance of EnumArrays' do - expect(@instance).to be_instance_of(Petstore::EnumArrays) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::EnumArrays) end end + describe 'test attribute "just_symbol"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', [">=", "$"]) # validator.allowable_values.each do |value| - # expect { @instance.just_symbol = value }.not_to raise_error + # expect { instance.just_symbol = value }.not_to raise_error # end end end @@ -47,7 +42,7 @@ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ # validator = Petstore::EnumTest::EnumAttributeValidator.new('Array', ["fish", "crab"]) # validator.allowable_values.each do |value| - # expect { @instance.array_enum = value }.not_to raise_error + # expect { instance.array_enum = value }.not_to raise_error # end end end diff --git a/samples/client/petstore/ruby-httpx/spec/models/enum_class_spec.rb b/samples/client/petstore/ruby-httpx/spec/models/enum_class_spec.rb index 29fcd05aa750..094873fa960c 100644 --- a/samples/client/petstore/ruby-httpx/spec/models/enum_class_spec.rb +++ b/samples/client/petstore/ruby-httpx/spec/models/enum_class_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,19 +17,14 @@ # Unit tests for Petstore::EnumClass # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'EnumClass' do - before do - # run before each test - @instance = Petstore::EnumClass.new - end - - after do - # run after each test - end +describe Petstore::EnumClass do + let(:instance) { Petstore::EnumClass.new } describe 'test an instance of EnumClass' do it 'should create an instance of EnumClass' do - expect(@instance).to be_instance_of(Petstore::EnumClass) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::EnumClass) end end + end diff --git a/samples/client/petstore/ruby-httpx/spec/models/enum_test_spec.rb b/samples/client/petstore/ruby-httpx/spec/models/enum_test_spec.rb index 0235c261aa47..e7d00c78711c 100644 --- a/samples/client/petstore/ruby-httpx/spec/models/enum_test_spec.rb +++ b/samples/client/petstore/ruby-httpx/spec/models/enum_test_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,27 +17,22 @@ # Unit tests for Petstore::EnumTest # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'EnumTest' do - before do - # run before each test - @instance = Petstore::EnumTest.new - end - - after do - # run after each test - end +describe Petstore::EnumTest do + let(:instance) { Petstore::EnumTest.new } describe 'test an instance of EnumTest' do it 'should create an instance of EnumTest' do - expect(@instance).to be_instance_of(Petstore::EnumTest) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::EnumTest) end end + describe 'test attribute "enum_string"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["UPPER", "lower", ""]) # validator.allowable_values.each do |value| - # expect { @instance.enum_string = value }.not_to raise_error + # expect { instance.enum_string = value }.not_to raise_error # end end end @@ -47,7 +42,7 @@ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["UPPER", "lower", ""]) # validator.allowable_values.each do |value| - # expect { @instance.enum_string_required = value }.not_to raise_error + # expect { instance.enum_string_required = value }.not_to raise_error # end end end @@ -57,7 +52,7 @@ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ # validator = Petstore::EnumTest::EnumAttributeValidator.new('Integer', [1, -1]) # validator.allowable_values.each do |value| - # expect { @instance.enum_integer = value }.not_to raise_error + # expect { instance.enum_integer = value }.not_to raise_error # end end end @@ -67,7 +62,7 @@ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ # validator = Petstore::EnumTest::EnumAttributeValidator.new('Float', [1.1, -1.2]) # validator.allowable_values.each do |value| - # expect { @instance.enum_number = value }.not_to raise_error + # expect { instance.enum_number = value }.not_to raise_error # end end end diff --git a/samples/client/petstore/ruby-httpx/spec/models/fake_big_decimal_map200_response_spec.rb b/samples/client/petstore/ruby-httpx/spec/models/fake_big_decimal_map200_response_spec.rb index a1b4a6c4641f..d41e455a4517 100644 --- a/samples/client/petstore/ruby-httpx/spec/models/fake_big_decimal_map200_response_spec.rb +++ b/samples/client/petstore/ruby-httpx/spec/models/fake_big_decimal_map200_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 7.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -22,9 +22,11 @@ describe 'test an instance of FakeBigDecimalMap200Response' do it 'should create an instance of FakeBigDecimalMap200Response' do - expect(instance).to be_instance_of(Petstore::FakeBigDecimalMap200Response) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::FakeBigDecimalMap200Response) end end + describe 'test attribute "some_id"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-httpx/spec/models/file_schema_test_class_spec.rb b/samples/client/petstore/ruby-httpx/spec/models/file_schema_test_class_spec.rb index 4c8d3f9d80a4..cc6535c3688f 100644 --- a/samples/client/petstore/ruby-httpx/spec/models/file_schema_test_class_spec.rb +++ b/samples/client/petstore/ruby-httpx/spec/models/file_schema_test_class_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::FileSchemaTestClass # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'FileSchemaTestClass' do - before do - # run before each test - @instance = Petstore::FileSchemaTestClass.new - end - - after do - # run after each test - end +describe Petstore::FileSchemaTestClass do + let(:instance) { Petstore::FileSchemaTestClass.new } describe 'test an instance of FileSchemaTestClass' do it 'should create an instance of FileSchemaTestClass' do - expect(@instance).to be_instance_of(Petstore::FileSchemaTestClass) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::FileSchemaTestClass) end end + describe 'test attribute "file"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-httpx/spec/models/file_spec.rb b/samples/client/petstore/ruby-httpx/spec/models/file_spec.rb index 0afb47c7a962..8ba1f89c5c00 100644 --- a/samples/client/petstore/ruby-httpx/spec/models/file_spec.rb +++ b/samples/client/petstore/ruby-httpx/spec/models/file_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::File # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'File' do - before do - # run before each test - @instance = Petstore::File.new - end - - after do - # run after each test - end +describe Petstore::File do + let(:instance) { Petstore::File.new } describe 'test an instance of File' do it 'should create an instance of File' do - expect(@instance).to be_instance_of(Petstore::File) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::File) end end + describe 'test attribute "source_uri"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-httpx/spec/models/foo_get_default_response_spec.rb b/samples/client/petstore/ruby-httpx/spec/models/foo_get_default_response_spec.rb index 3ce38971bc30..22d9bc8dc5ed 100644 --- a/samples/client/petstore/ruby-httpx/spec/models/foo_get_default_response_spec.rb +++ b/samples/client/petstore/ruby-httpx/spec/models/foo_get_default_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -22,9 +22,11 @@ describe 'test an instance of FooGetDefaultResponse' do it 'should create an instance of FooGetDefaultResponse' do - expect(instance).to be_instance_of(Petstore::FooGetDefaultResponse) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::FooGetDefaultResponse) end end + describe 'test attribute "string"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-httpx/spec/models/foo_spec.rb b/samples/client/petstore/ruby-httpx/spec/models/foo_spec.rb index fc54b3ac92f6..6b4b4f559484 100644 --- a/samples/client/petstore/ruby-httpx/spec/models/foo_spec.rb +++ b/samples/client/petstore/ruby-httpx/spec/models/foo_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::Foo # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'Foo' do - before do - # run before each test - @instance = Petstore::Foo.new - end - - after do - # run after each test - end +describe Petstore::Foo do + let(:instance) { Petstore::Foo.new } describe 'test an instance of Foo' do it 'should create an instance of Foo' do - expect(@instance).to be_instance_of(Petstore::Foo) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::Foo) end end + describe 'test attribute "bar"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-httpx/spec/models/format_test_spec.rb b/samples/client/petstore/ruby-httpx/spec/models/format_test_spec.rb index c6408011fbc5..c1a318014e95 100644 --- a/samples/client/petstore/ruby-httpx/spec/models/format_test_spec.rb +++ b/samples/client/petstore/ruby-httpx/spec/models/format_test_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,26 +17,16 @@ # Unit tests for Petstore::FormatTest # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'FormatTest' do - before do - # run before each test - @instance = Petstore::FormatTest.new({ - number: 65, - byte: '1234356', - date: Date.parse('2007-12-03T10:15:30+01:00'), - password: 'password123' - }) - end - - after do - # run after each test - end +describe Petstore::FormatTest do + let(:instance) { Petstore::FormatTest.new } describe 'test an instance of FormatTest' do it 'should create an instance of FormatTest' do - expect(@instance).to be_instance_of(Petstore::FormatTest) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::FormatTest) end end + describe 'test attribute "integer"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -73,6 +63,12 @@ end end + describe 'test attribute "decimal"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + describe 'test attribute "string"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-httpx/spec/models/has_only_read_only_spec.rb b/samples/client/petstore/ruby-httpx/spec/models/has_only_read_only_spec.rb index 5630b1cf97d2..543f72a9e865 100644 --- a/samples/client/petstore/ruby-httpx/spec/models/has_only_read_only_spec.rb +++ b/samples/client/petstore/ruby-httpx/spec/models/has_only_read_only_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::HasOnlyReadOnly # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'HasOnlyReadOnly' do - before do - # run before each test - @instance = Petstore::HasOnlyReadOnly.new - end - - after do - # run after each test - end +describe Petstore::HasOnlyReadOnly do + let(:instance) { Petstore::HasOnlyReadOnly.new } describe 'test an instance of HasOnlyReadOnly' do it 'should create an instance of HasOnlyReadOnly' do - expect(@instance).to be_instance_of(Petstore::HasOnlyReadOnly) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::HasOnlyReadOnly) end end + describe 'test attribute "bar"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-httpx/spec/models/health_check_result_spec.rb b/samples/client/petstore/ruby-httpx/spec/models/health_check_result_spec.rb index 797ee9704d3f..797d914e363c 100644 --- a/samples/client/petstore/ruby-httpx/spec/models/health_check_result_spec.rb +++ b/samples/client/petstore/ruby-httpx/spec/models/health_check_result_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::HealthCheckResult # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'HealthCheckResult' do - before do - # run before each test - @instance = Petstore::HealthCheckResult.new - end - - after do - # run after each test - end +describe Petstore::HealthCheckResult do + let(:instance) { Petstore::HealthCheckResult.new } describe 'test an instance of HealthCheckResult' do it 'should create an instance of HealthCheckResult' do - expect(@instance).to be_instance_of(Petstore::HealthCheckResult) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::HealthCheckResult) end end + describe 'test attribute "nullable_message"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-httpx/spec/models/list_spec.rb b/samples/client/petstore/ruby-httpx/spec/models/list_spec.rb index 88716e869424..d08f9daee56e 100644 --- a/samples/client/petstore/ruby-httpx/spec/models/list_spec.rb +++ b/samples/client/petstore/ruby-httpx/spec/models/list_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::List # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'List' do - before do - # run before each test - @instance = Petstore::List.new - end - - after do - # run after each test - end +describe Petstore::List do + let(:instance) { Petstore::List.new } describe 'test an instance of List' do it 'should create an instance of List' do - expect(@instance).to be_instance_of(Petstore::List) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::List) end end + describe 'test attribute "_123_list"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-httpx/spec/models/mamal_with_enum_spec.rb b/samples/client/petstore/ruby-httpx/spec/models/mamal_with_enum_spec.rb index 95002b49ea45..5622e5ed8622 100644 --- a/samples/client/petstore/ruby-httpx/spec/models/mamal_with_enum_spec.rb +++ b/samples/client/petstore/ruby-httpx/spec/models/mamal_with_enum_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 7.3.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end diff --git a/samples/client/petstore/ruby-httpx/spec/models/mammal_anyof_spec.rb b/samples/client/petstore/ruby-httpx/spec/models/mammal_anyof_spec.rb index 878c48c246ae..1e102dfd5510 100644 --- a/samples/client/petstore/ruby-httpx/spec/models/mammal_anyof_spec.rb +++ b/samples/client/petstore/ruby-httpx/spec/models/mammal_anyof_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 7.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end diff --git a/samples/client/petstore/ruby-httpx/spec/models/mammal_spec.rb b/samples/client/petstore/ruby-httpx/spec/models/mammal_spec.rb index eae8ec5c09f9..c35f9ae013f5 100644 --- a/samples/client/petstore/ruby-httpx/spec/models/mammal_spec.rb +++ b/samples/client/petstore/ruby-httpx/spec/models/mammal_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 7.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -32,6 +32,7 @@ describe '.build' do it 'returns the correct model' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end end diff --git a/samples/client/petstore/ruby-httpx/spec/models/mammal_without_discriminator_spec.rb b/samples/client/petstore/ruby-httpx/spec/models/mammal_without_discriminator_spec.rb index 08dcbeb8b5a8..db9194889406 100644 --- a/samples/client/petstore/ruby-httpx/spec/models/mammal_without_discriminator_spec.rb +++ b/samples/client/petstore/ruby-httpx/spec/models/mammal_without_discriminator_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 7.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -26,6 +26,7 @@ describe '.build' do it 'returns the correct model' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end end diff --git a/samples/client/petstore/ruby-httpx/spec/models/map_test_spec.rb b/samples/client/petstore/ruby-httpx/spec/models/map_test_spec.rb index 012b9cc251f7..e4840c2a4816 100644 --- a/samples/client/petstore/ruby-httpx/spec/models/map_test_spec.rb +++ b/samples/client/petstore/ruby-httpx/spec/models/map_test_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::MapTest # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'MapTest' do - before do - # run before each test - @instance = Petstore::MapTest.new - end - - after do - # run after each test - end +describe Petstore::MapTest do + let(:instance) { Petstore::MapTest.new } describe 'test an instance of MapTest' do it 'should create an instance of MapTest' do - expect(@instance).to be_instance_of(Petstore::MapTest) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::MapTest) end end + describe 'test attribute "map_map_of_string"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -43,7 +38,7 @@ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ # validator = Petstore::EnumTest::EnumAttributeValidator.new('Hash', ["UPPER", "lower"]) # validator.allowable_values.each do |value| - # expect { @instance.map_of_enum_string = value }.not_to raise_error + # expect { instance.map_of_enum_string = value }.not_to raise_error # end end end diff --git a/samples/client/petstore/ruby-httpx/spec/models/mixed_properties_and_additional_properties_class_spec.rb b/samples/client/petstore/ruby-httpx/spec/models/mixed_properties_and_additional_properties_class_spec.rb index f58460e50e0c..fe265ae70279 100644 --- a/samples/client/petstore/ruby-httpx/spec/models/mixed_properties_and_additional_properties_class_spec.rb +++ b/samples/client/petstore/ruby-httpx/spec/models/mixed_properties_and_additional_properties_class_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::MixedPropertiesAndAdditionalPropertiesClass # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'MixedPropertiesAndAdditionalPropertiesClass' do - before do - # run before each test - @instance = Petstore::MixedPropertiesAndAdditionalPropertiesClass.new - end - - after do - # run after each test - end +describe Petstore::MixedPropertiesAndAdditionalPropertiesClass do + let(:instance) { Petstore::MixedPropertiesAndAdditionalPropertiesClass.new } describe 'test an instance of MixedPropertiesAndAdditionalPropertiesClass' do it 'should create an instance of MixedPropertiesAndAdditionalPropertiesClass' do - expect(@instance).to be_instance_of(Petstore::MixedPropertiesAndAdditionalPropertiesClass) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::MixedPropertiesAndAdditionalPropertiesClass) end end + describe 'test attribute "uuid"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-httpx/spec/models/model200_response_spec.rb b/samples/client/petstore/ruby-httpx/spec/models/model200_response_spec.rb index 245390ee6c09..061281a8c1c5 100644 --- a/samples/client/petstore/ruby-httpx/spec/models/model200_response_spec.rb +++ b/samples/client/petstore/ruby-httpx/spec/models/model200_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::Model200Response # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'Model200Response' do - before do - # run before each test - @instance = Petstore::Model200Response.new - end - - after do - # run after each test - end +describe Petstore::Model200Response do + let(:instance) { Petstore::Model200Response.new } describe 'test an instance of Model200Response' do it 'should create an instance of Model200Response' do - expect(@instance).to be_instance_of(Petstore::Model200Response) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::Model200Response) end end + describe 'test attribute "name"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-httpx/spec/models/model_return_spec.rb b/samples/client/petstore/ruby-httpx/spec/models/model_return_spec.rb index 5881f54839af..bbcd3f0d5fcd 100644 --- a/samples/client/petstore/ruby-httpx/spec/models/model_return_spec.rb +++ b/samples/client/petstore/ruby-httpx/spec/models/model_return_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::ModelReturn # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'ModelReturn' do - before do - # run before each test - @instance = Petstore::ModelReturn.new - end - - after do - # run after each test - end +describe Petstore::ModelReturn do + let(:instance) { Petstore::ModelReturn.new } describe 'test an instance of ModelReturn' do it 'should create an instance of ModelReturn' do - expect(@instance).to be_instance_of(Petstore::ModelReturn) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::ModelReturn) end end + describe 'test attribute "_return"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-httpx/spec/models/name_spec.rb b/samples/client/petstore/ruby-httpx/spec/models/name_spec.rb index 1edec1a94632..4ffe903deff4 100644 --- a/samples/client/petstore/ruby-httpx/spec/models/name_spec.rb +++ b/samples/client/petstore/ruby-httpx/spec/models/name_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::Name # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'Name' do - before do - # run before each test - @instance = Petstore::Name.new - end - - after do - # run after each test - end +describe Petstore::Name do + let(:instance) { Petstore::Name.new } describe 'test an instance of Name' do it 'should create an instance of Name' do - expect(@instance).to be_instance_of(Petstore::Name) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::Name) end end + describe 'test attribute "name"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-httpx/spec/models/nullable_class_spec.rb b/samples/client/petstore/ruby-httpx/spec/models/nullable_class_spec.rb index 5507799a0aae..28d85a223408 100644 --- a/samples/client/petstore/ruby-httpx/spec/models/nullable_class_spec.rb +++ b/samples/client/petstore/ruby-httpx/spec/models/nullable_class_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::NullableClass # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'NullableClass' do - before do - # run before each test - @instance = Petstore::NullableClass.new - end - - after do - # run after each test - end +describe Petstore::NullableClass do + let(:instance) { Petstore::NullableClass.new } describe 'test an instance of NullableClass' do it 'should create an instance of NullableClass' do - expect(@instance).to be_instance_of(Petstore::NullableClass) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::NullableClass) end end + describe 'test attribute "integer_prop"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-httpx/spec/models/number_only_spec.rb b/samples/client/petstore/ruby-httpx/spec/models/number_only_spec.rb index 2ecc4260dda8..1907d9638a71 100644 --- a/samples/client/petstore/ruby-httpx/spec/models/number_only_spec.rb +++ b/samples/client/petstore/ruby-httpx/spec/models/number_only_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::NumberOnly # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'NumberOnly' do - before do - # run before each test - @instance = Petstore::NumberOnly.new - end - - after do - # run after each test - end +describe Petstore::NumberOnly do + let(:instance) { Petstore::NumberOnly.new } describe 'test an instance of NumberOnly' do it 'should create an instance of NumberOnly' do - expect(@instance).to be_instance_of(Petstore::NumberOnly) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::NumberOnly) end end + describe 'test attribute "just_number"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-httpx/spec/models/object_with_deprecated_fields_spec.rb b/samples/client/petstore/ruby-httpx/spec/models/object_with_deprecated_fields_spec.rb index d6372aa68b57..69fced6f0c19 100644 --- a/samples/client/petstore/ruby-httpx/spec/models/object_with_deprecated_fields_spec.rb +++ b/samples/client/petstore/ruby-httpx/spec/models/object_with_deprecated_fields_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.2.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -22,9 +22,11 @@ describe 'test an instance of ObjectWithDeprecatedFields' do it 'should create an instance of ObjectWithDeprecatedFields' do - expect(instance).to be_instance_of(Petstore::ObjectWithDeprecatedFields) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::ObjectWithDeprecatedFields) end end + describe 'test attribute "uuid"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-httpx/spec/models/order_spec.rb b/samples/client/petstore/ruby-httpx/spec/models/order_spec.rb index e7a9dea74da1..beb1893b114e 100644 --- a/samples/client/petstore/ruby-httpx/spec/models/order_spec.rb +++ b/samples/client/petstore/ruby-httpx/spec/models/order_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::Order # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'Order' do - before do - # run before each test - @instance = Petstore::Order.new - end - - after do - # run after each test - end +describe Petstore::Order do + let(:instance) { Petstore::Order.new } describe 'test an instance of Order' do it 'should create an instance of Order' do - expect(@instance).to be_instance_of(Petstore::Order) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::Order) end end + describe 'test attribute "id"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -61,7 +56,7 @@ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["placed", "approved", "delivered"]) # validator.allowable_values.each do |value| - # expect { @instance.status = value }.not_to raise_error + # expect { instance.status = value }.not_to raise_error # end end end diff --git a/samples/client/petstore/ruby-httpx/spec/models/outer_composite_spec.rb b/samples/client/petstore/ruby-httpx/spec/models/outer_composite_spec.rb index ad4053e2c4a0..832939d3e24a 100644 --- a/samples/client/petstore/ruby-httpx/spec/models/outer_composite_spec.rb +++ b/samples/client/petstore/ruby-httpx/spec/models/outer_composite_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::OuterComposite # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'OuterComposite' do - before do - # run before each test - @instance = Petstore::OuterComposite.new - end - - after do - # run after each test - end +describe Petstore::OuterComposite do + let(:instance) { Petstore::OuterComposite.new } describe 'test an instance of OuterComposite' do it 'should create an instance of OuterComposite' do - expect(@instance).to be_instance_of(Petstore::OuterComposite) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::OuterComposite) end end + describe 'test attribute "my_number"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-httpx/spec/models/outer_enum_default_value_spec.rb b/samples/client/petstore/ruby-httpx/spec/models/outer_enum_default_value_spec.rb index 7bd96a7abaf4..c8c66b84884d 100644 --- a/samples/client/petstore/ruby-httpx/spec/models/outer_enum_default_value_spec.rb +++ b/samples/client/petstore/ruby-httpx/spec/models/outer_enum_default_value_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,19 +17,14 @@ # Unit tests for Petstore::OuterEnumDefaultValue # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'OuterEnumDefaultValue' do - before do - # run before each test - @instance = Petstore::OuterEnumDefaultValue.new - end - - after do - # run after each test - end +describe Petstore::OuterEnumDefaultValue do + let(:instance) { Petstore::OuterEnumDefaultValue.new } describe 'test an instance of OuterEnumDefaultValue' do it 'should create an instance of OuterEnumDefaultValue' do - expect(@instance).to be_instance_of(Petstore::OuterEnumDefaultValue) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::OuterEnumDefaultValue) end end + end diff --git a/samples/client/petstore/ruby-httpx/spec/models/outer_enum_integer_default_value_spec.rb b/samples/client/petstore/ruby-httpx/spec/models/outer_enum_integer_default_value_spec.rb index 48a94827e568..91f477b156e6 100644 --- a/samples/client/petstore/ruby-httpx/spec/models/outer_enum_integer_default_value_spec.rb +++ b/samples/client/petstore/ruby-httpx/spec/models/outer_enum_integer_default_value_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,19 +17,14 @@ # Unit tests for Petstore::OuterEnumIntegerDefaultValue # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'OuterEnumIntegerDefaultValue' do - before do - # run before each test - @instance = Petstore::OuterEnumIntegerDefaultValue.new - end - - after do - # run after each test - end +describe Petstore::OuterEnumIntegerDefaultValue do + let(:instance) { Petstore::OuterEnumIntegerDefaultValue.new } describe 'test an instance of OuterEnumIntegerDefaultValue' do it 'should create an instance of OuterEnumIntegerDefaultValue' do - expect(@instance).to be_instance_of(Petstore::OuterEnumIntegerDefaultValue) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::OuterEnumIntegerDefaultValue) end end + end diff --git a/samples/client/petstore/ruby-httpx/spec/models/outer_enum_integer_spec.rb b/samples/client/petstore/ruby-httpx/spec/models/outer_enum_integer_spec.rb index a0ac4c81f077..98141a4b64f2 100644 --- a/samples/client/petstore/ruby-httpx/spec/models/outer_enum_integer_spec.rb +++ b/samples/client/petstore/ruby-httpx/spec/models/outer_enum_integer_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,19 +17,14 @@ # Unit tests for Petstore::OuterEnumInteger # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'OuterEnumInteger' do - before do - # run before each test - @instance = Petstore::OuterEnumInteger.new - end - - after do - # run after each test - end +describe Petstore::OuterEnumInteger do + let(:instance) { Petstore::OuterEnumInteger.new } describe 'test an instance of OuterEnumInteger' do it 'should create an instance of OuterEnumInteger' do - expect(@instance).to be_instance_of(Petstore::OuterEnumInteger) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::OuterEnumInteger) end end + end diff --git a/samples/client/petstore/ruby-httpx/spec/models/outer_enum_spec.rb b/samples/client/petstore/ruby-httpx/spec/models/outer_enum_spec.rb index ea9762da93bf..06e00d35afec 100644 --- a/samples/client/petstore/ruby-httpx/spec/models/outer_enum_spec.rb +++ b/samples/client/petstore/ruby-httpx/spec/models/outer_enum_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,19 +17,14 @@ # Unit tests for Petstore::OuterEnum # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'OuterEnum' do - before do - # run before each test - @instance = Petstore::OuterEnum.new - end - - after do - # run after each test - end +describe Petstore::OuterEnum do + let(:instance) { Petstore::OuterEnum.new } describe 'test an instance of OuterEnum' do it 'should create an instance of OuterEnum' do - expect(@instance).to be_instance_of(Petstore::OuterEnum) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::OuterEnum) end end + end diff --git a/samples/client/petstore/ruby-httpx/spec/models/outer_object_with_enum_property_spec.rb b/samples/client/petstore/ruby-httpx/spec/models/outer_object_with_enum_property_spec.rb index 1a590a78b29a..69ecd157eb6c 100644 --- a/samples/client/petstore/ruby-httpx/spec/models/outer_object_with_enum_property_spec.rb +++ b/samples/client/petstore/ruby-httpx/spec/models/outer_object_with_enum_property_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -22,9 +22,11 @@ describe 'test an instance of OuterObjectWithEnumProperty' do it 'should create an instance of OuterObjectWithEnumProperty' do - expect(instance).to be_instance_of(Petstore::OuterObjectWithEnumProperty) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::OuterObjectWithEnumProperty) end end + describe 'test attribute "value"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-httpx/spec/models/pet_spec.rb b/samples/client/petstore/ruby-httpx/spec/models/pet_spec.rb index 08a4e8f61c98..d56bbb9cc2de 100644 --- a/samples/client/petstore/ruby-httpx/spec/models/pet_spec.rb +++ b/samples/client/petstore/ruby-httpx/spec/models/pet_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::Pet # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'Pet' do - before do - # run before each test - @instance = Petstore::Pet.new({ name: 'Kitty', photo_urls: ['www.photo-url.test'] }) - end - - after do - # run after each test - end +describe Petstore::Pet do + let(:instance) { Petstore::Pet.new } describe 'test an instance of Pet' do it 'should create an instance of Pet' do - expect(@instance).to be_instance_of(Petstore::Pet) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::Pet) end end + describe 'test attribute "id"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -67,7 +62,7 @@ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["available", "pending", "sold"]) # validator.allowable_values.each do |value| - # expect { @instance.status = value }.not_to raise_error + # expect { instance.status = value }.not_to raise_error # end end end diff --git a/samples/client/petstore/ruby-httpx/spec/models/property_name_mapping_spec.rb b/samples/client/petstore/ruby-httpx/spec/models/property_name_mapping_spec.rb index 09dfcb8218bd..edeeebeb52d7 100644 --- a/samples/client/petstore/ruby-httpx/spec/models/property_name_mapping_spec.rb +++ b/samples/client/petstore/ruby-httpx/spec/models/property_name_mapping_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 7.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -22,16 +22,18 @@ describe 'test an instance of PropertyNameMapping' do it 'should create an instance of PropertyNameMapping' do - expect(instance).to be_instance_of(Petstore::PropertyNameMapping) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::PropertyNameMapping) end end + describe 'test attribute "http_debug_operation"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end - describe 'test attribute "underscore_type"' do + describe 'test attribute "_type"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end @@ -43,7 +45,7 @@ end end - describe 'test attribute "type_with_underscore"' do + describe 'test attribute "type_"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end diff --git a/samples/client/petstore/ruby-httpx/spec/models/read_only_first_spec.rb b/samples/client/petstore/ruby-httpx/spec/models/read_only_first_spec.rb index 036dd5581eed..e35fe201e39a 100644 --- a/samples/client/petstore/ruby-httpx/spec/models/read_only_first_spec.rb +++ b/samples/client/petstore/ruby-httpx/spec/models/read_only_first_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::ReadOnlyFirst # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'ReadOnlyFirst' do - before do - # run before each test - @instance = Petstore::ReadOnlyFirst.new - end - - after do - # run after each test - end +describe Petstore::ReadOnlyFirst do + let(:instance) { Petstore::ReadOnlyFirst.new } describe 'test an instance of ReadOnlyFirst' do it 'should create an instance of ReadOnlyFirst' do - expect(@instance).to be_instance_of(Petstore::ReadOnlyFirst) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::ReadOnlyFirst) end end + describe 'test attribute "bar"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-httpx/spec/models/single_ref_type_spec.rb b/samples/client/petstore/ruby-httpx/spec/models/single_ref_type_spec.rb index 7686eb34d2dc..0cdc540e563a 100644 --- a/samples/client/petstore/ruby-httpx/spec/models/single_ref_type_spec.rb +++ b/samples/client/petstore/ruby-httpx/spec/models/single_ref_type_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -22,7 +22,9 @@ describe 'test an instance of SingleRefType' do it 'should create an instance of SingleRefType' do - expect(instance).to be_instance_of(Petstore::SingleRefType) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::SingleRefType) end end + end diff --git a/samples/client/petstore/ruby-httpx/spec/models/special_model_name_spec.rb b/samples/client/petstore/ruby-httpx/spec/models/special_model_name_spec.rb index 78555f967cc6..25926fd381a7 100644 --- a/samples/client/petstore/ruby-httpx/spec/models/special_model_name_spec.rb +++ b/samples/client/petstore/ruby-httpx/spec/models/special_model_name_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::SpecialModelName # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'SpecialModelName' do - before do - # run before each test - @instance = Petstore::SpecialModelName.new - end - - after do - # run after each test - end +describe Petstore::SpecialModelName do + let(:instance) { Petstore::SpecialModelName.new } describe 'test an instance of SpecialModelName' do it 'should create an instance of SpecialModelName' do - expect(@instance).to be_instance_of(Petstore::SpecialModelName) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::SpecialModelName) end end + describe 'test attribute "special_property_name"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-httpx/spec/models/tag_spec.rb b/samples/client/petstore/ruby-httpx/spec/models/tag_spec.rb index e791cb35e149..359fc8c0b761 100644 --- a/samples/client/petstore/ruby-httpx/spec/models/tag_spec.rb +++ b/samples/client/petstore/ruby-httpx/spec/models/tag_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::Tag # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'Tag' do - before do - # run before each test - @instance = Petstore::Tag.new - end - - after do - # run after each test - end +describe Petstore::Tag do + let(:instance) { Petstore::Tag.new } describe 'test an instance of Tag' do it 'should create an instance of Tag' do - expect(@instance).to be_instance_of(Petstore::Tag) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::Tag) end end + describe 'test attribute "id"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-httpx/spec/models/test_inline_freeform_additional_properties_request_spec.rb b/samples/client/petstore/ruby-httpx/spec/models/test_inline_freeform_additional_properties_request_spec.rb index 2508babe7272..8cda9ab078b2 100644 --- a/samples/client/petstore/ruby-httpx/spec/models/test_inline_freeform_additional_properties_request_spec.rb +++ b/samples/client/petstore/ruby-httpx/spec/models/test_inline_freeform_additional_properties_request_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 7.0.1-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -22,9 +22,11 @@ describe 'test an instance of TestInlineFreeformAdditionalPropertiesRequest' do it 'should create an instance of TestInlineFreeformAdditionalPropertiesRequest' do - expect(instance).to be_instance_of(Petstore::TestInlineFreeformAdditionalPropertiesRequest) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::TestInlineFreeformAdditionalPropertiesRequest) end end + describe 'test attribute "some_property"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-httpx/spec/models/user_spec.rb b/samples/client/petstore/ruby-httpx/spec/models/user_spec.rb index 9d162c5d9993..b07fb462fba1 100644 --- a/samples/client/petstore/ruby-httpx/spec/models/user_spec.rb +++ b/samples/client/petstore/ruby-httpx/spec/models/user_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::User # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'User' do - before do - # run before each test - @instance = Petstore::User.new - end - - after do - # run after each test - end +describe Petstore::User do + let(:instance) { Petstore::User.new } describe 'test an instance of User' do it 'should create an instance of User' do - expect(@instance).to be_instance_of(Petstore::User) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::User) end end + describe 'test attribute "id"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby-httpx/spec/models/whale_spec.rb b/samples/client/petstore/ruby-httpx/spec/models/whale_spec.rb index 55bfc0a659bb..8446b930349e 100644 --- a/samples/client/petstore/ruby-httpx/spec/models/whale_spec.rb +++ b/samples/client/petstore/ruby-httpx/spec/models/whale_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 7.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -22,9 +22,11 @@ describe 'test an instance of Whale' do it 'should create an instance of Whale' do - expect(instance).to be_instance_of(Petstore::Whale) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::Whale) end end + describe 'test attribute "has_baleen"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -37,7 +39,7 @@ end end - describe 'test attribute "class_name"' do + describe 'test attribute "classname"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end diff --git a/samples/client/petstore/ruby-httpx/spec/models/zebra_spec.rb b/samples/client/petstore/ruby-httpx/spec/models/zebra_spec.rb index 1076f9d907aa..0313104f4e7a 100644 --- a/samples/client/petstore/ruby-httpx/spec/models/zebra_spec.rb +++ b/samples/client/petstore/ruby-httpx/spec/models/zebra_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 7.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -22,9 +22,11 @@ describe 'test an instance of Zebra' do it 'should create an instance of Zebra' do - expect(instance).to be_instance_of(Petstore::Zebra) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::Zebra) end end + describe 'test attribute "type"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -35,7 +37,7 @@ end end - describe 'test attribute "class_name"' do + describe 'test attribute "classname"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end diff --git a/samples/client/petstore/ruby/spec/api/another_fake_api_spec.rb b/samples/client/petstore/ruby/spec/api/another_fake_api_spec.rb index c4ae33b8e94a..4db2cbc9d00f 100644 --- a/samples/client/petstore/ruby/spec/api/another_fake_api_spec.rb +++ b/samples/client/petstore/ruby/spec/api/another_fake_api_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end diff --git a/samples/client/petstore/ruby/spec/api/default_api_spec.rb b/samples/client/petstore/ruby/spec/api/default_api_spec.rb index a4c4123b2f47..fc1db9dae748 100644 --- a/samples/client/petstore/ruby/spec/api/default_api_spec.rb +++ b/samples/client/petstore/ruby/spec/api/default_api_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -34,7 +34,7 @@ # unit tests for foo_get # @param [Hash] opts the optional parameters - # @return [InlineResponseDefault] + # @return [FooGetDefaultResponse] describe 'foo_get test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby/spec/api/fake_api_spec.rb b/samples/client/petstore/ruby/spec/api/fake_api_spec.rb index 659c054e04d6..843d84fc0217 100644 --- a/samples/client/petstore/ruby/spec/api/fake_api_spec.rb +++ b/samples/client/petstore/ruby/spec/api/fake_api_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -32,6 +32,16 @@ end end + # unit tests for fake_big_decimal_map + # for Java apache and Java native, test toUrlQueryString for maps with BegDecimal keys + # @param [Hash] opts the optional parameters + # @return [FakeBigDecimalMap200Response] + describe 'fake_big_decimal_map test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + # unit tests for fake_health_get # Health check endpoint # @param [Hash] opts the optional parameters @@ -99,9 +109,57 @@ end end + # unit tests for fake_property_enum_integer_serialize + # Test serialization of enum (int) properties with examples + # @param outer_object_with_enum_property Input enum (int) as post body + # @param [Hash] opts the optional parameters + # @return [OuterObjectWithEnumProperty] + describe 'fake_property_enum_integer_serialize test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + # unit tests for get_parameter_name_mapping + # parameter name mapping test + # @param underscore_type _type + # @param type type + # @param type_with_underscore type_ + # @param http_debug_option http debug option (to test parameter naming option) + # @param [Hash] opts the optional parameters + # @return [nil] + describe 'get_parameter_name_mapping test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + # unit tests for test_additional_properties_reference + # test referenced additionalProperties + # + # @param request_body request body + # @param [Hash] opts the optional parameters + # @return [nil] + describe 'test_additional_properties_reference test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + # unit tests for test_body_with_binary + # For this test, the body has to be a binary file. + # @param body image to upload + # @param [Hash] opts the optional parameters + # @return [nil] + describe 'test_body_with_binary test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + # unit tests for test_body_with_file_schema - # For this test, the body for this request much reference a schema named `File`. - # @param file_schema_test_class + # For this test, the body for this request must reference a schema named `File`. + # @param file_schema_test_class # @param [Hash] opts the optional parameters # @return [nil] describe 'test_body_with_file_schema test' do @@ -111,8 +169,8 @@ end # unit tests for test_body_with_query_params - # @param query - # @param user + # @param query + # @param user # @param [Hash] opts the optional parameters # @return [nil] describe 'test_body_with_query_params test' do @@ -134,8 +192,8 @@ end # unit tests for test_endpoint_parameters - # Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 - # Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 + # Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 + # Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 # @param number None # @param double None # @param pattern_without_delimiter None @@ -148,7 +206,7 @@ # @option opts [String] :string None # @option opts [File] :binary None # @option opts [Date] :date None - # @option opts [DateTime] :date_time None + # @option opts [Time] :date_time None # @option opts [String] :password None # @option opts [String] :callback None # @return [nil] @@ -168,6 +226,7 @@ # @option opts [String] :enum_query_string Query parameter enum test (string) # @option opts [Integer] :enum_query_integer Query parameter enum test (double) # @option opts [Float] :enum_query_double Query parameter enum test (double) + # @option opts [Array] :enum_query_model_array # @option opts [Array] :enum_form_string_array Form parameter enum test (string array) # @option opts [String] :enum_form_string Form parameter enum test (string) # @return [nil] @@ -196,6 +255,7 @@ # unit tests for test_inline_additional_properties # test inline additionalProperties + # # @param request_body request body # @param [Hash] opts the optional parameters # @return [nil] @@ -205,8 +265,21 @@ end end + # unit tests for test_inline_freeform_additional_properties + # test inline free-form additionalProperties + # + # @param test_inline_freeform_additional_properties_request request body + # @param [Hash] opts the optional parameters + # @return [nil] + describe 'test_inline_freeform_additional_properties test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + # unit tests for test_json_form_data # test json serialization of form data + # # @param param field1 # @param param2 field2 # @param [Hash] opts the optional parameters @@ -219,12 +292,14 @@ # unit tests for test_query_parameter_collection_format # To test the collection format in query parameters - # @param pipe - # @param ioutil - # @param http - # @param url - # @param context + # @param pipe + # @param ioutil + # @param http + # @param url + # @param context + # @param allow_empty # @param [Hash] opts the optional parameters + # @option opts [Hash] :language # @return [nil] describe 'test_query_parameter_collection_format test' do it 'should work' do @@ -232,4 +307,16 @@ end end + # unit tests for test_string_map_reference + # test referenced string map + # + # @param request_body request body + # @param [Hash] opts the optional parameters + # @return [nil] + describe 'test_string_map_reference test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + end diff --git a/samples/client/petstore/ruby/spec/api/fake_classname_tags123_api_spec.rb b/samples/client/petstore/ruby/spec/api/fake_classname_tags123_api_spec.rb index e102683e57ea..afb4cda40bd4 100644 --- a/samples/client/petstore/ruby/spec/api/fake_classname_tags123_api_spec.rb +++ b/samples/client/petstore/ruby/spec/api/fake_classname_tags123_api_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end diff --git a/samples/client/petstore/ruby/spec/api/pet_api_spec.rb b/samples/client/petstore/ruby/spec/api/pet_api_spec.rb index f20fc2c623b5..cf65f21d62c7 100644 --- a/samples/client/petstore/ruby/spec/api/pet_api_spec.rb +++ b/samples/client/petstore/ruby/spec/api/pet_api_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -34,6 +34,7 @@ # unit tests for add_pet # Add a new pet to the store + # # @param pet Pet object that needs to be added to the store # @param [Hash] opts the optional parameters # @return [nil] @@ -45,9 +46,10 @@ # unit tests for delete_pet # Deletes a pet + # # @param pet_id Pet id to delete # @param [Hash] opts the optional parameters - # @option opts [String] :api_key + # @option opts [String] :api_key # @return [nil] describe 'delete_pet test' do it 'should work' do @@ -93,6 +95,7 @@ # unit tests for update_pet # Update an existing pet + # # @param pet Pet object that needs to be added to the store # @param [Hash] opts the optional parameters # @return [nil] @@ -104,6 +107,7 @@ # unit tests for update_pet_with_form # Updates a pet in the store with form data + # # @param pet_id ID of pet that needs to be updated # @param [Hash] opts the optional parameters # @option opts [String] :name Updated name of the pet @@ -117,6 +121,7 @@ # unit tests for upload_file # uploads an image + # # @param pet_id ID of pet to update # @param [Hash] opts the optional parameters # @option opts [String] :additional_metadata Additional data to pass to server @@ -130,6 +135,7 @@ # unit tests for upload_file_with_required_file # uploads an image (required) + # # @param pet_id ID of pet to update # @param required_file file to upload # @param [Hash] opts the optional parameters diff --git a/samples/client/petstore/ruby/spec/api/store_api_spec.rb b/samples/client/petstore/ruby/spec/api/store_api_spec.rb index 7ef3b058dd7e..e1b4ac45bce8 100644 --- a/samples/client/petstore/ruby/spec/api/store_api_spec.rb +++ b/samples/client/petstore/ruby/spec/api/store_api_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -69,6 +69,7 @@ # unit tests for place_order # Place an order for a pet + # # @param order order placed for purchasing the pet # @param [Hash] opts the optional parameters # @return [Order] diff --git a/samples/client/petstore/ruby/spec/api/user_api_spec.rb b/samples/client/petstore/ruby/spec/api/user_api_spec.rb index d534f5198612..d12e6a0d20ab 100644 --- a/samples/client/petstore/ruby/spec/api/user_api_spec.rb +++ b/samples/client/petstore/ruby/spec/api/user_api_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -46,6 +46,7 @@ # unit tests for create_users_with_array_input # Creates list of users with given input array + # # @param user List of user object # @param [Hash] opts the optional parameters # @return [nil] @@ -57,6 +58,7 @@ # unit tests for create_users_with_list_input # Creates list of users with given input array + # # @param user List of user object # @param [Hash] opts the optional parameters # @return [nil] @@ -80,6 +82,7 @@ # unit tests for get_user_by_name # Get user by user name + # # @param username The name that needs to be fetched. Use user1 for testing. # @param [Hash] opts the optional parameters # @return [User] @@ -91,6 +94,7 @@ # unit tests for login_user # Logs user into the system + # # @param username The user name for login # @param password The password for login in clear text # @param [Hash] opts the optional parameters @@ -103,6 +107,7 @@ # unit tests for logout_user # Logs out current logged in user session + # # @param [Hash] opts the optional parameters # @return [nil] describe 'logout_user test' do diff --git a/samples/client/petstore/ruby/spec/models/additional_properties_class_spec.rb b/samples/client/petstore/ruby/spec/models/additional_properties_class_spec.rb index 2cfb6c671496..52c6b4c9522c 100644 --- a/samples/client/petstore/ruby/spec/models/additional_properties_class_spec.rb +++ b/samples/client/petstore/ruby/spec/models/additional_properties_class_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::AdditionalPropertiesClass # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'AdditionalPropertiesClass' do - before do - # run before each test - @instance = Petstore::AdditionalPropertiesClass.new - end - - after do - # run after each test - end +describe Petstore::AdditionalPropertiesClass do + let(:instance) { Petstore::AdditionalPropertiesClass.new } describe 'test an instance of AdditionalPropertiesClass' do it 'should create an instance of AdditionalPropertiesClass' do - expect(@instance).to be_instance_of(Petstore::AdditionalPropertiesClass) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::AdditionalPropertiesClass) end end + describe 'test attribute "map_property"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby/spec/models/all_of_with_single_ref_spec.rb b/samples/client/petstore/ruby/spec/models/all_of_with_single_ref_spec.rb index f13ef665f5d8..890830a8460d 100644 --- a/samples/client/petstore/ruby/spec/models/all_of_with_single_ref_spec.rb +++ b/samples/client/petstore/ruby/spec/models/all_of_with_single_ref_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 7.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -22,9 +22,11 @@ describe 'test an instance of AllOfWithSingleRef' do it 'should create an instance of AllOfWithSingleRef' do - expect(instance).to be_instance_of(Petstore::AllOfWithSingleRef) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::AllOfWithSingleRef) end end + describe 'test attribute "username"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby/spec/models/animal_spec.rb b/samples/client/petstore/ruby/spec/models/animal_spec.rb index 2bb034b310ff..1ee72ce7ab15 100644 --- a/samples/client/petstore/ruby/spec/models/animal_spec.rb +++ b/samples/client/petstore/ruby/spec/models/animal_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::Animal # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'Animal' do - before do - # run before each test - @instance = Petstore::Animal.new - end - - after do - # run after each test - end +describe Petstore::Animal do + let(:instance) { Petstore::Animal.new } describe 'test an instance of Animal' do it 'should create an instance of Animal' do - expect(@instance).to be_instance_of(Petstore::Animal) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::Animal) end end + describe 'test attribute "class_name"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby/spec/models/api_response_spec.rb b/samples/client/petstore/ruby/spec/models/api_response_spec.rb index 267301460d95..ed6b223f1359 100644 --- a/samples/client/petstore/ruby/spec/models/api_response_spec.rb +++ b/samples/client/petstore/ruby/spec/models/api_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::ApiResponse # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'ApiResponse' do - before do - # run before each test - @instance = Petstore::ApiResponse.new - end - - after do - # run after each test - end +describe Petstore::ApiResponse do + let(:instance) { Petstore::ApiResponse.new } describe 'test an instance of ApiResponse' do it 'should create an instance of ApiResponse' do - expect(@instance).to be_instance_of(Petstore::ApiResponse) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::ApiResponse) end end + describe 'test attribute "code"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby/spec/models/array_of_array_of_number_only_spec.rb b/samples/client/petstore/ruby/spec/models/array_of_array_of_number_only_spec.rb index 78f4a08761a1..fd0fa9306d59 100644 --- a/samples/client/petstore/ruby/spec/models/array_of_array_of_number_only_spec.rb +++ b/samples/client/petstore/ruby/spec/models/array_of_array_of_number_only_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::ArrayOfArrayOfNumberOnly # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'ArrayOfArrayOfNumberOnly' do - before do - # run before each test - @instance = Petstore::ArrayOfArrayOfNumberOnly.new - end - - after do - # run after each test - end +describe Petstore::ArrayOfArrayOfNumberOnly do + let(:instance) { Petstore::ArrayOfArrayOfNumberOnly.new } describe 'test an instance of ArrayOfArrayOfNumberOnly' do it 'should create an instance of ArrayOfArrayOfNumberOnly' do - expect(@instance).to be_instance_of(Petstore::ArrayOfArrayOfNumberOnly) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::ArrayOfArrayOfNumberOnly) end end + describe 'test attribute "array_array_number"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby/spec/models/array_of_number_only_spec.rb b/samples/client/petstore/ruby/spec/models/array_of_number_only_spec.rb index 3e2ea611ecad..b77ec009649c 100644 --- a/samples/client/petstore/ruby/spec/models/array_of_number_only_spec.rb +++ b/samples/client/petstore/ruby/spec/models/array_of_number_only_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::ArrayOfNumberOnly # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'ArrayOfNumberOnly' do - before do - # run before each test - @instance = Petstore::ArrayOfNumberOnly.new - end - - after do - # run after each test - end +describe Petstore::ArrayOfNumberOnly do + let(:instance) { Petstore::ArrayOfNumberOnly.new } describe 'test an instance of ArrayOfNumberOnly' do it 'should create an instance of ArrayOfNumberOnly' do - expect(@instance).to be_instance_of(Petstore::ArrayOfNumberOnly) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::ArrayOfNumberOnly) end end + describe 'test attribute "array_number"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby/spec/models/array_test_spec.rb b/samples/client/petstore/ruby/spec/models/array_test_spec.rb index 4633c0d8f3d6..0ccba22d9a04 100644 --- a/samples/client/petstore/ruby/spec/models/array_test_spec.rb +++ b/samples/client/petstore/ruby/spec/models/array_test_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::ArrayTest # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'ArrayTest' do - before do - # run before each test - @instance = Petstore::ArrayTest.new - end - - after do - # run after each test - end +describe Petstore::ArrayTest do + let(:instance) { Petstore::ArrayTest.new } describe 'test an instance of ArrayTest' do it 'should create an instance of ArrayTest' do - expect(@instance).to be_instance_of(Petstore::ArrayTest) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::ArrayTest) end end + describe 'test attribute "array_of_string"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby/spec/models/capitalization_spec.rb b/samples/client/petstore/ruby/spec/models/capitalization_spec.rb index 025a0c5b09c0..7d4e8b9ea06c 100644 --- a/samples/client/petstore/ruby/spec/models/capitalization_spec.rb +++ b/samples/client/petstore/ruby/spec/models/capitalization_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::Capitalization # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'Capitalization' do - before do - # run before each test - @instance = Petstore::Capitalization.new - end - - after do - # run after each test - end +describe Petstore::Capitalization do + let(:instance) { Petstore::Capitalization.new } describe 'test an instance of Capitalization' do it 'should create an instance of Capitalization' do - expect(@instance).to be_instance_of(Petstore::Capitalization) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::Capitalization) end end + describe 'test attribute "small_camel"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby/spec/models/cat_spec.rb b/samples/client/petstore/ruby/spec/models/cat_spec.rb index 3007a05924f6..9f09d5fbaf83 100644 --- a/samples/client/petstore/ruby/spec/models/cat_spec.rb +++ b/samples/client/petstore/ruby/spec/models/cat_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::Cat # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'Cat' do - before do - # run before each test - @instance = Petstore::Cat.new - end - - after do - # run after each test - end +describe Petstore::Cat do + let(:instance) { Petstore::Cat.new } describe 'test an instance of Cat' do it 'should create an instance of Cat' do - expect(@instance).to be_instance_of(Petstore::Cat) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::Cat) end end + describe 'test attribute "declawed"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby/spec/models/category_spec.rb b/samples/client/petstore/ruby/spec/models/category_spec.rb index aa9fb18d97f8..522c20bd3b09 100644 --- a/samples/client/petstore/ruby/spec/models/category_spec.rb +++ b/samples/client/petstore/ruby/spec/models/category_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::Category # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'Category' do - before do - # run before each test - @instance = Petstore::Category.new - end - - after do - # run after each test - end +describe Petstore::Category do + let(:instance) { Petstore::Category.new } describe 'test an instance of Category' do it 'should create an instance of Category' do - expect(@instance).to be_instance_of(Petstore::Category) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::Category) end end + describe 'test attribute "id"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby/spec/models/class_model_spec.rb b/samples/client/petstore/ruby/spec/models/class_model_spec.rb index e5cadd24dad2..d1affa000236 100644 --- a/samples/client/petstore/ruby/spec/models/class_model_spec.rb +++ b/samples/client/petstore/ruby/spec/models/class_model_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::ClassModel # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'ClassModel' do - before do - # run before each test - @instance = Petstore::ClassModel.new - end - - after do - # run after each test - end +describe Petstore::ClassModel do + let(:instance) { Petstore::ClassModel.new } describe 'test an instance of ClassModel' do it 'should create an instance of ClassModel' do - expect(@instance).to be_instance_of(Petstore::ClassModel) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::ClassModel) end end + describe 'test attribute "_class"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby/spec/models/client_spec.rb b/samples/client/petstore/ruby/spec/models/client_spec.rb index ef798f27dad5..b747d7b47ba8 100644 --- a/samples/client/petstore/ruby/spec/models/client_spec.rb +++ b/samples/client/petstore/ruby/spec/models/client_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::Client # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'Client' do - before do - # run before each test - @instance = Petstore::Client.new - end - - after do - # run after each test - end +describe Petstore::Client do + let(:instance) { Petstore::Client.new } describe 'test an instance of Client' do it 'should create an instance of Client' do - expect(@instance).to be_instance_of(Petstore::Client) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::Client) end end + describe 'test attribute "client"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby/spec/models/cow_spec.rb b/samples/client/petstore/ruby/spec/models/cow_spec.rb index e1cf66c03ac0..080344a8ca91 100644 --- a/samples/client/petstore/ruby/spec/models/cow_spec.rb +++ b/samples/client/petstore/ruby/spec/models/cow_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 7.3.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end diff --git a/samples/client/petstore/ruby/spec/models/deprecated_object_spec.rb b/samples/client/petstore/ruby/spec/models/deprecated_object_spec.rb index 244cae374649..832e48f0fdc1 100644 --- a/samples/client/petstore/ruby/spec/models/deprecated_object_spec.rb +++ b/samples/client/petstore/ruby/spec/models/deprecated_object_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.2.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -22,9 +22,11 @@ describe 'test an instance of DeprecatedObject' do it 'should create an instance of DeprecatedObject' do - expect(instance).to be_instance_of(Petstore::DeprecatedObject) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::DeprecatedObject) end end + describe 'test attribute "name"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby/spec/models/dog_spec.rb b/samples/client/petstore/ruby/spec/models/dog_spec.rb index 4263bda06f12..fd446c30fee4 100644 --- a/samples/client/petstore/ruby/spec/models/dog_spec.rb +++ b/samples/client/petstore/ruby/spec/models/dog_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::Dog # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'Dog' do - before do - # run before each test - @instance = Petstore::Dog.new - end - - after do - # run after each test - end +describe Petstore::Dog do + let(:instance) { Petstore::Dog.new } describe 'test an instance of Dog' do it 'should create an instance of Dog' do - expect(@instance).to be_instance_of(Petstore::Dog) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::Dog) end end + describe 'test attribute "breed"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby/spec/models/enum_arrays_spec.rb b/samples/client/petstore/ruby/spec/models/enum_arrays_spec.rb index a839505446d9..615041859d8b 100644 --- a/samples/client/petstore/ruby/spec/models/enum_arrays_spec.rb +++ b/samples/client/petstore/ruby/spec/models/enum_arrays_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,27 +17,22 @@ # Unit tests for Petstore::EnumArrays # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'EnumArrays' do - before do - # run before each test - @instance = Petstore::EnumArrays.new - end - - after do - # run after each test - end +describe Petstore::EnumArrays do + let(:instance) { Petstore::EnumArrays.new } describe 'test an instance of EnumArrays' do it 'should create an instance of EnumArrays' do - expect(@instance).to be_instance_of(Petstore::EnumArrays) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::EnumArrays) end end + describe 'test attribute "just_symbol"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', [">=", "$"]) # validator.allowable_values.each do |value| - # expect { @instance.just_symbol = value }.not_to raise_error + # expect { instance.just_symbol = value }.not_to raise_error # end end end @@ -47,7 +42,7 @@ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ # validator = Petstore::EnumTest::EnumAttributeValidator.new('Array', ["fish", "crab"]) # validator.allowable_values.each do |value| - # expect { @instance.array_enum = value }.not_to raise_error + # expect { instance.array_enum = value }.not_to raise_error # end end end diff --git a/samples/client/petstore/ruby/spec/models/enum_class_spec.rb b/samples/client/petstore/ruby/spec/models/enum_class_spec.rb index 29fcd05aa750..094873fa960c 100644 --- a/samples/client/petstore/ruby/spec/models/enum_class_spec.rb +++ b/samples/client/petstore/ruby/spec/models/enum_class_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,19 +17,14 @@ # Unit tests for Petstore::EnumClass # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'EnumClass' do - before do - # run before each test - @instance = Petstore::EnumClass.new - end - - after do - # run after each test - end +describe Petstore::EnumClass do + let(:instance) { Petstore::EnumClass.new } describe 'test an instance of EnumClass' do it 'should create an instance of EnumClass' do - expect(@instance).to be_instance_of(Petstore::EnumClass) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::EnumClass) end end + end diff --git a/samples/client/petstore/ruby/spec/models/enum_test_spec.rb b/samples/client/petstore/ruby/spec/models/enum_test_spec.rb index 0235c261aa47..e7d00c78711c 100644 --- a/samples/client/petstore/ruby/spec/models/enum_test_spec.rb +++ b/samples/client/petstore/ruby/spec/models/enum_test_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,27 +17,22 @@ # Unit tests for Petstore::EnumTest # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'EnumTest' do - before do - # run before each test - @instance = Petstore::EnumTest.new - end - - after do - # run after each test - end +describe Petstore::EnumTest do + let(:instance) { Petstore::EnumTest.new } describe 'test an instance of EnumTest' do it 'should create an instance of EnumTest' do - expect(@instance).to be_instance_of(Petstore::EnumTest) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::EnumTest) end end + describe 'test attribute "enum_string"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["UPPER", "lower", ""]) # validator.allowable_values.each do |value| - # expect { @instance.enum_string = value }.not_to raise_error + # expect { instance.enum_string = value }.not_to raise_error # end end end @@ -47,7 +42,7 @@ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["UPPER", "lower", ""]) # validator.allowable_values.each do |value| - # expect { @instance.enum_string_required = value }.not_to raise_error + # expect { instance.enum_string_required = value }.not_to raise_error # end end end @@ -57,7 +52,7 @@ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ # validator = Petstore::EnumTest::EnumAttributeValidator.new('Integer', [1, -1]) # validator.allowable_values.each do |value| - # expect { @instance.enum_integer = value }.not_to raise_error + # expect { instance.enum_integer = value }.not_to raise_error # end end end @@ -67,7 +62,7 @@ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ # validator = Petstore::EnumTest::EnumAttributeValidator.new('Float', [1.1, -1.2]) # validator.allowable_values.each do |value| - # expect { @instance.enum_number = value }.not_to raise_error + # expect { instance.enum_number = value }.not_to raise_error # end end end diff --git a/samples/client/petstore/ruby/spec/models/fake_big_decimal_map200_response_spec.rb b/samples/client/petstore/ruby/spec/models/fake_big_decimal_map200_response_spec.rb index a1b4a6c4641f..d41e455a4517 100644 --- a/samples/client/petstore/ruby/spec/models/fake_big_decimal_map200_response_spec.rb +++ b/samples/client/petstore/ruby/spec/models/fake_big_decimal_map200_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 7.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -22,9 +22,11 @@ describe 'test an instance of FakeBigDecimalMap200Response' do it 'should create an instance of FakeBigDecimalMap200Response' do - expect(instance).to be_instance_of(Petstore::FakeBigDecimalMap200Response) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::FakeBigDecimalMap200Response) end end + describe 'test attribute "some_id"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby/spec/models/file_schema_test_class_spec.rb b/samples/client/petstore/ruby/spec/models/file_schema_test_class_spec.rb index 4c8d3f9d80a4..cc6535c3688f 100644 --- a/samples/client/petstore/ruby/spec/models/file_schema_test_class_spec.rb +++ b/samples/client/petstore/ruby/spec/models/file_schema_test_class_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::FileSchemaTestClass # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'FileSchemaTestClass' do - before do - # run before each test - @instance = Petstore::FileSchemaTestClass.new - end - - after do - # run after each test - end +describe Petstore::FileSchemaTestClass do + let(:instance) { Petstore::FileSchemaTestClass.new } describe 'test an instance of FileSchemaTestClass' do it 'should create an instance of FileSchemaTestClass' do - expect(@instance).to be_instance_of(Petstore::FileSchemaTestClass) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::FileSchemaTestClass) end end + describe 'test attribute "file"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby/spec/models/file_spec.rb b/samples/client/petstore/ruby/spec/models/file_spec.rb index 0afb47c7a962..8ba1f89c5c00 100644 --- a/samples/client/petstore/ruby/spec/models/file_spec.rb +++ b/samples/client/petstore/ruby/spec/models/file_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::File # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'File' do - before do - # run before each test - @instance = Petstore::File.new - end - - after do - # run after each test - end +describe Petstore::File do + let(:instance) { Petstore::File.new } describe 'test an instance of File' do it 'should create an instance of File' do - expect(@instance).to be_instance_of(Petstore::File) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::File) end end + describe 'test attribute "source_uri"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby/spec/models/foo_get_default_response_spec.rb b/samples/client/petstore/ruby/spec/models/foo_get_default_response_spec.rb index 3ce38971bc30..22d9bc8dc5ed 100644 --- a/samples/client/petstore/ruby/spec/models/foo_get_default_response_spec.rb +++ b/samples/client/petstore/ruby/spec/models/foo_get_default_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -22,9 +22,11 @@ describe 'test an instance of FooGetDefaultResponse' do it 'should create an instance of FooGetDefaultResponse' do - expect(instance).to be_instance_of(Petstore::FooGetDefaultResponse) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::FooGetDefaultResponse) end end + describe 'test attribute "string"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby/spec/models/foo_spec.rb b/samples/client/petstore/ruby/spec/models/foo_spec.rb index fc54b3ac92f6..6b4b4f559484 100644 --- a/samples/client/petstore/ruby/spec/models/foo_spec.rb +++ b/samples/client/petstore/ruby/spec/models/foo_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::Foo # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'Foo' do - before do - # run before each test - @instance = Petstore::Foo.new - end - - after do - # run after each test - end +describe Petstore::Foo do + let(:instance) { Petstore::Foo.new } describe 'test an instance of Foo' do it 'should create an instance of Foo' do - expect(@instance).to be_instance_of(Petstore::Foo) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::Foo) end end + describe 'test attribute "bar"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby/spec/models/format_test_spec.rb b/samples/client/petstore/ruby/spec/models/format_test_spec.rb index c6408011fbc5..c1a318014e95 100644 --- a/samples/client/petstore/ruby/spec/models/format_test_spec.rb +++ b/samples/client/petstore/ruby/spec/models/format_test_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,26 +17,16 @@ # Unit tests for Petstore::FormatTest # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'FormatTest' do - before do - # run before each test - @instance = Petstore::FormatTest.new({ - number: 65, - byte: '1234356', - date: Date.parse('2007-12-03T10:15:30+01:00'), - password: 'password123' - }) - end - - after do - # run after each test - end +describe Petstore::FormatTest do + let(:instance) { Petstore::FormatTest.new } describe 'test an instance of FormatTest' do it 'should create an instance of FormatTest' do - expect(@instance).to be_instance_of(Petstore::FormatTest) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::FormatTest) end end + describe 'test attribute "integer"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -73,6 +63,12 @@ end end + describe 'test attribute "decimal"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + describe 'test attribute "string"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby/spec/models/has_only_read_only_spec.rb b/samples/client/petstore/ruby/spec/models/has_only_read_only_spec.rb index 5630b1cf97d2..543f72a9e865 100644 --- a/samples/client/petstore/ruby/spec/models/has_only_read_only_spec.rb +++ b/samples/client/petstore/ruby/spec/models/has_only_read_only_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::HasOnlyReadOnly # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'HasOnlyReadOnly' do - before do - # run before each test - @instance = Petstore::HasOnlyReadOnly.new - end - - after do - # run after each test - end +describe Petstore::HasOnlyReadOnly do + let(:instance) { Petstore::HasOnlyReadOnly.new } describe 'test an instance of HasOnlyReadOnly' do it 'should create an instance of HasOnlyReadOnly' do - expect(@instance).to be_instance_of(Petstore::HasOnlyReadOnly) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::HasOnlyReadOnly) end end + describe 'test attribute "bar"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby/spec/models/health_check_result_spec.rb b/samples/client/petstore/ruby/spec/models/health_check_result_spec.rb index 797ee9704d3f..797d914e363c 100644 --- a/samples/client/petstore/ruby/spec/models/health_check_result_spec.rb +++ b/samples/client/petstore/ruby/spec/models/health_check_result_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::HealthCheckResult # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'HealthCheckResult' do - before do - # run before each test - @instance = Petstore::HealthCheckResult.new - end - - after do - # run after each test - end +describe Petstore::HealthCheckResult do + let(:instance) { Petstore::HealthCheckResult.new } describe 'test an instance of HealthCheckResult' do it 'should create an instance of HealthCheckResult' do - expect(@instance).to be_instance_of(Petstore::HealthCheckResult) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::HealthCheckResult) end end + describe 'test attribute "nullable_message"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby/spec/models/list_spec.rb b/samples/client/petstore/ruby/spec/models/list_spec.rb index 88716e869424..d08f9daee56e 100644 --- a/samples/client/petstore/ruby/spec/models/list_spec.rb +++ b/samples/client/petstore/ruby/spec/models/list_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::List # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'List' do - before do - # run before each test - @instance = Petstore::List.new - end - - after do - # run after each test - end +describe Petstore::List do + let(:instance) { Petstore::List.new } describe 'test an instance of List' do it 'should create an instance of List' do - expect(@instance).to be_instance_of(Petstore::List) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::List) end end + describe 'test attribute "_123_list"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby/spec/models/mamal_with_enum_spec.rb b/samples/client/petstore/ruby/spec/models/mamal_with_enum_spec.rb index e3c1f1255c1a..5622e5ed8622 100644 --- a/samples/client/petstore/ruby/spec/models/mamal_with_enum_spec.rb +++ b/samples/client/petstore/ruby/spec/models/mamal_with_enum_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 7.3.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -26,11 +26,7 @@ describe '.build' do it 'returns the correct model' do - expect(described_class.build("BlackAndWhiteCow")).to eq(Petstore::Cow::BLACK_AND_WHITE_COW) - end - - it 'returns nil for unknown model' do - expect(described_class.build({ classname: 'monkey', type: 'gorilla' })).to be_nil + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end end diff --git a/samples/client/petstore/ruby/spec/models/mammal_anyof_spec.rb b/samples/client/petstore/ruby/spec/models/mammal_anyof_spec.rb index 878c48c246ae..1e102dfd5510 100644 --- a/samples/client/petstore/ruby/spec/models/mammal_anyof_spec.rb +++ b/samples/client/petstore/ruby/spec/models/mammal_anyof_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 7.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end diff --git a/samples/client/petstore/ruby/spec/models/mammal_spec.rb b/samples/client/petstore/ruby/spec/models/mammal_spec.rb index eae8ec5c09f9..c35f9ae013f5 100644 --- a/samples/client/petstore/ruby/spec/models/mammal_spec.rb +++ b/samples/client/petstore/ruby/spec/models/mammal_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 7.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -32,6 +32,7 @@ describe '.build' do it 'returns the correct model' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end end diff --git a/samples/client/petstore/ruby/spec/models/mammal_without_discriminator_spec.rb b/samples/client/petstore/ruby/spec/models/mammal_without_discriminator_spec.rb index 08dcbeb8b5a8..db9194889406 100644 --- a/samples/client/petstore/ruby/spec/models/mammal_without_discriminator_spec.rb +++ b/samples/client/petstore/ruby/spec/models/mammal_without_discriminator_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 7.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -26,6 +26,7 @@ describe '.build' do it 'returns the correct model' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end end diff --git a/samples/client/petstore/ruby/spec/models/map_test_spec.rb b/samples/client/petstore/ruby/spec/models/map_test_spec.rb index 012b9cc251f7..e4840c2a4816 100644 --- a/samples/client/petstore/ruby/spec/models/map_test_spec.rb +++ b/samples/client/petstore/ruby/spec/models/map_test_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::MapTest # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'MapTest' do - before do - # run before each test - @instance = Petstore::MapTest.new - end - - after do - # run after each test - end +describe Petstore::MapTest do + let(:instance) { Petstore::MapTest.new } describe 'test an instance of MapTest' do it 'should create an instance of MapTest' do - expect(@instance).to be_instance_of(Petstore::MapTest) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::MapTest) end end + describe 'test attribute "map_map_of_string"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -43,7 +38,7 @@ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ # validator = Petstore::EnumTest::EnumAttributeValidator.new('Hash', ["UPPER", "lower"]) # validator.allowable_values.each do |value| - # expect { @instance.map_of_enum_string = value }.not_to raise_error + # expect { instance.map_of_enum_string = value }.not_to raise_error # end end end diff --git a/samples/client/petstore/ruby/spec/models/mixed_properties_and_additional_properties_class_spec.rb b/samples/client/petstore/ruby/spec/models/mixed_properties_and_additional_properties_class_spec.rb index f58460e50e0c..fe265ae70279 100644 --- a/samples/client/petstore/ruby/spec/models/mixed_properties_and_additional_properties_class_spec.rb +++ b/samples/client/petstore/ruby/spec/models/mixed_properties_and_additional_properties_class_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::MixedPropertiesAndAdditionalPropertiesClass # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'MixedPropertiesAndAdditionalPropertiesClass' do - before do - # run before each test - @instance = Petstore::MixedPropertiesAndAdditionalPropertiesClass.new - end - - after do - # run after each test - end +describe Petstore::MixedPropertiesAndAdditionalPropertiesClass do + let(:instance) { Petstore::MixedPropertiesAndAdditionalPropertiesClass.new } describe 'test an instance of MixedPropertiesAndAdditionalPropertiesClass' do it 'should create an instance of MixedPropertiesAndAdditionalPropertiesClass' do - expect(@instance).to be_instance_of(Petstore::MixedPropertiesAndAdditionalPropertiesClass) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::MixedPropertiesAndAdditionalPropertiesClass) end end + describe 'test attribute "uuid"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby/spec/models/model200_response_spec.rb b/samples/client/petstore/ruby/spec/models/model200_response_spec.rb index 245390ee6c09..061281a8c1c5 100644 --- a/samples/client/petstore/ruby/spec/models/model200_response_spec.rb +++ b/samples/client/petstore/ruby/spec/models/model200_response_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::Model200Response # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'Model200Response' do - before do - # run before each test - @instance = Petstore::Model200Response.new - end - - after do - # run after each test - end +describe Petstore::Model200Response do + let(:instance) { Petstore::Model200Response.new } describe 'test an instance of Model200Response' do it 'should create an instance of Model200Response' do - expect(@instance).to be_instance_of(Petstore::Model200Response) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::Model200Response) end end + describe 'test attribute "name"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby/spec/models/model_return_spec.rb b/samples/client/petstore/ruby/spec/models/model_return_spec.rb index 5881f54839af..bbcd3f0d5fcd 100644 --- a/samples/client/petstore/ruby/spec/models/model_return_spec.rb +++ b/samples/client/petstore/ruby/spec/models/model_return_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::ModelReturn # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'ModelReturn' do - before do - # run before each test - @instance = Petstore::ModelReturn.new - end - - after do - # run after each test - end +describe Petstore::ModelReturn do + let(:instance) { Petstore::ModelReturn.new } describe 'test an instance of ModelReturn' do it 'should create an instance of ModelReturn' do - expect(@instance).to be_instance_of(Petstore::ModelReturn) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::ModelReturn) end end + describe 'test attribute "_return"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby/spec/models/name_spec.rb b/samples/client/petstore/ruby/spec/models/name_spec.rb index 1edec1a94632..4ffe903deff4 100644 --- a/samples/client/petstore/ruby/spec/models/name_spec.rb +++ b/samples/client/petstore/ruby/spec/models/name_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::Name # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'Name' do - before do - # run before each test - @instance = Petstore::Name.new - end - - after do - # run after each test - end +describe Petstore::Name do + let(:instance) { Petstore::Name.new } describe 'test an instance of Name' do it 'should create an instance of Name' do - expect(@instance).to be_instance_of(Petstore::Name) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::Name) end end + describe 'test attribute "name"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby/spec/models/nullable_class_spec.rb b/samples/client/petstore/ruby/spec/models/nullable_class_spec.rb index 5507799a0aae..28d85a223408 100644 --- a/samples/client/petstore/ruby/spec/models/nullable_class_spec.rb +++ b/samples/client/petstore/ruby/spec/models/nullable_class_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::NullableClass # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'NullableClass' do - before do - # run before each test - @instance = Petstore::NullableClass.new - end - - after do - # run after each test - end +describe Petstore::NullableClass do + let(:instance) { Petstore::NullableClass.new } describe 'test an instance of NullableClass' do it 'should create an instance of NullableClass' do - expect(@instance).to be_instance_of(Petstore::NullableClass) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::NullableClass) end end + describe 'test attribute "integer_prop"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby/spec/models/number_only_spec.rb b/samples/client/petstore/ruby/spec/models/number_only_spec.rb index 2ecc4260dda8..1907d9638a71 100644 --- a/samples/client/petstore/ruby/spec/models/number_only_spec.rb +++ b/samples/client/petstore/ruby/spec/models/number_only_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::NumberOnly # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'NumberOnly' do - before do - # run before each test - @instance = Petstore::NumberOnly.new - end - - after do - # run after each test - end +describe Petstore::NumberOnly do + let(:instance) { Petstore::NumberOnly.new } describe 'test an instance of NumberOnly' do it 'should create an instance of NumberOnly' do - expect(@instance).to be_instance_of(Petstore::NumberOnly) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::NumberOnly) end end + describe 'test attribute "just_number"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby/spec/models/object_with_deprecated_fields_spec.rb b/samples/client/petstore/ruby/spec/models/object_with_deprecated_fields_spec.rb index d6372aa68b57..69fced6f0c19 100644 --- a/samples/client/petstore/ruby/spec/models/object_with_deprecated_fields_spec.rb +++ b/samples/client/petstore/ruby/spec/models/object_with_deprecated_fields_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.2.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -22,9 +22,11 @@ describe 'test an instance of ObjectWithDeprecatedFields' do it 'should create an instance of ObjectWithDeprecatedFields' do - expect(instance).to be_instance_of(Petstore::ObjectWithDeprecatedFields) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::ObjectWithDeprecatedFields) end end + describe 'test attribute "uuid"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby/spec/models/order_spec.rb b/samples/client/petstore/ruby/spec/models/order_spec.rb index e7a9dea74da1..beb1893b114e 100644 --- a/samples/client/petstore/ruby/spec/models/order_spec.rb +++ b/samples/client/petstore/ruby/spec/models/order_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::Order # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'Order' do - before do - # run before each test - @instance = Petstore::Order.new - end - - after do - # run after each test - end +describe Petstore::Order do + let(:instance) { Petstore::Order.new } describe 'test an instance of Order' do it 'should create an instance of Order' do - expect(@instance).to be_instance_of(Petstore::Order) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::Order) end end + describe 'test attribute "id"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -61,7 +56,7 @@ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["placed", "approved", "delivered"]) # validator.allowable_values.each do |value| - # expect { @instance.status = value }.not_to raise_error + # expect { instance.status = value }.not_to raise_error # end end end diff --git a/samples/client/petstore/ruby/spec/models/outer_composite_spec.rb b/samples/client/petstore/ruby/spec/models/outer_composite_spec.rb index ad4053e2c4a0..832939d3e24a 100644 --- a/samples/client/petstore/ruby/spec/models/outer_composite_spec.rb +++ b/samples/client/petstore/ruby/spec/models/outer_composite_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::OuterComposite # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'OuterComposite' do - before do - # run before each test - @instance = Petstore::OuterComposite.new - end - - after do - # run after each test - end +describe Petstore::OuterComposite do + let(:instance) { Petstore::OuterComposite.new } describe 'test an instance of OuterComposite' do it 'should create an instance of OuterComposite' do - expect(@instance).to be_instance_of(Petstore::OuterComposite) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::OuterComposite) end end + describe 'test attribute "my_number"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby/spec/models/outer_enum_default_value_spec.rb b/samples/client/petstore/ruby/spec/models/outer_enum_default_value_spec.rb index 7bd96a7abaf4..c8c66b84884d 100644 --- a/samples/client/petstore/ruby/spec/models/outer_enum_default_value_spec.rb +++ b/samples/client/petstore/ruby/spec/models/outer_enum_default_value_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,19 +17,14 @@ # Unit tests for Petstore::OuterEnumDefaultValue # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'OuterEnumDefaultValue' do - before do - # run before each test - @instance = Petstore::OuterEnumDefaultValue.new - end - - after do - # run after each test - end +describe Petstore::OuterEnumDefaultValue do + let(:instance) { Petstore::OuterEnumDefaultValue.new } describe 'test an instance of OuterEnumDefaultValue' do it 'should create an instance of OuterEnumDefaultValue' do - expect(@instance).to be_instance_of(Petstore::OuterEnumDefaultValue) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::OuterEnumDefaultValue) end end + end diff --git a/samples/client/petstore/ruby/spec/models/outer_enum_integer_default_value_spec.rb b/samples/client/petstore/ruby/spec/models/outer_enum_integer_default_value_spec.rb index 48a94827e568..91f477b156e6 100644 --- a/samples/client/petstore/ruby/spec/models/outer_enum_integer_default_value_spec.rb +++ b/samples/client/petstore/ruby/spec/models/outer_enum_integer_default_value_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,19 +17,14 @@ # Unit tests for Petstore::OuterEnumIntegerDefaultValue # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'OuterEnumIntegerDefaultValue' do - before do - # run before each test - @instance = Petstore::OuterEnumIntegerDefaultValue.new - end - - after do - # run after each test - end +describe Petstore::OuterEnumIntegerDefaultValue do + let(:instance) { Petstore::OuterEnumIntegerDefaultValue.new } describe 'test an instance of OuterEnumIntegerDefaultValue' do it 'should create an instance of OuterEnumIntegerDefaultValue' do - expect(@instance).to be_instance_of(Petstore::OuterEnumIntegerDefaultValue) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::OuterEnumIntegerDefaultValue) end end + end diff --git a/samples/client/petstore/ruby/spec/models/outer_enum_integer_spec.rb b/samples/client/petstore/ruby/spec/models/outer_enum_integer_spec.rb index a0ac4c81f077..98141a4b64f2 100644 --- a/samples/client/petstore/ruby/spec/models/outer_enum_integer_spec.rb +++ b/samples/client/petstore/ruby/spec/models/outer_enum_integer_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,19 +17,14 @@ # Unit tests for Petstore::OuterEnumInteger # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'OuterEnumInteger' do - before do - # run before each test - @instance = Petstore::OuterEnumInteger.new - end - - after do - # run after each test - end +describe Petstore::OuterEnumInteger do + let(:instance) { Petstore::OuterEnumInteger.new } describe 'test an instance of OuterEnumInteger' do it 'should create an instance of OuterEnumInteger' do - expect(@instance).to be_instance_of(Petstore::OuterEnumInteger) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::OuterEnumInteger) end end + end diff --git a/samples/client/petstore/ruby/spec/models/outer_enum_spec.rb b/samples/client/petstore/ruby/spec/models/outer_enum_spec.rb index ea9762da93bf..06e00d35afec 100644 --- a/samples/client/petstore/ruby/spec/models/outer_enum_spec.rb +++ b/samples/client/petstore/ruby/spec/models/outer_enum_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,19 +17,14 @@ # Unit tests for Petstore::OuterEnum # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'OuterEnum' do - before do - # run before each test - @instance = Petstore::OuterEnum.new - end - - after do - # run after each test - end +describe Petstore::OuterEnum do + let(:instance) { Petstore::OuterEnum.new } describe 'test an instance of OuterEnum' do it 'should create an instance of OuterEnum' do - expect(@instance).to be_instance_of(Petstore::OuterEnum) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::OuterEnum) end end + end diff --git a/samples/client/petstore/ruby/spec/models/outer_object_with_enum_property_spec.rb b/samples/client/petstore/ruby/spec/models/outer_object_with_enum_property_spec.rb index 1a590a78b29a..69ecd157eb6c 100644 --- a/samples/client/petstore/ruby/spec/models/outer_object_with_enum_property_spec.rb +++ b/samples/client/petstore/ruby/spec/models/outer_object_with_enum_property_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -22,9 +22,11 @@ describe 'test an instance of OuterObjectWithEnumProperty' do it 'should create an instance of OuterObjectWithEnumProperty' do - expect(instance).to be_instance_of(Petstore::OuterObjectWithEnumProperty) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::OuterObjectWithEnumProperty) end end + describe 'test attribute "value"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby/spec/models/pet_spec.rb b/samples/client/petstore/ruby/spec/models/pet_spec.rb index 08a4e8f61c98..d56bbb9cc2de 100644 --- a/samples/client/petstore/ruby/spec/models/pet_spec.rb +++ b/samples/client/petstore/ruby/spec/models/pet_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::Pet # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'Pet' do - before do - # run before each test - @instance = Petstore::Pet.new({ name: 'Kitty', photo_urls: ['www.photo-url.test'] }) - end - - after do - # run after each test - end +describe Petstore::Pet do + let(:instance) { Petstore::Pet.new } describe 'test an instance of Pet' do it 'should create an instance of Pet' do - expect(@instance).to be_instance_of(Petstore::Pet) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::Pet) end end + describe 'test attribute "id"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -67,7 +62,7 @@ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["available", "pending", "sold"]) # validator.allowable_values.each do |value| - # expect { @instance.status = value }.not_to raise_error + # expect { instance.status = value }.not_to raise_error # end end end diff --git a/samples/client/petstore/ruby/spec/models/property_name_mapping_spec.rb b/samples/client/petstore/ruby/spec/models/property_name_mapping_spec.rb index 09dfcb8218bd..8347f6aa9d57 100644 --- a/samples/client/petstore/ruby/spec/models/property_name_mapping_spec.rb +++ b/samples/client/petstore/ruby/spec/models/property_name_mapping_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 7.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -22,9 +22,11 @@ describe 'test an instance of PropertyNameMapping' do it 'should create an instance of PropertyNameMapping' do - expect(instance).to be_instance_of(Petstore::PropertyNameMapping) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::PropertyNameMapping) end end + describe 'test attribute "http_debug_operation"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby/spec/models/read_only_first_spec.rb b/samples/client/petstore/ruby/spec/models/read_only_first_spec.rb index 036dd5581eed..e35fe201e39a 100644 --- a/samples/client/petstore/ruby/spec/models/read_only_first_spec.rb +++ b/samples/client/petstore/ruby/spec/models/read_only_first_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::ReadOnlyFirst # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'ReadOnlyFirst' do - before do - # run before each test - @instance = Petstore::ReadOnlyFirst.new - end - - after do - # run after each test - end +describe Petstore::ReadOnlyFirst do + let(:instance) { Petstore::ReadOnlyFirst.new } describe 'test an instance of ReadOnlyFirst' do it 'should create an instance of ReadOnlyFirst' do - expect(@instance).to be_instance_of(Petstore::ReadOnlyFirst) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::ReadOnlyFirst) end end + describe 'test attribute "bar"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby/spec/models/single_ref_type_spec.rb b/samples/client/petstore/ruby/spec/models/single_ref_type_spec.rb index 7686eb34d2dc..0cdc540e563a 100644 --- a/samples/client/petstore/ruby/spec/models/single_ref_type_spec.rb +++ b/samples/client/petstore/ruby/spec/models/single_ref_type_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -22,7 +22,9 @@ describe 'test an instance of SingleRefType' do it 'should create an instance of SingleRefType' do - expect(instance).to be_instance_of(Petstore::SingleRefType) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::SingleRefType) end end + end diff --git a/samples/client/petstore/ruby/spec/models/special_model_name_spec.rb b/samples/client/petstore/ruby/spec/models/special_model_name_spec.rb index 78555f967cc6..25926fd381a7 100644 --- a/samples/client/petstore/ruby/spec/models/special_model_name_spec.rb +++ b/samples/client/petstore/ruby/spec/models/special_model_name_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::SpecialModelName # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'SpecialModelName' do - before do - # run before each test - @instance = Petstore::SpecialModelName.new - end - - after do - # run after each test - end +describe Petstore::SpecialModelName do + let(:instance) { Petstore::SpecialModelName.new } describe 'test an instance of SpecialModelName' do it 'should create an instance of SpecialModelName' do - expect(@instance).to be_instance_of(Petstore::SpecialModelName) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::SpecialModelName) end end + describe 'test attribute "special_property_name"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby/spec/models/tag_spec.rb b/samples/client/petstore/ruby/spec/models/tag_spec.rb index e791cb35e149..359fc8c0b761 100644 --- a/samples/client/petstore/ruby/spec/models/tag_spec.rb +++ b/samples/client/petstore/ruby/spec/models/tag_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::Tag # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'Tag' do - before do - # run before each test - @instance = Petstore::Tag.new - end - - after do - # run after each test - end +describe Petstore::Tag do + let(:instance) { Petstore::Tag.new } describe 'test an instance of Tag' do it 'should create an instance of Tag' do - expect(@instance).to be_instance_of(Petstore::Tag) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::Tag) end end + describe 'test attribute "id"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby/spec/models/test_inline_freeform_additional_properties_request_spec.rb b/samples/client/petstore/ruby/spec/models/test_inline_freeform_additional_properties_request_spec.rb index 2508babe7272..8cda9ab078b2 100644 --- a/samples/client/petstore/ruby/spec/models/test_inline_freeform_additional_properties_request_spec.rb +++ b/samples/client/petstore/ruby/spec/models/test_inline_freeform_additional_properties_request_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 7.0.1-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -22,9 +22,11 @@ describe 'test an instance of TestInlineFreeformAdditionalPropertiesRequest' do it 'should create an instance of TestInlineFreeformAdditionalPropertiesRequest' do - expect(instance).to be_instance_of(Petstore::TestInlineFreeformAdditionalPropertiesRequest) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::TestInlineFreeformAdditionalPropertiesRequest) end end + describe 'test attribute "some_property"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby/spec/models/user_spec.rb b/samples/client/petstore/ruby/spec/models/user_spec.rb index 9d162c5d9993..b07fb462fba1 100644 --- a/samples/client/petstore/ruby/spec/models/user_spec.rb +++ b/samples/client/petstore/ruby/spec/models/user_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,21 +17,16 @@ # Unit tests for Petstore::User # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'User' do - before do - # run before each test - @instance = Petstore::User.new - end - - after do - # run after each test - end +describe Petstore::User do + let(:instance) { Petstore::User.new } describe 'test an instance of User' do it 'should create an instance of User' do - expect(@instance).to be_instance_of(Petstore::User) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::User) end end + describe 'test attribute "id"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/samples/client/petstore/ruby/spec/models/whale_spec.rb b/samples/client/petstore/ruby/spec/models/whale_spec.rb index 55bfc0a659bb..8446b930349e 100644 --- a/samples/client/petstore/ruby/spec/models/whale_spec.rb +++ b/samples/client/petstore/ruby/spec/models/whale_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 7.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -22,9 +22,11 @@ describe 'test an instance of Whale' do it 'should create an instance of Whale' do - expect(instance).to be_instance_of(Petstore::Whale) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::Whale) end end + describe 'test attribute "has_baleen"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -37,7 +39,7 @@ end end - describe 'test attribute "class_name"' do + describe 'test attribute "classname"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end diff --git a/samples/client/petstore/ruby/spec/models/zebra_spec.rb b/samples/client/petstore/ruby/spec/models/zebra_spec.rb index 1076f9d907aa..0313104f4e7a 100644 --- a/samples/client/petstore/ruby/spec/models/zebra_spec.rb +++ b/samples/client/petstore/ruby/spec/models/zebra_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 7.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -22,9 +22,11 @@ describe 'test an instance of Zebra' do it 'should create an instance of Zebra' do - expect(instance).to be_instance_of(Petstore::Zebra) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::Zebra) end end + describe 'test attribute "type"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -35,7 +37,7 @@ end end - describe 'test attribute "class_name"' do + describe 'test attribute "classname"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end diff --git a/samples/client/petstore/zapier/samples/PetApi.js b/samples/client/petstore/zapier/samples/PetApi.js index 3ef6e6adfab1..4ee563f1c226 100644 --- a/samples/client/petstore/zapier/samples/PetApi.js +++ b/samples/client/petstore/zapier/samples/PetApi.js @@ -1,4 +1,4 @@ -module.export = { +module.exports = { "PetSample": { data: {} }, "PetSample": diff --git a/samples/client/petstore/zapier/samples/StoreApi.js b/samples/client/petstore/zapier/samples/StoreApi.js index c948e814e305..c7b521298bcd 100644 --- a/samples/client/petstore/zapier/samples/StoreApi.js +++ b/samples/client/petstore/zapier/samples/StoreApi.js @@ -1,4 +1,4 @@ -module.export = { +module.exports = { "OrderSample": { data: {} }, "OrderSample": diff --git a/samples/client/petstore/zapier/samples/UserApi.js b/samples/client/petstore/zapier/samples/UserApi.js index 8053c81b88d5..6e904dbe4c66 100644 --- a/samples/client/petstore/zapier/samples/UserApi.js +++ b/samples/client/petstore/zapier/samples/UserApi.js @@ -1,4 +1,4 @@ -module.export = { +module.exports = { "UserSample": { data: {} }, } diff --git a/samples/openapi3/client/extensions/x-auth-id-alias/go-experimental/test/api_usage_test.go b/samples/openapi3/client/extensions/x-auth-id-alias/go-experimental/test/api_usage_test.go index 7aa3f68f51ff..ef553cf40665 100644 --- a/samples/openapi3/client/extensions/x-auth-id-alias/go-experimental/test/api_usage_test.go +++ b/samples/openapi3/client/extensions/x-auth-id-alias/go-experimental/test/api_usage_test.go @@ -1,7 +1,7 @@ /* OpenAPI Extension x-auth-id-alias -Testing UsageApiService +Testing UsageAPIService */ @@ -10,64 +10,64 @@ Testing UsageApiService package x_auth_id_alias import ( - "context" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" - "testing" - openapiclient "./openapi" + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" ) -func Test_x_auth_id_alias_UsageApiService(t *testing.T) { +func Test_x_auth_id_alias_UsageAPIService(t *testing.T) { - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) - t.Run("Test UsageApiService AnyKey", func(t *testing.T) { + t.Run("Test UsageAPIService AnyKey", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.UsageApi.AnyKey(context.Background()).Execute() + resp, httpRes, err := apiClient.UsageAPI.AnyKey(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) - }) + }) - t.Run("Test UsageApiService BothKeys", func(t *testing.T) { + t.Run("Test UsageAPIService BothKeys", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.UsageApi.BothKeys(context.Background()).Execute() + resp, httpRes, err := apiClient.UsageAPI.BothKeys(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) - }) + }) - t.Run("Test UsageApiService KeyInHeader", func(t *testing.T) { + t.Run("Test UsageAPIService KeyInHeader", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.UsageApi.KeyInHeader(context.Background()).Execute() + resp, httpRes, err := apiClient.UsageAPI.KeyInHeader(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) - }) + }) - t.Run("Test UsageApiService KeyInQuery", func(t *testing.T) { + t.Run("Test UsageAPIService KeyInQuery", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.UsageApi.KeyInQuery(context.Background()).Execute() + resp, httpRes, err := apiClient.UsageAPI.KeyInQuery(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) - }) + }) } diff --git a/samples/openapi3/client/extensions/x-auth-id-alias/ruby-client/spec/api/usage_api_spec.rb b/samples/openapi3/client/extensions/x-auth-id-alias/ruby-client/spec/api/usage_api_spec.rb index ab8053f36628..9e770d3f6e0b 100644 --- a/samples/openapi3/client/extensions/x-auth-id-alias/ruby-client/spec/api/usage_api_spec.rb +++ b/samples/openapi3/client/extensions/x-auth-id-alias/ruby-client/spec/api/usage_api_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end diff --git a/samples/openapi3/client/features/dynamic-servers/ruby/spec/api/usage_api_spec.rb b/samples/openapi3/client/features/dynamic-servers/ruby/spec/api/usage_api_spec.rb index efb2b641fe67..29024157f0f8 100644 --- a/samples/openapi3/client/features/dynamic-servers/ruby/spec/api/usage_api_spec.rb +++ b/samples/openapi3/client/features/dynamic-servers/ruby/spec/api/usage_api_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end diff --git a/samples/openapi3/client/features/generate-alias-as-model/ruby-client/spec/api/usage_api_spec.rb b/samples/openapi3/client/features/generate-alias-as-model/ruby-client/spec/api/usage_api_spec.rb index 1c84555f3903..6500360225a0 100644 --- a/samples/openapi3/client/features/generate-alias-as-model/ruby-client/spec/api/usage_api_spec.rb +++ b/samples/openapi3/client/features/generate-alias-as-model/ruby-client/spec/api/usage_api_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -36,7 +36,7 @@ # Use alias to array # Use alias to array # @param [Hash] opts the optional parameters - # @option opts [ArrayAlias] :array_alias + # @option opts [ArrayAlias] :array_alias # @return [Object] describe 'array test' do it 'should work' do @@ -48,7 +48,7 @@ # Use alias to map # Use alias to map # @param [Hash] opts the optional parameters - # @option opts [MapAlias] :map_alias + # @option opts [MapAlias] :map_alias # @return [Object] describe 'map test' do it 'should work' do diff --git a/samples/openapi3/client/features/generate-alias-as-model/ruby-client/spec/models/array_alias_spec.rb b/samples/openapi3/client/features/generate-alias-as-model/ruby-client/spec/models/array_alias_spec.rb index 39af6c1c60e2..136c661acdec 100644 --- a/samples/openapi3/client/features/generate-alias-as-model/ruby-client/spec/models/array_alias_spec.rb +++ b/samples/openapi3/client/features/generate-alias-as-model/ruby-client/spec/models/array_alias_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,19 +17,14 @@ # Unit tests for Petstore::ArrayAlias # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'ArrayAlias' do - before do - # run before each test - @instance = Petstore::ArrayAlias.new - end - - after do - # run after each test - end +describe Petstore::ArrayAlias do + let(:instance) { Petstore::ArrayAlias.new } describe 'test an instance of ArrayAlias' do it 'should create an instance of ArrayAlias' do - expect(@instance).to be_instance_of(Petstore::ArrayAlias) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::ArrayAlias) end end + end diff --git a/samples/openapi3/client/features/generate-alias-as-model/ruby-client/spec/models/map_alias_spec.rb b/samples/openapi3/client/features/generate-alias-as-model/ruby-client/spec/models/map_alias_spec.rb index bb64ef4a24f0..37cf1599dde3 100644 --- a/samples/openapi3/client/features/generate-alias-as-model/ruby-client/spec/models/map_alias_spec.rb +++ b/samples/openapi3/client/features/generate-alias-as-model/ruby-client/spec/models/map_alias_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-SNAPSHOT +Generator version: 7.11.0-SNAPSHOT =end @@ -17,19 +17,14 @@ # Unit tests for Petstore::MapAlias # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'MapAlias' do - before do - # run before each test - @instance = Petstore::MapAlias.new - end - - after do - # run after each test - end +describe Petstore::MapAlias do + let(:instance) { Petstore::MapAlias.new } describe 'test an instance of MapAlias' do it 'should create an instance of MapAlias' do - expect(@instance).to be_instance_of(Petstore::MapAlias) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Petstore::MapAlias) end end + end diff --git a/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/test/bar_ref_or_value_test.dart b/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/test/bar_ref_or_value_test.dart index c132ac09943b..1fed3cf553b0 100644 --- a/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/test/bar_ref_or_value_test.dart +++ b/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/test/bar_ref_or_value_test.dart @@ -7,18 +7,33 @@ void main() { // TODO add properties to the builder and call build() group(BarRefOrValue, () { - // Hyperlink reference - // String href - test('to test the property `href`', () async { - // TODO - }); - // unique identifier // String id test('to test the property `id`', () async { // TODO }); + // String barPropA + test('to test the property `barPropA`', () async { + // TODO + }); + + // String fooPropB + test('to test the property `fooPropB`', () async { + // TODO + }); + + // FooRefOrValue foo + test('to test the property `foo`', () async { + // TODO + }); + + // Hyperlink reference + // String href + test('to test the property `href`', () async { + // TODO + }); + // A URI to a JSON-Schema file that defines additional attributes and relationships // String atSchemaLocation test('to test the property `atSchemaLocation`', () async { @@ -37,5 +52,17 @@ void main() { // TODO }); + // Name of the related entity. + // String name + test('to test the property `name`', () async { + // TODO + }); + + // The actual type of the target instance when needed for disambiguation. + // String atReferredType + test('to test the property `atReferredType`', () async { + // TODO + }); + }); } diff --git a/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/test/bar_ref_test.dart b/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/test/bar_ref_test.dart index 9c410b2b5c54..7ab0c0f7f786 100644 --- a/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/test/bar_ref_test.dart +++ b/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/test/bar_ref_test.dart @@ -7,6 +7,18 @@ void main() { // TODO add properties to the builder and call build() group(BarRef, () { + // Name of the related entity. + // String name + test('to test the property `name`', () async { + // TODO + }); + + // The actual type of the target instance when needed for disambiguation. + // String atReferredType + test('to test the property `atReferredType`', () async { + // TODO + }); + // Hyperlink reference // String href test('to test the property `href`', () async { diff --git a/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/test/foo_ref_or_value_test.dart b/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/test/foo_ref_or_value_test.dart index 029d030e5e35..27b675578ccc 100644 --- a/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/test/foo_ref_or_value_test.dart +++ b/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/test/foo_ref_or_value_test.dart @@ -7,6 +7,16 @@ void main() { // TODO add properties to the builder and call build() group(FooRefOrValue, () { + // String fooPropA + test('to test the property `fooPropA`', () async { + // TODO + }); + + // String fooPropB + test('to test the property `fooPropB`', () async { + // TODO + }); + // Hyperlink reference // String href test('to test the property `href`', () async { @@ -37,5 +47,22 @@ void main() { // TODO }); + // String foorefPropA + test('to test the property `foorefPropA`', () async { + // TODO + }); + + // Name of the related entity. + // String name + test('to test the property `name`', () async { + // TODO + }); + + // The actual type of the target instance when needed for disambiguation. + // String atReferredType + test('to test the property `atReferredType`', () async { + // TODO + }); + }); } diff --git a/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/test/foo_ref_test.dart b/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/test/foo_ref_test.dart index a1398787bbcb..fb5708e0af86 100644 --- a/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/test/foo_ref_test.dart +++ b/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/test/foo_ref_test.dart @@ -12,6 +12,18 @@ void main() { // TODO }); + // Name of the related entity. + // String name + test('to test the property `name`', () async { + // TODO + }); + + // The actual type of the target instance when needed for disambiguation. + // String atReferredType + test('to test the property `atReferredType`', () async { + // TODO + }); + // Hyperlink reference // String href test('to test the property `href`', () async { diff --git a/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/test/pizza_speziale_test.dart b/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/test/pizza_speziale_test.dart index 774320231c9e..f96b5532fca3 100644 --- a/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/test/pizza_speziale_test.dart +++ b/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/test/pizza_speziale_test.dart @@ -12,6 +12,11 @@ void main() { // TODO }); + // num pizzaSize + test('to test the property `pizzaSize`', () async { + // TODO + }); + // Hyperlink reference // String href test('to test the property `href`', () async { diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/test/fake_api_test.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/test/fake_api_test.dart index 06418dfa53c4..67950bf50ce9 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/test/fake_api_test.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/test/fake_api_test.dart @@ -7,6 +7,13 @@ void main() { final instance = Openapi().getFakeApi(); group(FakeApi, () { + // for Java apache and Java native, test toUrlQueryString for maps with BegDecimal keys + // + //Future fakeBigDecimalMap() async + test('test fakeBigDecimalMap', () async { + // TODO + }); + // Health check endpoint // //Future fakeHealthGet() async @@ -56,6 +63,15 @@ void main() { // TODO }); + // test referenced additionalProperties + // + // + // + //Future testAdditionalPropertiesReference(Map requestBody) async + test('test testAdditionalPropertiesReference', () async { + // TODO + }); + // For this test, the body has to be a binary file. // //Future testBodyWithBinary(MultipartFile body) async @@ -120,6 +136,15 @@ void main() { // TODO }); + // test inline free-form additionalProperties + // + // + // + //Future testInlineFreeformAdditionalProperties(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) async + test('test testInlineFreeformAdditionalProperties', () async { + // TODO + }); + // test json serialization of form data // // @@ -129,6 +154,15 @@ void main() { // TODO }); + // test nullable parent property + // + // + // + //Future testNullable(ChildWithNullable childWithNullable) async + test('test testNullable', () async { + // TODO + }); + // To test the collection format in query parameters // //Future testQueryParameterCollectionFormat(List pipe, List ioutil, List http, List url, List context, String allowEmpty, { Map language }) async @@ -136,5 +170,14 @@ void main() { // TODO }); + // test referenced string map + // + // + // + //Future testStringMapReference(Map requestBody) async + test('test testStringMapReference', () async { + // TODO + }); + }); } diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/test/fake_api_test.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/test/fake_api_test.dart index c552474e280b..c95212e86914 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/test/fake_api_test.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/test/fake_api_test.dart @@ -7,6 +7,13 @@ void main() { final instance = Openapi().getFakeApi(); group(FakeApi, () { + // for Java apache and Java native, test toUrlQueryString for maps with BegDecimal keys + // + //Future fakeBigDecimalMap() async + test('test fakeBigDecimalMap', () async { + // TODO + }); + // Health check endpoint // //Future fakeHealthGet() async @@ -56,6 +63,15 @@ void main() { // TODO }); + // test referenced additionalProperties + // + // + // + //Future testAdditionalPropertiesReference(BuiltMap requestBody) async + test('test testAdditionalPropertiesReference', () async { + // TODO + }); + // For this test, the body has to be a binary file. // //Future testBodyWithBinary(MultipartFile body) async @@ -120,6 +136,15 @@ void main() { // TODO }); + // test inline free-form additionalProperties + // + // + // + //Future testInlineFreeformAdditionalProperties(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) async + test('test testInlineFreeformAdditionalProperties', () async { + // TODO + }); + // test json serialization of form data // // @@ -129,6 +154,15 @@ void main() { // TODO }); + // test nullable parent property + // + // + // + //Future testNullable(ChildWithNullable childWithNullable) async + test('test testNullable', () async { + // TODO + }); + // To test the collection format in query parameters // //Future testQueryParameterCollectionFormat(BuiltList pipe, BuiltList ioutil, BuiltList http, BuiltList url, BuiltList context, String allowEmpty, { BuiltMap language }) async @@ -136,5 +170,14 @@ void main() { // TODO }); + // test referenced string map + // + // + // + //Future testStringMapReference(BuiltMap requestBody) async + test('test testStringMapReference', () async { + // TODO + }); + }); } diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib/test/api_response_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib/test/api_response_test.dart index e9743c1ddded..ee118ec81e02 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib/test/api_response_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib/test/api_response_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.12 +// @dart=2.18 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,7 +11,6 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; -// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for ApiResponse void main() { // final instance = ApiResponse(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib/test/category_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib/test/category_test.dart index 3e0e90fc90db..f607b63728d5 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib/test/category_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib/test/category_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.12 +// @dart=2.18 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,7 +11,6 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; -// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for Category void main() { // final instance = Category(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib/test/order_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib/test/order_test.dart index b625abdaf9fc..219aa86360fc 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib/test/order_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib/test/order_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.12 +// @dart=2.18 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,7 +11,6 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; -// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for Order void main() { // final instance = Order(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib/test/pet_api_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib/test/pet_api_test.dart index bdb430ea1a80..565bf857613b 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib/test/pet_api_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib/test/pet_api_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.12 +// @dart=2.18 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -12,7 +12,6 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; -// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 /// tests for PetApi void main() { // final instance = PetApi(); @@ -20,6 +19,8 @@ void main() { group('tests for PetApi', () { // Add a new pet to the store // + // + // //Future addPet(Pet pet) async test('test addPet', () async { // TODO @@ -27,6 +28,8 @@ void main() { // Deletes a pet // + // + // //Future deletePet(int petId, { String apiKey }) async test('test deletePet', () async { // TODO @@ -61,6 +64,8 @@ void main() { // Update an existing pet // + // + // //Future updatePet(Pet pet) async test('test updatePet', () async { // TODO @@ -68,6 +73,8 @@ void main() { // Updates a pet in the store with form data // + // + // //Future updatePetWithForm(int petId, { String name, String status }) async test('test updatePetWithForm', () async { // TODO @@ -75,6 +82,8 @@ void main() { // uploads an image // + // + // //Future uploadFile(int petId, { String additionalMetadata, MultipartFile file }) async test('test uploadFile', () async { // TODO diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib/test/pet_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib/test/pet_test.dart index ddb8f6a569e3..3678d8ce1d0c 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib/test/pet_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib/test/pet_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.12 +// @dart=2.18 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,7 +11,6 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; -// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for Pet void main() { // final instance = Pet(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib/test/store_api_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib/test/store_api_test.dart index 4d6825e2cfd1..ea91b78f7079 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib/test/store_api_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib/test/store_api_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.12 +// @dart=2.18 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -12,7 +12,6 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; -// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 /// tests for StoreApi void main() { // final instance = StoreApi(); @@ -47,6 +46,8 @@ void main() { // Place an order for a pet // + // + // //Future placeOrder(Order order) async test('test placeOrder', () async { // TODO diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib/test/tag_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib/test/tag_test.dart index 78d5880e6d4c..0a7baa9a5600 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib/test/tag_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib/test/tag_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.12 +// @dart=2.18 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,7 +11,6 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; -// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for Tag void main() { // final instance = Tag(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib/test/user_api_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib/test/user_api_test.dart index 4f82364bd172..573f19d8ffe1 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib/test/user_api_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib/test/user_api_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.12 +// @dart=2.18 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -12,7 +12,6 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; -// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 /// tests for UserApi void main() { // final instance = UserApi(); @@ -29,6 +28,8 @@ void main() { // Creates list of users with given input array // + // + // //Future createUsersWithArrayInput(List user) async test('test createUsersWithArrayInput', () async { // TODO @@ -36,6 +37,8 @@ void main() { // Creates list of users with given input array // + // + // //Future createUsersWithListInput(List user) async test('test createUsersWithListInput', () async { // TODO @@ -52,6 +55,8 @@ void main() { // Get user by user name // + // + // //Future getUserByName(String username) async test('test getUserByName', () async { // TODO @@ -59,6 +64,8 @@ void main() { // Logs user into the system // + // + // //Future loginUser(String username, String password) async test('test loginUser', () async { // TODO @@ -66,6 +73,8 @@ void main() { // Logs out current logged in user session // + // + // //Future logoutUser() async test('test logoutUser', () async { // TODO diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib/test/user_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib/test/user_test.dart index d86551e10b64..a0f010c10776 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib/test/user_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib/test/user_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.12 +// @dart=2.18 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,7 +11,6 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; -// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for User void main() { // final instance = User(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/additional_properties_class_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/additional_properties_class_test.dart index ba464213ba93..2d8f6c5016cd 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/additional_properties_class_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/additional_properties_class_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.12 +// @dart=2.18 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,7 +11,6 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; -// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for AdditionalPropertiesClass void main() { // final instance = AdditionalPropertiesClass(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/all_of_with_single_ref_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/all_of_with_single_ref_test.dart index 8fbbec42ef15..c04bbdcbe164 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/all_of_with_single_ref_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/all_of_with_single_ref_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.12 +// @dart=2.18 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/animal_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/animal_test.dart index b4d1e331abee..db82504de600 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/animal_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/animal_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.12 +// @dart=2.18 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,7 +11,6 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; -// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for Animal void main() { // final instance = Animal(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/another_fake_api_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/another_fake_api_test.dart index 34367effd5a9..c1decf40a90c 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/another_fake_api_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/another_fake_api_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.12 +// @dart=2.18 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -12,7 +12,6 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; -// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 /// tests for AnotherFakeApi void main() { // final instance = AnotherFakeApi(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/api_response_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/api_response_test.dart index e9743c1ddded..ee118ec81e02 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/api_response_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/api_response_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.12 +// @dart=2.18 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,7 +11,6 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; -// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for ApiResponse void main() { // final instance = ApiResponse(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/array_of_array_of_number_only_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/array_of_array_of_number_only_test.dart index 16ba1e3e45c3..060e4f7f77b3 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/array_of_array_of_number_only_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/array_of_array_of_number_only_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.12 +// @dart=2.18 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,7 +11,6 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; -// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for ArrayOfArrayOfNumberOnly void main() { // final instance = ArrayOfArrayOfNumberOnly(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/array_of_number_only_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/array_of_number_only_test.dart index 5a83508f431e..79c02c90464d 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/array_of_number_only_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/array_of_number_only_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.12 +// @dart=2.18 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,7 +11,6 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; -// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for ArrayOfNumberOnly void main() { // final instance = ArrayOfNumberOnly(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/array_test_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/array_test_test.dart index 7ed043205d9d..888cfe72101a 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/array_test_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/array_test_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.12 +// @dart=2.18 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,7 +11,6 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; -// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for ArrayTest void main() { // final instance = ArrayTest(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/capitalization_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/capitalization_test.dart index ec2cf7e54803..b15b4070f8e8 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/capitalization_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/capitalization_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.12 +// @dart=2.18 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,7 +11,6 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; -// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for Capitalization void main() { // final instance = Capitalization(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/cat_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/cat_test.dart index cb2a70551331..b02c729a9f38 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/cat_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/cat_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.12 +// @dart=2.18 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,7 +11,6 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; -// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for Cat void main() { // final instance = Cat(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/category_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/category_test.dart index 8e45f5de2e51..f463d6f760fd 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/category_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/category_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.12 +// @dart=2.18 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,7 +11,6 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; -// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for Category void main() { // final instance = Category(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/child_with_nullable_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/child_with_nullable_test.dart index 30d4588bd807..9adb87f0f252 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/child_with_nullable_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/child_with_nullable_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.12 +// @dart=2.18 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/class_model_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/class_model_test.dart index 0fa269691c11..be11ea6968ff 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/class_model_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/class_model_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.12 +// @dart=2.18 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,7 +11,6 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; -// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for ClassModel void main() { // final instance = ClassModel(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/default_api_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/default_api_test.dart index 530a221d7766..114c98209b61 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/default_api_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/default_api_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.12 +// @dart=2.18 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -12,13 +12,12 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; -// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 /// tests for DefaultApi void main() { // final instance = DefaultApi(); group('tests for DefaultApi', () { - //Future fooGet() async + //Future fooGet() async test('test fooGet', () async { // TODO }); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/deprecated_object_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/deprecated_object_test.dart index cee2bb6a5be3..01d2d9a5200e 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/deprecated_object_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/deprecated_object_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.12 +// @dart=2.18 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,7 +11,6 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; -// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for DeprecatedObject void main() { // final instance = DeprecatedObject(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/dog_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/dog_test.dart index 7704643bc25c..f644eb71326a 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/dog_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/dog_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.12 +// @dart=2.18 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,7 +11,6 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; -// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for Dog void main() { // final instance = Dog(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/enum_arrays_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/enum_arrays_test.dart index 07318b4510fe..c138856233ad 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/enum_arrays_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/enum_arrays_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.12 +// @dart=2.18 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,7 +11,6 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; -// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for EnumArrays void main() { // final instance = EnumArrays(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/enum_class_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/enum_class_test.dart index c93a03b32ffa..19603ea30129 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/enum_class_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/enum_class_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.12 +// @dart=2.18 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,7 +11,6 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; -// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for EnumClass void main() { diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/enum_test_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/enum_test_test.dart index a5330759e27a..27b65a5ece17 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/enum_test_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/enum_test_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.12 +// @dart=2.18 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,7 +11,6 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; -// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for EnumTest void main() { // final instance = EnumTest(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/fake_api_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/fake_api_test.dart index 0b0c6bcb8ac0..69edaba6b381 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/fake_api_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/fake_api_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.12 +// @dart=2.18 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -12,12 +12,18 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; -// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 /// tests for FakeApi void main() { // final instance = FakeApi(); group('tests for FakeApi', () { + // for Java apache and Java native, test toUrlQueryString for maps with BegDecimal keys + // + //Future fakeBigDecimalMap() async + test('test fakeBigDecimalMap', () async { + // TODO + }); + // Health check endpoint // //Future fakeHealthGet() async @@ -67,6 +73,15 @@ void main() { // TODO }); + // test referenced additionalProperties + // + // + // + //Future testAdditionalPropertiesReference(Map requestBody) async + test('test testAdditionalPropertiesReference', () async { + // TODO + }); + // For this test, the body has to be a binary file. // //Future testBodyWithBinary(MultipartFile body) async @@ -108,7 +123,7 @@ void main() { // // To test enum parameters // - //Future testEnumParameters({ List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, int enumQueryInteger, double enumQueryDouble, List enumFormStringArray, String enumFormString }) async + //Future testEnumParameters({ List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, int enumQueryInteger, double enumQueryDouble, List enumQueryModelArray, List enumFormStringArray, String enumFormString }) async test('test testEnumParameters', () async { // TODO }); @@ -124,18 +139,40 @@ void main() { // test inline additionalProperties // + // + // //Future testInlineAdditionalProperties(Map requestBody) async test('test testInlineAdditionalProperties', () async { // TODO }); + // test inline free-form additionalProperties + // + // + // + //Future testInlineFreeformAdditionalProperties(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) async + test('test testInlineFreeformAdditionalProperties', () async { + // TODO + }); + // test json serialization of form data // + // + // //Future testJsonFormData(String param, String param2) async test('test testJsonFormData', () async { // TODO }); + // test nullable parent property + // + // + // + //Future testNullable(ChildWithNullable childWithNullable) async + test('test testNullable', () async { + // TODO + }); + // To test the collection format in query parameters // //Future testQueryParameterCollectionFormat(List pipe, List ioutil, List http, List url, List context, String allowEmpty, { Map language }) async @@ -143,5 +180,14 @@ void main() { // TODO }); + // test referenced string map + // + // + // + //Future testStringMapReference(Map requestBody) async + test('test testStringMapReference', () async { + // TODO + }); + }); } diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/fake_big_decimal_map200_response_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/fake_big_decimal_map200_response_test.dart index 7f888e73d4a7..b3ec6a63a599 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/fake_big_decimal_map200_response_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/fake_big_decimal_map200_response_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.12 +// @dart=2.18 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/fake_classname_tags123_api_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/fake_classname_tags123_api_test.dart index 2570d74f567c..7b3702f34a8d 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/fake_classname_tags123_api_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/fake_classname_tags123_api_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.12 +// @dart=2.18 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -12,7 +12,6 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; -// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 /// tests for FakeClassnameTags123Api void main() { // final instance = FakeClassnameTags123Api(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/file_schema_test_class_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/file_schema_test_class_test.dart index b69c027e926a..6b9a34f502b7 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/file_schema_test_class_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/file_schema_test_class_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.12 +// @dart=2.18 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,7 +11,6 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; -// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for FileSchemaTestClass void main() { // final instance = FileSchemaTestClass(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/foo_get_default_response_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/foo_get_default_response_test.dart index 9ed5ae1075ed..907eaa37eca3 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/foo_get_default_response_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/foo_get_default_response_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.12 +// @dart=2.18 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/foo_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/foo_test.dart index 82ac0359b8a6..6dd3993f4875 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/foo_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/foo_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.12 +// @dart=2.18 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,7 +11,6 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; -// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for Foo void main() { // final instance = Foo(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/format_test_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/format_test_test.dart index 5f382b03b5bf..0fa3c2df5f9e 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/format_test_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/format_test_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.12 +// @dart=2.18 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,7 +11,6 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; -// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for FormatTest void main() { // final instance = FormatTest(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/has_only_read_only_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/has_only_read_only_test.dart index b41796d19d62..f535c23fa962 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/has_only_read_only_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/has_only_read_only_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.12 +// @dart=2.18 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,7 +11,6 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; -// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for HasOnlyReadOnly void main() { // final instance = HasOnlyReadOnly(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/health_check_result_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/health_check_result_test.dart index 5f09d312d74d..4d30be858bb9 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/health_check_result_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/health_check_result_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.12 +// @dart=2.18 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,7 +11,6 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; -// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for HealthCheckResult void main() { // final instance = HealthCheckResult(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/map_test_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/map_test_test.dart index f7da040f3265..ed11d6d1227b 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/map_test_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/map_test_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.12 +// @dart=2.18 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,7 +11,6 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; -// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for MapTest void main() { // final instance = MapTest(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/mixed_properties_and_additional_properties_class_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/mixed_properties_and_additional_properties_class_test.dart index f23f59f58c72..1652c6a177a5 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/mixed_properties_and_additional_properties_class_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/mixed_properties_and_additional_properties_class_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.12 +// @dart=2.18 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,7 +11,6 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; -// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for MixedPropertiesAndAdditionalPropertiesClass void main() { // final instance = MixedPropertiesAndAdditionalPropertiesClass(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/model200_response_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/model200_response_test.dart index 46ccb12c5586..431de0928582 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/model200_response_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/model200_response_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.12 +// @dart=2.18 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,7 +11,6 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; -// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for Model200Response void main() { // final instance = Model200Response(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/model_client_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/model_client_test.dart index e730318e0679..614f136b9134 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/model_client_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/model_client_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.12 +// @dart=2.18 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,7 +11,6 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; -// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for ModelClient void main() { // final instance = ModelClient(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/model_file_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/model_file_test.dart index 663e0a76fb75..6e6d2a24d20a 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/model_file_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/model_file_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.12 +// @dart=2.18 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,7 +11,6 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; -// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for ModelFile void main() { // final instance = ModelFile(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/model_list_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/model_list_test.dart index 1300f29e4947..6f6707fee36b 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/model_list_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/model_list_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.12 +// @dart=2.18 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,7 +11,6 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; -// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for ModelList void main() { // final instance = ModelList(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/model_return_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/model_return_test.dart index 525c88715ac4..6a1888f0883e 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/model_return_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/model_return_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.12 +// @dart=2.18 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,7 +11,6 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; -// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for ModelReturn void main() { // final instance = ModelReturn(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/name_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/name_test.dart index 0d92245332bf..15aca54b0cf8 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/name_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/name_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.12 +// @dart=2.18 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,7 +11,6 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; -// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for Name void main() { // final instance = Name(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/nullable_class_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/nullable_class_test.dart index 269e281027ba..6258a447760f 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/nullable_class_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/nullable_class_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.12 +// @dart=2.18 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,7 +11,6 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; -// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for NullableClass void main() { // final instance = NullableClass(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/number_only_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/number_only_test.dart index 04381ff2c543..7ef7ec0355a7 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/number_only_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/number_only_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.12 +// @dart=2.18 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,7 +11,6 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; -// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for NumberOnly void main() { // final instance = NumberOnly(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/object_with_deprecated_fields_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/object_with_deprecated_fields_test.dart index 46275670a17a..8805f6cf4a1d 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/object_with_deprecated_fields_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/object_with_deprecated_fields_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.12 +// @dart=2.18 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,7 +11,6 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; -// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for ObjectWithDeprecatedFields void main() { // final instance = ObjectWithDeprecatedFields(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/order_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/order_test.dart index b625abdaf9fc..219aa86360fc 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/order_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/order_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.12 +// @dart=2.18 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,7 +11,6 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; -// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for Order void main() { // final instance = Order(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/outer_composite_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/outer_composite_test.dart index 33fe3a7ef1a6..bacb1c0dc321 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/outer_composite_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/outer_composite_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.12 +// @dart=2.18 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,7 +11,6 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; -// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for OuterComposite void main() { // final instance = OuterComposite(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/outer_enum_default_value_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/outer_enum_default_value_test.dart index fa0e93aaf7b0..b8bccd1b0569 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/outer_enum_default_value_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/outer_enum_default_value_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.12 +// @dart=2.18 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,7 +11,6 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; -// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for OuterEnumDefaultValue void main() { diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/outer_enum_integer_default_value_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/outer_enum_integer_default_value_test.dart index 6d88d2c3d159..08acf7056dc8 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/outer_enum_integer_default_value_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/outer_enum_integer_default_value_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.12 +// @dart=2.18 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,7 +11,6 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; -// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for OuterEnumIntegerDefaultValue void main() { diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/outer_enum_integer_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/outer_enum_integer_test.dart index 41715de4de58..5adf20a20d92 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/outer_enum_integer_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/outer_enum_integer_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.12 +// @dart=2.18 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,7 +11,6 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; -// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for OuterEnumInteger void main() { diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/outer_enum_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/outer_enum_test.dart index 100df39ba80e..8c51aa895529 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/outer_enum_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/outer_enum_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.12 +// @dart=2.18 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,7 +11,6 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; -// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for OuterEnum void main() { diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/outer_object_with_enum_property_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/outer_object_with_enum_property_test.dart index ffb9f4019c9a..9fffef0c1db1 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/outer_object_with_enum_property_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/outer_object_with_enum_property_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.12 +// @dart=2.18 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,7 +11,6 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; -// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for OuterObjectWithEnumProperty void main() { // final instance = OuterObjectWithEnumProperty(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/parent_with_nullable_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/parent_with_nullable_test.dart index 3d16052226f6..a5bf5c7ddf24 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/parent_with_nullable_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/parent_with_nullable_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.12 +// @dart=2.18 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/pet_api_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/pet_api_test.dart index 939365f0f382..c2cc523391c8 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/pet_api_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/pet_api_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.12 +// @dart=2.18 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -12,7 +12,6 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; -// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 /// tests for PetApi void main() { // final instance = PetApi(); @@ -20,6 +19,8 @@ void main() { group('tests for PetApi', () { // Add a new pet to the store // + // + // //Future addPet(Pet pet) async test('test addPet', () async { // TODO @@ -27,6 +28,8 @@ void main() { // Deletes a pet // + // + // //Future deletePet(int petId, { String apiKey }) async test('test deletePet', () async { // TODO @@ -61,6 +64,8 @@ void main() { // Update an existing pet // + // + // //Future updatePet(Pet pet) async test('test updatePet', () async { // TODO @@ -68,6 +73,8 @@ void main() { // Updates a pet in the store with form data // + // + // //Future updatePetWithForm(int petId, { String name, String status }) async test('test updatePetWithForm', () async { // TODO @@ -75,6 +82,8 @@ void main() { // uploads an image // + // + // //Future uploadFile(int petId, { String additionalMetadata, MultipartFile file }) async test('test uploadFile', () async { // TODO @@ -82,6 +91,8 @@ void main() { // uploads an image (required) // + // + // //Future uploadFileWithRequiredFile(int petId, MultipartFile requiredFile, { String additionalMetadata }) async test('test uploadFileWithRequiredFile', () async { // TODO diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/pet_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/pet_test.dart index 8db1ddea4ec6..0369931e485b 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/pet_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/pet_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.12 +// @dart=2.18 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,7 +11,6 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; -// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for Pet void main() { // final instance = Pet(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/read_only_first_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/read_only_first_test.dart index 16d3a5662597..9d84c9e3d0c9 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/read_only_first_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/read_only_first_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.12 +// @dart=2.18 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,7 +11,6 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; -// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for ReadOnlyFirst void main() { // final instance = ReadOnlyFirst(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/single_ref_type_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/single_ref_type_test.dart index 7f2fe102bf17..aee6e38412e8 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/single_ref_type_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/single_ref_type_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.12 +// @dart=2.18 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/special_model_name_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/special_model_name_test.dart index 4b00f426a86c..afe850423289 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/special_model_name_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/special_model_name_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.12 +// @dart=2.18 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,7 +11,6 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; -// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for SpecialModelName void main() { // final instance = SpecialModelName(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/store_api_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/store_api_test.dart index 4d6825e2cfd1..ea91b78f7079 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/store_api_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/store_api_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.12 +// @dart=2.18 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -12,7 +12,6 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; -// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 /// tests for StoreApi void main() { // final instance = StoreApi(); @@ -47,6 +46,8 @@ void main() { // Place an order for a pet // + // + // //Future placeOrder(Order order) async test('test placeOrder', () async { // TODO diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/tag_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/tag_test.dart index 78d5880e6d4c..0a7baa9a5600 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/tag_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/tag_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.12 +// @dart=2.18 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,7 +11,6 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; -// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for Tag void main() { // final instance = Tag(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/test_inline_freeform_additional_properties_request_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/test_inline_freeform_additional_properties_request_test.dart index b6ad45db259a..28b0b32698d7 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/test_inline_freeform_additional_properties_request_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/test_inline_freeform_additional_properties_request_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.12 +// @dart=2.18 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/user_api_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/user_api_test.dart index 4f82364bd172..573f19d8ffe1 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/user_api_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/user_api_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.12 +// @dart=2.18 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -12,7 +12,6 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; -// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 /// tests for UserApi void main() { // final instance = UserApi(); @@ -29,6 +28,8 @@ void main() { // Creates list of users with given input array // + // + // //Future createUsersWithArrayInput(List user) async test('test createUsersWithArrayInput', () async { // TODO @@ -36,6 +37,8 @@ void main() { // Creates list of users with given input array // + // + // //Future createUsersWithListInput(List user) async test('test createUsersWithListInput', () async { // TODO @@ -52,6 +55,8 @@ void main() { // Get user by user name // + // + // //Future getUserByName(String username) async test('test getUserByName', () async { // TODO @@ -59,6 +64,8 @@ void main() { // Logs user into the system // + // + // //Future loginUser(String username, String password) async test('test loginUser', () async { // TODO @@ -66,6 +73,8 @@ void main() { // Logs out current logged in user session // + // + // //Future logoutUser() async test('test logoutUser', () async { // TODO diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/user_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/user_test.dart index d86551e10b64..a0f010c10776 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/user_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/user_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.12 +// @dart=2.18 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,7 +11,6 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; -// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for User void main() { // final instance = User(); diff --git a/samples/openapi3/client/petstore/go/go-petstore/test/api_default_test.go b/samples/openapi3/client/petstore/go/go-petstore/test/api_default_test.go index 042281f29ebb..d3c1495e03ab 100644 --- a/samples/openapi3/client/petstore/go/go-petstore/test/api_default_test.go +++ b/samples/openapi3/client/petstore/go/go-petstore/test/api_default_test.go @@ -34,4 +34,16 @@ func Test_petstore_DefaultAPIService(t *testing.T) { }) + t.Run("Test DefaultAPIService SomeOpsRequiringRefInt", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultAPI.SomeOpsRequiringRefInt(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + } diff --git a/samples/openapi3/client/petstore/go/go-petstore/test/api_fake_test.go b/samples/openapi3/client/petstore/go/go-petstore/test/api_fake_test.go index 5c2fdd76ff54..fef74a1a07ed 100644 --- a/samples/openapi3/client/petstore/go/go-petstore/test/api_fake_test.go +++ b/samples/openapi3/client/petstore/go/go-petstore/test/api_fake_test.go @@ -82,6 +82,28 @@ func Test_petstore_FakeAPIService(t *testing.T) { }) + t.Run("Test FakeAPIService GetParameterNameMapping", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.FakeAPI.GetParameterNameMapping(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test FakeAPIService TestAdditionalPropertiesReference", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.FakeAPI.TestAdditionalPropertiesReference(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test FakeAPIService TestBodyWithFileSchema", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -160,6 +182,17 @@ func Test_petstore_FakeAPIService(t *testing.T) { }) + t.Run("Test FakeAPIService TestInlineFreeformAdditionalProperties", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.FakeAPI.TestInlineFreeformAdditionalProperties(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test FakeAPIService TestJsonFormData", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -182,6 +215,17 @@ func Test_petstore_FakeAPIService(t *testing.T) { }) + t.Run("Test FakeAPIService TestQueryDeepObjectAnyof", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.FakeAPI.TestQueryDeepObjectAnyof(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test FakeAPIService TestQueryParameterCollectionFormat", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -193,6 +237,17 @@ func Test_petstore_FakeAPIService(t *testing.T) { }) + t.Run("Test FakeAPIService TestStringMapReference", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.FakeAPI.TestStringMapReference(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test FakeAPIService TestUniqueItemsHeaderAndQueryParameterCollectionFormat", func(t *testing.T) { t.Skip("skip test") // remove to run test diff --git a/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/test/java/org/openapitools/client/model/ChildSchemaTest.java b/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/test/java/org/openapitools/client/model/ChildSchemaTest.java index 044f968747c2..811ddac6b216 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/test/java/org/openapitools/client/model/ChildSchemaTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/test/java/org/openapitools/client/model/ChildSchemaTest.java @@ -21,6 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.openapitools.client.model.Parent; import org.junit.jupiter.api.Assertions; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/test/java/org/openapitools/client/model/MySchemaNameCharactersTest.java b/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/test/java/org/openapitools/client/model/MySchemaNameCharactersTest.java index a7d4165b9747..10ae15217bec 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/test/java/org/openapitools/client/model/MySchemaNameCharactersTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/test/java/org/openapitools/client/model/MySchemaNameCharactersTest.java @@ -21,7 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import org.openapitools.client.JSON; +import java.util.Arrays; import org.openapitools.client.model.Parent; import org.junit.jupiter.api.Assertions; @@ -39,15 +39,7 @@ public class MySchemaNameCharactersTest { */ @Test public void testMySchemaNameCharacters() { - String objJson = "{ \"objectType\": \"MySchemaName._-Characters\", \"prop2\":\"some_value\" }"; - try { - JSON j = new JSON(); - MySchemaNameCharacters obj = j.getMapper().readValue(objJson, MySchemaNameCharacters.class); - Assertions.assertEquals(obj.getObjectType(), "MySchemaName._-Characters"); - Assertions.assertEquals(obj.getProp2(), "some_value"); - } catch (Exception ex) { - Assertions.fail("Exception '" + ex.getMessage() + "' should not have been raised"); - } + // TODO: test MySchemaNameCharacters } /** diff --git a/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/test/java/org/openapitools/client/model/ParentTest.java b/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/test/java/org/openapitools/client/model/ParentTest.java index 71f9229c8f47..d7ee5f75bd55 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/test/java/org/openapitools/client/model/ParentTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/test/java/org/openapitools/client/model/ParentTest.java @@ -21,8 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import org.openapitools.client.model.ChildSchema; -import org.openapitools.client.model.MySchemaNameCharacters; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/test/java/org/openapitools/client/model/CategoryTest.java b/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/test/java/org/openapitools/client/model/CategoryTest.java index be24dd917120..cfb49b9b5440 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/test/java/org/openapitools/client/model/CategoryTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/test/java/org/openapitools/client/model/CategoryTest.java @@ -20,6 +20,7 @@ import com.fasterxml.jackson.annotation.JsonValue; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java b/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java index 7ea0908af46c..e9cec096bd75 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java @@ -20,6 +20,7 @@ import com.fasterxml.jackson.annotation.JsonValue; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/test/java/org/openapitools/client/model/OrderTest.java b/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/test/java/org/openapitools/client/model/OrderTest.java index 516a98800930..8a824aeba1bd 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/test/java/org/openapitools/client/model/OrderTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/test/java/org/openapitools/client/model/OrderTest.java @@ -21,6 +21,7 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.time.OffsetDateTime; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/test/java/org/openapitools/client/model/PetTest.java b/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/test/java/org/openapitools/client/model/PetTest.java index 9dcd02632fb9..608f5c93e400 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/test/java/org/openapitools/client/model/PetTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/test/java/org/openapitools/client/model/PetTest.java @@ -21,6 +21,7 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.Category; import org.openapitools.client.model.Tag; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/test/java/org/openapitools/client/model/TagTest.java b/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/test/java/org/openapitools/client/model/TagTest.java index 05ddf767772c..94aba633852e 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/test/java/org/openapitools/client/model/TagTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/test/java/org/openapitools/client/model/TagTest.java @@ -20,6 +20,7 @@ import com.fasterxml.jackson.annotation.JsonValue; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/test/java/org/openapitools/client/model/UserTest.java b/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/test/java/org/openapitools/client/model/UserTest.java index 333851238acd..60d4ac99fa69 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/test/java/org/openapitools/client/model/UserTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/test/java/org/openapitools/client/model/UserTest.java @@ -20,6 +20,7 @@ import com.fasterxml.jackson.annotation.JsonValue; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/test/java/org/openapitools/client/model/CategoryTest.java b/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/test/java/org/openapitools/client/model/CategoryTest.java index c2d927676455..038f76d259d3 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/test/java/org/openapitools/client/model/CategoryTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/test/java/org/openapitools/client/model/CategoryTest.java @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import io.swagger.v3.oas.annotations.media.Schema; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java b/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java index 67bc828a74e7..0bdf526bce30 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import io.swagger.v3.oas.annotations.media.Schema; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/test/java/org/openapitools/client/model/OrderTest.java b/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/test/java/org/openapitools/client/model/OrderTest.java index 95ed2a03cd0b..e7207dbd6b49 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/test/java/org/openapitools/client/model/OrderTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/test/java/org/openapitools/client/model/OrderTest.java @@ -20,6 +20,7 @@ import com.fasterxml.jackson.annotation.JsonValue; import io.swagger.v3.oas.annotations.media.Schema; import java.time.OffsetDateTime; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/test/java/org/openapitools/client/model/PetTest.java b/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/test/java/org/openapitools/client/model/PetTest.java index 0a1f63783161..259ada548b74 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/test/java/org/openapitools/client/model/PetTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/test/java/org/openapitools/client/model/PetTest.java @@ -20,6 +20,7 @@ import com.fasterxml.jackson.annotation.JsonValue; import io.swagger.v3.oas.annotations.media.Schema; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.Category; import org.openapitools.client.model.Tag; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/test/java/org/openapitools/client/model/TagTest.java b/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/test/java/org/openapitools/client/model/TagTest.java index d9721c4af838..c40d4bf98839 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/test/java/org/openapitools/client/model/TagTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/test/java/org/openapitools/client/model/TagTest.java @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import io.swagger.v3.oas.annotations.media.Schema; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/test/java/org/openapitools/client/model/UserTest.java b/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/test/java/org/openapitools/client/model/UserTest.java index ac7750f5eedf..df8258e3ac0d 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/test/java/org/openapitools/client/model/UserTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/test/java/org/openapitools/client/model/UserTest.java @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import io.swagger.v3.oas.annotations.media.Schema; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/api/FakeApiTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/api/FakeApiTest.java index 99ec8629a504..34ede8ce8906 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/api/FakeApiTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/api/FakeApiTest.java @@ -24,6 +24,7 @@ import java.time.OffsetDateTime; import org.openapitools.client.model.OuterComposite; import org.openapitools.client.model.OuterEnum; +import org.openapitools.client.model.TestInlineFreeformAdditionalPropertiesRequest; import org.openapitools.client.model.User; import org.junit.jupiter.api.Assertions; @@ -112,6 +113,32 @@ public void getArrayOfEnumsTest() throws ApiException { // TODO: test validations } + /** + * Array of string + * + * @throws ApiException if the Api call fails + */ + @Test + public void postArrayOfStringTest() throws ApiException { + //List requestBody = null; + //api.postArrayOfString(requestBody); + // TODO: test validations + } + + /** + * test referenced additionalProperties + * + * + * + * @throws ApiException if the Api call fails + */ + @Test + public void testAdditionalPropertiesReferenceTest() throws ApiException { + //Map requestBody = null; + //api.testAdditionalPropertiesReference(requestBody); + // TODO: test validations + } + /** * For this test, the body for this request much reference a schema named `File`. * @@ -237,6 +264,20 @@ public void testInlineAdditionalPropertiesTest() throws ApiException { // TODO: test validations } + /** + * test inline free-form additionalProperties + * + * + * + * @throws ApiException if the Api call fails + */ + @Test + public void testInlineFreeformAdditionalPropertiesTest() throws ApiException { + //TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest = null; + //api.testInlineFreeformAdditionalProperties(testInlineFreeformAdditionalPropertiesRequest); + // TODO: test validations + } + /** * test json serialization of form data * @@ -268,4 +309,18 @@ public void testQueryParameterCollectionFormatTest() throws ApiException { // TODO: test validations } + /** + * test referenced string map + * + * + * + * @throws ApiException if the Api call fails + */ + @Test + public void testStringMapReferenceTest() throws ApiException { + //Map requestBody = null; + //api.testStringMapReference(requestBody); + // TODO: test validations + } + } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/api/PetApiTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/api/PetApiTest.java index 9c61bba29e36..b27dcaba815c 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/api/PetApiTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/api/PetApiTest.java @@ -16,18 +16,17 @@ import org.openapitools.client.*; import org.openapitools.client.auth.*; import java.io.File; -import org.openapitools.client.model.*; +import org.openapitools.client.model.ModelApiResponse; +import org.openapitools.client.model.Pet; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; -import java.util.Arrays; import java.util.ArrayList; -import java.util.Map; import java.util.HashMap; -import java.util.HashSet; import java.util.List; +import java.util.Map; /** * API tests for PetApi @@ -35,7 +34,6 @@ public class PetApiTest { private final PetApi api = new PetApi(); - private final long petId = 5638l; /** * Add a new pet to the store @@ -46,60 +44,9 @@ public class PetApiTest { */ @Test public void addPetTest() throws ApiException { - // add pet - Pet body = new Pet(); - body.setId(petId); - body.setName("jersey2 java8 pet"); - Category category = new Category(); - category.setId(petId); - category.setName("jersey2 java8 category"); - body.setCategory(category); - body.setStatus(Pet.StatusEnum.AVAILABLE); - body.setPhotoUrls(Arrays.asList("A", "B", "C")); - Tag tag = new Tag(); - tag.setId(petId); - tag.setName("jersey2 java8 tag"); - body.setTags(Arrays.asList(tag)); - - api.addPet(body); - - //get pet by ID - Pet result = api.getPetById(petId); - Assertions.assertEquals(result.getId(), body.getId()); - Assertions.assertEquals(result.getCategory(), category); - Assertions.assertEquals(result.getName(), body.getName()); - Assertions.assertEquals(result.getPhotoUrls(), body.getPhotoUrls()); - Assertions.assertEquals(result.getStatus(), body.getStatus()); - Assertions.assertEquals(result.getTags(), body.getTags()); - - // update pet - api.updatePetWithForm(petId, "jersey2 java8 pet 2", "sold"); - - //get pet by ID - Pet result2 = api.getPetById(petId); - Assertions.assertEquals(result2.getId(), body.getId()); - Assertions.assertEquals(result2.getCategory(), category); - Assertions.assertEquals(result2.getName(), "jersey2 java8 pet 2"); - Assertions.assertEquals(result2.getPhotoUrls(), body.getPhotoUrls()); - Assertions.assertEquals(result2.getStatus(), Pet.StatusEnum.SOLD); - Assertions.assertEquals(result2.getTags(), body.getTags()); - - // delete pet - api.deletePet(petId, "empty api key"); - - try { - Pet result3 = api.getPetById(petId); - Assertions.assertEquals(false, true); - } catch (ApiException e) { -// System.err.println("Exception when calling PetApi#getPetById"); -// System.err.println("Status code: " + e.getCode()); -// System.err.println("Reason: " + e.getResponseBody()); -// System.err.println("Response headers: " + e.getResponseHeaders()); - - Assertions.assertEquals(e.getCode(), 404); - Assertions.assertEquals(e.getResponseBody(), "{\"code\":1,\"type\":\"error\",\"message\":\"Pet not found\"}"); - - } + //Pet pet = null; + //api.addPet(pet); + // TODO: test validations } /** diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AdditionalPropertiesClassTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AdditionalPropertiesClassTest.java index 96ca356053e7..2a249063c483 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AdditionalPropertiesClassTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AdditionalPropertiesClassTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import java.util.HashMap; import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AnimalTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AnimalTest.java index e523f4a9fd4a..8135b9b319d8 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AnimalTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AnimalTest.java @@ -21,8 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import org.openapitools.client.model.Cat; -import org.openapitools.client.model.Dog; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AppleReqTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AppleReqTest.java index a17b2d982d68..255c18af0208 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AppleReqTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AppleReqTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AppleTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AppleTest.java index de0184496f26..a9f1abda1fe3 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AppleTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AppleTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnlyTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnlyTest.java index 90360a009299..3755829c9440 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnlyTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnlyTest.java @@ -20,6 +20,7 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.math.BigDecimal; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.junit.jupiter.api.Assertions; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ArrayOfNumberOnlyTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ArrayOfNumberOnlyTest.java index 8a3cf3499c5c..ab7e1740ca1f 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ArrayOfNumberOnlyTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ArrayOfNumberOnlyTest.java @@ -20,6 +20,7 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.math.BigDecimal; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.junit.jupiter.api.Assertions; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ArrayTestTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ArrayTestTest.java index 38576d0e5549..06487a1277e9 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ArrayTestTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ArrayTestTest.java @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.ReadOnlyFirst; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/BananaReqTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/BananaReqTest.java index ecbc17bdd263..d7594d8f67cf 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/BananaReqTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/BananaReqTest.java @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.math.BigDecimal; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/BananaTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/BananaTest.java index 58902c6471cb..5575ed148738 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/BananaTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/BananaTest.java @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.math.BigDecimal; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/BasquePigTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/BasquePigTest.java index 0355c02c8b39..78bb892b8195 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/BasquePigTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/BasquePigTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/CapitalizationTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/CapitalizationTest.java index 91de07ebb31c..61e2705665e9 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/CapitalizationTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/CapitalizationTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/CatTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/CatTest.java index f8c9d60979fe..664dc2853bf0 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/CatTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/CatTest.java @@ -21,6 +21,8 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import java.util.Map; import org.openapitools.client.model.Animal; import org.junit.jupiter.api.Assertions; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/CategoryTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/CategoryTest.java index 2a0d0925184f..eec4493e93e1 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/CategoryTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/CategoryTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ChildCatTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ChildCatTest.java index 81996faf1273..615695be8c30 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ChildCatTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ChildCatTest.java @@ -21,6 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.openapitools.client.model.ParentPet; import java.util.Set; import java.util.HashSet; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ClassModelTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ClassModelTest.java index 9acb93988032..4885e656ca45 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ClassModelTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ClassModelTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ClientTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ClientTest.java index 93e64697cbe8..31b3cea2211e 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ClientTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ClientTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ComplexQuadrilateralTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ComplexQuadrilateralTest.java index 8254ea35f22d..1f419de8e640 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ComplexQuadrilateralTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ComplexQuadrilateralTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/DanishPigTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/DanishPigTest.java index 28ef5f915609..89599e0219ec 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/DanishPigTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/DanishPigTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/DeprecatedObjectTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/DeprecatedObjectTest.java index 1c29f39febe3..e25102a3f419 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/DeprecatedObjectTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/DeprecatedObjectTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/DogTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/DogTest.java index ca4e7f1a4318..ed5671f13565 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/DogTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/DogTest.java @@ -21,6 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.openapitools.client.model.Animal; import org.junit.jupiter.api.Assertions; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/DrawingTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/DrawingTest.java index 5b6a83cb79b0..a6de37e30bb2 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/DrawingTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/DrawingTest.java @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.Fruit; import org.openapitools.client.model.NullableShape; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/EnumArraysTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/EnumArraysTest.java index 0ebeeae1b90b..597c60bc8552 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/EnumArraysTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/EnumArraysTest.java @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.junit.jupiter.api.Assertions; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/EnumTestTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/EnumTestTest.java index a952c89a90df..ebf9681a1b77 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/EnumTestTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/EnumTestTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.openapitools.client.model.OuterEnum; import org.openapitools.client.model.OuterEnumDefaultValue; import org.openapitools.client.model.OuterEnumInteger; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/EquilateralTriangleTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/EquilateralTriangleTest.java index bd21dcb29ab5..dcd09121b7c4 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/EquilateralTriangleTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/EquilateralTriangleTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/FileSchemaTestClassTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/FileSchemaTestClassTest.java index ca53f2710093..65b2f87ca4ff 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/FileSchemaTestClassTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/FileSchemaTestClassTest.java @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.ModelFile; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/FooGetDefaultResponseTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/FooGetDefaultResponseTest.java index 2256d31c4c4e..dba3cf5a96ee 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/FooGetDefaultResponseTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/FooGetDefaultResponseTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.openapitools.client.model.Foo; import org.junit.jupiter.api.Assertions; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/FooTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/FooTest.java index 4fccb22c43e6..daf4288c2281 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/FooTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/FooTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/FormatTestTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/FormatTestTest.java index 2d044fae746b..849839b1ec44 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/FormatTestTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/FormatTestTest.java @@ -22,6 +22,7 @@ import java.math.BigDecimal; import java.time.LocalDate; import java.time.OffsetDateTime; +import java.util.Arrays; import java.util.UUID; import org.junit.jupiter.api.Assertions; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/FruitReqTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/FruitReqTest.java index 4e9156870024..3ab12cdc46df 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/FruitReqTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/FruitReqTest.java @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.math.BigDecimal; +import java.util.Arrays; import org.openapitools.client.model.AppleReq; import org.openapitools.client.model.BananaReq; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/FruitTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/FruitTest.java index b051e07441fb..55ed641d9899 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/FruitTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/FruitTest.java @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.math.BigDecimal; +import java.util.Arrays; import org.openapitools.client.model.Apple; import org.openapitools.client.model.Banana; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/GmFruitTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/GmFruitTest.java index 7f18ebef24ef..39d5826b8f8a 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/GmFruitTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/GmFruitTest.java @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.math.BigDecimal; +import java.util.Arrays; import org.openapitools.client.model.Apple; import org.openapitools.client.model.Banana; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/GrandparentAnimalTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/GrandparentAnimalTest.java index c0c66f99e5af..a1e3637ce19b 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/GrandparentAnimalTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/GrandparentAnimalTest.java @@ -21,8 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import org.openapitools.client.model.ChildCat; -import org.openapitools.client.model.ParentPet; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/HasOnlyReadOnlyTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/HasOnlyReadOnlyTest.java index a692eed31917..11e0bbe44d1a 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/HasOnlyReadOnlyTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/HasOnlyReadOnlyTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/HealthCheckResultTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/HealthCheckResultTest.java index d2ea838a307f..6f46c2f5202b 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/HealthCheckResultTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/HealthCheckResultTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.openapitools.jackson.nullable.JsonNullable; import com.fasterxml.jackson.annotation.JsonIgnore; import org.openapitools.jackson.nullable.JsonNullable; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/IsoscelesTriangleTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/IsoscelesTriangleTest.java index 558785c5f0bf..88fdcd0292c6 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/IsoscelesTriangleTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/IsoscelesTriangleTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/MammalTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/MammalTest.java index 99a348ca642b..8bafe09601bd 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/MammalTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/MammalTest.java @@ -21,7 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import org.openapitools.client.JSON; +import java.util.Arrays; import org.openapitools.client.model.Pig; import org.openapitools.client.model.Whale; import org.openapitools.client.model.Zebra; @@ -40,31 +40,8 @@ public class MammalTest { * Model tests for Mammal */ @Test - public void testMammal() throws Exception { - Mammal m = new Mammal(); - Zebra z = new Zebra(); - z.setType(Zebra.TypeEnum.MOUNTAIN); - z.setClassName("zebra"); - m.setActualInstance(z); - Assertions.assertEquals(JSON.getDefault().getMapper().writeValueAsString(m), "{\"type\":\"mountain\",\"className\":\"zebra\"}"); - } - - /** - * Model tests for getActualInstanceRecursively - */ - @Test - public void testGetActualInstanceRecursively() throws Exception { - Mammal m = new Mammal(); - Pig p = new Pig(); - DanishPig dp = new DanishPig(); - dp.setClassName("danish_pig"); - p.setActualInstance(dp); - m.setActualInstance(p); - Assertions.assertTrue(m.getActualInstanceRecursively() instanceof DanishPig); - - Pig p2 = new Pig(); - m.setActualInstance(p2); - Assertions.assertEquals(m.getActualInstanceRecursively(), null); + public void testMammal() { + // TODO: test Mammal } /** @@ -99,33 +76,4 @@ public void typeTest() { // TODO: test type } - /** - * Test code sample - */ - @Test - public void codeSampleTest() { - Mammal exampleMammal = new Mammal(); - - // create a new Pig - Pig examplePig = new Pig(); - // set Mammal to Pig - exampleMammal.setActualInstance(examplePig); - // to get back the Pig set earlier - Pig testPig = (Pig) exampleMammal.getActualInstance(); - - // create a new Whale - Whale exampleWhale = new Whale(); - // set Mammal to Whale - exampleMammal.setActualInstance(exampleWhale); - // to get back the Whale set earlier - Whale testWhale = (Whale) exampleMammal.getActualInstance(); - - // create a new Zebra - Zebra exampleZebra = new Zebra(); - // set Mammal to Zebra - exampleMammal.setActualInstance(exampleZebra); - // to get back the Zebra set earlier - Zebra testZebra = (Zebra) exampleMammal.getActualInstance(); - } - } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/MapTestTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/MapTestTest.java index 394bf4686bcb..50911103f2ca 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/MapTestTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/MapTestTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import java.util.HashMap; import java.util.Map; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClassTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClassTest.java index a95a4cd36b36..26fdc39a31a9 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClassTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClassTest.java @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.time.OffsetDateTime; +import java.util.Arrays; import java.util.HashMap; import java.util.Map; import java.util.UUID; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/Model200ResponseTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/Model200ResponseTest.java index 285f5b025745..801d94e0118d 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/Model200ResponseTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/Model200ResponseTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java index 6285dc269862..4c2dd601ddbf 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ModelFileTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ModelFileTest.java index fe9ae2553223..2313cc948c0b 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ModelFileTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ModelFileTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ModelListTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ModelListTest.java index ec7f17d1af01..5644a525efc7 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ModelListTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ModelListTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ModelReturnTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ModelReturnTest.java index 6b8041eab6b2..19dde4952627 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ModelReturnTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ModelReturnTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/NameTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/NameTest.java index 5d5d3f7a36fd..aead3c674dbb 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/NameTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/NameTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/NullableClassTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/NullableClassTest.java index 8a9cc24beddb..c7b10f31fa4d 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/NullableClassTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/NullableClassTest.java @@ -22,6 +22,7 @@ import java.time.LocalDate; import java.time.OffsetDateTime; import java.util.ArrayList; +import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/NullableShapeTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/NullableShapeTest.java index 456530223e0c..d3d15bb32998 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/NullableShapeTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/NullableShapeTest.java @@ -21,6 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.openapitools.client.model.Quadrilateral; import org.openapitools.client.model.Triangle; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/NumberOnlyTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/NumberOnlyTest.java index 15b10302575f..c73a53c6ee56 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/NumberOnlyTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/NumberOnlyTest.java @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.math.BigDecimal; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ObjectWithDeprecatedFieldsTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ObjectWithDeprecatedFieldsTest.java index eda3c6ce1713..ac165aac24ba 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ObjectWithDeprecatedFieldsTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ObjectWithDeprecatedFieldsTest.java @@ -20,6 +20,7 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.math.BigDecimal; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.DeprecatedObject; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/OrderTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/OrderTest.java index 4ea6d2150bd8..bb5fb7cad80b 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/OrderTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/OrderTest.java @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.time.OffsetDateTime; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/OuterCompositeTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/OuterCompositeTest.java index 9498ef7e68a4..d454f2e1aa12 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/OuterCompositeTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/OuterCompositeTest.java @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.math.BigDecimal; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ParentPetTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ParentPetTest.java index 2118c7e7e0a3..189d147a7ac5 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ParentPetTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ParentPetTest.java @@ -21,7 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import org.openapitools.client.model.ChildCat; +import java.util.Arrays; import org.openapitools.client.model.GrandparentAnimal; import org.junit.jupiter.api.Assertions; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/PetTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/PetTest.java index 8788ba632e13..0d391f65eb02 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/PetTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/PetTest.java @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.openapitools.client.model.Category; import org.openapitools.client.model.Tag; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/PigTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/PigTest.java index 8c406dd5f8ec..513f98b74a6c 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/PigTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/PigTest.java @@ -21,6 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.openapitools.client.model.BasquePig; import org.openapitools.client.model.DanishPig; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/QuadrilateralInterfaceTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/QuadrilateralInterfaceTest.java index 2d1e5ac485a3..ac2f1f660c2d 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/QuadrilateralInterfaceTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/QuadrilateralInterfaceTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/QuadrilateralTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/QuadrilateralTest.java index 3418bc98b2e6..df83443c7d63 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/QuadrilateralTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/QuadrilateralTest.java @@ -21,6 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.openapitools.client.model.ComplexQuadrilateral; import org.openapitools.client.model.SimpleQuadrilateral; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ReadOnlyFirstTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ReadOnlyFirstTest.java index d77e0b2a92dc..689d39696231 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ReadOnlyFirstTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ReadOnlyFirstTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ScaleneTriangleTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ScaleneTriangleTest.java index c81f25ce59ef..4f7a833530f1 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ScaleneTriangleTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ScaleneTriangleTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ShapeInterfaceTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ShapeInterfaceTest.java index 90b3b66ca3e6..a89c83e5a846 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ShapeInterfaceTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ShapeInterfaceTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ShapeOrNullTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ShapeOrNullTest.java index fd27ed4d0f5b..23a7c3946bda 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ShapeOrNullTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ShapeOrNullTest.java @@ -21,6 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.openapitools.client.model.Quadrilateral; import org.openapitools.client.model.Triangle; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ShapeTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ShapeTest.java index 02f81ec2a47b..398f1d5bb311 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ShapeTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ShapeTest.java @@ -21,6 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.openapitools.client.model.Quadrilateral; import org.openapitools.client.model.Triangle; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/SimpleQuadrilateralTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/SimpleQuadrilateralTest.java index 5481ac5a2721..3222305a7c9b 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/SimpleQuadrilateralTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/SimpleQuadrilateralTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/SpecialModelNameTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/SpecialModelNameTest.java index 3f0262f4a404..5cc8f2fe8d4a 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/SpecialModelNameTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/SpecialModelNameTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/TagTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/TagTest.java index db8d746a636e..a8ccab7ac1b7 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/TagTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/TagTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/TriangleInterfaceTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/TriangleInterfaceTest.java index 50c8c459a1b3..303e04f15985 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/TriangleInterfaceTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/TriangleInterfaceTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/TriangleTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/TriangleTest.java index 99c3655633f8..e11692c5c390 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/TriangleTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/TriangleTest.java @@ -21,6 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.openapitools.client.model.EquilateralTriangle; import org.openapitools.client.model.IsoscelesTriangle; import org.openapitools.client.model.ScaleneTriangle; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/UserTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/UserTest.java index 7c56d205f7ef..6931e60e46c9 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/UserTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/UserTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.openapitools.jackson.nullable.JsonNullable; import com.fasterxml.jackson.annotation.JsonIgnore; import org.openapitools.jackson.nullable.JsonNullable; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/WhaleTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/WhaleTest.java index 66075dad5b7b..a4fb7ce4009b 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/WhaleTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/WhaleTest.java @@ -18,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ZebraTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ZebraTest.java index 509747319772..7780a07a9ec1 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ZebraTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ZebraTest.java @@ -13,19 +13,12 @@ package org.openapitools.client.model; -import com.fasterxml.jackson.databind.type.MapType; -import com.fasterxml.jackson.databind.type.TypeFactory; -import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; - -import java.util.HashMap; -import java.util.Map; - -import org.openapitools.client.JSON; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; @@ -42,29 +35,7 @@ public class ZebraTest { */ @Test public void testZebra() { - Zebra z = new Zebra(); - z.setClassName("zebra"); - Map m = new HashMap<>(); - z.putAdditionalProperty("key1", "value1"); - z.putAdditionalProperty("key2", 12321); - z.setType(Zebra.TypeEnum.MOUNTAIN); - - JSON j = new JSON(); - try { - // serialize - Assertions.assertEquals(j.getMapper().writeValueAsString(z), "{\"type\":\"mountain\",\"className\":\"zebra\",\"key1\":\"value1\",\"key2\":12321}"); - - // deserialize - String zebraJson = "{\"type\":\"mountain\",\"className\":\"zebra\",\"key1\":\"value1\",\"key2\":12321}"; - Zebra zebraFromJson = j.getMapper().readValue(zebraJson, Zebra.class); - Assertions.assertEquals(zebraFromJson.getType(), Zebra.TypeEnum.MOUNTAIN); - Assertions.assertEquals(zebraFromJson.getClassName(), "zebra"); - Assertions.assertEquals(zebraFromJson.getAdditionalProperties().size(), 2); - Assertions.assertEquals(zebraFromJson.getAdditionalProperty("key1"), "value1"); - Assertions.assertEquals(zebraFromJson.getAdditionalProperty("key2"), 12321); - } catch (Exception ex) { - Assertions.assertEquals(true, false); // exception shouldn't be thrown - } + // TODO: test Zebra } /** @@ -72,22 +43,7 @@ public void testZebra() { */ @Test public void typeTest() { - String zebraJson = "{\"type\":\"mountain\",\"className\":\"zebra\",\"key1\":\"value1\",\"key2\":12321}"; - - JSON j = new JSON(); - TypeFactory typeFactory = j.getMapper().getTypeFactory(); - MapType mapType = typeFactory.constructMapType(HashMap.class, String.class, Object.class); - try { - HashMap map = j.getMapper().readValue(zebraJson, mapType); - Assertions.assertEquals(map.get("type"), "mountain"); - - Map result = - j.getMapper().readValue(zebraJson, new TypeReference>() {}); - - Assertions.assertEquals(result.get("type"), "mountain"); - } catch (Exception ex) { - Assertions.assertEquals(true, false); // exception shouldn't be thrown - } + // TODO: test type } /** diff --git a/samples/openapi3/client/petstore/python-aiohttp/test/test_enum_test.py b/samples/openapi3/client/petstore/python-aiohttp/test/test_enum_test.py index e83daf724588..5f2f59e6c62b 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/test/test_enum_test.py +++ b/samples/openapi3/client/petstore/python-aiohttp/test/test_enum_test.py @@ -42,6 +42,8 @@ def make_instance(self, include_optional) -> EnumTest: enum_number = 1.1, enum_number_vendor_ext = 42, enum_string_vendor_ext = 'FOO', + enum_string_single_member = 'abc', + enum_integer_single_member = 100, outer_enum = 'placed', outer_enum_integer = 2, outer_enum_default_value = 'placed', diff --git a/samples/openapi3/client/petstore/python-aiohttp/test/test_fake_api.py b/samples/openapi3/client/petstore/python-aiohttp/test/test_fake_api.py index 902c6faa7224..4f17026f3e68 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/test/test_fake_api.py +++ b/samples/openapi3/client/petstore/python-aiohttp/test/test_fake_api.py @@ -267,6 +267,13 @@ async def test_test_string_map_reference(self) -> None: """ pass + async def test_upload_file_with_additional_properties(self) -> None: + """Test case for upload_file_with_additional_properties + + uploads a file and additional properties using multipart/form-data + """ + pass + if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python-pydantic-v1-aiohttp/test/test_enum_test.py b/samples/openapi3/client/petstore/python-pydantic-v1-aiohttp/test/test_enum_test.py index 3c57cd467c8c..a9f432cf9ce8 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1-aiohttp/test/test_enum_test.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1-aiohttp/test/test_enum_test.py @@ -43,6 +43,8 @@ def make_instance(self, include_optional) -> EnumTest: enum_number = 1.1, enum_number_vendor_ext = 42, enum_string_vendor_ext = 'FOO', + enum_string_single_member = 'abc', + enum_integer_single_member = 100, outer_enum = 'placed', outer_enum_integer = 2, outer_enum_default_value = 'placed', diff --git a/samples/openapi3/client/petstore/python-pydantic-v1-aiohttp/test/test_fake_api.py b/samples/openapi3/client/petstore/python-pydantic-v1-aiohttp/test/test_fake_api.py index dcaf7fb84f15..6c0ff851e10f 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1-aiohttp/test/test_fake_api.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1-aiohttp/test/test_fake_api.py @@ -267,6 +267,13 @@ async def test_test_string_map_reference(self) -> None: """ pass + async def test_upload_file_with_additional_properties(self) -> None: + """Test case for upload_file_with_additional_properties + + uploads a file and additional properties using multipart/form-data # noqa: E501 + """ + pass + if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_additional_properties_any_type.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_additional_properties_any_type.py index c2c9c7c58069..a1669f0664d2 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_additional_properties_any_type.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_additional_properties_any_type.py @@ -3,21 +3,19 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" +""" # noqa: E501 import unittest import datetime -import petstore_api from petstore_api.models.additional_properties_any_type import AdditionalPropertiesAnyType # noqa: E501 -from petstore_api.rest import ApiException class TestAdditionalPropertiesAnyType(unittest.TestCase): """AdditionalPropertiesAnyType unit test stubs""" @@ -28,19 +26,19 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> AdditionalPropertiesAnyType: """Test AdditionalPropertiesAnyType include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `AdditionalPropertiesAnyType` """ - model = petstore_api.models.additional_properties_any_type.AdditionalPropertiesAnyType() # noqa: E501 - if include_optional : + model = AdditionalPropertiesAnyType() # noqa: E501 + if include_optional: return AdditionalPropertiesAnyType( name = '' ) - else : + else: return AdditionalPropertiesAnyType( ) """ diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_additional_properties_class.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_additional_properties_class.py index e3b48bedd571..d1dc12c44584 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_additional_properties_class.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_additional_properties_class.py @@ -3,21 +3,19 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" +""" # noqa: E501 import unittest import datetime -import petstore_api from petstore_api.models.additional_properties_class import AdditionalPropertiesClass # noqa: E501 -from petstore_api.rest import ApiException class TestAdditionalPropertiesClass(unittest.TestCase): """AdditionalPropertiesClass unit test stubs""" @@ -28,26 +26,26 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> AdditionalPropertiesClass: """Test AdditionalPropertiesClass include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `AdditionalPropertiesClass` """ - model = petstore_api.models.additional_properties_class.AdditionalPropertiesClass() # noqa: E501 - if include_optional : + model = AdditionalPropertiesClass() # noqa: E501 + if include_optional: return AdditionalPropertiesClass( map_property = { 'key' : '' - }, + }, map_of_map_property = { 'key' : { 'key' : '' } } ) - else : + else: return AdditionalPropertiesClass( ) """ diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_additional_properties_object.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_additional_properties_object.py index b68a8fda5790..9bfa2a0cde83 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_additional_properties_object.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_additional_properties_object.py @@ -3,21 +3,19 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" +""" # noqa: E501 import unittest import datetime -import petstore_api from petstore_api.models.additional_properties_object import AdditionalPropertiesObject # noqa: E501 -from petstore_api.rest import ApiException class TestAdditionalPropertiesObject(unittest.TestCase): """AdditionalPropertiesObject unit test stubs""" @@ -28,19 +26,19 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> AdditionalPropertiesObject: """Test AdditionalPropertiesObject include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `AdditionalPropertiesObject` """ - model = petstore_api.models.additional_properties_object.AdditionalPropertiesObject() # noqa: E501 - if include_optional : + model = AdditionalPropertiesObject() # noqa: E501 + if include_optional: return AdditionalPropertiesObject( name = '' ) - else : + else: return AdditionalPropertiesObject( ) """ diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_additional_properties_with_description_only.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_additional_properties_with_description_only.py index d5166dfe1342..88df1cc92955 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_additional_properties_with_description_only.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_additional_properties_with_description_only.py @@ -3,21 +3,19 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" +""" # noqa: E501 import unittest import datetime -import petstore_api from petstore_api.models.additional_properties_with_description_only import AdditionalPropertiesWithDescriptionOnly # noqa: E501 -from petstore_api.rest import ApiException class TestAdditionalPropertiesWithDescriptionOnly(unittest.TestCase): """AdditionalPropertiesWithDescriptionOnly unit test stubs""" @@ -28,19 +26,19 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> AdditionalPropertiesWithDescriptionOnly: """Test AdditionalPropertiesWithDescriptionOnly include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `AdditionalPropertiesWithDescriptionOnly` """ - model = petstore_api.models.additional_properties_with_description_only.AdditionalPropertiesWithDescriptionOnly() # noqa: E501 - if include_optional : + model = AdditionalPropertiesWithDescriptionOnly() # noqa: E501 + if include_optional: return AdditionalPropertiesWithDescriptionOnly( name = '' ) - else : + else: return AdditionalPropertiesWithDescriptionOnly( ) """ diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_all_of_with_single_ref.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_all_of_with_single_ref.py index ee761ef82d0a..920ad3782e15 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_all_of_with_single_ref.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_all_of_with_single_ref.py @@ -3,21 +3,19 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest import datetime -import petstore_api from petstore_api.models.all_of_with_single_ref import AllOfWithSingleRef # noqa: E501 -from petstore_api.rest import ApiException class TestAllOfWithSingleRef(unittest.TestCase): """AllOfWithSingleRef unit test stubs""" @@ -28,25 +26,28 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> AllOfWithSingleRef: """Test AllOfWithSingleRef include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # model = petstore_api.models.all_of_with_single_ref.AllOfWithSingleRef() # noqa: E501 - if include_optional : + # uncomment below to create an instance of `AllOfWithSingleRef` + """ + model = AllOfWithSingleRef() # noqa: E501 + if include_optional: return AllOfWithSingleRef( - username = '', - single_ref_type = None + username = '', + single_ref_type = 'admin' ) - else : + else: return AllOfWithSingleRef( ) + """ def testAllOfWithSingleRef(self): """Test AllOfWithSingleRef""" - inst_req_only = self.make_instance(include_optional=False) - inst_req_and_optional = self.make_instance(include_optional=True) + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_animal.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_animal.py index d209151de678..b0b62a0bb2b3 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_animal.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_animal.py @@ -3,21 +3,19 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest import datetime -import petstore_api from petstore_api.models.animal import Animal # noqa: E501 -from petstore_api.rest import ApiException class TestAnimal(unittest.TestCase): """Animal unit test stubs""" @@ -28,26 +26,29 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> Animal: """Test Animal include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # model = petstore_api.models.animal.Animal() # noqa: E501 - if include_optional : + # uncomment below to create an instance of `Animal` + """ + model = Animal() # noqa: E501 + if include_optional: return Animal( - class_name = '', + class_name = '', color = 'red' ) - else : + else: return Animal( class_name = '', ) + """ def testAnimal(self): """Test Animal""" - inst_req_only = self.make_instance(include_optional=False) - inst_req_and_optional = self.make_instance(include_optional=True) + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_another_fake_api.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_another_fake_api.py index d95798cfc5a4..deb50e0e6b14 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_another_fake_api.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_another_fake_api.py @@ -3,32 +3,30 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import petstore_api from petstore_api.api.another_fake_api import AnotherFakeApi # noqa: E501 -from petstore_api.rest import ApiException class TestAnotherFakeApi(unittest.TestCase): """AnotherFakeApi unit test stubs""" - def setUp(self): - self.api = petstore_api.api.another_fake_api.AnotherFakeApi() # noqa: E501 + def setUp(self) -> None: + self.api = AnotherFakeApi() - def tearDown(self): + def tearDown(self) -> None: pass - def test_call_123_test_special_tags(self): + def test_call_123_test_special_tags(self) -> None: """Test case for call_123_test_special_tags To test special tags # noqa: E501 diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_any_of_color.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_any_of_color.py index 2a97cfef7526..f99dfd0020b1 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_any_of_color.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_any_of_color.py @@ -3,21 +3,19 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest import datetime -import petstore_api from petstore_api.models.any_of_color import AnyOfColor # noqa: E501 -from petstore_api.rest import ApiException class TestAnyOfColor(unittest.TestCase): """AnyOfColor unit test stubs""" @@ -28,18 +26,18 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> AnyOfColor: """Test AnyOfColor include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `AnyOfColor` """ - model = petstore_api.models.any_of_color.AnyOfColor() # noqa: E501 - if include_optional : + model = AnyOfColor() # noqa: E501 + if include_optional: return AnyOfColor( ) - else : + else: return AnyOfColor( ) """ diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_any_of_pig.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_any_of_pig.py index f041e5f9d6f7..c3e4760182c5 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_any_of_pig.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_any_of_pig.py @@ -3,21 +3,19 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest import datetime -import petstore_api from petstore_api.models.any_of_pig import AnyOfPig # noqa: E501 -from petstore_api.rest import ApiException class TestAnyOfPig(unittest.TestCase): """AnyOfPig unit test stubs""" @@ -28,6 +26,28 @@ def setUp(self): def tearDown(self): pass + def make_instance(self, include_optional) -> AnyOfPig: + """Test AnyOfPig + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `AnyOfPig` + """ + model = AnyOfPig() # noqa: E501 + if include_optional: + return AnyOfPig( + class_name = '', + color = '', + size = 56 + ) + else: + return AnyOfPig( + class_name = '', + color = '', + size = 56, + ) + """ + def testAnyOfPig(self): """Test AnyOfPig""" # inst_req_only = self.make_instance(include_optional=False) diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_api_response.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_api_response.py index 95efd33bce57..9882aa1b9005 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_api_response.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_api_response.py @@ -3,21 +3,19 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest import datetime -import petstore_api from petstore_api.models.api_response import ApiResponse # noqa: E501 -from petstore_api.rest import ApiException class TestApiResponse(unittest.TestCase): """ApiResponse unit test stubs""" @@ -28,26 +26,29 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> ApiResponse: """Test ApiResponse include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # model = petstore_api.models.api_response.ApiResponse() # noqa: E501 - if include_optional : + # uncomment below to create an instance of `ApiResponse` + """ + model = ApiResponse() # noqa: E501 + if include_optional: return ApiResponse( - code = 56, - type = '', + code = 56, + type = '', message = '' ) - else : + else: return ApiResponse( ) + """ def testApiResponse(self): """Test ApiResponse""" - inst_req_only = self.make_instance(include_optional=False) - inst_req_and_optional = self.make_instance(include_optional=True) + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_array_of_array_of_model.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_array_of_array_of_model.py index 1072a19255de..7c0809b0b233 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_array_of_array_of_model.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_array_of_array_of_model.py @@ -3,21 +3,19 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" +""" # noqa: E501 import unittest import datetime -import petstore_api from petstore_api.models.array_of_array_of_model import ArrayOfArrayOfModel # noqa: E501 -from petstore_api.rest import ApiException class TestArrayOfArrayOfModel(unittest.TestCase): """ArrayOfArrayOfModel unit test stubs""" @@ -28,17 +26,17 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> ArrayOfArrayOfModel: """Test ArrayOfArrayOfModel include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `ArrayOfArrayOfModel` """ - model = petstore_api.models.array_of_array_of_model.ArrayOfArrayOfModel() # noqa: E501 - if include_optional : + model = ArrayOfArrayOfModel() # noqa: E501 + if include_optional: return ArrayOfArrayOfModel( - shop_id_to_org_online_lip_map = [ + another_property = [ [ petstore_api.models.tag.Tag( id = 56, @@ -46,7 +44,7 @@ def make_instance(self, include_optional): ] ] ) - else : + else: return ArrayOfArrayOfModel( ) """ diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_array_of_array_of_number_only.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_array_of_array_of_number_only.py index 001b4e565737..22160c2bd055 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_array_of_array_of_number_only.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_array_of_array_of_number_only.py @@ -3,21 +3,19 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest import datetime -import petstore_api from petstore_api.models.array_of_array_of_number_only import ArrayOfArrayOfNumberOnly # noqa: E501 -from petstore_api.rest import ApiException class TestArrayOfArrayOfNumberOnly(unittest.TestCase): """ArrayOfArrayOfNumberOnly unit test stubs""" @@ -28,13 +26,15 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> ArrayOfArrayOfNumberOnly: """Test ArrayOfArrayOfNumberOnly include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # model = petstore_api.models.array_of_array_of_number_only.ArrayOfArrayOfNumberOnly() # noqa: E501 - if include_optional : + # uncomment below to create an instance of `ArrayOfArrayOfNumberOnly` + """ + model = ArrayOfArrayOfNumberOnly() # noqa: E501 + if include_optional: return ArrayOfArrayOfNumberOnly( array_array_number = [ [ @@ -42,14 +42,15 @@ def make_instance(self, include_optional): ] ] ) - else : + else: return ArrayOfArrayOfNumberOnly( ) + """ def testArrayOfArrayOfNumberOnly(self): """Test ArrayOfArrayOfNumberOnly""" - inst_req_only = self.make_instance(include_optional=False) - inst_req_and_optional = self.make_instance(include_optional=True) + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_array_of_number_only.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_array_of_number_only.py index a35703ae0dac..ade32f4f8f21 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_array_of_number_only.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_array_of_number_only.py @@ -3,21 +3,19 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest import datetime -import petstore_api from petstore_api.models.array_of_number_only import ArrayOfNumberOnly # noqa: E501 -from petstore_api.rest import ApiException class TestArrayOfNumberOnly(unittest.TestCase): """ArrayOfNumberOnly unit test stubs""" @@ -28,26 +26,29 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> ArrayOfNumberOnly: """Test ArrayOfNumberOnly include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # model = petstore_api.models.array_of_number_only.ArrayOfNumberOnly() # noqa: E501 - if include_optional : + # uncomment below to create an instance of `ArrayOfNumberOnly` + """ + model = ArrayOfNumberOnly() # noqa: E501 + if include_optional: return ArrayOfNumberOnly( array_number = [ 1.337 ] ) - else : + else: return ArrayOfNumberOnly( ) + """ def testArrayOfNumberOnly(self): """Test ArrayOfNumberOnly""" - inst_req_only = self.make_instance(include_optional=False) - inst_req_and_optional = self.make_instance(include_optional=True) + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_array_test.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_array_test.py index 8327e415adcd..6858000a8b03 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_array_test.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_array_test.py @@ -3,21 +3,19 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest import datetime -import petstore_api from petstore_api.models.array_test import ArrayTest # noqa: E501 -from petstore_api.rest import ApiException class TestArrayTest(unittest.TestCase): """ArrayTest unit test stubs""" @@ -28,22 +26,27 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> ArrayTest: """Test ArrayTest include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # model = petstore_api.models.array_test.ArrayTest() # noqa: E501 - if include_optional : + # uncomment below to create an instance of `ArrayTest` + """ + model = ArrayTest() # noqa: E501 + if include_optional: return ArrayTest( array_of_string = [ '' - ], + ], + array_of_nullable_float = [ + 1.337 + ], array_array_of_integer = [ [ 56 ] - ], + ], array_array_of_model = [ [ petstore_api.models.read_only_first.ReadOnlyFirst( @@ -52,14 +55,15 @@ def make_instance(self, include_optional): ] ] ) - else : + else: return ArrayTest( ) + """ def testArrayTest(self): """Test ArrayTest""" - inst_req_only = self.make_instance(include_optional=False) - inst_req_and_optional = self.make_instance(include_optional=True) + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_basque_pig.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_basque_pig.py index 26e2a845a95c..42f62fa31115 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_basque_pig.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_basque_pig.py @@ -3,21 +3,19 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest import datetime -import petstore_api from petstore_api.models.basque_pig import BasquePig # noqa: E501 -from petstore_api.rest import ApiException class TestBasquePig(unittest.TestCase): """BasquePig unit test stubs""" @@ -28,27 +26,30 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> BasquePig: """Test BasquePig include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # model = petstore_api.models.basque_pig.BasquePig() # noqa: E501 - if include_optional : + # uncomment below to create an instance of `BasquePig` + """ + model = BasquePig() # noqa: E501 + if include_optional: return BasquePig( - class_name = '', + class_name = '', color = '' ) - else : + else: return BasquePig( class_name = '', color = '', ) + """ def testBasquePig(self): """Test BasquePig""" - #inst_req_only = self.make_instance(include_optional=False) - #inst_req_and_optional = self.make_instance(include_optional=True) + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_capitalization.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_capitalization.py index c7a9721dbc00..17b75e51e363 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_capitalization.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_capitalization.py @@ -3,21 +3,19 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest import datetime -import petstore_api from petstore_api.models.capitalization import Capitalization # noqa: E501 -from petstore_api.rest import ApiException class TestCapitalization(unittest.TestCase): """Capitalization unit test stubs""" @@ -28,29 +26,32 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> Capitalization: """Test Capitalization include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # model = petstore_api.models.capitalization.Capitalization() # noqa: E501 - if include_optional : + # uncomment below to create an instance of `Capitalization` + """ + model = Capitalization() # noqa: E501 + if include_optional: return Capitalization( - small_camel = '', - capital_camel = '', - small_snake = '', - capital_snake = '', - sca_eth_flow_points = '', + small_camel = '', + capital_camel = '', + small_snake = '', + capital_snake = '', + sca_eth_flow_points = '', att_name = '' ) - else : + else: return Capitalization( ) + """ def testCapitalization(self): """Test Capitalization""" - inst_req_only = self.make_instance(include_optional=False) - inst_req_and_optional = self.make_instance(include_optional=True) + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_cat.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_cat.py index e04566b1aafd..58e743f44c86 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_cat.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_cat.py @@ -3,21 +3,19 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest import datetime -import petstore_api from petstore_api.models.cat import Cat # noqa: E501 -from petstore_api.rest import ApiException class TestCat(unittest.TestCase): """Cat unit test stubs""" @@ -28,6 +26,23 @@ def setUp(self): def tearDown(self): pass + def make_instance(self, include_optional) -> Cat: + """Test Cat + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `Cat` + """ + model = Cat() # noqa: E501 + if include_optional: + return Cat( + declawed = True + ) + else: + return Cat( + ) + """ + def testCat(self): """Test Cat""" # inst_req_only = self.make_instance(include_optional=False) diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_category.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_category.py index 14848fcebcd2..2a287246f81a 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_category.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_category.py @@ -3,21 +3,19 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest import datetime -import petstore_api from petstore_api.models.category import Category # noqa: E501 -from petstore_api.rest import ApiException class TestCategory(unittest.TestCase): """Category unit test stubs""" @@ -28,21 +26,24 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> Category: """Test Category include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # model = petstore_api.models.category.Category() # noqa: E501 - if include_optional : + # uncomment below to create an instance of `Category` + """ + model = Category() # noqa: E501 + if include_optional: return Category( - id = 56, + id = 56, name = 'default-name' ) - else : + else: return Category( name = 'default-name', ) + """ def testCategory(self): """Test Category""" diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_circular_all_of_ref.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_circular_all_of_ref.py index f72aa632ba8f..aaa48641b37d 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_circular_all_of_ref.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_circular_all_of_ref.py @@ -36,16 +36,10 @@ def make_instance(self, include_optional) -> CircularAllOfRef: model = CircularAllOfRef() # noqa: E501 if include_optional: return CircularAllOfRef( + name = '', second_circular_all_of_ref = [ - petstore_api.models.second_circular_all_of_ref.SecondCircularAllOfRef( - circular_all_of_ref = [ - petstore_api.models.circular_all_of_ref.CircularAllOfRef( - second_circular_all_of_ref = [ - petstore_api.models.second_circular_all_of_ref.SecondCircularAllOfRef() - ], ) - ], ) - ], - name = '' + petstore_api.models.second_circular_all_of_ref.SecondCircularAllOfRef() + ] ) else: return CircularAllOfRef( diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_circular_reference_model.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_circular_reference_model.py index f734d3fc0ff6..f23f02000225 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_circular_reference_model.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_circular_reference_model.py @@ -3,23 +3,19 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" - +""" # noqa: E501 -from __future__ import absolute_import import unittest import datetime -import petstore_api from petstore_api.models.circular_reference_model import CircularReferenceModel # noqa: E501 -from petstore_api.rest import ApiException class TestCircularReferenceModel(unittest.TestCase): """CircularReferenceModel unit test stubs""" @@ -30,17 +26,17 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> CircularReferenceModel: """Test CircularReferenceModel include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `CircularReferenceModel` """ - model = petstore_api.models.circular_reference_model.CircularReferenceModel() # noqa: E501 - if include_optional : + model = CircularReferenceModel() # noqa: E501 + if include_optional: return CircularReferenceModel( - size = 56, + size = 56, nested = petstore_api.models.first_ref.FirstRef( category = '', self_ref = petstore_api.models.second_ref.SecondRef( @@ -50,7 +46,7 @@ def make_instance(self, include_optional): nested = petstore_api.models.first_ref.FirstRef( category = '', ), ), ), ) ) - else : + else: return CircularReferenceModel( ) """ diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_class_model.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_class_model.py index 511843f2dcfd..6b78a1941820 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_class_model.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_class_model.py @@ -3,21 +3,19 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest import datetime -import petstore_api from petstore_api.models.class_model import ClassModel # noqa: E501 -from petstore_api.rest import ApiException class TestClassModel(unittest.TestCase): """ClassModel unit test stubs""" @@ -28,24 +26,27 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> ClassModel: """Test ClassModel include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # model = petstore_api.models.class_model.ClassModel() # noqa: E501 - if include_optional : + # uncomment below to create an instance of `ClassModel` + """ + model = ClassModel() # noqa: E501 + if include_optional: return ClassModel( - _class = '' + var_class = '' ) - else : + else: return ClassModel( ) + """ def testClassModel(self): """Test ClassModel""" - inst_req_only = self.make_instance(include_optional=False) - inst_req_and_optional = self.make_instance(include_optional=True) + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_client.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_client.py index 9209bb2c3f03..9d109601e811 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_client.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_client.py @@ -3,21 +3,19 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest import datetime -import petstore_api from petstore_api.models.client import Client # noqa: E501 -from petstore_api.rest import ApiException class TestClient(unittest.TestCase): """Client unit test stubs""" @@ -28,24 +26,27 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> Client: """Test Client include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # model = petstore_api.models.client.Client() # noqa: E501 - if include_optional : + # uncomment below to create an instance of `Client` + """ + model = Client() # noqa: E501 + if include_optional: return Client( client = '' ) - else : + else: return Client( ) + """ def testClient(self): """Test Client""" - inst_req_only = self.make_instance(include_optional=False) - inst_req_and_optional = self.make_instance(include_optional=True) + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_color.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_color.py index 9a7aabfea253..21f53552b360 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_color.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_color.py @@ -3,21 +3,19 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest import datetime -import petstore_api from petstore_api.models.color import Color # noqa: E501 -from petstore_api.rest import ApiException class TestColor(unittest.TestCase): """Color unit test stubs""" @@ -28,18 +26,18 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> Color: """Test Color include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `Color` """ - model = petstore_api.models.color.Color() # noqa: E501 - if include_optional : + model = Color() # noqa: E501 + if include_optional: return Color( ) - else : + else: return Color( ) """ diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_creature.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_creature.py index 66b3e088cbbf..af6b9ef7b311 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_creature.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_creature.py @@ -3,21 +3,19 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" +""" # noqa: E501 import unittest import datetime -import petstore_api from petstore_api.models.creature import Creature # noqa: E501 -from petstore_api.rest import ApiException class TestCreature(unittest.TestCase): """Creature unit test stubs""" @@ -28,21 +26,21 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> Creature: """Test Creature include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `Creature` """ - model = petstore_api.models.creature.Creature() # noqa: E501 - if include_optional : + model = Creature() # noqa: E501 + if include_optional: return Creature( info = petstore_api.models.creature_info.CreatureInfo( - name = '', ), + name = '', ), type = '' ) - else : + else: return Creature( info = petstore_api.models.creature_info.CreatureInfo( name = '', ), diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_creature_info.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_creature_info.py index 0a85d5ffe7b2..a95dfd3d922b 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_creature_info.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_creature_info.py @@ -3,21 +3,19 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" +""" # noqa: E501 import unittest import datetime -import petstore_api from petstore_api.models.creature_info import CreatureInfo # noqa: E501 -from petstore_api.rest import ApiException class TestCreatureInfo(unittest.TestCase): """CreatureInfo unit test stubs""" @@ -28,19 +26,19 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> CreatureInfo: """Test CreatureInfo include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `CreatureInfo` """ - model = petstore_api.models.creature_info.CreatureInfo() # noqa: E501 - if include_optional : + model = CreatureInfo() # noqa: E501 + if include_optional: return CreatureInfo( name = '' ) - else : + else: return CreatureInfo( name = '', ) diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_danish_pig.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_danish_pig.py index 0d850ae94f41..bbd0ffcb5f01 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_danish_pig.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_danish_pig.py @@ -3,21 +3,19 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest import datetime -import petstore_api from petstore_api.models.danish_pig import DanishPig # noqa: E501 -from petstore_api.rest import ApiException class TestDanishPig(unittest.TestCase): """DanishPig unit test stubs""" @@ -28,27 +26,30 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> DanishPig: """Test DanishPig include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # model = petstore_api.models.danish_pig.DanishPig() # noqa: E501 - if include_optional : + # uncomment below to create an instance of `DanishPig` + """ + model = DanishPig() # noqa: E501 + if include_optional: return DanishPig( - class_name = '', + class_name = '', size = 56 ) - else : + else: return DanishPig( class_name = '', size = 56, ) + """ def testDanishPig(self): """Test DanishPig""" - #inst_req_only = self.make_instance(include_optional=False) - #inst_req_and_optional = self.make_instance(include_optional=True) + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_default_api.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_default_api.py index 50e7c57bd0bf..595e520c3e35 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_default_api.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_default_api.py @@ -3,32 +3,30 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import petstore_api from petstore_api.api.default_api import DefaultApi # noqa: E501 -from petstore_api.rest import ApiException class TestDefaultApi(unittest.TestCase): """DefaultApi unit test stubs""" - def setUp(self): - self.api = petstore_api.api.default_api.DefaultApi() # noqa: E501 + def setUp(self) -> None: + self.api = DefaultApi() - def tearDown(self): + def tearDown(self) -> None: pass - def test_foo_get(self): + def test_foo_get(self) -> None: """Test case for foo_get """ diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_deprecated_object.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_deprecated_object.py index 50257271cd72..ba3a63c719de 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_deprecated_object.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_deprecated_object.py @@ -3,21 +3,19 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest import datetime -import petstore_api from petstore_api.models.deprecated_object import DeprecatedObject # noqa: E501 -from petstore_api.rest import ApiException class TestDeprecatedObject(unittest.TestCase): """DeprecatedObject unit test stubs""" @@ -28,24 +26,27 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> DeprecatedObject: """Test DeprecatedObject include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # model = petstore_api.models.deprecated_object.DeprecatedObject() # noqa: E501 - if include_optional : + # uncomment below to create an instance of `DeprecatedObject` + """ + model = DeprecatedObject() # noqa: E501 + if include_optional: return DeprecatedObject( name = '' ) - else : + else: return DeprecatedObject( ) + """ def testDeprecatedObject(self): """Test DeprecatedObject""" - inst_req_only = self.make_instance(include_optional=False) - inst_req_and_optional = self.make_instance(include_optional=True) + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_dog.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_dog.py index af75161287e1..d8a51df906c0 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_dog.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_dog.py @@ -3,21 +3,19 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest import datetime -import petstore_api from petstore_api.models.dog import Dog # noqa: E501 -from petstore_api.rest import ApiException class TestDog(unittest.TestCase): """Dog unit test stubs""" @@ -28,6 +26,23 @@ def setUp(self): def tearDown(self): pass + def make_instance(self, include_optional) -> Dog: + """Test Dog + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `Dog` + """ + model = Dog() # noqa: E501 + if include_optional: + return Dog( + breed = '' + ) + else: + return Dog( + ) + """ + def testDog(self): """Test Dog""" # inst_req_only = self.make_instance(include_optional=False) diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_dummy_model.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_dummy_model.py index d6562c58bc2d..45459b666b16 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_dummy_model.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_dummy_model.py @@ -3,21 +3,19 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest import datetime -import petstore_api from petstore_api.models.dummy_model import DummyModel # noqa: E501 -from petstore_api.rest import ApiException class TestDummyModel(unittest.TestCase): """DummyModel unit test stubs""" @@ -28,23 +26,23 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> DummyModel: """Test DummyModel include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `DummyModel` """ - model = petstore_api.models.dummy_model.DummyModel() # noqa: E501 - if include_optional : + model = DummyModel() # noqa: E501 + if include_optional: return DummyModel( - category = '', + category = '', self_ref = petstore_api.models.self_reference_model.Self-Reference-Model( size = 56, nested = petstore_api.models.dummy_model.Dummy-Model( category = '', ), ) ) - else : + else: return DummyModel( ) """ diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_enum_arrays.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_enum_arrays.py index 52cc98601bc0..21e4cf531c4e 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_enum_arrays.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_enum_arrays.py @@ -3,21 +3,19 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest import datetime -import petstore_api from petstore_api.models.enum_arrays import EnumArrays # noqa: E501 -from petstore_api.rest import ApiException class TestEnumArrays(unittest.TestCase): """EnumArrays unit test stubs""" @@ -28,22 +26,25 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> EnumArrays: """Test EnumArrays include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # model = petstore_api.models.enum_arrays.EnumArrays() # noqa: E501 - if include_optional : + # uncomment below to create an instance of `EnumArrays` + """ + model = EnumArrays() # noqa: E501 + if include_optional: return EnumArrays( - just_symbol = '>=', + just_symbol = '>=', array_enum = [ 'fish' ] ) - else : + else: return EnumArrays( ) + """ def testEnumArrays(self): """Test EnumArrays""" diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_enum_class.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_enum_class.py index 9d7a81272cd2..92822bcdd970 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_enum_class.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_enum_class.py @@ -3,21 +3,19 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest import datetime -import petstore_api from petstore_api.models.enum_class import EnumClass # noqa: E501 -from petstore_api.rest import ApiException class TestEnumClass(unittest.TestCase): """EnumClass unit test stubs""" diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_enum_string1.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_enum_string1.py index 9dbe9eb44fb8..9cbeacbe344d 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_enum_string1.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_enum_string1.py @@ -3,21 +3,19 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" +""" # noqa: E501 import unittest import datetime -import petstore_api from petstore_api.models.enum_string1 import EnumString1 # noqa: E501 -from petstore_api.rest import ApiException class TestEnumString1(unittest.TestCase): """EnumString1 unit test stubs""" diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_enum_string2.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_enum_string2.py index 4ec0ffcd86c7..409c7f257a58 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_enum_string2.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_enum_string2.py @@ -3,21 +3,19 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" +""" # noqa: E501 import unittest import datetime -import petstore_api from petstore_api.models.enum_string2 import EnumString2 # noqa: E501 -from petstore_api.rest import ApiException class TestEnumString2(unittest.TestCase): """EnumString2 unit test stubs""" diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_enum_test.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_enum_test.py index afb342ae9341..a9f432cf9ce8 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_enum_test.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_enum_test.py @@ -3,21 +3,19 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest import datetime -import petstore_api from petstore_api.models.enum_test import EnumTest # noqa: E501 -from petstore_api.rest import ApiException class TestEnumTest(unittest.TestCase): """EnumTest unit test stubs""" @@ -28,27 +26,35 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> EnumTest: """Test EnumTest include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # model = petstore_api.models.enum_test.EnumTest() # noqa: E501 - if include_optional : + # uncomment below to create an instance of `EnumTest` + """ + model = EnumTest() # noqa: E501 + if include_optional: return EnumTest( - enum_string = 'UPPER', - enum_string_required = 'UPPER', - enum_integer = 1, - enum_number = 1.1, - outer_enum = 'placed', - outer_enum_integer = 2, - outer_enum_default_value = 'placed', - outer_enum_integer_default_value = 0 + enum_string = 'UPPER', + enum_string_required = 'UPPER', + enum_integer_default = 1, + enum_integer = 1, + enum_number = 1.1, + enum_number_vendor_ext = 42, + enum_string_vendor_ext = 'FOO', + enum_string_single_member = 'abc', + enum_integer_single_member = 100, + outer_enum = 'placed', + outer_enum_integer = 2, + outer_enum_default_value = 'placed', + outer_enum_integer_default_value = -1 ) - else : + else: return EnumTest( enum_string_required = 'UPPER', ) + """ def testEnumTest(self): """Test EnumTest""" diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_fake_api.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_fake_api.py index cf074093f90d..02384c933401 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_fake_api.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_fake_api.py @@ -3,144 +3,277 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -try: - from unittest.mock import patch -except ImportError: - from mock import patch -import petstore_api from petstore_api.api.fake_api import FakeApi # noqa: E501 class TestFakeApi(unittest.TestCase): """FakeApi unit test stubs""" - def setUp(self): - self.api = petstore_api.api.fake_api.FakeApi() # noqa: E501 + def setUp(self) -> None: + self.api = FakeApi() + + def tearDown(self) -> None: + pass + + def test_fake_any_type_request_body(self) -> None: + """Test case for fake_any_type_request_body - def tearDown(self): + test any type request body # noqa: E501 + """ pass - def test_fake_health_get(self): + def test_fake_enum_ref_query_parameter(self) -> None: + """Test case for fake_enum_ref_query_parameter + + test enum reference query parameter # noqa: E501 + """ + pass + + def test_fake_health_get(self) -> None: """Test case for fake_health_get Health check endpoint # noqa: E501 """ pass - def test_fake_http_signature_test(self): + def test_fake_http_signature_test(self) -> None: """Test case for fake_http_signature_test test http signature authentication # noqa: E501 """ pass - def test_fake_outer_boolean_serialize(self): + def test_fake_outer_boolean_serialize(self) -> None: """Test case for fake_outer_boolean_serialize """ pass - def test_fake_outer_composite_serialize(self): + def test_fake_outer_composite_serialize(self) -> None: """Test case for fake_outer_composite_serialize """ pass - def test_fake_outer_number_serialize(self): + def test_fake_outer_number_serialize(self) -> None: """Test case for fake_outer_number_serialize """ pass - def test_fake_outer_string_serialize(self): + def test_fake_outer_string_serialize(self) -> None: """Test case for fake_outer_string_serialize """ pass - def test_test_body_with_file_schema(self): + def test_fake_property_enum_integer_serialize(self) -> None: + """Test case for fake_property_enum_integer_serialize + + """ + pass + + def test_fake_ref_enum_string(self) -> None: + """Test case for fake_ref_enum_string + + test ref to enum string # noqa: E501 + """ + pass + + def test_fake_return_boolean(self) -> None: + """Test case for fake_return_boolean + + test returning boolean # noqa: E501 + """ + pass + + def test_fake_return_byte_like_json(self) -> None: + """Test case for fake_return_byte_like_json + + test byte like json # noqa: E501 + """ + pass + + def test_fake_return_enum(self) -> None: + """Test case for fake_return_enum + + test returning enum # noqa: E501 + """ + pass + + def test_fake_return_enum_like_json(self) -> None: + """Test case for fake_return_enum_like_json + + test enum like json # noqa: E501 + """ + pass + + def test_fake_return_float(self) -> None: + """Test case for fake_return_float + + test returning float # noqa: E501 + """ + pass + + def test_fake_return_int(self) -> None: + """Test case for fake_return_int + + test returning int # noqa: E501 + """ + pass + + def test_fake_return_list_of_objects(self) -> None: + """Test case for fake_return_list_of_objects + + test returning list of objects # noqa: E501 + """ + pass + + def test_fake_return_str_like_json(self) -> None: + """Test case for fake_return_str_like_json + + test str like json # noqa: E501 + """ + pass + + def test_fake_return_string(self) -> None: + """Test case for fake_return_string + + test returning string # noqa: E501 + """ + pass + + def test_fake_uuid_example(self) -> None: + """Test case for fake_uuid_example + + test uuid example # noqa: E501 + """ + pass + + def test_test_additional_properties_reference(self) -> None: + """Test case for test_additional_properties_reference + + test referenced additionalProperties # noqa: E501 + """ + pass + + def test_test_body_with_binary(self) -> None: + """Test case for test_body_with_binary + + """ + pass + + def test_test_body_with_file_schema(self) -> None: """Test case for test_body_with_file_schema """ pass - def test_test_body_with_query_params(self): + def test_test_body_with_query_params(self) -> None: """Test case for test_body_with_query_params """ pass - def test_test_client_model(self): + def test_test_client_model(self) -> None: """Test case for test_client_model To test \"client\" model # noqa: E501 """ pass - def test_test_endpoint_parameters(self): + def test_test_date_time_query_parameter(self) -> None: + """Test case for test_date_time_query_parameter + + """ + pass + + def test_test_empty_and_non_empty_responses(self) -> None: + """Test case for test_empty_and_non_empty_responses + + test empty and non-empty responses # noqa: E501 + """ + pass + + def test_test_endpoint_parameters(self) -> None: """Test case for test_endpoint_parameters Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 # noqa: E501 """ pass - def test_test_enum_parameters(self): - """Test case for test_enum_parameters + def test_test_error_responses_with_model(self) -> None: + """Test case for test_error_responses_with_model - To test enum parameters # noqa: E501 + test error responses with model # noqa: E501 """ pass - def test_test_group_parameters(self): + def test_test_group_parameters(self) -> None: """Test case for test_group_parameters Fake endpoint to test group parameters (optional) # noqa: E501 """ pass - def test_test_inline_additional_properties(self): + def test_test_inline_additional_properties(self) -> None: """Test case for test_inline_additional_properties test inline additionalProperties # noqa: E501 """ pass - def test_test_json_form_data(self): + def test_test_inline_freeform_additional_properties(self) -> None: + """Test case for test_inline_freeform_additional_properties + + test inline free-form additionalProperties # noqa: E501 + """ + pass + + def test_test_json_form_data(self) -> None: """Test case for test_json_form_data test json serialization of form data # noqa: E501 """ pass - def test_test_query_parameter_collection_format(self): + def test_test_object_for_multipart_requests(self) -> None: + """Test case for test_object_for_multipart_requests + + """ + pass + + def test_test_query_parameter_collection_format(self) -> None: """Test case for test_query_parameter_collection_format """ pass - def test_headers_parameter(self): - """Test case for the _headers are passed by the user + def test_test_string_map_reference(self) -> None: + """Test case for test_string_map_reference + + test referenced string map # noqa: E501 + """ + pass + + def test_upload_file_with_additional_properties(self) -> None: + """Test case for upload_file_with_additional_properties - To test any optional parameter # noqa: E501 + uploads a file and additional properties using multipart/form-data # noqa: E501 """ - api = petstore_api.api.PetApi() - with patch("petstore_api.api_client.ApiClient.call_api") as mock_method: - value_headers = {"Header1": "value1"} - api.find_pets_by_status(["available"], _headers=value_headers) - args, _ = mock_method.call_args - self.assertEqual(args, ('/pet/findByStatus', 'GET', {}, [('status', ['available'])], {'Accept': 'application/json', 'Header1': 'value1'}) -) + pass + if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_fake_classname_tags123_api.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_fake_classname_tags123_api.py index 25088624aea3..bb449540c784 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_fake_classname_tags123_api.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_fake_classname_tags123_api.py @@ -21,7 +21,7 @@ class TestFakeClassnameTags123Api(unittest.TestCase): """FakeClassnameTags123Api unit test stubs""" def setUp(self) -> None: - self.api = FakeClassnameTags123Api() # noqa: E501 + self.api = FakeClassnameTags123Api() def tearDown(self) -> None: pass diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_field.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_field.py index c972d91444a5..cb5e8e25dd24 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_field.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_field.py @@ -36,7 +36,7 @@ def make_instance(self, include_optional) -> Field: model = Field() # noqa: E501 if include_optional: return Field( - dummy = '' + field = '' ) else: return Field( diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_file.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_file.py index 3c9b91972d91..0896f1869db5 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_file.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_file.py @@ -3,21 +3,19 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest import datetime -import petstore_api from petstore_api.models.file import File # noqa: E501 -from petstore_api.rest import ApiException class TestFile(unittest.TestCase): """File unit test stubs""" @@ -28,24 +26,27 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> File: """Test File include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # model = petstore_api.models.file.File() # noqa: E501 - if include_optional : + # uncomment below to create an instance of `File` + """ + model = File() # noqa: E501 + if include_optional: return File( source_uri = '' ) - else : + else: return File( ) + """ def testFile(self): """Test File""" - inst_req_only = self.make_instance(include_optional=False) - inst_req_and_optional = self.make_instance(include_optional=True) + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_file_schema_test_class.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_file_schema_test_class.py index 2834ddc05413..72963bf91d52 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_file_schema_test_class.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_file_schema_test_class.py @@ -3,21 +3,19 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest import datetime -import petstore_api from petstore_api.models.file_schema_test_class import FileSchemaTestClass # noqa: E501 -from petstore_api.rest import ApiException class TestFileSchemaTestClass(unittest.TestCase): """FileSchemaTestClass unit test stubs""" @@ -28,29 +26,32 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> FileSchemaTestClass: """Test FileSchemaTestClass include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # model = petstore_api.models.file_schema_test_class.FileSchemaTestClass() # noqa: E501 - if include_optional : + # uncomment below to create an instance of `FileSchemaTestClass` + """ + model = FileSchemaTestClass() # noqa: E501 + if include_optional: return FileSchemaTestClass( file = petstore_api.models.file.File( - source_uri = '', ), + source_uri = '', ), files = [ petstore_api.models.file.File( source_uri = '', ) ] ) - else : + else: return FileSchemaTestClass( ) + """ def testFileSchemaTestClass(self): """Test FileSchemaTestClass""" - inst_req_only = self.make_instance(include_optional=False) - inst_req_and_optional = self.make_instance(include_optional=True) + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_first_ref.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_first_ref.py index bcec1c0334bf..a99fc7cfc796 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_first_ref.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_first_ref.py @@ -3,23 +3,19 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" - +""" # noqa: E501 -from __future__ import absolute_import import unittest import datetime -import petstore_api from petstore_api.models.first_ref import FirstRef # noqa: E501 -from petstore_api.rest import ApiException class TestFirstRef(unittest.TestCase): """FirstRef unit test stubs""" @@ -30,17 +26,17 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> FirstRef: """Test FirstRef include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `FirstRef` """ - model = petstore_api.models.first_ref.FirstRef() # noqa: E501 - if include_optional : + model = FirstRef() # noqa: E501 + if include_optional: return FirstRef( - category = '', + category = '', self_ref = petstore_api.models.second_ref.SecondRef( category = '', circular_ref = petstore_api.models.circular_reference_model.Circular-Reference-Model( @@ -48,7 +44,7 @@ def make_instance(self, include_optional): nested = petstore_api.models.first_ref.FirstRef( category = '', ), ), ) ) - else : + else: return FirstRef( ) """ diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_foo.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_foo.py index f592b1c37018..f92679671c7a 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_foo.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_foo.py @@ -3,21 +3,19 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest import datetime -import petstore_api from petstore_api.models.foo import Foo # noqa: E501 -from petstore_api.rest import ApiException class TestFoo(unittest.TestCase): """Foo unit test stubs""" @@ -28,24 +26,27 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> Foo: """Test Foo include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # model = petstore_api.models.foo.Foo() # noqa: E501 - if include_optional : + # uncomment below to create an instance of `Foo` + """ + model = Foo() # noqa: E501 + if include_optional: return Foo( bar = 'bar' ) - else : + else: return Foo( ) + """ def testFoo(self): """Test Foo""" - inst_req_only = self.make_instance(include_optional=False) - inst_req_and_optional = self.make_instance(include_optional=True) + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_foo_get_default_response.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_foo_get_default_response.py index d2cadc258d8e..3a024f8e6c70 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_foo_get_default_response.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_foo_get_default_response.py @@ -3,21 +3,19 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest import datetime -import petstore_api from petstore_api.models.foo_get_default_response import FooGetDefaultResponse # noqa: E501 -from petstore_api.rest import ApiException class TestFooGetDefaultResponse(unittest.TestCase): """FooGetDefaultResponse unit test stubs""" @@ -28,25 +26,28 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> FooGetDefaultResponse: """Test FooGetDefaultResponse include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # model = petstore_api.models.foo_get_default_response.FooGetDefaultResponse() # noqa: E501 - if include_optional : + # uncomment below to create an instance of `FooGetDefaultResponse` + """ + model = FooGetDefaultResponse() # noqa: E501 + if include_optional: return FooGetDefaultResponse( string = petstore_api.models.foo.Foo( bar = 'bar', ) ) - else : + else: return FooGetDefaultResponse( ) + """ def testFooGetDefaultResponse(self): """Test FooGetDefaultResponse""" - inst_req_only = self.make_instance(include_optional=False) - inst_req_and_optional = self.make_instance(include_optional=True) + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_format_test.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_format_test.py index 4d9f9bb87479..72c8965d4914 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_format_test.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_format_test.py @@ -3,21 +3,19 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest import datetime -import petstore_api from petstore_api.models.format_test import FormatTest # noqa: E501 -from petstore_api.rest import ApiException class TestFormatTest(unittest.TestCase): """FormatTest unit test stubs""" @@ -28,45 +26,46 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> FormatTest: """Test FormatTest include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # model = petstore_api.models.format_test.FormatTest() # noqa: E501 - if include_optional : + # uncomment below to create an instance of `FormatTest` + """ + model = FormatTest() # noqa: E501 + if include_optional: return FormatTest( - integer = 10, - int32 = 20, - int64 = 56, - number = 132.1, - # TODO: pydantic v2: the "float" property aliases the "float" type in the pydantic v2 generator - # float = 54.3, - double = 67.8, - decimal = 1, - string = 'a', - byte = bytes("someting", 'utf-8'), - binary = bytes(b'blah'), - date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - uuid = '72f98069-206d-4f12-9f12-3d1e525a8e84', - password = '0123456789', - pattern_with_digits = '0480728880', + integer = 10, + int32 = 20, + int64 = 56, + number = 32.1, + float = 54.3, + double = 67.8, + decimal = 1, + string = 'a', + string_with_double_quote_pattern = 'this is \"something\"', + byte = 'YQ==', + binary = bytes(b'blah'), + var_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + uuid = '72f98069-206d-4f12-9f12-3d1e525a8e84', + password = '0123456789', + pattern_with_digits = '0480728880', pattern_with_digits_and_delimiter = 'image_480' ) - else : + else: return FormatTest( - number = 122.1, - byte = bytes("someting", 'utf-8'), - date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + number = 32.1, + var_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), password = '0123456789', ) + """ def testFormatTest(self): """Test FormatTest""" - inst_req_only = self.make_instance(include_optional=False) - # TODO - #inst_req_and_optional = self.make_instance(include_optional=True) + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_has_only_read_only.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_has_only_read_only.py index 2a8d2df6a0f8..f106dda48d7e 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_has_only_read_only.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_has_only_read_only.py @@ -3,21 +3,19 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest import datetime -import petstore_api from petstore_api.models.has_only_read_only import HasOnlyReadOnly # noqa: E501 -from petstore_api.rest import ApiException class TestHasOnlyReadOnly(unittest.TestCase): """HasOnlyReadOnly unit test stubs""" @@ -28,25 +26,28 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> HasOnlyReadOnly: """Test HasOnlyReadOnly include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # model = petstore_api.models.has_only_read_only.HasOnlyReadOnly() # noqa: E501 - if include_optional : + # uncomment below to create an instance of `HasOnlyReadOnly` + """ + model = HasOnlyReadOnly() # noqa: E501 + if include_optional: return HasOnlyReadOnly( - bar = '', + bar = '', foo = '' ) - else : + else: return HasOnlyReadOnly( ) + """ def testHasOnlyReadOnly(self): """Test HasOnlyReadOnly""" - inst_req_only = self.make_instance(include_optional=False) - inst_req_and_optional = self.make_instance(include_optional=True) + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_health_check_result.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_health_check_result.py index 21c52053ea22..4f36cde5f8b5 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_health_check_result.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_health_check_result.py @@ -3,21 +3,19 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest import datetime -import petstore_api from petstore_api.models.health_check_result import HealthCheckResult # noqa: E501 -from petstore_api.rest import ApiException class TestHealthCheckResult(unittest.TestCase): """HealthCheckResult unit test stubs""" @@ -28,24 +26,27 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> HealthCheckResult: """Test HealthCheckResult include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # model = petstore_api.models.health_check_result.HealthCheckResult() # noqa: E501 - if include_optional : + # uncomment below to create an instance of `HealthCheckResult` + """ + model = HealthCheckResult() # noqa: E501 + if include_optional: return HealthCheckResult( nullable_message = '' ) - else : + else: return HealthCheckResult( ) + """ def testHealthCheckResult(self): """Test HealthCheckResult""" - inst_req_only = self.make_instance(include_optional=False) - inst_req_and_optional = self.make_instance(include_optional=True) + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_import_test_datetime_api.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_import_test_datetime_api.py index 82e7781c0821..fd9f99b9b39b 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_import_test_datetime_api.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_import_test_datetime_api.py @@ -21,7 +21,7 @@ class TestImportTestDatetimeApi(unittest.TestCase): """ImportTestDatetimeApi unit test stubs""" def setUp(self) -> None: - self.api = ImportTestDatetimeApi() # noqa: E501 + self.api = ImportTestDatetimeApi() def tearDown(self) -> None: pass diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_inner_dict_with_property.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_inner_dict_with_property.py index 8a63b70d5524..1ba15fd984da 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_inner_dict_with_property.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_inner_dict_with_property.py @@ -3,23 +3,19 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" - +""" # noqa: E501 -from __future__ import absolute_import import unittest import datetime -import petstore_api from petstore_api.models.inner_dict_with_property import InnerDictWithProperty # noqa: E501 -from petstore_api.rest import ApiException class TestInnerDictWithProperty(unittest.TestCase): """InnerDictWithProperty unit test stubs""" @@ -30,19 +26,19 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> InnerDictWithProperty: """Test InnerDictWithProperty include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `InnerDictWithProperty` """ - model = petstore_api.models.inner_dict_with_property.InnerDictWithProperty() # noqa: E501 - if include_optional : + model = InnerDictWithProperty() # noqa: E501 + if include_optional: return InnerDictWithProperty( a_property = None ) - else : + else: return InnerDictWithProperty( ) """ diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_int_or_string.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_int_or_string.py index 0de76602cb69..41bf80d02cb5 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_int_or_string.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_int_or_string.py @@ -3,21 +3,19 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" +""" # noqa: E501 import unittest import datetime -import petstore_api from petstore_api.models.int_or_string import IntOrString # noqa: E501 -from petstore_api.rest import ApiException class TestIntOrString(unittest.TestCase): """IntOrString unit test stubs""" @@ -28,18 +26,18 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> IntOrString: """Test IntOrString include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `IntOrString` """ - model = petstore_api.models.int_or_string.IntOrString() # noqa: E501 - if include_optional : + model = IntOrString() # noqa: E501 + if include_optional: return IntOrString( ) - else : + else: return IntOrString( ) """ diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_map_of_array_of_model.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_map_of_array_of_model.py index 31ad486f5c03..2f88aa7935ad 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_map_of_array_of_model.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_map_of_array_of_model.py @@ -3,21 +3,19 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" +""" # noqa: E501 import unittest import datetime -import petstore_api from petstore_api.models.map_of_array_of_model import MapOfArrayOfModel # noqa: E501 -from petstore_api.rest import ApiException class TestMapOfArrayOfModel(unittest.TestCase): """MapOfArrayOfModel unit test stubs""" @@ -28,15 +26,15 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> MapOfArrayOfModel: """Test MapOfArrayOfModel include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `MapOfArrayOfModel` """ - model = petstore_api.models.map_of_array_of_model.MapOfArrayOfModel() # noqa: E501 - if include_optional : + model = MapOfArrayOfModel() # noqa: E501 + if include_optional: return MapOfArrayOfModel( shop_id_to_org_online_lip_map = { 'key' : [ @@ -46,7 +44,7 @@ def make_instance(self, include_optional): ] } ) - else : + else: return MapOfArrayOfModel( ) """ diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_map_test.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_map_test.py index 5e11fed312ad..8aedbfa8f665 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_map_test.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_map_test.py @@ -3,21 +3,19 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest import datetime -import petstore_api from petstore_api.models.map_test import MapTest # noqa: E501 -from petstore_api.rest import ApiException class TestMapTest(unittest.TestCase): """MapTest unit test stubs""" @@ -28,38 +26,40 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> MapTest: """Test MapTest include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # model = petstore_api.models.map_test.MapTest() # noqa: E501 - if include_optional : + # uncomment below to create an instance of `MapTest` + """ + model = MapTest() # noqa: E501 + if include_optional: return MapTest( map_map_of_string = { 'key' : { 'key' : '' } - }, + }, map_of_enum_string = { 'UPPER' : 'UPPER' - }, + }, direct_map = { 'key' : True - }, + }, indirect_map = { 'key' : True } ) - else : + else: return MapTest( ) + """ def testMapTest(self): """Test MapTest""" - # TODO - #inst_req_only = self.make_instance(include_optional=False) - #inst_req_and_optional = self.make_instance(include_optional=True) + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_mixed_properties_and_additional_properties_class.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_mixed_properties_and_additional_properties_class.py index d217b1143656..12a96998a561 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_mixed_properties_and_additional_properties_class.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_mixed_properties_and_additional_properties_class.py @@ -3,21 +3,19 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest import datetime -import petstore_api from petstore_api.models.mixed_properties_and_additional_properties_class import MixedPropertiesAndAdditionalPropertiesClass # noqa: E501 -from petstore_api.rest import ApiException class TestMixedPropertiesAndAdditionalPropertiesClass(unittest.TestCase): """MixedPropertiesAndAdditionalPropertiesClass unit test stubs""" @@ -28,30 +26,33 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> MixedPropertiesAndAdditionalPropertiesClass: """Test MixedPropertiesAndAdditionalPropertiesClass include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # model = petstore_api.models.mixed_properties_and_additional_properties_class.MixedPropertiesAndAdditionalPropertiesClass() # noqa: E501 - if include_optional : + # uncomment below to create an instance of `MixedPropertiesAndAdditionalPropertiesClass` + """ + model = MixedPropertiesAndAdditionalPropertiesClass() # noqa: E501 + if include_optional: return MixedPropertiesAndAdditionalPropertiesClass( - uuid = '', - date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + uuid = '', + date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), map = { 'key' : petstore_api.models.animal.Animal( class_name = '', color = 'red', ) } ) - else : + else: return MixedPropertiesAndAdditionalPropertiesClass( ) + """ def testMixedPropertiesAndAdditionalPropertiesClass(self): """Test MixedPropertiesAndAdditionalPropertiesClass""" - inst_req_only = self.make_instance(include_optional=False) - inst_req_and_optional = self.make_instance(include_optional=True) + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_model200_response.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_model200_response.py index f7e9677e0074..f5e65f1aca4e 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_model200_response.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_model200_response.py @@ -3,21 +3,19 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest import datetime -import petstore_api from petstore_api.models.model200_response import Model200Response # noqa: E501 -from petstore_api.rest import ApiException class TestModel200Response(unittest.TestCase): """Model200Response unit test stubs""" @@ -28,25 +26,28 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> Model200Response: """Test Model200Response include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # model = petstore_api.models.model200_response.Model200Response() # noqa: E501 - if include_optional : + # uncomment below to create an instance of `Model200Response` + """ + model = Model200Response() # noqa: E501 + if include_optional: return Model200Response( - name = 56, - _class = '' + name = 56, + var_class = '' ) - else : + else: return Model200Response( ) + """ def testModel200Response(self): """Test Model200Response""" - inst_req_only = self.make_instance(include_optional=False) - inst_req_and_optional = self.make_instance(include_optional=True) + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_model_return.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_model_return.py index b0f9d9c4f7f9..e011892fb0b3 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_model_return.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_model_return.py @@ -3,21 +3,19 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest import datetime -import petstore_api from petstore_api.models.model_return import ModelReturn # noqa: E501 -from petstore_api.rest import ApiException class TestModelReturn(unittest.TestCase): """ModelReturn unit test stubs""" @@ -28,24 +26,27 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> ModelReturn: """Test ModelReturn include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # model = petstore_api.models.model_return.ModelReturn() # noqa: E501 - if include_optional : + # uncomment below to create an instance of `ModelReturn` + """ + model = ModelReturn() # noqa: E501 + if include_optional: return ModelReturn( - _return = 56 + var_return = 56 ) - else : + else: return ModelReturn( ) + """ def testModelReturn(self): """Test ModelReturn""" - inst_req_only = self.make_instance(include_optional=False) - inst_req_and_optional = self.make_instance(include_optional=True) + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_name.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_name.py index bbf11fd231ea..be7ddc8461d1 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_name.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_name.py @@ -3,21 +3,19 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest import datetime -import petstore_api from petstore_api.models.name import Name # noqa: E501 -from petstore_api.rest import ApiException class TestName(unittest.TestCase): """Name unit test stubs""" @@ -28,28 +26,31 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> Name: """Test Name include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # model = petstore_api.models.name.Name() # noqa: E501 - if include_optional : + # uncomment below to create an instance of `Name` + """ + model = Name() # noqa: E501 + if include_optional: return Name( - name = 56, - snake_case = 56, - _property = '', - _123_number = 56 + name = 56, + snake_case = 56, + var_property = '', + var_123_number = 56 ) - else : + else: return Name( name = 56, ) + """ def testName(self): """Test Name""" - inst_req_only = self.make_instance(include_optional=False) - inst_req_and_optional = self.make_instance(include_optional=True) + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_nullable_class.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_nullable_class.py index 7aa59f46bbd8..b1170db23c4d 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_nullable_class.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_nullable_class.py @@ -3,21 +3,19 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest import datetime -import petstore_api from petstore_api.models.nullable_class import NullableClass # noqa: E501 -from petstore_api.rest import ApiException class TestNullableClass(unittest.TestCase): """NullableClass unit test stubs""" @@ -28,50 +26,52 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> NullableClass: """Test NullableClass include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # model = petstore_api.models.nullable_class.NullableClass() # noqa: E501 - if include_optional : + # uncomment below to create an instance of `NullableClass` + """ + model = NullableClass() # noqa: E501 + if include_optional: return NullableClass( required_integer_prop = 56, - integer_prop = 56, - number_prop = 1.337, - boolean_prop = True, - string_prop = '', - date_prop = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - datetime_prop = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + integer_prop = 56, + number_prop = 1.337, + boolean_prop = True, + string_prop = '', + date_prop = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + datetime_prop = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), array_nullable_prop = [ None - ], + ], array_and_items_nullable_prop = [ None - ], + ], array_items_nullable = [ None - ], + ], object_nullable_prop = { 'key' : None - }, + }, object_and_items_nullable_prop = { 'key' : None - }, + }, object_items_nullable = { 'key' : None } ) - else : + else: return NullableClass( - required_integer_prop = 56 + required_integer_prop = 56, ) + """ def testNullableClass(self): """Test NullableClass""" - # TODO - #inst_req_only = self.make_instance(include_optional=False) - #inst_req_and_optional = self.make_instance(include_optional=True) + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_nullable_property.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_nullable_property.py index 34129457b1d7..aa34b84e7973 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_nullable_property.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_nullable_property.py @@ -3,21 +3,19 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" +""" # noqa: E501 import unittest import datetime -import petstore_api from petstore_api.models.nullable_property import NullableProperty # noqa: E501 -from petstore_api.rest import ApiException class TestNullableProperty(unittest.TestCase): """NullableProperty unit test stubs""" @@ -28,20 +26,20 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> NullableProperty: """Test NullableProperty include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `NullableProperty` """ - model = petstore_api.models.nullable_property.NullableProperty() # noqa: E501 - if include_optional : + model = NullableProperty() # noqa: E501 + if include_optional: return NullableProperty( - id = 56, + id = 56, name = 'AUR,rZ#UM/?R,Fp^l6$ARjbhJk C>' ) - else : + else: return NullableProperty( id = 56, name = 'AUR,rZ#UM/?R,Fp^l6$ARjbhJk C>', diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_number_only.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_number_only.py index 776946c3d774..cfc8c5c778c4 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_number_only.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_number_only.py @@ -3,21 +3,19 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest import datetime -import petstore_api from petstore_api.models.number_only import NumberOnly # noqa: E501 -from petstore_api.rest import ApiException class TestNumberOnly(unittest.TestCase): """NumberOnly unit test stubs""" @@ -28,24 +26,27 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> NumberOnly: """Test NumberOnly include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # model = petstore_api.models.number_only.NumberOnly() # noqa: E501 - if include_optional : + # uncomment below to create an instance of `NumberOnly` + """ + model = NumberOnly() # noqa: E501 + if include_optional: return NumberOnly( just_number = 1.337 ) - else : + else: return NumberOnly( ) + """ def testNumberOnly(self): """Test NumberOnly""" - inst_req_only = self.make_instance(include_optional=False) - inst_req_and_optional = self.make_instance(include_optional=True) + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_object_to_test_additional_properties.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_object_to_test_additional_properties.py index f1f354cad251..d080b21afb32 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_object_to_test_additional_properties.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_object_to_test_additional_properties.py @@ -3,21 +3,19 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" +""" # noqa: E501 import unittest import datetime -import petstore_api from petstore_api.models.object_to_test_additional_properties import ObjectToTestAdditionalProperties # noqa: E501 -from petstore_api.rest import ApiException class TestObjectToTestAdditionalProperties(unittest.TestCase): """ObjectToTestAdditionalProperties unit test stubs""" @@ -28,19 +26,19 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> ObjectToTestAdditionalProperties: """Test ObjectToTestAdditionalProperties include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `ObjectToTestAdditionalProperties` """ - model = petstore_api.models.object_to_test_additional_properties.ObjectToTestAdditionalProperties() # noqa: E501 - if include_optional : + model = ObjectToTestAdditionalProperties() # noqa: E501 + if include_optional: return ObjectToTestAdditionalProperties( var_property = True ) - else : + else: return ObjectToTestAdditionalProperties( ) """ diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_object_with_deprecated_fields.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_object_with_deprecated_fields.py index e0cbf3e98a51..5f04c63a3cb3 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_object_with_deprecated_fields.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_object_with_deprecated_fields.py @@ -3,21 +3,19 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest import datetime -import petstore_api from petstore_api.models.object_with_deprecated_fields import ObjectWithDeprecatedFields # noqa: E501 -from petstore_api.rest import ApiException class TestObjectWithDeprecatedFields(unittest.TestCase): """ObjectWithDeprecatedFields unit test stubs""" @@ -28,30 +26,33 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> ObjectWithDeprecatedFields: """Test ObjectWithDeprecatedFields include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # model = petstore_api.models.object_with_deprecated_fields.ObjectWithDeprecatedFields() # noqa: E501 - if include_optional : + # uncomment below to create an instance of `ObjectWithDeprecatedFields` + """ + model = ObjectWithDeprecatedFields() # noqa: E501 + if include_optional: return ObjectWithDeprecatedFields( - uuid = '', - id = 1.337, + uuid = '', + id = 1.337, deprecated_ref = petstore_api.models.deprecated_object.DeprecatedObject( - name = '', ), + name = '', ), bars = [ 'bar' ] ) - else : + else: return ObjectWithDeprecatedFields( ) + """ def testObjectWithDeprecatedFields(self): """Test ObjectWithDeprecatedFields""" - inst_req_only = self.make_instance(include_optional=False) - inst_req_and_optional = self.make_instance(include_optional=True) + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_one_of_enum_string.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_one_of_enum_string.py index ed959c1479c2..3db614a16caf 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_one_of_enum_string.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_one_of_enum_string.py @@ -3,21 +3,19 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" +""" # noqa: E501 import unittest import datetime -import petstore_api from petstore_api.models.one_of_enum_string import OneOfEnumString # noqa: E501 -from petstore_api.rest import ApiException class TestOneOfEnumString(unittest.TestCase): """OneOfEnumString unit test stubs""" @@ -28,18 +26,18 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> OneOfEnumString: """Test OneOfEnumString include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `OneOfEnumString` """ - model = petstore_api.models.one_of_enum_string.OneOfEnumString() # noqa: E501 - if include_optional : + model = OneOfEnumString() # noqa: E501 + if include_optional: return OneOfEnumString( ) - else : + else: return OneOfEnumString( ) """ diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_order.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_order.py index d6ec36f83a0d..3334ed8f949a 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_order.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_order.py @@ -3,21 +3,19 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest import datetime -import petstore_api from petstore_api.models.order import Order # noqa: E501 -from petstore_api.rest import ApiException class TestOrder(unittest.TestCase): """Order unit test stubs""" @@ -28,29 +26,32 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> Order: """Test Order include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # model = petstore_api.models.order.Order() # noqa: E501 - if include_optional : + # uncomment below to create an instance of `Order` + """ + model = Order() # noqa: E501 + if include_optional: return Order( - id = 56, - pet_id = 56, - quantity = 56, - ship_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - status = 'placed', + id = 56, + pet_id = 56, + quantity = 56, + ship_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + status = 'placed', complete = True ) - else : + else: return Order( ) + """ def testOrder(self): """Test Order""" - inst_req_only = self.make_instance(include_optional=False) - inst_req_and_optional = self.make_instance(include_optional=True) + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_outer_composite.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_outer_composite.py index c6fd58849377..7df32d8c6725 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_outer_composite.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_outer_composite.py @@ -3,21 +3,19 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest import datetime -import petstore_api from petstore_api.models.outer_composite import OuterComposite # noqa: E501 -from petstore_api.rest import ApiException class TestOuterComposite(unittest.TestCase): """OuterComposite unit test stubs""" @@ -28,26 +26,29 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> OuterComposite: """Test OuterComposite include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # model = petstore_api.models.outer_composite.OuterComposite() # noqa: E501 - if include_optional : + # uncomment below to create an instance of `OuterComposite` + """ + model = OuterComposite() # noqa: E501 + if include_optional: return OuterComposite( - my_number = 1.337, - my_string = '', + my_number = 1.337, + my_string = '', my_boolean = True ) - else : + else: return OuterComposite( ) + """ def testOuterComposite(self): """Test OuterComposite""" - inst_req_only = self.make_instance(include_optional=False) - inst_req_and_optional = self.make_instance(include_optional=True) + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_outer_enum.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_outer_enum.py index aa195260019e..5da04a9a45c0 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_outer_enum.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_outer_enum.py @@ -3,21 +3,19 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest import datetime -import petstore_api from petstore_api.models.outer_enum import OuterEnum # noqa: E501 -from petstore_api.rest import ApiException class TestOuterEnum(unittest.TestCase): """OuterEnum unit test stubs""" @@ -30,7 +28,7 @@ def tearDown(self): def testOuterEnum(self): """Test OuterEnum""" - inst = OuterEnum("placed") + # inst = OuterEnum() if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_outer_enum_default_value.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_outer_enum_default_value.py index f8fba3bd79ad..df6499565fdb 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_outer_enum_default_value.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_outer_enum_default_value.py @@ -3,21 +3,19 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest import datetime -import petstore_api from petstore_api.models.outer_enum_default_value import OuterEnumDefaultValue # noqa: E501 -from petstore_api.rest import ApiException class TestOuterEnumDefaultValue(unittest.TestCase): """OuterEnumDefaultValue unit test stubs""" diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_outer_enum_integer.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_outer_enum_integer.py index ce1e47c61b14..7b89b806ba24 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_outer_enum_integer.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_outer_enum_integer.py @@ -3,21 +3,19 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest import datetime -import petstore_api from petstore_api.models.outer_enum_integer import OuterEnumInteger # noqa: E501 -from petstore_api.rest import ApiException class TestOuterEnumInteger(unittest.TestCase): """OuterEnumInteger unit test stubs""" diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_outer_enum_integer_default_value.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_outer_enum_integer_default_value.py index f0b707fca778..532616fdee1f 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_outer_enum_integer_default_value.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_outer_enum_integer_default_value.py @@ -3,21 +3,19 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest import datetime -import petstore_api from petstore_api.models.outer_enum_integer_default_value import OuterEnumIntegerDefaultValue # noqa: E501 -from petstore_api.rest import ApiException class TestOuterEnumIntegerDefaultValue(unittest.TestCase): """OuterEnumIntegerDefaultValue unit test stubs""" @@ -28,23 +26,9 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): - """Test OuterEnumIntegerDefaultValue - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # model = petstore_api.models.outer_enum_integer_default_value.OuterEnumIntegerDefaultValue() # noqa: E501 - if include_optional : - return OuterEnumIntegerDefaultValue( - ) - else : - return OuterEnumIntegerDefaultValue( - ) - def testOuterEnumIntegerDefaultValue(self): """Test OuterEnumIntegerDefaultValue""" - #inst_req_only = self.make_instance(include_optional=False) - #inst_req_and_optional = self.make_instance(include_optional=True) + # inst = OuterEnumIntegerDefaultValue() if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_outer_object_with_enum_property.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_outer_object_with_enum_property.py index 35258d5d74ac..27e518b00593 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_outer_object_with_enum_property.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_outer_object_with_enum_property.py @@ -3,21 +3,19 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest import datetime -import petstore_api from petstore_api.models.outer_object_with_enum_property import OuterObjectWithEnumProperty # noqa: E501 -from petstore_api.rest import ApiException class TestOuterObjectWithEnumProperty(unittest.TestCase): """OuterObjectWithEnumProperty unit test stubs""" @@ -28,20 +26,24 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> OuterObjectWithEnumProperty: """Test OuterObjectWithEnumProperty include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # model = petstore_api.models.outer_object_with_enum_property.OuterObjectWithEnumProperty() # noqa: E501 - if include_optional : + # uncomment below to create an instance of `OuterObjectWithEnumProperty` + """ + model = OuterObjectWithEnumProperty() # noqa: E501 + if include_optional: return OuterObjectWithEnumProperty( + str_value = 'placed', value = 2 ) - else : + else: return OuterObjectWithEnumProperty( value = 2, ) + """ def testOuterObjectWithEnumProperty(self): """Test OuterObjectWithEnumProperty""" diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_parent.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_parent.py index 2a74505f08a1..ea206970c9cf 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_parent.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_parent.py @@ -3,21 +3,19 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" +""" # noqa: E501 import unittest import datetime -import petstore_api from petstore_api.models.parent import Parent # noqa: E501 -from petstore_api.rest import ApiException class TestParent(unittest.TestCase): """Parent unit test stubs""" @@ -28,22 +26,22 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> Parent: """Test Parent include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `Parent` """ - model = petstore_api.models.parent.Parent() # noqa: E501 - if include_optional : + model = Parent() # noqa: E501 + if include_optional: return Parent( optional_dict = { 'key' : petstore_api.models.inner_dict_with_property.InnerDictWithProperty( a_property = petstore_api.models.a_property.aProperty(), ) } ) - else : + else: return Parent( ) """ diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_parent_with_optional_dict.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_parent_with_optional_dict.py index 25b769e3d390..2c668a7047a8 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_parent_with_optional_dict.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_parent_with_optional_dict.py @@ -3,23 +3,19 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" - +""" # noqa: E501 -from __future__ import absolute_import import unittest import datetime -import petstore_api from petstore_api.models.parent_with_optional_dict import ParentWithOptionalDict # noqa: E501 -from petstore_api.rest import ApiException class TestParentWithOptionalDict(unittest.TestCase): """ParentWithOptionalDict unit test stubs""" @@ -30,22 +26,22 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> ParentWithOptionalDict: """Test ParentWithOptionalDict include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `ParentWithOptionalDict` """ - model = petstore_api.models.parent_with_optional_dict.ParentWithOptionalDict() # noqa: E501 - if include_optional : + model = ParentWithOptionalDict() # noqa: E501 + if include_optional: return ParentWithOptionalDict( optional_dict = { 'key' : petstore_api.models.inner_dict_with_property.InnerDictWithProperty( a_property = petstore_api.models.a_property.aProperty(), ) } ) - else : + else: return ParentWithOptionalDict( ) """ diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_pet.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_pet.py index 6d3fd2f35b04..f89e6cdf4b40 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_pet.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_pet.py @@ -3,21 +3,19 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest import datetime -import petstore_api from petstore_api.models.pet import Pet # noqa: E501 -from petstore_api.rest import ApiException class TestPet(unittest.TestCase): """Pet unit test stubs""" @@ -28,41 +26,44 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> Pet: """Test Pet include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # model = petstore_api.models.pet.Pet() # noqa: E501 - if include_optional : + # uncomment below to create an instance of `Pet` + """ + model = Pet() # noqa: E501 + if include_optional: return Pet( - id = 56, + id = 56, category = petstore_api.models.category.Category( id = 56, - name = 'default-name', ), - name = 'doggie', + name = 'default-name', ), + name = 'doggie', photo_urls = [ '' - ], + ], tags = [ petstore_api.models.tag.Tag( id = 56, name = '', ) - ], + ], status = 'available' ) - else : + else: return Pet( name = 'doggie', photo_urls = [ '' ], ) + """ def testPet(self): """Test Pet""" - inst_req_only = self.make_instance(include_optional=False) - inst_req_and_optional = self.make_instance(include_optional=True) + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_pet_api.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_pet_api.py index 77665df879f1..3c86f126b089 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_pet_api.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_pet_api.py @@ -3,88 +3,86 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import petstore_api from petstore_api.api.pet_api import PetApi # noqa: E501 -from petstore_api.rest import ApiException class TestPetApi(unittest.TestCase): """PetApi unit test stubs""" - def setUp(self): - self.api = petstore_api.api.pet_api.PetApi() # noqa: E501 + def setUp(self) -> None: + self.api = PetApi() - def tearDown(self): + def tearDown(self) -> None: pass - def test_add_pet(self): + def test_add_pet(self) -> None: """Test case for add_pet Add a new pet to the store # noqa: E501 """ pass - def test_delete_pet(self): + def test_delete_pet(self) -> None: """Test case for delete_pet Deletes a pet # noqa: E501 """ pass - def test_find_pets_by_status(self): + def test_find_pets_by_status(self) -> None: """Test case for find_pets_by_status Finds Pets by status # noqa: E501 """ pass - def test_find_pets_by_tags(self): + def test_find_pets_by_tags(self) -> None: """Test case for find_pets_by_tags Finds Pets by tags # noqa: E501 """ pass - def test_get_pet_by_id(self): + def test_get_pet_by_id(self) -> None: """Test case for get_pet_by_id Find pet by ID # noqa: E501 """ pass - def test_update_pet(self): + def test_update_pet(self) -> None: """Test case for update_pet Update an existing pet # noqa: E501 """ pass - def test_update_pet_with_form(self): + def test_update_pet_with_form(self) -> None: """Test case for update_pet_with_form Updates a pet in the store with form data # noqa: E501 """ pass - def test_upload_file(self): + def test_upload_file(self) -> None: """Test case for upload_file uploads an image # noqa: E501 """ pass - def test_upload_file_with_required_file(self): + def test_upload_file_with_required_file(self) -> None: """Test case for upload_file_with_required_file uploads an image (required) # noqa: E501 diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_pig.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_pig.py index 95e99f35a738..cd3f112aabc5 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_pig.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_pig.py @@ -3,21 +3,19 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest import datetime -import petstore_api from petstore_api.models.pig import Pig # noqa: E501 -from petstore_api.rest import ApiException class TestPig(unittest.TestCase): """Pig unit test stubs""" @@ -28,6 +26,28 @@ def setUp(self): def tearDown(self): pass + def make_instance(self, include_optional) -> Pig: + """Test Pig + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `Pig` + """ + model = Pig() # noqa: E501 + if include_optional: + return Pig( + class_name = '', + color = '', + size = 56 + ) + else: + return Pig( + class_name = '', + color = '', + size = 56, + ) + """ + def testPig(self): """Test Pig""" # inst_req_only = self.make_instance(include_optional=False) diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_property_name_collision.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_property_name_collision.py index 04ab956f191d..a869945b3204 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_property_name_collision.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_property_name_collision.py @@ -3,21 +3,19 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" +""" # noqa: E501 import unittest import datetime -import petstore_api from petstore_api.models.property_name_collision import PropertyNameCollision # noqa: E501 -from petstore_api.rest import ApiException class TestPropertyNameCollision(unittest.TestCase): """PropertyNameCollision unit test stubs""" @@ -28,21 +26,21 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> PropertyNameCollision: """Test PropertyNameCollision include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `PropertyNameCollision` """ - model = petstore_api.models.property_name_collision.PropertyNameCollision() # noqa: E501 - if include_optional : + model = PropertyNameCollision() # noqa: E501 + if include_optional: return PropertyNameCollision( - underscoreType = '', - type = '', - typeWithUnderscore = '' + underscore_type = '', + type = '', + type_with_underscore = '' ) - else : + else: return PropertyNameCollision( ) """ diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_read_only_first.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_read_only_first.py index 310e4b1aebbe..1026a73205d4 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_read_only_first.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_read_only_first.py @@ -3,21 +3,19 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest import datetime -import petstore_api from petstore_api.models.read_only_first import ReadOnlyFirst # noqa: E501 -from petstore_api.rest import ApiException class TestReadOnlyFirst(unittest.TestCase): """ReadOnlyFirst unit test stubs""" @@ -28,25 +26,28 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> ReadOnlyFirst: """Test ReadOnlyFirst include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # model = petstore_api.models.read_only_first.ReadOnlyFirst() # noqa: E501 - if include_optional : + # uncomment below to create an instance of `ReadOnlyFirst` + """ + model = ReadOnlyFirst() # noqa: E501 + if include_optional: return ReadOnlyFirst( - bar = '', + bar = '', baz = '' ) - else : + else: return ReadOnlyFirst( ) + """ def testReadOnlyFirst(self): """Test ReadOnlyFirst""" - inst_req_only = self.make_instance(include_optional=False) - inst_req_and_optional = self.make_instance(include_optional=True) + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_second_circular_all_of_ref.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_second_circular_all_of_ref.py index 3b9a26f72d82..c1ef0d1b7db1 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_second_circular_all_of_ref.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_second_circular_all_of_ref.py @@ -36,13 +36,10 @@ def make_instance(self, include_optional) -> SecondCircularAllOfRef: model = SecondCircularAllOfRef() # noqa: E501 if include_optional: return SecondCircularAllOfRef( + name = '', circular_all_of_ref = [ - petstore_api.models.circular_all_of_ref.CircularAllOfRef( - second_circular_all_of_ref = [ - petstore_api.models.second_circular_all_of_ref.SecondCircularAllOfRef() - ], ) - ], - name = '' + petstore_api.models.circular_all_of_ref.CircularAllOfRef() + ] ) else: return SecondCircularAllOfRef( diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_second_ref.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_second_ref.py index 782892fd4e17..44194f94544f 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_second_ref.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_second_ref.py @@ -3,23 +3,19 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" - +""" # noqa: E501 -from __future__ import absolute_import import unittest import datetime -import petstore_api from petstore_api.models.second_ref import SecondRef # noqa: E501 -from petstore_api.rest import ApiException class TestSecondRef(unittest.TestCase): """SecondRef unit test stubs""" @@ -30,17 +26,17 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> SecondRef: """Test SecondRef include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `SecondRef` """ - model = petstore_api.models.second_ref.SecondRef() # noqa: E501 - if include_optional : + model = SecondRef() # noqa: E501 + if include_optional: return SecondRef( - category = '', + category = '', circular_ref = petstore_api.models.circular_reference_model.Circular-Reference-Model( size = 56, nested = petstore_api.models.first_ref.FirstRef( @@ -48,7 +44,7 @@ def make_instance(self, include_optional): self_ref = petstore_api.models.second_ref.SecondRef( category = '', ), ), ) ) - else : + else: return SecondRef( ) """ diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_self_reference_model.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_self_reference_model.py index b3dd7ada2b2a..8c23008b26ed 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_self_reference_model.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_self_reference_model.py @@ -3,21 +3,19 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest import datetime -import petstore_api from petstore_api.models.self_reference_model import SelfReferenceModel # noqa: E501 -from petstore_api.rest import ApiException class TestSelfReferenceModel(unittest.TestCase): """SelfReferenceModel unit test stubs""" @@ -28,17 +26,17 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> SelfReferenceModel: """Test SelfReferenceModel include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `SelfReferenceModel` """ - model = petstore_api.models.self_reference_model.SelfReferenceModel() # noqa: E501 - if include_optional : + model = SelfReferenceModel() # noqa: E501 + if include_optional: return SelfReferenceModel( - size = 56, + size = 56, nested = petstore_api.models.dummy_model.Dummy-Model( category = '', self_ref = petstore_api.models.self_reference_model.Self-Reference-Model( @@ -46,7 +44,7 @@ def make_instance(self, include_optional): nested = petstore_api.models.dummy_model.Dummy-Model( category = '', ), ), ) ) - else : + else: return SelfReferenceModel( ) """ diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_single_ref_type.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_single_ref_type.py index 888a1a7b6da3..f5642b8376b0 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_single_ref_type.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_single_ref_type.py @@ -3,21 +3,19 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest import datetime -import petstore_api from petstore_api.models.single_ref_type import SingleRefType # noqa: E501 -from petstore_api.rest import ApiException class TestSingleRefType(unittest.TestCase): """SingleRefType unit test stubs""" @@ -28,23 +26,9 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): - """Test SingleRefType - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # model = petstore_api.models.single_ref_type.SingleRefType() # noqa: E501 - if include_optional : - return SingleRefType( - ) - else : - return SingleRefType( - ) - def testSingleRefType(self): """Test SingleRefType""" - #inst_req_only = self.make_instance(include_optional=False) - #inst_req_and_optional = self.make_instance(include_optional=True) + # inst = SingleRefType() if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_special_character_enum.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_special_character_enum.py index 028f55599e49..ee5baab13095 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_special_character_enum.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_special_character_enum.py @@ -3,21 +3,19 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest import datetime -import petstore_api from petstore_api.models.special_character_enum import SpecialCharacterEnum # noqa: E501 -from petstore_api.rest import ApiException class TestSpecialCharacterEnum(unittest.TestCase): """SpecialCharacterEnum unit test stubs""" diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_special_model_name.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_special_model_name.py index eb487cd42fc1..12ec90a9067f 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_special_model_name.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_special_model_name.py @@ -3,21 +3,19 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest import datetime -import petstore_api from petstore_api.models.special_model_name import SpecialModelName # noqa: E501 -from petstore_api.rest import ApiException class TestSpecialModelName(unittest.TestCase): """SpecialModelName unit test stubs""" @@ -28,24 +26,27 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> SpecialModelName: """Test SpecialModelName include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # model = petstore_api.models.special_model_name.SpecialModelName() # noqa: E501 - if include_optional : + # uncomment below to create an instance of `SpecialModelName` + """ + model = SpecialModelName() # noqa: E501 + if include_optional: return SpecialModelName( special_property_name = 56 ) - else : + else: return SpecialModelName( ) + """ def testSpecialModelName(self): """Test SpecialModelName""" - inst_req_only = self.make_instance(include_optional=False) - inst_req_and_optional = self.make_instance(include_optional=True) + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_special_name.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_special_name.py index 1f4287871a8e..afaf0996b74c 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_special_name.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_special_name.py @@ -3,21 +3,19 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest import datetime -import petstore_api from petstore_api.models.special_name import SpecialName # noqa: E501 -from petstore_api.rest import ApiException class TestSpecialName(unittest.TestCase): """SpecialName unit test stubs""" @@ -28,23 +26,23 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> SpecialName: """Test SpecialName include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `SpecialName` """ - model = petstore_api.models.special_name.SpecialName() # noqa: E501 - if include_optional : + model = SpecialName() # noqa: E501 + if include_optional: return SpecialName( - var_property = 56, + var_property = 56, var_async = petstore_api.models.category.Category( id = 56, - name = 'default-name', ), - status = 'available' + name = 'default-name', ), + var_schema = 'available' ) - else : + else: return SpecialName( ) """ diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_store_api.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_store_api.py index 81848d24a67e..a6f71182207e 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_store_api.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_store_api.py @@ -3,53 +3,51 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import petstore_api from petstore_api.api.store_api import StoreApi # noqa: E501 -from petstore_api.rest import ApiException class TestStoreApi(unittest.TestCase): """StoreApi unit test stubs""" - def setUp(self): - self.api = petstore_api.api.store_api.StoreApi() # noqa: E501 + def setUp(self) -> None: + self.api = StoreApi() - def tearDown(self): + def tearDown(self) -> None: pass - def test_delete_order(self): + def test_delete_order(self) -> None: """Test case for delete_order Delete purchase order by ID # noqa: E501 """ pass - def test_get_inventory(self): + def test_get_inventory(self) -> None: """Test case for get_inventory Returns pet inventories by status # noqa: E501 """ pass - def test_get_order_by_id(self): + def test_get_order_by_id(self) -> None: """Test case for get_order_by_id Find purchase order by ID # noqa: E501 """ pass - def test_place_order(self): + def test_place_order(self) -> None: """Test case for place_order Place an order for a pet # noqa: E501 diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_tag.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_tag.py index 9680300032f1..d5ce3fb8a0cf 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_tag.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_tag.py @@ -3,21 +3,19 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest import datetime -import petstore_api from petstore_api.models.tag import Tag # noqa: E501 -from petstore_api.rest import ApiException class TestTag(unittest.TestCase): """Tag unit test stubs""" @@ -28,25 +26,28 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> Tag: """Test Tag include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # model = petstore_api.models.tag.Tag() # noqa: E501 - if include_optional : + # uncomment below to create an instance of `Tag` + """ + model = Tag() # noqa: E501 + if include_optional: return Tag( - id = 56, + id = 56, name = '' ) - else : + else: return Tag( ) + """ def testTag(self): """Test Tag""" - inst_req_only = self.make_instance(include_optional=False) - inst_req_and_optional = self.make_instance(include_optional=True) + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_tiger.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_tiger.py index 83c91cea1a0d..7aab61a46066 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_tiger.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_tiger.py @@ -3,21 +3,19 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" +""" # noqa: E501 import unittest import datetime -import petstore_api from petstore_api.models.tiger import Tiger # noqa: E501 -from petstore_api.rest import ApiException class TestTiger(unittest.TestCase): """Tiger unit test stubs""" @@ -28,19 +26,19 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> Tiger: """Test Tiger include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `Tiger` """ - model = petstore_api.models.tiger.Tiger() # noqa: E501 - if include_optional : + model = Tiger() # noqa: E501 + if include_optional: return Tiger( skill = '' ) - else : + else: return Tiger( ) """ diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_user.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_user.py index 174c8e06be5d..a1ce46e87a19 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_user.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_user.py @@ -3,21 +3,19 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest import datetime -import petstore_api from petstore_api.models.user import User # noqa: E501 -from petstore_api.rest import ApiException class TestUser(unittest.TestCase): """User unit test stubs""" @@ -28,31 +26,34 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> User: """Test User include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # model = petstore_api.models.user.User() # noqa: E501 - if include_optional : + # uncomment below to create an instance of `User` + """ + model = User() # noqa: E501 + if include_optional: return User( - id = 56, - username = '', - first_name = '', - last_name = '', - email = '', - password = '', - phone = '', + id = 56, + username = '', + first_name = '', + last_name = '', + email = '', + password = '', + phone = '', user_status = 56 ) - else : + else: return User( ) + """ def testUser(self): """Test User""" - inst_req_only = self.make_instance(include_optional=False) - inst_req_and_optional = self.make_instance(include_optional=True) + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_user_api.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_user_api.py index 6df730fba2b1..de95331f8853 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_user_api.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_user_api.py @@ -3,81 +3,79 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import petstore_api from petstore_api.api.user_api import UserApi # noqa: E501 -from petstore_api.rest import ApiException class TestUserApi(unittest.TestCase): """UserApi unit test stubs""" - def setUp(self): - self.api = petstore_api.api.user_api.UserApi() # noqa: E501 + def setUp(self) -> None: + self.api = UserApi() - def tearDown(self): + def tearDown(self) -> None: pass - def test_create_user(self): + def test_create_user(self) -> None: """Test case for create_user Create user # noqa: E501 """ pass - def test_create_users_with_array_input(self): + def test_create_users_with_array_input(self) -> None: """Test case for create_users_with_array_input Creates list of users with given input array # noqa: E501 """ pass - def test_create_users_with_list_input(self): + def test_create_users_with_list_input(self) -> None: """Test case for create_users_with_list_input Creates list of users with given input array # noqa: E501 """ pass - def test_delete_user(self): + def test_delete_user(self) -> None: """Test case for delete_user Delete user # noqa: E501 """ pass - def test_get_user_by_name(self): + def test_get_user_by_name(self) -> None: """Test case for get_user_by_name Get user by user name # noqa: E501 """ pass - def test_login_user(self): + def test_login_user(self) -> None: """Test case for login_user Logs user into the system # noqa: E501 """ pass - def test_logout_user(self): + def test_logout_user(self) -> None: """Test case for logout_user Logs out current logged in user session # noqa: E501 """ pass - def test_update_user(self): + def test_update_user(self) -> None: """Test case for update_user Updated user # noqa: E501 diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_with_nested_one_of.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_with_nested_one_of.py index 994004dd7ab7..43c4a69a29bb 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_with_nested_one_of.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_with_nested_one_of.py @@ -3,21 +3,19 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest import datetime -import petstore_api from petstore_api.models.with_nested_one_of import WithNestedOneOf # noqa: E501 -from petstore_api.rest import ApiException class TestWithNestedOneOf(unittest.TestCase): """WithNestedOneOf unit test stubs""" @@ -28,25 +26,29 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> WithNestedOneOf: """Test WithNestedOneOf include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # model = petstore_api.models.with_nested_one_of.WithNestedOneOf() # noqa: E501 - if include_optional : + # uncomment below to create an instance of `WithNestedOneOf` + """ + model = WithNestedOneOf() # noqa: E501 + if include_optional: return WithNestedOneOf( - size = 56, - nested_pig = None + size = 56, + nested_pig = None, + nested_oneof_enum_string = None ) - else : + else: return WithNestedOneOf( ) + """ def testWithNestedOneOf(self): """Test WithNestedOneOf""" - #inst_req_only = self.make_instance(include_optional=False) - #inst_req_and_optional = self.make_instance(include_optional=True) + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_additional_properties_any_type.py b/samples/openapi3/client/petstore/python/test/test_additional_properties_any_type.py index c2c9c7c58069..48603ddb4033 100644 --- a/samples/openapi3/client/petstore/python/test/test_additional_properties_any_type.py +++ b/samples/openapi3/client/petstore/python/test/test_additional_properties_any_type.py @@ -3,21 +3,18 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" +""" # noqa: E501 import unittest -import datetime -import petstore_api -from petstore_api.models.additional_properties_any_type import AdditionalPropertiesAnyType # noqa: E501 -from petstore_api.rest import ApiException +from petstore_api.models.additional_properties_any_type import AdditionalPropertiesAnyType class TestAdditionalPropertiesAnyType(unittest.TestCase): """AdditionalPropertiesAnyType unit test stubs""" @@ -28,19 +25,19 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> AdditionalPropertiesAnyType: """Test AdditionalPropertiesAnyType - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `AdditionalPropertiesAnyType` """ - model = petstore_api.models.additional_properties_any_type.AdditionalPropertiesAnyType() # noqa: E501 - if include_optional : + model = AdditionalPropertiesAnyType() + if include_optional: return AdditionalPropertiesAnyType( name = '' ) - else : + else: return AdditionalPropertiesAnyType( ) """ diff --git a/samples/openapi3/client/petstore/python/test/test_additional_properties_class.py b/samples/openapi3/client/petstore/python/test/test_additional_properties_class.py index e3b48bedd571..0261c8f4a004 100644 --- a/samples/openapi3/client/petstore/python/test/test_additional_properties_class.py +++ b/samples/openapi3/client/petstore/python/test/test_additional_properties_class.py @@ -3,21 +3,18 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" +""" # noqa: E501 import unittest -import datetime -import petstore_api -from petstore_api.models.additional_properties_class import AdditionalPropertiesClass # noqa: E501 -from petstore_api.rest import ApiException +from petstore_api.models.additional_properties_class import AdditionalPropertiesClass class TestAdditionalPropertiesClass(unittest.TestCase): """AdditionalPropertiesClass unit test stubs""" @@ -28,26 +25,26 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> AdditionalPropertiesClass: """Test AdditionalPropertiesClass - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `AdditionalPropertiesClass` """ - model = petstore_api.models.additional_properties_class.AdditionalPropertiesClass() # noqa: E501 - if include_optional : + model = AdditionalPropertiesClass() + if include_optional: return AdditionalPropertiesClass( map_property = { 'key' : '' - }, + }, map_of_map_property = { 'key' : { 'key' : '' } } ) - else : + else: return AdditionalPropertiesClass( ) """ diff --git a/samples/openapi3/client/petstore/python/test/test_additional_properties_object.py b/samples/openapi3/client/petstore/python/test/test_additional_properties_object.py index b68a8fda5790..8b0dccef5647 100644 --- a/samples/openapi3/client/petstore/python/test/test_additional_properties_object.py +++ b/samples/openapi3/client/petstore/python/test/test_additional_properties_object.py @@ -3,21 +3,18 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" +""" # noqa: E501 import unittest -import datetime -import petstore_api -from petstore_api.models.additional_properties_object import AdditionalPropertiesObject # noqa: E501 -from petstore_api.rest import ApiException +from petstore_api.models.additional_properties_object import AdditionalPropertiesObject class TestAdditionalPropertiesObject(unittest.TestCase): """AdditionalPropertiesObject unit test stubs""" @@ -28,19 +25,19 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> AdditionalPropertiesObject: """Test AdditionalPropertiesObject - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `AdditionalPropertiesObject` """ - model = petstore_api.models.additional_properties_object.AdditionalPropertiesObject() # noqa: E501 - if include_optional : + model = AdditionalPropertiesObject() + if include_optional: return AdditionalPropertiesObject( name = '' ) - else : + else: return AdditionalPropertiesObject( ) """ diff --git a/samples/openapi3/client/petstore/python/test/test_additional_properties_with_description_only.py b/samples/openapi3/client/petstore/python/test/test_additional_properties_with_description_only.py index d5166dfe1342..698f5f8d8994 100644 --- a/samples/openapi3/client/petstore/python/test/test_additional_properties_with_description_only.py +++ b/samples/openapi3/client/petstore/python/test/test_additional_properties_with_description_only.py @@ -3,21 +3,18 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" +""" # noqa: E501 import unittest -import datetime -import petstore_api -from petstore_api.models.additional_properties_with_description_only import AdditionalPropertiesWithDescriptionOnly # noqa: E501 -from petstore_api.rest import ApiException +from petstore_api.models.additional_properties_with_description_only import AdditionalPropertiesWithDescriptionOnly class TestAdditionalPropertiesWithDescriptionOnly(unittest.TestCase): """AdditionalPropertiesWithDescriptionOnly unit test stubs""" @@ -28,19 +25,19 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> AdditionalPropertiesWithDescriptionOnly: """Test AdditionalPropertiesWithDescriptionOnly - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `AdditionalPropertiesWithDescriptionOnly` """ - model = petstore_api.models.additional_properties_with_description_only.AdditionalPropertiesWithDescriptionOnly() # noqa: E501 - if include_optional : + model = AdditionalPropertiesWithDescriptionOnly() + if include_optional: return AdditionalPropertiesWithDescriptionOnly( name = '' ) - else : + else: return AdditionalPropertiesWithDescriptionOnly( ) """ diff --git a/samples/openapi3/client/petstore/python/test/test_all_of_super_model.py b/samples/openapi3/client/petstore/python/test/test_all_of_super_model.py index dfc6d444ba7a..0b37180a54c1 100644 --- a/samples/openapi3/client/petstore/python/test/test_all_of_super_model.py +++ b/samples/openapi3/client/petstore/python/test/test_all_of_super_model.py @@ -27,7 +27,7 @@ def tearDown(self): def make_instance(self, include_optional) -> AllOfSuperModel: """Test AllOfSuperModel - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `AllOfSuperModel` diff --git a/samples/openapi3/client/petstore/python/test/test_all_of_with_single_ref.py b/samples/openapi3/client/petstore/python/test/test_all_of_with_single_ref.py index ee761ef82d0a..ff147a1bc4e5 100644 --- a/samples/openapi3/client/petstore/python/test/test_all_of_with_single_ref.py +++ b/samples/openapi3/client/petstore/python/test/test_all_of_with_single_ref.py @@ -3,21 +3,18 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import datetime -import petstore_api -from petstore_api.models.all_of_with_single_ref import AllOfWithSingleRef # noqa: E501 -from petstore_api.rest import ApiException +from petstore_api.models.all_of_with_single_ref import AllOfWithSingleRef class TestAllOfWithSingleRef(unittest.TestCase): """AllOfWithSingleRef unit test stubs""" @@ -28,25 +25,28 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> AllOfWithSingleRef: """Test AllOfWithSingleRef - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # model = petstore_api.models.all_of_with_single_ref.AllOfWithSingleRef() # noqa: E501 - if include_optional : + # uncomment below to create an instance of `AllOfWithSingleRef` + """ + model = AllOfWithSingleRef() + if include_optional: return AllOfWithSingleRef( - username = '', - single_ref_type = None + username = '', + single_ref_type = 'admin' ) - else : + else: return AllOfWithSingleRef( ) + """ def testAllOfWithSingleRef(self): """Test AllOfWithSingleRef""" - inst_req_only = self.make_instance(include_optional=False) - inst_req_and_optional = self.make_instance(include_optional=True) + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_animal.py b/samples/openapi3/client/petstore/python/test/test_animal.py index 75d9ddf51887..4ea318679b61 100644 --- a/samples/openapi3/client/petstore/python/test/test_animal.py +++ b/samples/openapi3/client/petstore/python/test/test_animal.py @@ -3,21 +3,18 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import datetime -import petstore_api -from petstore_api.models.animal import Animal # noqa: E501 -from petstore_api.rest import ApiException +from petstore_api.models.animal import Animal class TestAnimal(unittest.TestCase): """Animal unit test stubs""" @@ -28,26 +25,29 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> Animal: """Test Animal - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # model = petstore_api.models.animal.Animal() # noqa: E501 - if include_optional : + # uncomment below to create an instance of `Animal` + """ + model = Animal() + if include_optional: return Animal( - className = '', + class_name = '', color = 'red' ) - else : + else: return Animal( - className = '', + class_name = '', ) + """ def testAnimal(self): """Test Animal""" - inst_req_only = self.make_instance(include_optional=False) - inst_req_and_optional = self.make_instance(include_optional=True) + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_another_fake_api.py b/samples/openapi3/client/petstore/python/test/test_another_fake_api.py index d95798cfc5a4..d1b73d979ffc 100644 --- a/samples/openapi3/client/petstore/python/test/test_another_fake_api.py +++ b/samples/openapi3/client/petstore/python/test/test_another_fake_api.py @@ -3,35 +3,33 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import petstore_api -from petstore_api.api.another_fake_api import AnotherFakeApi # noqa: E501 -from petstore_api.rest import ApiException +from petstore_api.api.another_fake_api import AnotherFakeApi class TestAnotherFakeApi(unittest.TestCase): """AnotherFakeApi unit test stubs""" - def setUp(self): - self.api = petstore_api.api.another_fake_api.AnotherFakeApi() # noqa: E501 + def setUp(self) -> None: + self.api = AnotherFakeApi() - def tearDown(self): + def tearDown(self) -> None: pass - def test_call_123_test_special_tags(self): + def test_call_123_test_special_tags(self) -> None: """Test case for call_123_test_special_tags - To test special tags # noqa: E501 + To test special tags """ pass diff --git a/samples/openapi3/client/petstore/python/test/test_any_of_color.py b/samples/openapi3/client/petstore/python/test/test_any_of_color.py index 2a97cfef7526..f6092af623a7 100644 --- a/samples/openapi3/client/petstore/python/test/test_any_of_color.py +++ b/samples/openapi3/client/petstore/python/test/test_any_of_color.py @@ -3,21 +3,18 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import datetime -import petstore_api -from petstore_api.models.any_of_color import AnyOfColor # noqa: E501 -from petstore_api.rest import ApiException +from petstore_api.models.any_of_color import AnyOfColor class TestAnyOfColor(unittest.TestCase): """AnyOfColor unit test stubs""" @@ -28,18 +25,18 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> AnyOfColor: """Test AnyOfColor - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `AnyOfColor` """ - model = petstore_api.models.any_of_color.AnyOfColor() # noqa: E501 - if include_optional : + model = AnyOfColor() + if include_optional: return AnyOfColor( ) - else : + else: return AnyOfColor( ) """ diff --git a/samples/openapi3/client/petstore/python/test/test_any_of_pig.py b/samples/openapi3/client/petstore/python/test/test_any_of_pig.py index f041e5f9d6f7..e69d8f25900a 100644 --- a/samples/openapi3/client/petstore/python/test/test_any_of_pig.py +++ b/samples/openapi3/client/petstore/python/test/test_any_of_pig.py @@ -3,21 +3,18 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import datetime -import petstore_api -from petstore_api.models.any_of_pig import AnyOfPig # noqa: E501 -from petstore_api.rest import ApiException +from petstore_api.models.any_of_pig import AnyOfPig class TestAnyOfPig(unittest.TestCase): """AnyOfPig unit test stubs""" @@ -28,6 +25,28 @@ def setUp(self): def tearDown(self): pass + def make_instance(self, include_optional) -> AnyOfPig: + """Test AnyOfPig + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `AnyOfPig` + """ + model = AnyOfPig() + if include_optional: + return AnyOfPig( + class_name = '', + color = '', + size = 56 + ) + else: + return AnyOfPig( + class_name = '', + color = '', + size = 56, + ) + """ + def testAnyOfPig(self): """Test AnyOfPig""" # inst_req_only = self.make_instance(include_optional=False) diff --git a/samples/openapi3/client/petstore/python/test/test_array_of_array_of_model.py b/samples/openapi3/client/petstore/python/test/test_array_of_array_of_model.py index 1072a19255de..a96ea540171c 100644 --- a/samples/openapi3/client/petstore/python/test/test_array_of_array_of_model.py +++ b/samples/openapi3/client/petstore/python/test/test_array_of_array_of_model.py @@ -3,21 +3,18 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" +""" # noqa: E501 import unittest -import datetime -import petstore_api -from petstore_api.models.array_of_array_of_model import ArrayOfArrayOfModel # noqa: E501 -from petstore_api.rest import ApiException +from petstore_api.models.array_of_array_of_model import ArrayOfArrayOfModel class TestArrayOfArrayOfModel(unittest.TestCase): """ArrayOfArrayOfModel unit test stubs""" @@ -28,17 +25,17 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> ArrayOfArrayOfModel: """Test ArrayOfArrayOfModel - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `ArrayOfArrayOfModel` """ - model = petstore_api.models.array_of_array_of_model.ArrayOfArrayOfModel() # noqa: E501 - if include_optional : + model = ArrayOfArrayOfModel() + if include_optional: return ArrayOfArrayOfModel( - shop_id_to_org_online_lip_map = [ + another_property = [ [ petstore_api.models.tag.Tag( id = 56, @@ -46,7 +43,7 @@ def make_instance(self, include_optional): ] ] ) - else : + else: return ArrayOfArrayOfModel( ) """ diff --git a/samples/openapi3/client/petstore/python/test/test_array_of_array_of_number_only.py b/samples/openapi3/client/petstore/python/test/test_array_of_array_of_number_only.py index 001b4e565737..bd89ba2188dd 100644 --- a/samples/openapi3/client/petstore/python/test/test_array_of_array_of_number_only.py +++ b/samples/openapi3/client/petstore/python/test/test_array_of_array_of_number_only.py @@ -3,21 +3,18 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import datetime -import petstore_api -from petstore_api.models.array_of_array_of_number_only import ArrayOfArrayOfNumberOnly # noqa: E501 -from petstore_api.rest import ApiException +from petstore_api.models.array_of_array_of_number_only import ArrayOfArrayOfNumberOnly class TestArrayOfArrayOfNumberOnly(unittest.TestCase): """ArrayOfArrayOfNumberOnly unit test stubs""" @@ -28,13 +25,15 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> ArrayOfArrayOfNumberOnly: """Test ArrayOfArrayOfNumberOnly - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # model = petstore_api.models.array_of_array_of_number_only.ArrayOfArrayOfNumberOnly() # noqa: E501 - if include_optional : + # uncomment below to create an instance of `ArrayOfArrayOfNumberOnly` + """ + model = ArrayOfArrayOfNumberOnly() + if include_optional: return ArrayOfArrayOfNumberOnly( array_array_number = [ [ @@ -42,14 +41,15 @@ def make_instance(self, include_optional): ] ] ) - else : + else: return ArrayOfArrayOfNumberOnly( ) + """ def testArrayOfArrayOfNumberOnly(self): """Test ArrayOfArrayOfNumberOnly""" - inst_req_only = self.make_instance(include_optional=False) - inst_req_and_optional = self.make_instance(include_optional=True) + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_array_of_number_only.py b/samples/openapi3/client/petstore/python/test/test_array_of_number_only.py index a35703ae0dac..f67af039fcef 100644 --- a/samples/openapi3/client/petstore/python/test/test_array_of_number_only.py +++ b/samples/openapi3/client/petstore/python/test/test_array_of_number_only.py @@ -3,21 +3,18 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import datetime -import petstore_api -from petstore_api.models.array_of_number_only import ArrayOfNumberOnly # noqa: E501 -from petstore_api.rest import ApiException +from petstore_api.models.array_of_number_only import ArrayOfNumberOnly class TestArrayOfNumberOnly(unittest.TestCase): """ArrayOfNumberOnly unit test stubs""" @@ -28,26 +25,29 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> ArrayOfNumberOnly: """Test ArrayOfNumberOnly - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # model = petstore_api.models.array_of_number_only.ArrayOfNumberOnly() # noqa: E501 - if include_optional : + # uncomment below to create an instance of `ArrayOfNumberOnly` + """ + model = ArrayOfNumberOnly() + if include_optional: return ArrayOfNumberOnly( array_number = [ 1.337 ] ) - else : + else: return ArrayOfNumberOnly( ) + """ def testArrayOfNumberOnly(self): """Test ArrayOfNumberOnly""" - inst_req_only = self.make_instance(include_optional=False) - inst_req_and_optional = self.make_instance(include_optional=True) + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_array_test.py b/samples/openapi3/client/petstore/python/test/test_array_test.py index 8327e415adcd..21ce90c4c2ca 100644 --- a/samples/openapi3/client/petstore/python/test/test_array_test.py +++ b/samples/openapi3/client/petstore/python/test/test_array_test.py @@ -3,21 +3,18 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import datetime -import petstore_api -from petstore_api.models.array_test import ArrayTest # noqa: E501 -from petstore_api.rest import ApiException +from petstore_api.models.array_test import ArrayTest class TestArrayTest(unittest.TestCase): """ArrayTest unit test stubs""" @@ -28,22 +25,27 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> ArrayTest: """Test ArrayTest - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # model = petstore_api.models.array_test.ArrayTest() # noqa: E501 - if include_optional : + # uncomment below to create an instance of `ArrayTest` + """ + model = ArrayTest() + if include_optional: return ArrayTest( array_of_string = [ '' - ], + ], + array_of_nullable_float = [ + 1.337 + ], array_array_of_integer = [ [ 56 ] - ], + ], array_array_of_model = [ [ petstore_api.models.read_only_first.ReadOnlyFirst( @@ -52,14 +54,15 @@ def make_instance(self, include_optional): ] ] ) - else : + else: return ArrayTest( ) + """ def testArrayTest(self): """Test ArrayTest""" - inst_req_only = self.make_instance(include_optional=False) - inst_req_and_optional = self.make_instance(include_optional=True) + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_base_discriminator.py b/samples/openapi3/client/petstore/python/test/test_base_discriminator.py index 61c40f7f6809..05ed4b3d4da3 100644 --- a/samples/openapi3/client/petstore/python/test/test_base_discriminator.py +++ b/samples/openapi3/client/petstore/python/test/test_base_discriminator.py @@ -27,7 +27,7 @@ def tearDown(self): def make_instance(self, include_optional) -> BaseDiscriminator: """Test BaseDiscriminator - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `BaseDiscriminator` diff --git a/samples/openapi3/client/petstore/python/test/test_basque_pig.py b/samples/openapi3/client/petstore/python/test/test_basque_pig.py index 26e2a845a95c..f79d16cd8585 100644 --- a/samples/openapi3/client/petstore/python/test/test_basque_pig.py +++ b/samples/openapi3/client/petstore/python/test/test_basque_pig.py @@ -3,21 +3,18 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import datetime -import petstore_api -from petstore_api.models.basque_pig import BasquePig # noqa: E501 -from petstore_api.rest import ApiException +from petstore_api.models.basque_pig import BasquePig class TestBasquePig(unittest.TestCase): """BasquePig unit test stubs""" @@ -28,27 +25,30 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> BasquePig: """Test BasquePig - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # model = petstore_api.models.basque_pig.BasquePig() # noqa: E501 - if include_optional : + # uncomment below to create an instance of `BasquePig` + """ + model = BasquePig() + if include_optional: return BasquePig( - class_name = '', + class_name = '', color = '' ) - else : + else: return BasquePig( class_name = '', color = '', ) + """ def testBasquePig(self): """Test BasquePig""" - #inst_req_only = self.make_instance(include_optional=False) - #inst_req_and_optional = self.make_instance(include_optional=True) + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_bathing.py b/samples/openapi3/client/petstore/python/test/test_bathing.py index 583bdcbb09ec..f2b6a75a95a4 100644 --- a/samples/openapi3/client/petstore/python/test/test_bathing.py +++ b/samples/openapi3/client/petstore/python/test/test_bathing.py @@ -13,7 +13,6 @@ import unittest -import datetime from petstore_api.models.bathing import Bathing @@ -28,7 +27,7 @@ def tearDown(self): def make_instance(self, include_optional) -> Bathing: """Test Bathing - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `Bathing` diff --git a/samples/openapi3/client/petstore/python/test/test_capitalization.py b/samples/openapi3/client/petstore/python/test/test_capitalization.py index c7a9721dbc00..6e8f95b7acfd 100644 --- a/samples/openapi3/client/petstore/python/test/test_capitalization.py +++ b/samples/openapi3/client/petstore/python/test/test_capitalization.py @@ -3,21 +3,18 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import datetime -import petstore_api -from petstore_api.models.capitalization import Capitalization # noqa: E501 -from petstore_api.rest import ApiException +from petstore_api.models.capitalization import Capitalization class TestCapitalization(unittest.TestCase): """Capitalization unit test stubs""" @@ -28,29 +25,32 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> Capitalization: """Test Capitalization - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # model = petstore_api.models.capitalization.Capitalization() # noqa: E501 - if include_optional : + # uncomment below to create an instance of `Capitalization` + """ + model = Capitalization() + if include_optional: return Capitalization( - small_camel = '', - capital_camel = '', - small_snake = '', - capital_snake = '', - sca_eth_flow_points = '', + small_camel = '', + capital_camel = '', + small_snake = '', + capital_snake = '', + sca_eth_flow_points = '', att_name = '' ) - else : + else: return Capitalization( ) + """ def testCapitalization(self): """Test Capitalization""" - inst_req_only = self.make_instance(include_optional=False) - inst_req_and_optional = self.make_instance(include_optional=True) + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_cat.py b/samples/openapi3/client/petstore/python/test/test_cat.py index e04566b1aafd..15034d82ed3b 100644 --- a/samples/openapi3/client/petstore/python/test/test_cat.py +++ b/samples/openapi3/client/petstore/python/test/test_cat.py @@ -3,21 +3,18 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import datetime -import petstore_api -from petstore_api.models.cat import Cat # noqa: E501 -from petstore_api.rest import ApiException +from petstore_api.models.cat import Cat class TestCat(unittest.TestCase): """Cat unit test stubs""" @@ -28,6 +25,23 @@ def setUp(self): def tearDown(self): pass + def make_instance(self, include_optional) -> Cat: + """Test Cat + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `Cat` + """ + model = Cat() + if include_optional: + return Cat( + declawed = True + ) + else: + return Cat( + ) + """ + def testCat(self): """Test Cat""" # inst_req_only = self.make_instance(include_optional=False) diff --git a/samples/openapi3/client/petstore/python/test/test_category.py b/samples/openapi3/client/petstore/python/test/test_category.py index 14848fcebcd2..014917bf17f4 100644 --- a/samples/openapi3/client/petstore/python/test/test_category.py +++ b/samples/openapi3/client/petstore/python/test/test_category.py @@ -3,21 +3,18 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import datetime -import petstore_api -from petstore_api.models.category import Category # noqa: E501 -from petstore_api.rest import ApiException +from petstore_api.models.category import Category class TestCategory(unittest.TestCase): """Category unit test stubs""" @@ -28,21 +25,24 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> Category: """Test Category - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # model = petstore_api.models.category.Category() # noqa: E501 - if include_optional : + # uncomment below to create an instance of `Category` + """ + model = Category() + if include_optional: return Category( - id = 56, + id = 56, name = 'default-name' ) - else : + else: return Category( name = 'default-name', ) + """ def testCategory(self): """Test Category""" diff --git a/samples/openapi3/client/petstore/python/test/test_circular_all_of_ref.py b/samples/openapi3/client/petstore/python/test/test_circular_all_of_ref.py index 767c758a733b..9d81ff91b15a 100644 --- a/samples/openapi3/client/petstore/python/test/test_circular_all_of_ref.py +++ b/samples/openapi3/client/petstore/python/test/test_circular_all_of_ref.py @@ -27,7 +27,7 @@ def tearDown(self): def make_instance(self, include_optional) -> CircularAllOfRef: """Test CircularAllOfRef - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `CircularAllOfRef` @@ -35,16 +35,10 @@ def make_instance(self, include_optional) -> CircularAllOfRef: model = CircularAllOfRef() if include_optional: return CircularAllOfRef( + name = '', second_circular_all_of_ref = [ - petstore_api.models.second_circular_all_of_ref.SecondCircularAllOfRef( - circular_all_of_ref = [ - petstore_api.models.circular_all_of_ref.CircularAllOfRef( - second_circular_all_of_ref = [ - petstore_api.models.second_circular_all_of_ref.SecondCircularAllOfRef() - ], ) - ], ) - ], - name = '' + petstore_api.models.second_circular_all_of_ref.SecondCircularAllOfRef() + ] ) else: return CircularAllOfRef( diff --git a/samples/openapi3/client/petstore/python/test/test_circular_reference_model.py b/samples/openapi3/client/petstore/python/test/test_circular_reference_model.py index f734d3fc0ff6..18148b2b7d1a 100644 --- a/samples/openapi3/client/petstore/python/test/test_circular_reference_model.py +++ b/samples/openapi3/client/petstore/python/test/test_circular_reference_model.py @@ -3,23 +3,18 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" - +""" # noqa: E501 -from __future__ import absolute_import import unittest -import datetime -import petstore_api -from petstore_api.models.circular_reference_model import CircularReferenceModel # noqa: E501 -from petstore_api.rest import ApiException +from petstore_api.models.circular_reference_model import CircularReferenceModel class TestCircularReferenceModel(unittest.TestCase): """CircularReferenceModel unit test stubs""" @@ -30,17 +25,17 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> CircularReferenceModel: """Test CircularReferenceModel - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `CircularReferenceModel` """ - model = petstore_api.models.circular_reference_model.CircularReferenceModel() # noqa: E501 - if include_optional : + model = CircularReferenceModel() + if include_optional: return CircularReferenceModel( - size = 56, + size = 56, nested = petstore_api.models.first_ref.FirstRef( category = '', self_ref = petstore_api.models.second_ref.SecondRef( @@ -50,7 +45,7 @@ def make_instance(self, include_optional): nested = petstore_api.models.first_ref.FirstRef( category = '', ), ), ), ) ) - else : + else: return CircularReferenceModel( ) """ diff --git a/samples/openapi3/client/petstore/python/test/test_class_model.py b/samples/openapi3/client/petstore/python/test/test_class_model.py index 511843f2dcfd..1826cbf53983 100644 --- a/samples/openapi3/client/petstore/python/test/test_class_model.py +++ b/samples/openapi3/client/petstore/python/test/test_class_model.py @@ -3,21 +3,18 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import datetime -import petstore_api -from petstore_api.models.class_model import ClassModel # noqa: E501 -from petstore_api.rest import ApiException +from petstore_api.models.class_model import ClassModel class TestClassModel(unittest.TestCase): """ClassModel unit test stubs""" @@ -28,24 +25,27 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> ClassModel: """Test ClassModel - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # model = petstore_api.models.class_model.ClassModel() # noqa: E501 - if include_optional : + # uncomment below to create an instance of `ClassModel` + """ + model = ClassModel() + if include_optional: return ClassModel( - _class = '' + var_class = '' ) - else : + else: return ClassModel( ) + """ def testClassModel(self): """Test ClassModel""" - inst_req_only = self.make_instance(include_optional=False) - inst_req_and_optional = self.make_instance(include_optional=True) + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_client.py b/samples/openapi3/client/petstore/python/test/test_client.py index 9209bb2c3f03..1586543c171c 100644 --- a/samples/openapi3/client/petstore/python/test/test_client.py +++ b/samples/openapi3/client/petstore/python/test/test_client.py @@ -3,21 +3,18 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import datetime -import petstore_api -from petstore_api.models.client import Client # noqa: E501 -from petstore_api.rest import ApiException +from petstore_api.models.client import Client class TestClient(unittest.TestCase): """Client unit test stubs""" @@ -28,24 +25,27 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> Client: """Test Client - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # model = petstore_api.models.client.Client() # noqa: E501 - if include_optional : + # uncomment below to create an instance of `Client` + """ + model = Client() + if include_optional: return Client( client = '' ) - else : + else: return Client( ) + """ def testClient(self): """Test Client""" - inst_req_only = self.make_instance(include_optional=False) - inst_req_and_optional = self.make_instance(include_optional=True) + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_color.py b/samples/openapi3/client/petstore/python/test/test_color.py index 9a7aabfea253..2ebb0ec04dee 100644 --- a/samples/openapi3/client/petstore/python/test/test_color.py +++ b/samples/openapi3/client/petstore/python/test/test_color.py @@ -3,21 +3,18 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import datetime -import petstore_api -from petstore_api.models.color import Color # noqa: E501 -from petstore_api.rest import ApiException +from petstore_api.models.color import Color class TestColor(unittest.TestCase): """Color unit test stubs""" @@ -28,18 +25,18 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> Color: """Test Color - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `Color` """ - model = petstore_api.models.color.Color() # noqa: E501 - if include_optional : + model = Color() + if include_optional: return Color( ) - else : + else: return Color( ) """ diff --git a/samples/openapi3/client/petstore/python/test/test_creature.py b/samples/openapi3/client/petstore/python/test/test_creature.py index 66b3e088cbbf..eab8f68f3a57 100644 --- a/samples/openapi3/client/petstore/python/test/test_creature.py +++ b/samples/openapi3/client/petstore/python/test/test_creature.py @@ -3,21 +3,18 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" +""" # noqa: E501 import unittest -import datetime -import petstore_api -from petstore_api.models.creature import Creature # noqa: E501 -from petstore_api.rest import ApiException +from petstore_api.models.creature import Creature class TestCreature(unittest.TestCase): """Creature unit test stubs""" @@ -28,21 +25,21 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> Creature: """Test Creature - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `Creature` """ - model = petstore_api.models.creature.Creature() # noqa: E501 - if include_optional : + model = Creature() + if include_optional: return Creature( info = petstore_api.models.creature_info.CreatureInfo( - name = '', ), + name = '', ), type = '' ) - else : + else: return Creature( info = petstore_api.models.creature_info.CreatureInfo( name = '', ), diff --git a/samples/openapi3/client/petstore/python/test/test_creature_info.py b/samples/openapi3/client/petstore/python/test/test_creature_info.py index 0a85d5ffe7b2..d645563a4791 100644 --- a/samples/openapi3/client/petstore/python/test/test_creature_info.py +++ b/samples/openapi3/client/petstore/python/test/test_creature_info.py @@ -3,21 +3,18 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" +""" # noqa: E501 import unittest -import datetime -import petstore_api -from petstore_api.models.creature_info import CreatureInfo # noqa: E501 -from petstore_api.rest import ApiException +from petstore_api.models.creature_info import CreatureInfo class TestCreatureInfo(unittest.TestCase): """CreatureInfo unit test stubs""" @@ -28,19 +25,19 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> CreatureInfo: """Test CreatureInfo - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `CreatureInfo` """ - model = petstore_api.models.creature_info.CreatureInfo() # noqa: E501 - if include_optional : + model = CreatureInfo() + if include_optional: return CreatureInfo( name = '' ) - else : + else: return CreatureInfo( name = '', ) diff --git a/samples/openapi3/client/petstore/python/test/test_danish_pig.py b/samples/openapi3/client/petstore/python/test/test_danish_pig.py index 0d850ae94f41..1dc992542c41 100644 --- a/samples/openapi3/client/petstore/python/test/test_danish_pig.py +++ b/samples/openapi3/client/petstore/python/test/test_danish_pig.py @@ -3,21 +3,18 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import datetime -import petstore_api -from petstore_api.models.danish_pig import DanishPig # noqa: E501 -from petstore_api.rest import ApiException +from petstore_api.models.danish_pig import DanishPig class TestDanishPig(unittest.TestCase): """DanishPig unit test stubs""" @@ -28,27 +25,30 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> DanishPig: """Test DanishPig - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # model = petstore_api.models.danish_pig.DanishPig() # noqa: E501 - if include_optional : + # uncomment below to create an instance of `DanishPig` + """ + model = DanishPig() + if include_optional: return DanishPig( - class_name = '', + class_name = '', size = 56 ) - else : + else: return DanishPig( class_name = '', size = 56, ) + """ def testDanishPig(self): """Test DanishPig""" - #inst_req_only = self.make_instance(include_optional=False) - #inst_req_and_optional = self.make_instance(include_optional=True) + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_default_api.py b/samples/openapi3/client/petstore/python/test/test_default_api.py index 50e7c57bd0bf..eb421a8edc1b 100644 --- a/samples/openapi3/client/petstore/python/test/test_default_api.py +++ b/samples/openapi3/client/petstore/python/test/test_default_api.py @@ -3,32 +3,30 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import petstore_api -from petstore_api.api.default_api import DefaultApi # noqa: E501 -from petstore_api.rest import ApiException +from petstore_api.api.default_api import DefaultApi class TestDefaultApi(unittest.TestCase): """DefaultApi unit test stubs""" - def setUp(self): - self.api = petstore_api.api.default_api.DefaultApi() # noqa: E501 + def setUp(self) -> None: + self.api = DefaultApi() - def tearDown(self): + def tearDown(self) -> None: pass - def test_foo_get(self): + def test_foo_get(self) -> None: """Test case for foo_get """ diff --git a/samples/openapi3/client/petstore/python/test/test_deprecated_object.py b/samples/openapi3/client/petstore/python/test/test_deprecated_object.py index 50257271cd72..e63842997ae6 100644 --- a/samples/openapi3/client/petstore/python/test/test_deprecated_object.py +++ b/samples/openapi3/client/petstore/python/test/test_deprecated_object.py @@ -3,21 +3,18 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import datetime -import petstore_api -from petstore_api.models.deprecated_object import DeprecatedObject # noqa: E501 -from petstore_api.rest import ApiException +from petstore_api.models.deprecated_object import DeprecatedObject class TestDeprecatedObject(unittest.TestCase): """DeprecatedObject unit test stubs""" @@ -28,24 +25,27 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> DeprecatedObject: """Test DeprecatedObject - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # model = petstore_api.models.deprecated_object.DeprecatedObject() # noqa: E501 - if include_optional : + # uncomment below to create an instance of `DeprecatedObject` + """ + model = DeprecatedObject() + if include_optional: return DeprecatedObject( name = '' ) - else : + else: return DeprecatedObject( ) + """ def testDeprecatedObject(self): """Test DeprecatedObject""" - inst_req_only = self.make_instance(include_optional=False) - inst_req_and_optional = self.make_instance(include_optional=True) + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_discriminator_all_of_sub.py b/samples/openapi3/client/petstore/python/test/test_discriminator_all_of_sub.py index 15941f4f854a..f52f3d33f13c 100644 --- a/samples/openapi3/client/petstore/python/test/test_discriminator_all_of_sub.py +++ b/samples/openapi3/client/petstore/python/test/test_discriminator_all_of_sub.py @@ -27,7 +27,7 @@ def tearDown(self): def make_instance(self, include_optional) -> DiscriminatorAllOfSub: """Test DiscriminatorAllOfSub - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `DiscriminatorAllOfSub` diff --git a/samples/openapi3/client/petstore/python/test/test_discriminator_all_of_super.py b/samples/openapi3/client/petstore/python/test/test_discriminator_all_of_super.py index 503d6b3c558c..830fa0a829a1 100644 --- a/samples/openapi3/client/petstore/python/test/test_discriminator_all_of_super.py +++ b/samples/openapi3/client/petstore/python/test/test_discriminator_all_of_super.py @@ -27,7 +27,7 @@ def tearDown(self): def make_instance(self, include_optional) -> DiscriminatorAllOfSuper: """Test DiscriminatorAllOfSuper - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `DiscriminatorAllOfSuper` diff --git a/samples/openapi3/client/petstore/python/test/test_dog.py b/samples/openapi3/client/petstore/python/test/test_dog.py index af75161287e1..c11f61c99c04 100644 --- a/samples/openapi3/client/petstore/python/test/test_dog.py +++ b/samples/openapi3/client/petstore/python/test/test_dog.py @@ -3,21 +3,18 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import datetime -import petstore_api -from petstore_api.models.dog import Dog # noqa: E501 -from petstore_api.rest import ApiException +from petstore_api.models.dog import Dog class TestDog(unittest.TestCase): """Dog unit test stubs""" @@ -28,6 +25,23 @@ def setUp(self): def tearDown(self): pass + def make_instance(self, include_optional) -> Dog: + """Test Dog + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `Dog` + """ + model = Dog() + if include_optional: + return Dog( + breed = '' + ) + else: + return Dog( + ) + """ + def testDog(self): """Test Dog""" # inst_req_only = self.make_instance(include_optional=False) diff --git a/samples/openapi3/client/petstore/python/test/test_dummy_model.py b/samples/openapi3/client/petstore/python/test/test_dummy_model.py index d6562c58bc2d..8b276ec140b0 100644 --- a/samples/openapi3/client/petstore/python/test/test_dummy_model.py +++ b/samples/openapi3/client/petstore/python/test/test_dummy_model.py @@ -3,21 +3,18 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import datetime -import petstore_api -from petstore_api.models.dummy_model import DummyModel # noqa: E501 -from petstore_api.rest import ApiException +from petstore_api.models.dummy_model import DummyModel class TestDummyModel(unittest.TestCase): """DummyModel unit test stubs""" @@ -28,23 +25,23 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> DummyModel: """Test DummyModel - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `DummyModel` """ - model = petstore_api.models.dummy_model.DummyModel() # noqa: E501 - if include_optional : + model = DummyModel() + if include_optional: return DummyModel( - category = '', + category = '', self_ref = petstore_api.models.self_reference_model.Self-Reference-Model( size = 56, nested = petstore_api.models.dummy_model.Dummy-Model( category = '', ), ) ) - else : + else: return DummyModel( ) """ diff --git a/samples/openapi3/client/petstore/python/test/test_enum_arrays.py b/samples/openapi3/client/petstore/python/test/test_enum_arrays.py index 52cc98601bc0..f3d731b3f59c 100644 --- a/samples/openapi3/client/petstore/python/test/test_enum_arrays.py +++ b/samples/openapi3/client/petstore/python/test/test_enum_arrays.py @@ -3,21 +3,18 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import datetime -import petstore_api -from petstore_api.models.enum_arrays import EnumArrays # noqa: E501 -from petstore_api.rest import ApiException +from petstore_api.models.enum_arrays import EnumArrays class TestEnumArrays(unittest.TestCase): """EnumArrays unit test stubs""" @@ -28,22 +25,25 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> EnumArrays: """Test EnumArrays - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # model = petstore_api.models.enum_arrays.EnumArrays() # noqa: E501 - if include_optional : + # uncomment below to create an instance of `EnumArrays` + """ + model = EnumArrays() + if include_optional: return EnumArrays( - just_symbol = '>=', + just_symbol = '>=', array_enum = [ 'fish' ] ) - else : + else: return EnumArrays( ) + """ def testEnumArrays(self): """Test EnumArrays""" diff --git a/samples/openapi3/client/petstore/python/test/test_enum_class.py b/samples/openapi3/client/petstore/python/test/test_enum_class.py index 9d7a81272cd2..5730ded0ad30 100644 --- a/samples/openapi3/client/petstore/python/test/test_enum_class.py +++ b/samples/openapi3/client/petstore/python/test/test_enum_class.py @@ -3,21 +3,18 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import datetime -import petstore_api -from petstore_api.models.enum_class import EnumClass # noqa: E501 -from petstore_api.rest import ApiException +from petstore_api.models.enum_class import EnumClass class TestEnumClass(unittest.TestCase): """EnumClass unit test stubs""" diff --git a/samples/openapi3/client/petstore/python/test/test_enum_string1.py b/samples/openapi3/client/petstore/python/test/test_enum_string1.py index 9dbe9eb44fb8..e6a858841203 100644 --- a/samples/openapi3/client/petstore/python/test/test_enum_string1.py +++ b/samples/openapi3/client/petstore/python/test/test_enum_string1.py @@ -3,21 +3,18 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" +""" # noqa: E501 import unittest -import datetime -import petstore_api -from petstore_api.models.enum_string1 import EnumString1 # noqa: E501 -from petstore_api.rest import ApiException +from petstore_api.models.enum_string1 import EnumString1 class TestEnumString1(unittest.TestCase): """EnumString1 unit test stubs""" diff --git a/samples/openapi3/client/petstore/python/test/test_enum_string2.py b/samples/openapi3/client/petstore/python/test/test_enum_string2.py index 4ec0ffcd86c7..6a52c081d3ca 100644 --- a/samples/openapi3/client/petstore/python/test/test_enum_string2.py +++ b/samples/openapi3/client/petstore/python/test/test_enum_string2.py @@ -3,21 +3,18 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" +""" # noqa: E501 import unittest -import datetime -import petstore_api -from petstore_api.models.enum_string2 import EnumString2 # noqa: E501 -from petstore_api.rest import ApiException +from petstore_api.models.enum_string2 import EnumString2 class TestEnumString2(unittest.TestCase): """EnumString2 unit test stubs""" diff --git a/samples/openapi3/client/petstore/python/test/test_enum_test.py b/samples/openapi3/client/petstore/python/test/test_enum_test.py index afb342ae9341..5f2f59e6c62b 100644 --- a/samples/openapi3/client/petstore/python/test/test_enum_test.py +++ b/samples/openapi3/client/petstore/python/test/test_enum_test.py @@ -3,21 +3,18 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import datetime -import petstore_api -from petstore_api.models.enum_test import EnumTest # noqa: E501 -from petstore_api.rest import ApiException +from petstore_api.models.enum_test import EnumTest class TestEnumTest(unittest.TestCase): """EnumTest unit test stubs""" @@ -28,27 +25,35 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> EnumTest: """Test EnumTest - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # model = petstore_api.models.enum_test.EnumTest() # noqa: E501 - if include_optional : + # uncomment below to create an instance of `EnumTest` + """ + model = EnumTest() + if include_optional: return EnumTest( - enum_string = 'UPPER', - enum_string_required = 'UPPER', - enum_integer = 1, - enum_number = 1.1, - outer_enum = 'placed', - outer_enum_integer = 2, - outer_enum_default_value = 'placed', - outer_enum_integer_default_value = 0 + enum_string = 'UPPER', + enum_string_required = 'UPPER', + enum_integer_default = 1, + enum_integer = 1, + enum_number = 1.1, + enum_number_vendor_ext = 42, + enum_string_vendor_ext = 'FOO', + enum_string_single_member = 'abc', + enum_integer_single_member = 100, + outer_enum = 'placed', + outer_enum_integer = 2, + outer_enum_default_value = 'placed', + outer_enum_integer_default_value = -1 ) - else : + else: return EnumTest( enum_string_required = 'UPPER', ) + """ def testEnumTest(self): """Test EnumTest""" diff --git a/samples/openapi3/client/petstore/python/test/test_fake_api.py b/samples/openapi3/client/petstore/python/test/test_fake_api.py index 9a7dfbb96439..11920b00480e 100644 --- a/samples/openapi3/client/petstore/python/test/test_fake_api.py +++ b/samples/openapi3/client/petstore/python/test/test_fake_api.py @@ -3,145 +3,277 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -try: - from unittest.mock import patch -except ImportError: - from mock import patch -import petstore_api -from petstore_api.api.fake_api import FakeApi # noqa: E501 +from petstore_api.api.fake_api import FakeApi class TestFakeApi(unittest.TestCase): """FakeApi unit test stubs""" - def setUp(self): - self.api = petstore_api.api.fake_api.FakeApi() # noqa: E501 + def setUp(self) -> None: + self.api = FakeApi() + + def tearDown(self) -> None: + pass + + def test_fake_any_type_request_body(self) -> None: + """Test case for fake_any_type_request_body - def tearDown(self): + test any type request body + """ pass - def test_fake_health_get(self): + def test_fake_enum_ref_query_parameter(self) -> None: + """Test case for fake_enum_ref_query_parameter + + test enum reference query parameter + """ + pass + + def test_fake_health_get(self) -> None: """Test case for fake_health_get - Health check endpoint # noqa: E501 + Health check endpoint """ pass - def test_fake_http_signature_test(self): + def test_fake_http_signature_test(self) -> None: """Test case for fake_http_signature_test - test http signature authentication # noqa: E501 + test http signature authentication """ pass - def test_fake_outer_boolean_serialize(self): + def test_fake_outer_boolean_serialize(self) -> None: """Test case for fake_outer_boolean_serialize """ pass - def test_fake_outer_composite_serialize(self): + def test_fake_outer_composite_serialize(self) -> None: """Test case for fake_outer_composite_serialize """ pass - def test_fake_outer_number_serialize(self): + def test_fake_outer_number_serialize(self) -> None: """Test case for fake_outer_number_serialize """ pass - def test_fake_outer_string_serialize(self): + def test_fake_outer_string_serialize(self) -> None: """Test case for fake_outer_string_serialize """ pass - def test_test_body_with_file_schema(self): + def test_fake_property_enum_integer_serialize(self) -> None: + """Test case for fake_property_enum_integer_serialize + + """ + pass + + def test_fake_ref_enum_string(self) -> None: + """Test case for fake_ref_enum_string + + test ref to enum string + """ + pass + + def test_fake_return_boolean(self) -> None: + """Test case for fake_return_boolean + + test returning boolean + """ + pass + + def test_fake_return_byte_like_json(self) -> None: + """Test case for fake_return_byte_like_json + + test byte like json + """ + pass + + def test_fake_return_enum(self) -> None: + """Test case for fake_return_enum + + test returning enum + """ + pass + + def test_fake_return_enum_like_json(self) -> None: + """Test case for fake_return_enum_like_json + + test enum like json + """ + pass + + def test_fake_return_float(self) -> None: + """Test case for fake_return_float + + test returning float + """ + pass + + def test_fake_return_int(self) -> None: + """Test case for fake_return_int + + test returning int + """ + pass + + def test_fake_return_list_of_objects(self) -> None: + """Test case for fake_return_list_of_objects + + test returning list of objects + """ + pass + + def test_fake_return_str_like_json(self) -> None: + """Test case for fake_return_str_like_json + + test str like json + """ + pass + + def test_fake_return_string(self) -> None: + """Test case for fake_return_string + + test returning string + """ + pass + + def test_fake_uuid_example(self) -> None: + """Test case for fake_uuid_example + + test uuid example + """ + pass + + def test_test_additional_properties_reference(self) -> None: + """Test case for test_additional_properties_reference + + test referenced additionalProperties + """ + pass + + def test_test_body_with_binary(self) -> None: + """Test case for test_body_with_binary + + """ + pass + + def test_test_body_with_file_schema(self) -> None: """Test case for test_body_with_file_schema """ pass - def test_test_body_with_query_params(self): + def test_test_body_with_query_params(self) -> None: """Test case for test_body_with_query_params """ pass - def test_test_client_model(self): + def test_test_client_model(self) -> None: """Test case for test_client_model - To test \"client\" model # noqa: E501 + To test \"client\" model """ pass - def test_test_endpoint_parameters(self): + def test_test_date_time_query_parameter(self) -> None: + """Test case for test_date_time_query_parameter + + """ + pass + + def test_test_empty_and_non_empty_responses(self) -> None: + """Test case for test_empty_and_non_empty_responses + + test empty and non-empty responses + """ + pass + + def test_test_endpoint_parameters(self) -> None: """Test case for test_endpoint_parameters - Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 # noqa: E501 + Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 """ pass - def test_test_enum_parameters(self): - """Test case for test_enum_parameters + def test_test_error_responses_with_model(self) -> None: + """Test case for test_error_responses_with_model - To test enum parameters # noqa: E501 + test error responses with model """ pass - def test_test_group_parameters(self): + def test_test_group_parameters(self) -> None: """Test case for test_group_parameters - Fake endpoint to test group parameters (optional) # noqa: E501 + Fake endpoint to test group parameters (optional) """ pass - def test_test_inline_additional_properties(self): + def test_test_inline_additional_properties(self) -> None: """Test case for test_inline_additional_properties - test inline additionalProperties # noqa: E501 + test inline additionalProperties + """ + pass + + def test_test_inline_freeform_additional_properties(self) -> None: + """Test case for test_inline_freeform_additional_properties + + test inline free-form additionalProperties """ pass - def test_test_json_form_data(self): + def test_test_json_form_data(self) -> None: """Test case for test_json_form_data - test json serialization of form data # noqa: E501 + test json serialization of form data """ pass - def test_test_query_parameter_collection_format(self): + def test_test_object_for_multipart_requests(self) -> None: + """Test case for test_object_for_multipart_requests + + """ + pass + + def test_test_query_parameter_collection_format(self) -> None: """Test case for test_query_parameter_collection_format """ pass - @unittest.skip("TODO: MagicMock error") - def test_headers_parameter(self): - """Test case for the _headers are passed by the user + def test_test_string_map_reference(self) -> None: + """Test case for test_string_map_reference + + test referenced string map + """ + pass + + def test_upload_file_with_additional_properties(self) -> None: + """Test case for upload_file_with_additional_properties - To test any optional parameter # noqa: E501 + uploads a file and additional properties using multipart/form-data """ - api = petstore_api.api.PetApi() - with patch("petstore_api.api_client.ApiClient.call_api") as mock_method: - value_headers = {"Header1": "value1"} - api.find_pets_by_status(["available"], _headers=value_headers) - args, _ = mock_method.call_args - self.assertEqual(args, ('GET', '/pet/findByStatus', {}, [('status', ['available'])], {'Accept': 'application/json', 'Header1': 'value1'}) -) + pass + if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_fake_classname_tags123_api.py b/samples/openapi3/client/petstore/python/test/test_fake_classname_tags123_api.py index 881dcba0d25a..9282bf7150cb 100644 --- a/samples/openapi3/client/petstore/python/test/test_fake_classname_tags123_api.py +++ b/samples/openapi3/client/petstore/python/test/test_fake_classname_tags123_api.py @@ -2,33 +2,34 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import petstore_api -from petstore_api.api.fake_classname_tags123_api import FakeClassnameTags123Api # noqa: E501 -from petstore_api.rest import ApiException +from petstore_api.api.fake_classname_tags123_api import FakeClassnameTags123Api class TestFakeClassnameTags123Api(unittest.TestCase): """FakeClassnameTags123Api unit test stubs""" - def setUp(self): - self.api = petstore_api.api.fake_classname_tags123_api.FakeClassnameTags123Api() # noqa: E501 + def setUp(self) -> None: + self.api = FakeClassnameTags123Api() - def tearDown(self): + def tearDown(self) -> None: pass - def test_test_classname(self): + def test_test_classname(self) -> None: """Test case for test_classname - To test class name in snake case # noqa: E501 + + To test class name in snake case """ pass diff --git a/samples/openapi3/client/petstore/python/test/test_feeding.py b/samples/openapi3/client/petstore/python/test/test_feeding.py index a0cdfc8f3460..fc9d904716ee 100644 --- a/samples/openapi3/client/petstore/python/test/test_feeding.py +++ b/samples/openapi3/client/petstore/python/test/test_feeding.py @@ -13,7 +13,6 @@ import unittest -import datetime from petstore_api.models.feeding import Feeding @@ -28,7 +27,7 @@ def tearDown(self): def make_instance(self, include_optional) -> Feeding: """Test Feeding - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `Feeding` diff --git a/samples/openapi3/client/petstore/python/test/test_file.py b/samples/openapi3/client/petstore/python/test/test_file.py index 3c9b91972d91..d050f5982464 100644 --- a/samples/openapi3/client/petstore/python/test/test_file.py +++ b/samples/openapi3/client/petstore/python/test/test_file.py @@ -3,21 +3,18 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import datetime -import petstore_api -from petstore_api.models.file import File # noqa: E501 -from petstore_api.rest import ApiException +from petstore_api.models.file import File class TestFile(unittest.TestCase): """File unit test stubs""" @@ -28,24 +25,27 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> File: """Test File - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # model = petstore_api.models.file.File() # noqa: E501 - if include_optional : + # uncomment below to create an instance of `File` + """ + model = File() + if include_optional: return File( source_uri = '' ) - else : + else: return File( ) + """ def testFile(self): """Test File""" - inst_req_only = self.make_instance(include_optional=False) - inst_req_and_optional = self.make_instance(include_optional=True) + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_file_schema_test_class.py b/samples/openapi3/client/petstore/python/test/test_file_schema_test_class.py index 2834ddc05413..ebbf1f587051 100644 --- a/samples/openapi3/client/petstore/python/test/test_file_schema_test_class.py +++ b/samples/openapi3/client/petstore/python/test/test_file_schema_test_class.py @@ -3,21 +3,18 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import datetime -import petstore_api -from petstore_api.models.file_schema_test_class import FileSchemaTestClass # noqa: E501 -from petstore_api.rest import ApiException +from petstore_api.models.file_schema_test_class import FileSchemaTestClass class TestFileSchemaTestClass(unittest.TestCase): """FileSchemaTestClass unit test stubs""" @@ -28,29 +25,32 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> FileSchemaTestClass: """Test FileSchemaTestClass - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # model = petstore_api.models.file_schema_test_class.FileSchemaTestClass() # noqa: E501 - if include_optional : + # uncomment below to create an instance of `FileSchemaTestClass` + """ + model = FileSchemaTestClass() + if include_optional: return FileSchemaTestClass( file = petstore_api.models.file.File( - source_uri = '', ), + source_uri = '', ), files = [ petstore_api.models.file.File( source_uri = '', ) ] ) - else : + else: return FileSchemaTestClass( ) + """ def testFileSchemaTestClass(self): """Test FileSchemaTestClass""" - inst_req_only = self.make_instance(include_optional=False) - inst_req_and_optional = self.make_instance(include_optional=True) + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_first_ref.py b/samples/openapi3/client/petstore/python/test/test_first_ref.py index bcec1c0334bf..38520ad2e63b 100644 --- a/samples/openapi3/client/petstore/python/test/test_first_ref.py +++ b/samples/openapi3/client/petstore/python/test/test_first_ref.py @@ -3,23 +3,18 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" - +""" # noqa: E501 -from __future__ import absolute_import import unittest -import datetime -import petstore_api -from petstore_api.models.first_ref import FirstRef # noqa: E501 -from petstore_api.rest import ApiException +from petstore_api.models.first_ref import FirstRef class TestFirstRef(unittest.TestCase): """FirstRef unit test stubs""" @@ -30,17 +25,17 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> FirstRef: """Test FirstRef - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `FirstRef` """ - model = petstore_api.models.first_ref.FirstRef() # noqa: E501 - if include_optional : + model = FirstRef() + if include_optional: return FirstRef( - category = '', + category = '', self_ref = petstore_api.models.second_ref.SecondRef( category = '', circular_ref = petstore_api.models.circular_reference_model.Circular-Reference-Model( @@ -48,7 +43,7 @@ def make_instance(self, include_optional): nested = petstore_api.models.first_ref.FirstRef( category = '', ), ), ) ) - else : + else: return FirstRef( ) """ diff --git a/samples/openapi3/client/petstore/python/test/test_foo.py b/samples/openapi3/client/petstore/python/test/test_foo.py index f592b1c37018..430ee19bf695 100644 --- a/samples/openapi3/client/petstore/python/test/test_foo.py +++ b/samples/openapi3/client/petstore/python/test/test_foo.py @@ -3,21 +3,18 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import datetime -import petstore_api -from petstore_api.models.foo import Foo # noqa: E501 -from petstore_api.rest import ApiException +from petstore_api.models.foo import Foo class TestFoo(unittest.TestCase): """Foo unit test stubs""" @@ -28,24 +25,27 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> Foo: """Test Foo - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # model = petstore_api.models.foo.Foo() # noqa: E501 - if include_optional : + # uncomment below to create an instance of `Foo` + """ + model = Foo() + if include_optional: return Foo( bar = 'bar' ) - else : + else: return Foo( ) + """ def testFoo(self): """Test Foo""" - inst_req_only = self.make_instance(include_optional=False) - inst_req_and_optional = self.make_instance(include_optional=True) + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_foo_get_default_response.py b/samples/openapi3/client/petstore/python/test/test_foo_get_default_response.py index d2cadc258d8e..c5524b88d2bb 100644 --- a/samples/openapi3/client/petstore/python/test/test_foo_get_default_response.py +++ b/samples/openapi3/client/petstore/python/test/test_foo_get_default_response.py @@ -3,21 +3,18 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import datetime -import petstore_api -from petstore_api.models.foo_get_default_response import FooGetDefaultResponse # noqa: E501 -from petstore_api.rest import ApiException +from petstore_api.models.foo_get_default_response import FooGetDefaultResponse class TestFooGetDefaultResponse(unittest.TestCase): """FooGetDefaultResponse unit test stubs""" @@ -28,25 +25,28 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> FooGetDefaultResponse: """Test FooGetDefaultResponse - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # model = petstore_api.models.foo_get_default_response.FooGetDefaultResponse() # noqa: E501 - if include_optional : + # uncomment below to create an instance of `FooGetDefaultResponse` + """ + model = FooGetDefaultResponse() + if include_optional: return FooGetDefaultResponse( string = petstore_api.models.foo.Foo( bar = 'bar', ) ) - else : + else: return FooGetDefaultResponse( ) + """ def testFooGetDefaultResponse(self): """Test FooGetDefaultResponse""" - inst_req_only = self.make_instance(include_optional=False) - inst_req_and_optional = self.make_instance(include_optional=True) + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_format_test.py b/samples/openapi3/client/petstore/python/test/test_format_test.py index e236e5b7e670..8cde3f67815c 100644 --- a/samples/openapi3/client/petstore/python/test/test_format_test.py +++ b/samples/openapi3/client/petstore/python/test/test_format_test.py @@ -3,21 +3,18 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import datetime -import petstore_api -from petstore_api.models.format_test import FormatTest # noqa: E501 -from petstore_api.rest import ApiException +from petstore_api.models.format_test import FormatTest class TestFormatTest(unittest.TestCase): """FormatTest unit test stubs""" @@ -28,44 +25,46 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> FormatTest: """Test FormatTest - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # model = petstore_api.models.format_test.FormatTest() # noqa: E501 - if include_optional : + # uncomment below to create an instance of `FormatTest` + """ + model = FormatTest() + if include_optional: return FormatTest( - integer = 10, - int32 = 20, - int64 = 56, - number = 132.1, - float = 54.3, - double = 67.8, - decimal = 1, - string = 'a', - byte = bytes("someting", 'utf-8'), - binary = bytes(b'blah'), + integer = 10, + int32 = 20, + int64 = 56, + number = 32.1, + var_float = 54.3, + double = 67.8, + decimal = 1, + string = 'a', + string_with_double_quote_pattern = 'this is \"something\"', + byte = 'YQ==', + binary = bytes(b'blah'), var_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - uuid = '72f98069-206d-4f12-9f12-3d1e525a8e84', - password = '0123456789', - pattern_with_digits = '0480728880', + date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + uuid = '72f98069-206d-4f12-9f12-3d1e525a8e84', + password = '0123456789', + pattern_with_digits = '0480728880', pattern_with_digits_and_delimiter = 'image_480' ) - else : + else: return FormatTest( - number = 122.1, - byte = bytes("someting", 'utf-8'), - date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + number = 32.1, + var_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), password = '0123456789', ) + """ def testFormatTest(self): """Test FormatTest""" - inst_req_only = self.make_instance(include_optional=False) - # TODO - #inst_req_and_optional = self.make_instance(include_optional=True) + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_has_only_read_only.py b/samples/openapi3/client/petstore/python/test/test_has_only_read_only.py index 2a8d2df6a0f8..59013015dc71 100644 --- a/samples/openapi3/client/petstore/python/test/test_has_only_read_only.py +++ b/samples/openapi3/client/petstore/python/test/test_has_only_read_only.py @@ -3,21 +3,18 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import datetime -import petstore_api -from petstore_api.models.has_only_read_only import HasOnlyReadOnly # noqa: E501 -from petstore_api.rest import ApiException +from petstore_api.models.has_only_read_only import HasOnlyReadOnly class TestHasOnlyReadOnly(unittest.TestCase): """HasOnlyReadOnly unit test stubs""" @@ -28,25 +25,28 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> HasOnlyReadOnly: """Test HasOnlyReadOnly - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # model = petstore_api.models.has_only_read_only.HasOnlyReadOnly() # noqa: E501 - if include_optional : + # uncomment below to create an instance of `HasOnlyReadOnly` + """ + model = HasOnlyReadOnly() + if include_optional: return HasOnlyReadOnly( - bar = '', + bar = '', foo = '' ) - else : + else: return HasOnlyReadOnly( ) + """ def testHasOnlyReadOnly(self): """Test HasOnlyReadOnly""" - inst_req_only = self.make_instance(include_optional=False) - inst_req_and_optional = self.make_instance(include_optional=True) + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_health_check_result.py b/samples/openapi3/client/petstore/python/test/test_health_check_result.py index 21c52053ea22..a50444e6d877 100644 --- a/samples/openapi3/client/petstore/python/test/test_health_check_result.py +++ b/samples/openapi3/client/petstore/python/test/test_health_check_result.py @@ -3,21 +3,18 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import datetime -import petstore_api -from petstore_api.models.health_check_result import HealthCheckResult # noqa: E501 -from petstore_api.rest import ApiException +from petstore_api.models.health_check_result import HealthCheckResult class TestHealthCheckResult(unittest.TestCase): """HealthCheckResult unit test stubs""" @@ -28,24 +25,27 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> HealthCheckResult: """Test HealthCheckResult - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # model = petstore_api.models.health_check_result.HealthCheckResult() # noqa: E501 - if include_optional : + # uncomment below to create an instance of `HealthCheckResult` + """ + model = HealthCheckResult() + if include_optional: return HealthCheckResult( nullable_message = '' ) - else : + else: return HealthCheckResult( ) + """ def testHealthCheckResult(self): """Test HealthCheckResult""" - inst_req_only = self.make_instance(include_optional=False) - inst_req_and_optional = self.make_instance(include_optional=True) + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_info.py b/samples/openapi3/client/petstore/python/test/test_info.py index e1fce9f9c1ec..47075061d9a9 100644 --- a/samples/openapi3/client/petstore/python/test/test_info.py +++ b/samples/openapi3/client/petstore/python/test/test_info.py @@ -27,7 +27,7 @@ def tearDown(self): def make_instance(self, include_optional) -> Info: """Test Info - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `Info` diff --git a/samples/openapi3/client/petstore/python/test/test_inner_dict_with_property.py b/samples/openapi3/client/petstore/python/test/test_inner_dict_with_property.py index 8a63b70d5524..1f80e90e29dd 100644 --- a/samples/openapi3/client/petstore/python/test/test_inner_dict_with_property.py +++ b/samples/openapi3/client/petstore/python/test/test_inner_dict_with_property.py @@ -3,23 +3,18 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" - +""" # noqa: E501 -from __future__ import absolute_import import unittest -import datetime -import petstore_api -from petstore_api.models.inner_dict_with_property import InnerDictWithProperty # noqa: E501 -from petstore_api.rest import ApiException +from petstore_api.models.inner_dict_with_property import InnerDictWithProperty class TestInnerDictWithProperty(unittest.TestCase): """InnerDictWithProperty unit test stubs""" @@ -30,19 +25,19 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> InnerDictWithProperty: """Test InnerDictWithProperty - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `InnerDictWithProperty` """ - model = petstore_api.models.inner_dict_with_property.InnerDictWithProperty() # noqa: E501 - if include_optional : + model = InnerDictWithProperty() + if include_optional: return InnerDictWithProperty( a_property = None ) - else : + else: return InnerDictWithProperty( ) """ diff --git a/samples/openapi3/client/petstore/python/test/test_input_all_of.py b/samples/openapi3/client/petstore/python/test/test_input_all_of.py index 7ca8140d4d40..212f59bea795 100644 --- a/samples/openapi3/client/petstore/python/test/test_input_all_of.py +++ b/samples/openapi3/client/petstore/python/test/test_input_all_of.py @@ -27,7 +27,7 @@ def tearDown(self): def make_instance(self, include_optional) -> InputAllOf: """Test InputAllOf - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `InputAllOf` diff --git a/samples/openapi3/client/petstore/python/test/test_int_or_string.py b/samples/openapi3/client/petstore/python/test/test_int_or_string.py index 0de76602cb69..a649aac24694 100644 --- a/samples/openapi3/client/petstore/python/test/test_int_or_string.py +++ b/samples/openapi3/client/petstore/python/test/test_int_or_string.py @@ -3,21 +3,18 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" +""" # noqa: E501 import unittest -import datetime -import petstore_api -from petstore_api.models.int_or_string import IntOrString # noqa: E501 -from petstore_api.rest import ApiException +from petstore_api.models.int_or_string import IntOrString class TestIntOrString(unittest.TestCase): """IntOrString unit test stubs""" @@ -28,18 +25,18 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> IntOrString: """Test IntOrString - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `IntOrString` """ - model = petstore_api.models.int_or_string.IntOrString() # noqa: E501 - if include_optional : + model = IntOrString() + if include_optional: return IntOrString( ) - else : + else: return IntOrString( ) """ diff --git a/samples/openapi3/client/petstore/python/test/test_list_class.py b/samples/openapi3/client/petstore/python/test/test_list_class.py index ac14bf3b3986..7da7d021f776 100644 --- a/samples/openapi3/client/petstore/python/test/test_list_class.py +++ b/samples/openapi3/client/petstore/python/test/test_list_class.py @@ -13,9 +13,8 @@ import unittest -import datetime -from petstore_api.models.list_class import ListClass # noqa: E501 +from petstore_api.models.list_class import ListClass class TestListClass(unittest.TestCase): """ListClass unit test stubs""" @@ -28,12 +27,12 @@ def tearDown(self): def make_instance(self, include_optional) -> ListClass: """Test ListClass - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `ListClass` """ - model = ListClass() # noqa: E501 + model = ListClass() if include_optional: return ListClass( var_123_list = '' diff --git a/samples/openapi3/client/petstore/python/test/test_map_of_array_of_model.py b/samples/openapi3/client/petstore/python/test/test_map_of_array_of_model.py index 31ad486f5c03..2d5637f8f34b 100644 --- a/samples/openapi3/client/petstore/python/test/test_map_of_array_of_model.py +++ b/samples/openapi3/client/petstore/python/test/test_map_of_array_of_model.py @@ -3,21 +3,18 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" +""" # noqa: E501 import unittest -import datetime -import petstore_api -from petstore_api.models.map_of_array_of_model import MapOfArrayOfModel # noqa: E501 -from petstore_api.rest import ApiException +from petstore_api.models.map_of_array_of_model import MapOfArrayOfModel class TestMapOfArrayOfModel(unittest.TestCase): """MapOfArrayOfModel unit test stubs""" @@ -28,15 +25,15 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> MapOfArrayOfModel: """Test MapOfArrayOfModel - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `MapOfArrayOfModel` """ - model = petstore_api.models.map_of_array_of_model.MapOfArrayOfModel() # noqa: E501 - if include_optional : + model = MapOfArrayOfModel() + if include_optional: return MapOfArrayOfModel( shop_id_to_org_online_lip_map = { 'key' : [ @@ -46,7 +43,7 @@ def make_instance(self, include_optional): ] } ) - else : + else: return MapOfArrayOfModel( ) """ diff --git a/samples/openapi3/client/petstore/python/test/test_map_test.py b/samples/openapi3/client/petstore/python/test/test_map_test.py index 5e11fed312ad..6d15e3d0b344 100644 --- a/samples/openapi3/client/petstore/python/test/test_map_test.py +++ b/samples/openapi3/client/petstore/python/test/test_map_test.py @@ -3,21 +3,18 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import datetime -import petstore_api -from petstore_api.models.map_test import MapTest # noqa: E501 -from petstore_api.rest import ApiException +from petstore_api.models.map_test import MapTest class TestMapTest(unittest.TestCase): """MapTest unit test stubs""" @@ -28,38 +25,40 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> MapTest: """Test MapTest - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # model = petstore_api.models.map_test.MapTest() # noqa: E501 - if include_optional : + # uncomment below to create an instance of `MapTest` + """ + model = MapTest() + if include_optional: return MapTest( map_map_of_string = { 'key' : { 'key' : '' } - }, + }, map_of_enum_string = { 'UPPER' : 'UPPER' - }, + }, direct_map = { 'key' : True - }, + }, indirect_map = { 'key' : True } ) - else : + else: return MapTest( ) + """ def testMapTest(self): """Test MapTest""" - # TODO - #inst_req_only = self.make_instance(include_optional=False) - #inst_req_and_optional = self.make_instance(include_optional=True) + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_mixed_properties_and_additional_properties_class.py b/samples/openapi3/client/petstore/python/test/test_mixed_properties_and_additional_properties_class.py index 5e6437ad0585..33d884c768ba 100644 --- a/samples/openapi3/client/petstore/python/test/test_mixed_properties_and_additional_properties_class.py +++ b/samples/openapi3/client/petstore/python/test/test_mixed_properties_and_additional_properties_class.py @@ -3,21 +3,18 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import datetime -import petstore_api -from petstore_api.models.mixed_properties_and_additional_properties_class import MixedPropertiesAndAdditionalPropertiesClass # noqa: E501 -from petstore_api.rest import ApiException +from petstore_api.models.mixed_properties_and_additional_properties_class import MixedPropertiesAndAdditionalPropertiesClass class TestMixedPropertiesAndAdditionalPropertiesClass(unittest.TestCase): """MixedPropertiesAndAdditionalPropertiesClass unit test stubs""" @@ -28,30 +25,33 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> MixedPropertiesAndAdditionalPropertiesClass: """Test MixedPropertiesAndAdditionalPropertiesClass - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # model = petstore_api.models.mixed_properties_and_additional_properties_class.MixedPropertiesAndAdditionalPropertiesClass() # noqa: E501 - if include_optional : + # uncomment below to create an instance of `MixedPropertiesAndAdditionalPropertiesClass` + """ + model = MixedPropertiesAndAdditionalPropertiesClass() + if include_optional: return MixedPropertiesAndAdditionalPropertiesClass( - uuid = '', - date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + uuid = '', + date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), map = { 'key' : petstore_api.models.animal.Animal( - className = '', + class_name = '', color = 'red', ) } ) - else : + else: return MixedPropertiesAndAdditionalPropertiesClass( ) + """ def testMixedPropertiesAndAdditionalPropertiesClass(self): """Test MixedPropertiesAndAdditionalPropertiesClass""" - inst_req_only = self.make_instance(include_optional=False) - inst_req_and_optional = self.make_instance(include_optional=True) + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_model200_response.py b/samples/openapi3/client/petstore/python/test/test_model200_response.py index f7e9677e0074..007f8a623959 100644 --- a/samples/openapi3/client/petstore/python/test/test_model200_response.py +++ b/samples/openapi3/client/petstore/python/test/test_model200_response.py @@ -3,21 +3,18 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import datetime -import petstore_api -from petstore_api.models.model200_response import Model200Response # noqa: E501 -from petstore_api.rest import ApiException +from petstore_api.models.model200_response import Model200Response class TestModel200Response(unittest.TestCase): """Model200Response unit test stubs""" @@ -28,25 +25,28 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> Model200Response: """Test Model200Response - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # model = petstore_api.models.model200_response.Model200Response() # noqa: E501 - if include_optional : + # uncomment below to create an instance of `Model200Response` + """ + model = Model200Response() + if include_optional: return Model200Response( - name = 56, - _class = '' + name = 56, + var_class = '' ) - else : + else: return Model200Response( ) + """ def testModel200Response(self): """Test Model200Response""" - inst_req_only = self.make_instance(include_optional=False) - inst_req_and_optional = self.make_instance(include_optional=True) + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_model_api_response.py b/samples/openapi3/client/petstore/python/test/test_model_api_response.py index f37f34084401..beca8e34434f 100644 --- a/samples/openapi3/client/petstore/python/test/test_model_api_response.py +++ b/samples/openapi3/client/petstore/python/test/test_model_api_response.py @@ -13,7 +13,6 @@ import unittest -import datetime from petstore_api.models.model_api_response import ModelApiResponse @@ -28,7 +27,7 @@ def tearDown(self): def make_instance(self, include_optional) -> ModelApiResponse: """Test ModelApiResponse - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `ModelApiResponse` diff --git a/samples/openapi3/client/petstore/python/test/test_model_field.py b/samples/openapi3/client/petstore/python/test/test_model_field.py index 315823b80622..eb8dee7981c3 100644 --- a/samples/openapi3/client/petstore/python/test/test_model_field.py +++ b/samples/openapi3/client/petstore/python/test/test_model_field.py @@ -27,7 +27,7 @@ def tearDown(self): def make_instance(self, include_optional) -> ModelField: """Test ModelField - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `ModelField` @@ -35,7 +35,7 @@ def make_instance(self, include_optional) -> ModelField: model = ModelField() if include_optional: return ModelField( - dummy = '' + var_field = '' ) else: return ModelField( diff --git a/samples/openapi3/client/petstore/python/test/test_model_return.py b/samples/openapi3/client/petstore/python/test/test_model_return.py index b0f9d9c4f7f9..2c2afa1d43bb 100644 --- a/samples/openapi3/client/petstore/python/test/test_model_return.py +++ b/samples/openapi3/client/petstore/python/test/test_model_return.py @@ -3,21 +3,18 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import datetime -import petstore_api -from petstore_api.models.model_return import ModelReturn # noqa: E501 -from petstore_api.rest import ApiException +from petstore_api.models.model_return import ModelReturn class TestModelReturn(unittest.TestCase): """ModelReturn unit test stubs""" @@ -28,24 +25,27 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> ModelReturn: """Test ModelReturn - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # model = petstore_api.models.model_return.ModelReturn() # noqa: E501 - if include_optional : + # uncomment below to create an instance of `ModelReturn` + """ + model = ModelReturn() + if include_optional: return ModelReturn( - _return = 56 + var_return = 56 ) - else : + else: return ModelReturn( ) + """ def testModelReturn(self): """Test ModelReturn""" - inst_req_only = self.make_instance(include_optional=False) - inst_req_and_optional = self.make_instance(include_optional=True) + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_name.py b/samples/openapi3/client/petstore/python/test/test_name.py index bbf11fd231ea..db4e9cf37e94 100644 --- a/samples/openapi3/client/petstore/python/test/test_name.py +++ b/samples/openapi3/client/petstore/python/test/test_name.py @@ -3,21 +3,18 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import datetime -import petstore_api -from petstore_api.models.name import Name # noqa: E501 -from petstore_api.rest import ApiException +from petstore_api.models.name import Name class TestName(unittest.TestCase): """Name unit test stubs""" @@ -28,28 +25,31 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> Name: """Test Name - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # model = petstore_api.models.name.Name() # noqa: E501 - if include_optional : + # uncomment below to create an instance of `Name` + """ + model = Name() + if include_optional: return Name( - name = 56, - snake_case = 56, - _property = '', - _123_number = 56 + name = 56, + snake_case = 56, + var_property = '', + var_123_number = 56 ) - else : + else: return Name( name = 56, ) + """ def testName(self): """Test Name""" - inst_req_only = self.make_instance(include_optional=False) - inst_req_and_optional = self.make_instance(include_optional=True) + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_nullable_class.py b/samples/openapi3/client/petstore/python/test/test_nullable_class.py index 7aa59f46bbd8..ecf5363b4ac7 100644 --- a/samples/openapi3/client/petstore/python/test/test_nullable_class.py +++ b/samples/openapi3/client/petstore/python/test/test_nullable_class.py @@ -3,21 +3,18 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import datetime -import petstore_api -from petstore_api.models.nullable_class import NullableClass # noqa: E501 -from petstore_api.rest import ApiException +from petstore_api.models.nullable_class import NullableClass class TestNullableClass(unittest.TestCase): """NullableClass unit test stubs""" @@ -28,50 +25,52 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> NullableClass: """Test NullableClass - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # model = petstore_api.models.nullable_class.NullableClass() # noqa: E501 - if include_optional : + # uncomment below to create an instance of `NullableClass` + """ + model = NullableClass() + if include_optional: return NullableClass( required_integer_prop = 56, - integer_prop = 56, - number_prop = 1.337, - boolean_prop = True, - string_prop = '', - date_prop = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - datetime_prop = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + integer_prop = 56, + number_prop = 1.337, + boolean_prop = True, + string_prop = '', + date_prop = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + datetime_prop = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), array_nullable_prop = [ None - ], + ], array_and_items_nullable_prop = [ None - ], + ], array_items_nullable = [ None - ], + ], object_nullable_prop = { 'key' : None - }, + }, object_and_items_nullable_prop = { 'key' : None - }, + }, object_items_nullable = { 'key' : None } ) - else : + else: return NullableClass( - required_integer_prop = 56 + required_integer_prop = 56, ) + """ def testNullableClass(self): """Test NullableClass""" - # TODO - #inst_req_only = self.make_instance(include_optional=False) - #inst_req_and_optional = self.make_instance(include_optional=True) + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_nullable_property.py b/samples/openapi3/client/petstore/python/test/test_nullable_property.py index 34129457b1d7..52bdc7874ed6 100644 --- a/samples/openapi3/client/petstore/python/test/test_nullable_property.py +++ b/samples/openapi3/client/petstore/python/test/test_nullable_property.py @@ -3,21 +3,18 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" +""" # noqa: E501 import unittest -import datetime -import petstore_api -from petstore_api.models.nullable_property import NullableProperty # noqa: E501 -from petstore_api.rest import ApiException +from petstore_api.models.nullable_property import NullableProperty class TestNullableProperty(unittest.TestCase): """NullableProperty unit test stubs""" @@ -28,20 +25,20 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> NullableProperty: """Test NullableProperty - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `NullableProperty` """ - model = petstore_api.models.nullable_property.NullableProperty() # noqa: E501 - if include_optional : + model = NullableProperty() + if include_optional: return NullableProperty( - id = 56, + id = 56, name = 'AUR,rZ#UM/?R,Fp^l6$ARjbhJk C>' ) - else : + else: return NullableProperty( id = 56, name = 'AUR,rZ#UM/?R,Fp^l6$ARjbhJk C>', diff --git a/samples/openapi3/client/petstore/python/test/test_number_only.py b/samples/openapi3/client/petstore/python/test/test_number_only.py index 776946c3d774..78d7c5cff926 100644 --- a/samples/openapi3/client/petstore/python/test/test_number_only.py +++ b/samples/openapi3/client/petstore/python/test/test_number_only.py @@ -3,21 +3,18 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import datetime -import petstore_api -from petstore_api.models.number_only import NumberOnly # noqa: E501 -from petstore_api.rest import ApiException +from petstore_api.models.number_only import NumberOnly class TestNumberOnly(unittest.TestCase): """NumberOnly unit test stubs""" @@ -28,24 +25,27 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> NumberOnly: """Test NumberOnly - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # model = petstore_api.models.number_only.NumberOnly() # noqa: E501 - if include_optional : + # uncomment below to create an instance of `NumberOnly` + """ + model = NumberOnly() + if include_optional: return NumberOnly( just_number = 1.337 ) - else : + else: return NumberOnly( ) + """ def testNumberOnly(self): """Test NumberOnly""" - inst_req_only = self.make_instance(include_optional=False) - inst_req_and_optional = self.make_instance(include_optional=True) + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_object_to_test_additional_properties.py b/samples/openapi3/client/petstore/python/test/test_object_to_test_additional_properties.py index f1f354cad251..62c9c5058656 100644 --- a/samples/openapi3/client/petstore/python/test/test_object_to_test_additional_properties.py +++ b/samples/openapi3/client/petstore/python/test/test_object_to_test_additional_properties.py @@ -3,21 +3,18 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" +""" # noqa: E501 import unittest -import datetime -import petstore_api -from petstore_api.models.object_to_test_additional_properties import ObjectToTestAdditionalProperties # noqa: E501 -from petstore_api.rest import ApiException +from petstore_api.models.object_to_test_additional_properties import ObjectToTestAdditionalProperties class TestObjectToTestAdditionalProperties(unittest.TestCase): """ObjectToTestAdditionalProperties unit test stubs""" @@ -28,19 +25,19 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> ObjectToTestAdditionalProperties: """Test ObjectToTestAdditionalProperties - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `ObjectToTestAdditionalProperties` """ - model = petstore_api.models.object_to_test_additional_properties.ObjectToTestAdditionalProperties() # noqa: E501 - if include_optional : + model = ObjectToTestAdditionalProperties() + if include_optional: return ObjectToTestAdditionalProperties( var_property = True ) - else : + else: return ObjectToTestAdditionalProperties( ) """ diff --git a/samples/openapi3/client/petstore/python/test/test_object_with_deprecated_fields.py b/samples/openapi3/client/petstore/python/test/test_object_with_deprecated_fields.py index e0cbf3e98a51..bf6bf779339c 100644 --- a/samples/openapi3/client/petstore/python/test/test_object_with_deprecated_fields.py +++ b/samples/openapi3/client/petstore/python/test/test_object_with_deprecated_fields.py @@ -3,21 +3,18 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import datetime -import petstore_api -from petstore_api.models.object_with_deprecated_fields import ObjectWithDeprecatedFields # noqa: E501 -from petstore_api.rest import ApiException +from petstore_api.models.object_with_deprecated_fields import ObjectWithDeprecatedFields class TestObjectWithDeprecatedFields(unittest.TestCase): """ObjectWithDeprecatedFields unit test stubs""" @@ -28,30 +25,33 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> ObjectWithDeprecatedFields: """Test ObjectWithDeprecatedFields - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # model = petstore_api.models.object_with_deprecated_fields.ObjectWithDeprecatedFields() # noqa: E501 - if include_optional : + # uncomment below to create an instance of `ObjectWithDeprecatedFields` + """ + model = ObjectWithDeprecatedFields() + if include_optional: return ObjectWithDeprecatedFields( - uuid = '', - id = 1.337, + uuid = '', + id = 1.337, deprecated_ref = petstore_api.models.deprecated_object.DeprecatedObject( - name = '', ), + name = '', ), bars = [ 'bar' ] ) - else : + else: return ObjectWithDeprecatedFields( ) + """ def testObjectWithDeprecatedFields(self): """Test ObjectWithDeprecatedFields""" - inst_req_only = self.make_instance(include_optional=False) - inst_req_and_optional = self.make_instance(include_optional=True) + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_one_of_enum_string.py b/samples/openapi3/client/petstore/python/test/test_one_of_enum_string.py index ed959c1479c2..0434db164a7e 100644 --- a/samples/openapi3/client/petstore/python/test/test_one_of_enum_string.py +++ b/samples/openapi3/client/petstore/python/test/test_one_of_enum_string.py @@ -3,21 +3,18 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" +""" # noqa: E501 import unittest -import datetime -import petstore_api -from petstore_api.models.one_of_enum_string import OneOfEnumString # noqa: E501 -from petstore_api.rest import ApiException +from petstore_api.models.one_of_enum_string import OneOfEnumString class TestOneOfEnumString(unittest.TestCase): """OneOfEnumString unit test stubs""" @@ -28,18 +25,18 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> OneOfEnumString: """Test OneOfEnumString - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `OneOfEnumString` """ - model = petstore_api.models.one_of_enum_string.OneOfEnumString() # noqa: E501 - if include_optional : + model = OneOfEnumString() + if include_optional: return OneOfEnumString( ) - else : + else: return OneOfEnumString( ) """ diff --git a/samples/openapi3/client/petstore/python/test/test_order.py b/samples/openapi3/client/petstore/python/test/test_order.py index d6ec36f83a0d..a9b4980702da 100644 --- a/samples/openapi3/client/petstore/python/test/test_order.py +++ b/samples/openapi3/client/petstore/python/test/test_order.py @@ -3,21 +3,18 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import datetime -import petstore_api -from petstore_api.models.order import Order # noqa: E501 -from petstore_api.rest import ApiException +from petstore_api.models.order import Order class TestOrder(unittest.TestCase): """Order unit test stubs""" @@ -28,29 +25,32 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> Order: """Test Order - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # model = petstore_api.models.order.Order() # noqa: E501 - if include_optional : + # uncomment below to create an instance of `Order` + """ + model = Order() + if include_optional: return Order( - id = 56, - pet_id = 56, - quantity = 56, - ship_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - status = 'placed', + id = 56, + pet_id = 56, + quantity = 56, + ship_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + status = 'placed', complete = True ) - else : + else: return Order( ) + """ def testOrder(self): """Test Order""" - inst_req_only = self.make_instance(include_optional=False) - inst_req_and_optional = self.make_instance(include_optional=True) + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_outer_composite.py b/samples/openapi3/client/petstore/python/test/test_outer_composite.py index c6fd58849377..5024f1c483aa 100644 --- a/samples/openapi3/client/petstore/python/test/test_outer_composite.py +++ b/samples/openapi3/client/petstore/python/test/test_outer_composite.py @@ -3,21 +3,18 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import datetime -import petstore_api -from petstore_api.models.outer_composite import OuterComposite # noqa: E501 -from petstore_api.rest import ApiException +from petstore_api.models.outer_composite import OuterComposite class TestOuterComposite(unittest.TestCase): """OuterComposite unit test stubs""" @@ -28,26 +25,29 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> OuterComposite: """Test OuterComposite - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # model = petstore_api.models.outer_composite.OuterComposite() # noqa: E501 - if include_optional : + # uncomment below to create an instance of `OuterComposite` + """ + model = OuterComposite() + if include_optional: return OuterComposite( - my_number = 1.337, - my_string = '', + my_number = 1.337, + my_string = '', my_boolean = True ) - else : + else: return OuterComposite( ) + """ def testOuterComposite(self): """Test OuterComposite""" - inst_req_only = self.make_instance(include_optional=False) - inst_req_and_optional = self.make_instance(include_optional=True) + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_outer_enum.py b/samples/openapi3/client/petstore/python/test/test_outer_enum.py index aa195260019e..2f82ecc94ba1 100644 --- a/samples/openapi3/client/petstore/python/test/test_outer_enum.py +++ b/samples/openapi3/client/petstore/python/test/test_outer_enum.py @@ -3,21 +3,18 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import datetime -import petstore_api -from petstore_api.models.outer_enum import OuterEnum # noqa: E501 -from petstore_api.rest import ApiException +from petstore_api.models.outer_enum import OuterEnum class TestOuterEnum(unittest.TestCase): """OuterEnum unit test stubs""" @@ -30,7 +27,7 @@ def tearDown(self): def testOuterEnum(self): """Test OuterEnum""" - inst = OuterEnum("placed") + # inst = OuterEnum() if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_outer_enum_default_value.py b/samples/openapi3/client/petstore/python/test/test_outer_enum_default_value.py index f8fba3bd79ad..2a7ff27a8245 100644 --- a/samples/openapi3/client/petstore/python/test/test_outer_enum_default_value.py +++ b/samples/openapi3/client/petstore/python/test/test_outer_enum_default_value.py @@ -3,21 +3,18 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import datetime -import petstore_api -from petstore_api.models.outer_enum_default_value import OuterEnumDefaultValue # noqa: E501 -from petstore_api.rest import ApiException +from petstore_api.models.outer_enum_default_value import OuterEnumDefaultValue class TestOuterEnumDefaultValue(unittest.TestCase): """OuterEnumDefaultValue unit test stubs""" diff --git a/samples/openapi3/client/petstore/python/test/test_outer_enum_integer.py b/samples/openapi3/client/petstore/python/test/test_outer_enum_integer.py index ce1e47c61b14..d74dcb0981a9 100644 --- a/samples/openapi3/client/petstore/python/test/test_outer_enum_integer.py +++ b/samples/openapi3/client/petstore/python/test/test_outer_enum_integer.py @@ -3,21 +3,18 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import datetime -import petstore_api -from petstore_api.models.outer_enum_integer import OuterEnumInteger # noqa: E501 -from petstore_api.rest import ApiException +from petstore_api.models.outer_enum_integer import OuterEnumInteger class TestOuterEnumInteger(unittest.TestCase): """OuterEnumInteger unit test stubs""" diff --git a/samples/openapi3/client/petstore/python/test/test_outer_enum_integer_default_value.py b/samples/openapi3/client/petstore/python/test/test_outer_enum_integer_default_value.py index f0b707fca778..230db8cb8176 100644 --- a/samples/openapi3/client/petstore/python/test/test_outer_enum_integer_default_value.py +++ b/samples/openapi3/client/petstore/python/test/test_outer_enum_integer_default_value.py @@ -3,21 +3,18 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import datetime -import petstore_api -from petstore_api.models.outer_enum_integer_default_value import OuterEnumIntegerDefaultValue # noqa: E501 -from petstore_api.rest import ApiException +from petstore_api.models.outer_enum_integer_default_value import OuterEnumIntegerDefaultValue class TestOuterEnumIntegerDefaultValue(unittest.TestCase): """OuterEnumIntegerDefaultValue unit test stubs""" @@ -28,23 +25,9 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): - """Test OuterEnumIntegerDefaultValue - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # model = petstore_api.models.outer_enum_integer_default_value.OuterEnumIntegerDefaultValue() # noqa: E501 - if include_optional : - return OuterEnumIntegerDefaultValue( - ) - else : - return OuterEnumIntegerDefaultValue( - ) - def testOuterEnumIntegerDefaultValue(self): """Test OuterEnumIntegerDefaultValue""" - #inst_req_only = self.make_instance(include_optional=False) - #inst_req_and_optional = self.make_instance(include_optional=True) + # inst = OuterEnumIntegerDefaultValue() if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_outer_object_with_enum_property.py b/samples/openapi3/client/petstore/python/test/test_outer_object_with_enum_property.py index 35258d5d74ac..a1c896ae6610 100644 --- a/samples/openapi3/client/petstore/python/test/test_outer_object_with_enum_property.py +++ b/samples/openapi3/client/petstore/python/test/test_outer_object_with_enum_property.py @@ -3,21 +3,18 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import datetime -import petstore_api -from petstore_api.models.outer_object_with_enum_property import OuterObjectWithEnumProperty # noqa: E501 -from petstore_api.rest import ApiException +from petstore_api.models.outer_object_with_enum_property import OuterObjectWithEnumProperty class TestOuterObjectWithEnumProperty(unittest.TestCase): """OuterObjectWithEnumProperty unit test stubs""" @@ -28,20 +25,24 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> OuterObjectWithEnumProperty: """Test OuterObjectWithEnumProperty - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # model = petstore_api.models.outer_object_with_enum_property.OuterObjectWithEnumProperty() # noqa: E501 - if include_optional : + # uncomment below to create an instance of `OuterObjectWithEnumProperty` + """ + model = OuterObjectWithEnumProperty() + if include_optional: return OuterObjectWithEnumProperty( + str_value = 'placed', value = 2 ) - else : + else: return OuterObjectWithEnumProperty( value = 2, ) + """ def testOuterObjectWithEnumProperty(self): """Test OuterObjectWithEnumProperty""" diff --git a/samples/openapi3/client/petstore/python/test/test_parent.py b/samples/openapi3/client/petstore/python/test/test_parent.py index 2a74505f08a1..ea1242c24f4e 100644 --- a/samples/openapi3/client/petstore/python/test/test_parent.py +++ b/samples/openapi3/client/petstore/python/test/test_parent.py @@ -3,21 +3,18 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" +""" # noqa: E501 import unittest -import datetime -import petstore_api -from petstore_api.models.parent import Parent # noqa: E501 -from petstore_api.rest import ApiException +from petstore_api.models.parent import Parent class TestParent(unittest.TestCase): """Parent unit test stubs""" @@ -28,22 +25,22 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> Parent: """Test Parent - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `Parent` """ - model = petstore_api.models.parent.Parent() # noqa: E501 - if include_optional : + model = Parent() + if include_optional: return Parent( optional_dict = { 'key' : petstore_api.models.inner_dict_with_property.InnerDictWithProperty( a_property = petstore_api.models.a_property.aProperty(), ) } ) - else : + else: return Parent( ) """ diff --git a/samples/openapi3/client/petstore/python/test/test_parent_with_optional_dict.py b/samples/openapi3/client/petstore/python/test/test_parent_with_optional_dict.py index 25b769e3d390..7cc74f9e98ec 100644 --- a/samples/openapi3/client/petstore/python/test/test_parent_with_optional_dict.py +++ b/samples/openapi3/client/petstore/python/test/test_parent_with_optional_dict.py @@ -3,23 +3,18 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" - +""" # noqa: E501 -from __future__ import absolute_import import unittest -import datetime -import petstore_api -from petstore_api.models.parent_with_optional_dict import ParentWithOptionalDict # noqa: E501 -from petstore_api.rest import ApiException +from petstore_api.models.parent_with_optional_dict import ParentWithOptionalDict class TestParentWithOptionalDict(unittest.TestCase): """ParentWithOptionalDict unit test stubs""" @@ -30,22 +25,22 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> ParentWithOptionalDict: """Test ParentWithOptionalDict - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `ParentWithOptionalDict` """ - model = petstore_api.models.parent_with_optional_dict.ParentWithOptionalDict() # noqa: E501 - if include_optional : + model = ParentWithOptionalDict() + if include_optional: return ParentWithOptionalDict( optional_dict = { 'key' : petstore_api.models.inner_dict_with_property.InnerDictWithProperty( a_property = petstore_api.models.a_property.aProperty(), ) } ) - else : + else: return ParentWithOptionalDict( ) """ diff --git a/samples/openapi3/client/petstore/python/test/test_pet.py b/samples/openapi3/client/petstore/python/test/test_pet.py index de97fcf848b5..3edc400fafcb 100644 --- a/samples/openapi3/client/petstore/python/test/test_pet.py +++ b/samples/openapi3/client/petstore/python/test/test_pet.py @@ -3,21 +3,18 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import datetime -import petstore_api -from petstore_api.models.pet import Pet # noqa: E501 -from petstore_api.rest import ApiException +from petstore_api.models.pet import Pet class TestPet(unittest.TestCase): """Pet unit test stubs""" @@ -28,41 +25,44 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> Pet: """Test Pet - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # model = petstore_api.models.pet.Pet() # noqa: E501 - if include_optional : + # uncomment below to create an instance of `Pet` + """ + model = Pet() + if include_optional: return Pet( - id = 56, + id = 56, category = petstore_api.models.category.Category( id = 56, - name = 'default-name', ), - name = 'doggie', - photoUrls = [ + name = 'default-name', ), + name = 'doggie', + photo_urls = [ '' - ], + ], tags = [ petstore_api.models.tag.Tag( id = 56, name = '', ) - ], + ], status = 'available' ) - else : + else: return Pet( name = 'doggie', - photoUrls = [ + photo_urls = [ '' ], ) + """ def testPet(self): """Test Pet""" - inst_req_only = self.make_instance(include_optional=False) - inst_req_and_optional = self.make_instance(include_optional=True) + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_pet_api.py b/samples/openapi3/client/petstore/python/test/test_pet_api.py index 77665df879f1..4cf869d36a26 100644 --- a/samples/openapi3/client/petstore/python/test/test_pet_api.py +++ b/samples/openapi3/client/petstore/python/test/test_pet_api.py @@ -3,91 +3,89 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import petstore_api -from petstore_api.api.pet_api import PetApi # noqa: E501 -from petstore_api.rest import ApiException +from petstore_api.api.pet_api import PetApi class TestPetApi(unittest.TestCase): """PetApi unit test stubs""" - def setUp(self): - self.api = petstore_api.api.pet_api.PetApi() # noqa: E501 + def setUp(self) -> None: + self.api = PetApi() - def tearDown(self): + def tearDown(self) -> None: pass - def test_add_pet(self): + def test_add_pet(self) -> None: """Test case for add_pet - Add a new pet to the store # noqa: E501 + Add a new pet to the store """ pass - def test_delete_pet(self): + def test_delete_pet(self) -> None: """Test case for delete_pet - Deletes a pet # noqa: E501 + Deletes a pet """ pass - def test_find_pets_by_status(self): + def test_find_pets_by_status(self) -> None: """Test case for find_pets_by_status - Finds Pets by status # noqa: E501 + Finds Pets by status """ pass - def test_find_pets_by_tags(self): + def test_find_pets_by_tags(self) -> None: """Test case for find_pets_by_tags - Finds Pets by tags # noqa: E501 + Finds Pets by tags """ pass - def test_get_pet_by_id(self): + def test_get_pet_by_id(self) -> None: """Test case for get_pet_by_id - Find pet by ID # noqa: E501 + Find pet by ID """ pass - def test_update_pet(self): + def test_update_pet(self) -> None: """Test case for update_pet - Update an existing pet # noqa: E501 + Update an existing pet """ pass - def test_update_pet_with_form(self): + def test_update_pet_with_form(self) -> None: """Test case for update_pet_with_form - Updates a pet in the store with form data # noqa: E501 + Updates a pet in the store with form data """ pass - def test_upload_file(self): + def test_upload_file(self) -> None: """Test case for upload_file - uploads an image # noqa: E501 + uploads an image """ pass - def test_upload_file_with_required_file(self): + def test_upload_file_with_required_file(self) -> None: """Test case for upload_file_with_required_file - uploads an image (required) # noqa: E501 + uploads an image (required) """ pass diff --git a/samples/openapi3/client/petstore/python/test/test_pig.py b/samples/openapi3/client/petstore/python/test/test_pig.py index 95e99f35a738..c336579232b0 100644 --- a/samples/openapi3/client/petstore/python/test/test_pig.py +++ b/samples/openapi3/client/petstore/python/test/test_pig.py @@ -3,21 +3,18 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import datetime -import petstore_api -from petstore_api.models.pig import Pig # noqa: E501 -from petstore_api.rest import ApiException +from petstore_api.models.pig import Pig class TestPig(unittest.TestCase): """Pig unit test stubs""" @@ -28,6 +25,28 @@ def setUp(self): def tearDown(self): pass + def make_instance(self, include_optional) -> Pig: + """Test Pig + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `Pig` + """ + model = Pig() + if include_optional: + return Pig( + class_name = '', + color = '', + size = 56 + ) + else: + return Pig( + class_name = '', + color = '', + size = 56, + ) + """ + def testPig(self): """Test Pig""" # inst_req_only = self.make_instance(include_optional=False) diff --git a/samples/openapi3/client/petstore/python/test/test_poop_cleaning.py b/samples/openapi3/client/petstore/python/test/test_poop_cleaning.py index 4c94fddca97a..5a12f965aefe 100644 --- a/samples/openapi3/client/petstore/python/test/test_poop_cleaning.py +++ b/samples/openapi3/client/petstore/python/test/test_poop_cleaning.py @@ -13,7 +13,6 @@ import unittest -import datetime from petstore_api.models.poop_cleaning import PoopCleaning @@ -28,7 +27,7 @@ def tearDown(self): def make_instance(self, include_optional) -> PoopCleaning: """Test PoopCleaning - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `PoopCleaning` diff --git a/samples/openapi3/client/petstore/python/test/test_primitive_string.py b/samples/openapi3/client/petstore/python/test/test_primitive_string.py index 8b9ccf59893b..67ec90914d0f 100644 --- a/samples/openapi3/client/petstore/python/test/test_primitive_string.py +++ b/samples/openapi3/client/petstore/python/test/test_primitive_string.py @@ -27,7 +27,7 @@ def tearDown(self): def make_instance(self, include_optional) -> PrimitiveString: """Test PrimitiveString - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `PrimitiveString` diff --git a/samples/openapi3/client/petstore/python/test/test_property_map.py b/samples/openapi3/client/petstore/python/test/test_property_map.py index 3934a29432ed..2f2fed72a136 100644 --- a/samples/openapi3/client/petstore/python/test/test_property_map.py +++ b/samples/openapi3/client/petstore/python/test/test_property_map.py @@ -27,7 +27,7 @@ def tearDown(self): def make_instance(self, include_optional) -> PropertyMap: """Test PropertyMap - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `PropertyMap` diff --git a/samples/openapi3/client/petstore/python/test/test_property_name_collision.py b/samples/openapi3/client/petstore/python/test/test_property_name_collision.py index 04ab956f191d..ab7919c7e6a9 100644 --- a/samples/openapi3/client/petstore/python/test/test_property_name_collision.py +++ b/samples/openapi3/client/petstore/python/test/test_property_name_collision.py @@ -3,21 +3,18 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" +""" # noqa: E501 import unittest -import datetime -import petstore_api -from petstore_api.models.property_name_collision import PropertyNameCollision # noqa: E501 -from petstore_api.rest import ApiException +from petstore_api.models.property_name_collision import PropertyNameCollision class TestPropertyNameCollision(unittest.TestCase): """PropertyNameCollision unit test stubs""" @@ -28,21 +25,21 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> PropertyNameCollision: """Test PropertyNameCollision - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `PropertyNameCollision` """ - model = petstore_api.models.property_name_collision.PropertyNameCollision() # noqa: E501 - if include_optional : + model = PropertyNameCollision() + if include_optional: return PropertyNameCollision( - underscoreType = '', - type = '', - typeWithUnderscore = '' + underscore_type = '', + type = '', + type_with_underscore = '' ) - else : + else: return PropertyNameCollision( ) """ diff --git a/samples/openapi3/client/petstore/python/test/test_read_only_first.py b/samples/openapi3/client/petstore/python/test/test_read_only_first.py index 310e4b1aebbe..ec7a1aa24140 100644 --- a/samples/openapi3/client/petstore/python/test/test_read_only_first.py +++ b/samples/openapi3/client/petstore/python/test/test_read_only_first.py @@ -3,21 +3,18 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import datetime -import petstore_api -from petstore_api.models.read_only_first import ReadOnlyFirst # noqa: E501 -from petstore_api.rest import ApiException +from petstore_api.models.read_only_first import ReadOnlyFirst class TestReadOnlyFirst(unittest.TestCase): """ReadOnlyFirst unit test stubs""" @@ -28,25 +25,28 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> ReadOnlyFirst: """Test ReadOnlyFirst - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # model = petstore_api.models.read_only_first.ReadOnlyFirst() # noqa: E501 - if include_optional : + # uncomment below to create an instance of `ReadOnlyFirst` + """ + model = ReadOnlyFirst() + if include_optional: return ReadOnlyFirst( - bar = '', + bar = '', baz = '' ) - else : + else: return ReadOnlyFirst( ) + """ def testReadOnlyFirst(self): """Test ReadOnlyFirst""" - inst_req_only = self.make_instance(include_optional=False) - inst_req_and_optional = self.make_instance(include_optional=True) + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_second_circular_all_of_ref.py b/samples/openapi3/client/petstore/python/test/test_second_circular_all_of_ref.py index 5e6d12f756bd..21d9005a5e82 100644 --- a/samples/openapi3/client/petstore/python/test/test_second_circular_all_of_ref.py +++ b/samples/openapi3/client/petstore/python/test/test_second_circular_all_of_ref.py @@ -27,7 +27,7 @@ def tearDown(self): def make_instance(self, include_optional) -> SecondCircularAllOfRef: """Test SecondCircularAllOfRef - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `SecondCircularAllOfRef` @@ -35,13 +35,10 @@ def make_instance(self, include_optional) -> SecondCircularAllOfRef: model = SecondCircularAllOfRef() if include_optional: return SecondCircularAllOfRef( + name = '', circular_all_of_ref = [ - petstore_api.models.circular_all_of_ref.CircularAllOfRef( - second_circular_all_of_ref = [ - petstore_api.models.second_circular_all_of_ref.SecondCircularAllOfRef() - ], ) - ], - name = '' + petstore_api.models.circular_all_of_ref.CircularAllOfRef() + ] ) else: return SecondCircularAllOfRef( diff --git a/samples/openapi3/client/petstore/python/test/test_second_ref.py b/samples/openapi3/client/petstore/python/test/test_second_ref.py index 782892fd4e17..f6117988c198 100644 --- a/samples/openapi3/client/petstore/python/test/test_second_ref.py +++ b/samples/openapi3/client/petstore/python/test/test_second_ref.py @@ -3,23 +3,18 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" - +""" # noqa: E501 -from __future__ import absolute_import import unittest -import datetime -import petstore_api -from petstore_api.models.second_ref import SecondRef # noqa: E501 -from petstore_api.rest import ApiException +from petstore_api.models.second_ref import SecondRef class TestSecondRef(unittest.TestCase): """SecondRef unit test stubs""" @@ -30,17 +25,17 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> SecondRef: """Test SecondRef - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `SecondRef` """ - model = petstore_api.models.second_ref.SecondRef() # noqa: E501 - if include_optional : + model = SecondRef() + if include_optional: return SecondRef( - category = '', + category = '', circular_ref = petstore_api.models.circular_reference_model.Circular-Reference-Model( size = 56, nested = petstore_api.models.first_ref.FirstRef( @@ -48,7 +43,7 @@ def make_instance(self, include_optional): self_ref = petstore_api.models.second_ref.SecondRef( category = '', ), ), ) ) - else : + else: return SecondRef( ) """ diff --git a/samples/openapi3/client/petstore/python/test/test_self_reference_model.py b/samples/openapi3/client/petstore/python/test/test_self_reference_model.py index b3dd7ada2b2a..018bcd195b64 100644 --- a/samples/openapi3/client/petstore/python/test/test_self_reference_model.py +++ b/samples/openapi3/client/petstore/python/test/test_self_reference_model.py @@ -3,21 +3,18 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import datetime -import petstore_api -from petstore_api.models.self_reference_model import SelfReferenceModel # noqa: E501 -from petstore_api.rest import ApiException +from petstore_api.models.self_reference_model import SelfReferenceModel class TestSelfReferenceModel(unittest.TestCase): """SelfReferenceModel unit test stubs""" @@ -28,17 +25,17 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> SelfReferenceModel: """Test SelfReferenceModel - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `SelfReferenceModel` """ - model = petstore_api.models.self_reference_model.SelfReferenceModel() # noqa: E501 - if include_optional : + model = SelfReferenceModel() + if include_optional: return SelfReferenceModel( - size = 56, + size = 56, nested = petstore_api.models.dummy_model.Dummy-Model( category = '', self_ref = petstore_api.models.self_reference_model.Self-Reference-Model( @@ -46,7 +43,7 @@ def make_instance(self, include_optional): nested = petstore_api.models.dummy_model.Dummy-Model( category = '', ), ), ) ) - else : + else: return SelfReferenceModel( ) """ diff --git a/samples/openapi3/client/petstore/python/test/test_single_ref_type.py b/samples/openapi3/client/petstore/python/test/test_single_ref_type.py index 888a1a7b6da3..630b1c137087 100644 --- a/samples/openapi3/client/petstore/python/test/test_single_ref_type.py +++ b/samples/openapi3/client/petstore/python/test/test_single_ref_type.py @@ -3,21 +3,18 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import datetime -import petstore_api -from petstore_api.models.single_ref_type import SingleRefType # noqa: E501 -from petstore_api.rest import ApiException +from petstore_api.models.single_ref_type import SingleRefType class TestSingleRefType(unittest.TestCase): """SingleRefType unit test stubs""" @@ -28,23 +25,9 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): - """Test SingleRefType - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # model = petstore_api.models.single_ref_type.SingleRefType() # noqa: E501 - if include_optional : - return SingleRefType( - ) - else : - return SingleRefType( - ) - def testSingleRefType(self): """Test SingleRefType""" - #inst_req_only = self.make_instance(include_optional=False) - #inst_req_and_optional = self.make_instance(include_optional=True) + # inst = SingleRefType() if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_special_character_enum.py b/samples/openapi3/client/petstore/python/test/test_special_character_enum.py index 028f55599e49..464808e61b09 100644 --- a/samples/openapi3/client/petstore/python/test/test_special_character_enum.py +++ b/samples/openapi3/client/petstore/python/test/test_special_character_enum.py @@ -3,21 +3,18 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import datetime -import petstore_api -from petstore_api.models.special_character_enum import SpecialCharacterEnum # noqa: E501 -from petstore_api.rest import ApiException +from petstore_api.models.special_character_enum import SpecialCharacterEnum class TestSpecialCharacterEnum(unittest.TestCase): """SpecialCharacterEnum unit test stubs""" diff --git a/samples/openapi3/client/petstore/python/test/test_special_model_name.py b/samples/openapi3/client/petstore/python/test/test_special_model_name.py index eb487cd42fc1..e913fa28f51e 100644 --- a/samples/openapi3/client/petstore/python/test/test_special_model_name.py +++ b/samples/openapi3/client/petstore/python/test/test_special_model_name.py @@ -3,21 +3,18 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import datetime -import petstore_api -from petstore_api.models.special_model_name import SpecialModelName # noqa: E501 -from petstore_api.rest import ApiException +from petstore_api.models.special_model_name import SpecialModelName class TestSpecialModelName(unittest.TestCase): """SpecialModelName unit test stubs""" @@ -28,24 +25,27 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> SpecialModelName: """Test SpecialModelName - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # model = petstore_api.models.special_model_name.SpecialModelName() # noqa: E501 - if include_optional : + # uncomment below to create an instance of `SpecialModelName` + """ + model = SpecialModelName() + if include_optional: return SpecialModelName( special_property_name = 56 ) - else : + else: return SpecialModelName( ) + """ def testSpecialModelName(self): """Test SpecialModelName""" - inst_req_only = self.make_instance(include_optional=False) - inst_req_and_optional = self.make_instance(include_optional=True) + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_special_name.py b/samples/openapi3/client/petstore/python/test/test_special_name.py index 1f4287871a8e..153768c98984 100644 --- a/samples/openapi3/client/petstore/python/test/test_special_name.py +++ b/samples/openapi3/client/petstore/python/test/test_special_name.py @@ -3,21 +3,18 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import datetime -import petstore_api -from petstore_api.models.special_name import SpecialName # noqa: E501 -from petstore_api.rest import ApiException +from petstore_api.models.special_name import SpecialName class TestSpecialName(unittest.TestCase): """SpecialName unit test stubs""" @@ -28,23 +25,23 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> SpecialName: """Test SpecialName - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `SpecialName` """ - model = petstore_api.models.special_name.SpecialName() # noqa: E501 - if include_optional : + model = SpecialName() + if include_optional: return SpecialName( - var_property = 56, + var_property = 56, var_async = petstore_api.models.category.Category( id = 56, - name = 'default-name', ), - status = 'available' + name = 'default-name', ), + var_schema = 'available' ) - else : + else: return SpecialName( ) """ diff --git a/samples/openapi3/client/petstore/python/test/test_store_api.py b/samples/openapi3/client/petstore/python/test/test_store_api.py index 81848d24a67e..603b0f7bc57c 100644 --- a/samples/openapi3/client/petstore/python/test/test_store_api.py +++ b/samples/openapi3/client/petstore/python/test/test_store_api.py @@ -3,56 +3,54 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import petstore_api -from petstore_api.api.store_api import StoreApi # noqa: E501 -from petstore_api.rest import ApiException +from petstore_api.api.store_api import StoreApi class TestStoreApi(unittest.TestCase): """StoreApi unit test stubs""" - def setUp(self): - self.api = petstore_api.api.store_api.StoreApi() # noqa: E501 + def setUp(self) -> None: + self.api = StoreApi() - def tearDown(self): + def tearDown(self) -> None: pass - def test_delete_order(self): + def test_delete_order(self) -> None: """Test case for delete_order - Delete purchase order by ID # noqa: E501 + Delete purchase order by ID """ pass - def test_get_inventory(self): + def test_get_inventory(self) -> None: """Test case for get_inventory - Returns pet inventories by status # noqa: E501 + Returns pet inventories by status """ pass - def test_get_order_by_id(self): + def test_get_order_by_id(self) -> None: """Test case for get_order_by_id - Find purchase order by ID # noqa: E501 + Find purchase order by ID """ pass - def test_place_order(self): + def test_place_order(self) -> None: """Test case for place_order - Place an order for a pet # noqa: E501 + Place an order for a pet """ pass diff --git a/samples/openapi3/client/petstore/python/test/test_tag.py b/samples/openapi3/client/petstore/python/test/test_tag.py index 9680300032f1..92061e615e28 100644 --- a/samples/openapi3/client/petstore/python/test/test_tag.py +++ b/samples/openapi3/client/petstore/python/test/test_tag.py @@ -3,21 +3,18 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import datetime -import petstore_api -from petstore_api.models.tag import Tag # noqa: E501 -from petstore_api.rest import ApiException +from petstore_api.models.tag import Tag class TestTag(unittest.TestCase): """Tag unit test stubs""" @@ -28,25 +25,28 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> Tag: """Test Tag - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # model = petstore_api.models.tag.Tag() # noqa: E501 - if include_optional : + # uncomment below to create an instance of `Tag` + """ + model = Tag() + if include_optional: return Tag( - id = 56, + id = 56, name = '' ) - else : + else: return Tag( ) + """ def testTag(self): """Test Tag""" - inst_req_only = self.make_instance(include_optional=False) - inst_req_and_optional = self.make_instance(include_optional=True) + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_task.py b/samples/openapi3/client/petstore/python/test/test_task.py index bbbc14a39928..0044da80776b 100644 --- a/samples/openapi3/client/petstore/python/test/test_task.py +++ b/samples/openapi3/client/petstore/python/test/test_task.py @@ -13,7 +13,6 @@ import unittest -import datetime from petstore_api.models.task import Task @@ -28,7 +27,7 @@ def tearDown(self): def make_instance(self, include_optional) -> Task: """Test Task - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `Task` diff --git a/samples/openapi3/client/petstore/python/test/test_task_activity.py b/samples/openapi3/client/petstore/python/test/test_task_activity.py index 2d56d9c5ad3e..bd25e5887ac4 100644 --- a/samples/openapi3/client/petstore/python/test/test_task_activity.py +++ b/samples/openapi3/client/petstore/python/test/test_task_activity.py @@ -13,7 +13,6 @@ import unittest -import datetime from petstore_api.models.task_activity import TaskActivity @@ -28,7 +27,7 @@ def tearDown(self): def make_instance(self, include_optional) -> TaskActivity: """Test TaskActivity - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `TaskActivity` diff --git a/samples/openapi3/client/petstore/python/test/test_test_error_responses_with_model400_response.py b/samples/openapi3/client/petstore/python/test/test_test_error_responses_with_model400_response.py index 35db7ba74fb7..72d243b82fc4 100644 --- a/samples/openapi3/client/petstore/python/test/test_test_error_responses_with_model400_response.py +++ b/samples/openapi3/client/petstore/python/test/test_test_error_responses_with_model400_response.py @@ -13,7 +13,6 @@ import unittest -import datetime from petstore_api.models.test_error_responses_with_model400_response import TestErrorResponsesWithModel400Response @@ -28,7 +27,7 @@ def tearDown(self): def make_instance(self, include_optional) -> TestErrorResponsesWithModel400Response: """Test TestErrorResponsesWithModel400Response - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `TestErrorResponsesWithModel400Response` diff --git a/samples/openapi3/client/petstore/python/test/test_test_error_responses_with_model404_response.py b/samples/openapi3/client/petstore/python/test/test_test_error_responses_with_model404_response.py index e9c97c0f484b..fff790172b14 100644 --- a/samples/openapi3/client/petstore/python/test/test_test_error_responses_with_model404_response.py +++ b/samples/openapi3/client/petstore/python/test/test_test_error_responses_with_model404_response.py @@ -13,7 +13,6 @@ import unittest -import datetime from petstore_api.models.test_error_responses_with_model404_response import TestErrorResponsesWithModel404Response @@ -28,7 +27,7 @@ def tearDown(self): def make_instance(self, include_optional) -> TestErrorResponsesWithModel404Response: """Test TestErrorResponsesWithModel404Response - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `TestErrorResponsesWithModel404Response` diff --git a/samples/openapi3/client/petstore/python/test/test_test_inline_freeform_additional_properties_request.py b/samples/openapi3/client/petstore/python/test/test_test_inline_freeform_additional_properties_request.py index 5c40397bc913..add42258580a 100644 --- a/samples/openapi3/client/petstore/python/test/test_test_inline_freeform_additional_properties_request.py +++ b/samples/openapi3/client/petstore/python/test/test_test_inline_freeform_additional_properties_request.py @@ -13,9 +13,8 @@ import unittest -import datetime -from petstore_api.models.test_inline_freeform_additional_properties_request import TestInlineFreeformAdditionalPropertiesRequest # noqa: E501 +from petstore_api.models.test_inline_freeform_additional_properties_request import TestInlineFreeformAdditionalPropertiesRequest class TestTestInlineFreeformAdditionalPropertiesRequest(unittest.TestCase): """TestInlineFreeformAdditionalPropertiesRequest unit test stubs""" @@ -28,12 +27,12 @@ def tearDown(self): def make_instance(self, include_optional) -> TestInlineFreeformAdditionalPropertiesRequest: """Test TestInlineFreeformAdditionalPropertiesRequest - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `TestInlineFreeformAdditionalPropertiesRequest` """ - model = TestInlineFreeformAdditionalPropertiesRequest() # noqa: E501 + model = TestInlineFreeformAdditionalPropertiesRequest() if include_optional: return TestInlineFreeformAdditionalPropertiesRequest( some_property = '' diff --git a/samples/openapi3/client/petstore/python/test/test_test_model_with_enum_default.py b/samples/openapi3/client/petstore/python/test/test_test_model_with_enum_default.py index 7d2029d0af92..e58802b59de7 100644 --- a/samples/openapi3/client/petstore/python/test/test_test_model_with_enum_default.py +++ b/samples/openapi3/client/petstore/python/test/test_test_model_with_enum_default.py @@ -27,7 +27,7 @@ def tearDown(self): def make_instance(self, include_optional) -> TestModelWithEnumDefault: """Test TestModelWithEnumDefault - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `TestModelWithEnumDefault` diff --git a/samples/openapi3/client/petstore/python/test/test_test_object_for_multipart_requests_request_marker.py b/samples/openapi3/client/petstore/python/test/test_test_object_for_multipart_requests_request_marker.py index 3c831caad5a0..585a39c8fe6b 100644 --- a/samples/openapi3/client/petstore/python/test/test_test_object_for_multipart_requests_request_marker.py +++ b/samples/openapi3/client/petstore/python/test/test_test_object_for_multipart_requests_request_marker.py @@ -27,7 +27,7 @@ def tearDown(self): def make_instance(self, include_optional) -> TestObjectForMultipartRequestsRequestMarker: """Test TestObjectForMultipartRequestsRequestMarker - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `TestObjectForMultipartRequestsRequestMarker` diff --git a/samples/openapi3/client/petstore/python/test/test_tiger.py b/samples/openapi3/client/petstore/python/test/test_tiger.py index 83c91cea1a0d..2d153c1749c3 100644 --- a/samples/openapi3/client/petstore/python/test/test_tiger.py +++ b/samples/openapi3/client/petstore/python/test/test_tiger.py @@ -3,21 +3,18 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" +""" # noqa: E501 import unittest -import datetime -import petstore_api -from petstore_api.models.tiger import Tiger # noqa: E501 -from petstore_api.rest import ApiException +from petstore_api.models.tiger import Tiger class TestTiger(unittest.TestCase): """Tiger unit test stubs""" @@ -28,19 +25,19 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> Tiger: """Test Tiger - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `Tiger` """ - model = petstore_api.models.tiger.Tiger() # noqa: E501 - if include_optional : + model = Tiger() + if include_optional: return Tiger( skill = '' ) - else : + else: return Tiger( ) """ diff --git a/samples/openapi3/client/petstore/python/test/test_unnamed_dict_with_additional_model_list_properties.py b/samples/openapi3/client/petstore/python/test/test_unnamed_dict_with_additional_model_list_properties.py index 64854cb7ee97..874af4e78f8b 100644 --- a/samples/openapi3/client/petstore/python/test/test_unnamed_dict_with_additional_model_list_properties.py +++ b/samples/openapi3/client/petstore/python/test/test_unnamed_dict_with_additional_model_list_properties.py @@ -13,9 +13,8 @@ import unittest -import datetime -from petstore_api.models.unnamed_dict_with_additional_model_list_properties import UnnamedDictWithAdditionalModelListProperties # noqa: E501 +from petstore_api.models.unnamed_dict_with_additional_model_list_properties import UnnamedDictWithAdditionalModelListProperties class TestUnnamedDictWithAdditionalModelListProperties(unittest.TestCase): """UnnamedDictWithAdditionalModelListProperties unit test stubs""" @@ -28,12 +27,12 @@ def tearDown(self): def make_instance(self, include_optional) -> UnnamedDictWithAdditionalModelListProperties: """Test UnnamedDictWithAdditionalModelListProperties - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `UnnamedDictWithAdditionalModelListProperties` """ - model = UnnamedDictWithAdditionalModelListProperties() # noqa: E501 + model = UnnamedDictWithAdditionalModelListProperties() if include_optional: return UnnamedDictWithAdditionalModelListProperties( dict_property = { diff --git a/samples/openapi3/client/petstore/python/test/test_unnamed_dict_with_additional_string_list_properties.py b/samples/openapi3/client/petstore/python/test/test_unnamed_dict_with_additional_string_list_properties.py index 832dc0c32d2a..e0a94bc92dc1 100644 --- a/samples/openapi3/client/petstore/python/test/test_unnamed_dict_with_additional_string_list_properties.py +++ b/samples/openapi3/client/petstore/python/test/test_unnamed_dict_with_additional_string_list_properties.py @@ -13,9 +13,8 @@ import unittest -import datetime -from petstore_api.models.unnamed_dict_with_additional_string_list_properties import UnnamedDictWithAdditionalStringListProperties # noqa: E501 +from petstore_api.models.unnamed_dict_with_additional_string_list_properties import UnnamedDictWithAdditionalStringListProperties class TestUnnamedDictWithAdditionalStringListProperties(unittest.TestCase): """UnnamedDictWithAdditionalStringListProperties unit test stubs""" @@ -28,12 +27,12 @@ def tearDown(self): def make_instance(self, include_optional) -> UnnamedDictWithAdditionalStringListProperties: """Test UnnamedDictWithAdditionalStringListProperties - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `UnnamedDictWithAdditionalStringListProperties` """ - model = UnnamedDictWithAdditionalStringListProperties() # noqa: E501 + model = UnnamedDictWithAdditionalStringListProperties() if include_optional: return UnnamedDictWithAdditionalStringListProperties( dict_property = { diff --git a/samples/openapi3/client/petstore/python/test/test_user.py b/samples/openapi3/client/petstore/python/test/test_user.py index 174c8e06be5d..19c320733220 100644 --- a/samples/openapi3/client/petstore/python/test/test_user.py +++ b/samples/openapi3/client/petstore/python/test/test_user.py @@ -3,21 +3,18 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import datetime -import petstore_api -from petstore_api.models.user import User # noqa: E501 -from petstore_api.rest import ApiException +from petstore_api.models.user import User class TestUser(unittest.TestCase): """User unit test stubs""" @@ -28,31 +25,34 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> User: """Test User - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # model = petstore_api.models.user.User() # noqa: E501 - if include_optional : + # uncomment below to create an instance of `User` + """ + model = User() + if include_optional: return User( - id = 56, - username = '', - first_name = '', - last_name = '', - email = '', - password = '', - phone = '', + id = 56, + username = '', + first_name = '', + last_name = '', + email = '', + password = '', + phone = '', user_status = 56 ) - else : + else: return User( ) + """ def testUser(self): """Test User""" - inst_req_only = self.make_instance(include_optional=False) - inst_req_and_optional = self.make_instance(include_optional=True) + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_user_api.py b/samples/openapi3/client/petstore/python/test/test_user_api.py index 6df730fba2b1..6b17c42093e2 100644 --- a/samples/openapi3/client/petstore/python/test/test_user_api.py +++ b/samples/openapi3/client/petstore/python/test/test_user_api.py @@ -3,84 +3,82 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import petstore_api -from petstore_api.api.user_api import UserApi # noqa: E501 -from petstore_api.rest import ApiException +from petstore_api.api.user_api import UserApi class TestUserApi(unittest.TestCase): """UserApi unit test stubs""" - def setUp(self): - self.api = petstore_api.api.user_api.UserApi() # noqa: E501 + def setUp(self) -> None: + self.api = UserApi() - def tearDown(self): + def tearDown(self) -> None: pass - def test_create_user(self): + def test_create_user(self) -> None: """Test case for create_user - Create user # noqa: E501 + Create user """ pass - def test_create_users_with_array_input(self): + def test_create_users_with_array_input(self) -> None: """Test case for create_users_with_array_input - Creates list of users with given input array # noqa: E501 + Creates list of users with given input array """ pass - def test_create_users_with_list_input(self): + def test_create_users_with_list_input(self) -> None: """Test case for create_users_with_list_input - Creates list of users with given input array # noqa: E501 + Creates list of users with given input array """ pass - def test_delete_user(self): + def test_delete_user(self) -> None: """Test case for delete_user - Delete user # noqa: E501 + Delete user """ pass - def test_get_user_by_name(self): + def test_get_user_by_name(self) -> None: """Test case for get_user_by_name - Get user by user name # noqa: E501 + Get user by user name """ pass - def test_login_user(self): + def test_login_user(self) -> None: """Test case for login_user - Logs user into the system # noqa: E501 + Logs user into the system """ pass - def test_logout_user(self): + def test_logout_user(self) -> None: """Test case for logout_user - Logs out current logged in user session # noqa: E501 + Logs out current logged in user session """ pass - def test_update_user(self): + def test_update_user(self) -> None: """Test case for update_user - Updated user # noqa: E501 + Updated user """ pass diff --git a/samples/openapi3/client/petstore/python/test/test_with_nested_one_of.py b/samples/openapi3/client/petstore/python/test/test_with_nested_one_of.py index 994004dd7ab7..6d8fd35bfc08 100644 --- a/samples/openapi3/client/petstore/python/test/test_with_nested_one_of.py +++ b/samples/openapi3/client/petstore/python/test/test_with_nested_one_of.py @@ -3,21 +3,18 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + Do not edit the class manually. +""" # noqa: E501 -from __future__ import absolute_import import unittest -import datetime -import petstore_api -from petstore_api.models.with_nested_one_of import WithNestedOneOf # noqa: E501 -from petstore_api.rest import ApiException +from petstore_api.models.with_nested_one_of import WithNestedOneOf class TestWithNestedOneOf(unittest.TestCase): """WithNestedOneOf unit test stubs""" @@ -28,25 +25,29 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> WithNestedOneOf: """Test WithNestedOneOf - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # model = petstore_api.models.with_nested_one_of.WithNestedOneOf() # noqa: E501 - if include_optional : + # uncomment below to create an instance of `WithNestedOneOf` + """ + model = WithNestedOneOf() + if include_optional: return WithNestedOneOf( - size = 56, - nested_pig = None + size = 56, + nested_pig = None, + nested_oneof_enum_string = None ) - else : + else: return WithNestedOneOf( ) + """ def testWithNestedOneOf(self): """Test WithNestedOneOf""" - #inst_req_only = self.make_instance(include_optional=False) - #inst_req_and_optional = self.make_instance(include_optional=True) + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/server/petstore/go-gin-api-server-interface-only/go.mod b/samples/server/petstore/go-gin-api-server-interface-only/go.mod index bbdae40128c7..788908e508f4 100644 --- a/samples/server/petstore/go-gin-api-server-interface-only/go.mod +++ b/samples/server/petstore/go-gin-api-server-interface-only/go.mod @@ -23,10 +23,10 @@ require ( github.com/twitchyliquid64/golang-asm v0.15.1 // indirect github.com/ugorji/go/codec v1.2.11 // indirect golang.org/x/arch v0.3.0 // indirect - golang.org/x/crypto v0.9.0 // indirect + golang.org/x/crypto v0.21.0 // indirect golang.org/x/net v0.23.0 // indirect - golang.org/x/sys v0.8.0 // indirect - golang.org/x/text v0.9.0 // indirect + golang.org/x/sys v0.18.0 // indirect + golang.org/x/text v0.14.0 // indirect google.golang.org/protobuf v1.33.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/samples/server/petstore/go-gin-api-server/go.mod b/samples/server/petstore/go-gin-api-server/go.mod index bbdae40128c7..788908e508f4 100644 --- a/samples/server/petstore/go-gin-api-server/go.mod +++ b/samples/server/petstore/go-gin-api-server/go.mod @@ -23,10 +23,10 @@ require ( github.com/twitchyliquid64/golang-asm v0.15.1 // indirect github.com/ugorji/go/codec v1.2.11 // indirect golang.org/x/arch v0.3.0 // indirect - golang.org/x/crypto v0.9.0 // indirect + golang.org/x/crypto v0.21.0 // indirect golang.org/x/net v0.23.0 // indirect - golang.org/x/sys v0.8.0 // indirect - golang.org/x/text v0.9.0 // indirect + golang.org/x/sys v0.18.0 // indirect + golang.org/x/text v0.14.0 // indirect google.golang.org/protobuf v1.33.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/samples/server/petstore/haskell-yesod/test/Handler/PetSpec.hs b/samples/server/petstore/haskell-yesod/test/Handler/PetSpec.hs index e063cad4809e..37e246c297ab 100644 --- a/samples/server/petstore/haskell-yesod/test/Handler/PetSpec.hs +++ b/samples/server/petstore/haskell-yesod/test/Handler/PetSpec.hs @@ -18,6 +18,11 @@ spec = withApp $ do performMethod "DELETE" $ PetByInt64R 789 statusIs 501 + describe "getPetFindR" $ + it "returns 501 Not Implemented" $ do + get PetFindR + statusIs 501 + describe "getPetFindByStatusR" $ it "returns 501 Not Implemented" $ do get PetFindByStatusR diff --git a/samples/server/petstore/java-camel/src/test/java/org/openapitools/api/PetApiTest.java b/samples/server/petstore/java-camel/src/test/java/org/openapitools/api/PetApiTest.java index d02598dd1cc6..db242ade0a0a 100644 --- a/samples/server/petstore/java-camel/src/test/java/org/openapitools/api/PetApiTest.java +++ b/samples/server/petstore/java-camel/src/test/java/org/openapitools/api/PetApiTest.java @@ -1,5 +1,5 @@ /** -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech) (5.4.0-SNAPSHOT). +* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech) (7.11.0-SNAPSHOT). * https://openapi-generator.tech * Do not edit the class manually. */ @@ -47,7 +47,7 @@ public void addPetTestXml() throws Exception { httpRequest = httpRequest.header("Content-Type", contentType); httpRequest = httpRequest.header("Accept", accept); - String requestBody = " 123456789 doggie aeiou aeiou "; + String requestBody = " 123456789 123456789 aeiou doggie aeiou 123456789 aeiou aeiou "; httpRequest = ((HttpRequestWithBody) httpRequest).body(requestBody).getHttpRequest(); diff --git a/samples/server/petstore/java-camel/src/test/java/org/openapitools/api/StoreApiTest.java b/samples/server/petstore/java-camel/src/test/java/org/openapitools/api/StoreApiTest.java index f2d137065b79..2316853508bc 100644 --- a/samples/server/petstore/java-camel/src/test/java/org/openapitools/api/StoreApiTest.java +++ b/samples/server/petstore/java-camel/src/test/java/org/openapitools/api/StoreApiTest.java @@ -1,5 +1,5 @@ /** -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech) (5.4.0-SNAPSHOT). +* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech) (7.11.0-SNAPSHOT). * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/samples/server/petstore/java-camel/src/test/java/org/openapitools/api/UserApiTest.java b/samples/server/petstore/java-camel/src/test/java/org/openapitools/api/UserApiTest.java index c278b12de3b1..9d71548a6d7f 100644 --- a/samples/server/petstore/java-camel/src/test/java/org/openapitools/api/UserApiTest.java +++ b/samples/server/petstore/java-camel/src/test/java/org/openapitools/api/UserApiTest.java @@ -1,5 +1,5 @@ /** -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech) (5.4.0-SNAPSHOT). +* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech) (7.11.0-SNAPSHOT). * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/samples/server/petstore/java-micronaut-server/src/test/groovy/org/openapitools/controller/PetControllerSpec.groovy b/samples/server/petstore/java-micronaut-server/src/test/groovy/org/openapitools/controller/PetControllerSpec.groovy index 1a42ac43aa21..219e954a3795 100644 --- a/samples/server/petstore/java-micronaut-server/src/test/groovy/org/openapitools/controller/PetControllerSpec.groovy +++ b/samples/server/petstore/java-micronaut-server/src/test/groovy/org/openapitools/controller/PetControllerSpec.groovy @@ -34,7 +34,7 @@ class PetControllerSpec extends Specification { EmbeddedServer server @Inject - @Client('${context-path}') + @Client HttpClient client @Inject @@ -45,6 +45,8 @@ class PetControllerSpec extends Specification { * * The method should: Add a new pet to the store * + * + * * TODO fill in the parameters and test return value. */ @Ignore("Not Implemented") @@ -72,7 +74,8 @@ class PetControllerSpec extends Specification { var uri = UriTemplate.of('/pet').expand([:]) MutableHttpRequest request = HttpRequest.POST(uri, body) .contentType('application/json') - .accept('application/json') + .accept('[Ljava.lang.String;@7d1a6b4e') + .accept('[Ljava.lang.String;@7d1a6b4e') when: HttpResponse response = client.toBlocking().exchange(request, Pet.class); @@ -86,6 +89,8 @@ class PetControllerSpec extends Specification { * * The method should: Deletes a pet * + * + * * TODO fill in the parameters and test return value. */ @Ignore("Not Implemented") @@ -115,7 +120,7 @@ class PetControllerSpec extends Specification { 'petId': 56L ]) MutableHttpRequest request = HttpRequest.DELETE(uri) - .accept('application/json') + .accept('[Ljava.lang.String;@1235a3a2') .header('api_key', 'example') when: @@ -157,7 +162,8 @@ class PetControllerSpec extends Specification { given: var uri = UriTemplate.of('/pet/findByStatus').expand([:]) MutableHttpRequest request = HttpRequest.GET(uri) - .accept('application/json') + .accept('[Ljava.lang.String;@1efed651') + .accept('[Ljava.lang.String;@1efed651') request.getParameters() .add('status', ['available'].toString()) // The query parameter format should be csv @@ -200,7 +206,8 @@ class PetControllerSpec extends Specification { given: var uri = UriTemplate.of('/pet/findByTags').expand([:]) MutableHttpRequest request = HttpRequest.GET(uri) - .accept('application/json') + .accept('[Ljava.lang.String;@1def47a3') + .accept('[Ljava.lang.String;@1def47a3') request.getParameters() .add('tags', ['example'].toString()) // The query parameter format should be csv @@ -246,7 +253,8 @@ class PetControllerSpec extends Specification { 'petId': 56L ]) MutableHttpRequest request = HttpRequest.GET(uri) - .accept('application/json') + .accept('[Ljava.lang.String;@33011f4b') + .accept('[Ljava.lang.String;@33011f4b') when: HttpResponse response = client.toBlocking().exchange(request, Pet.class); @@ -260,6 +268,8 @@ class PetControllerSpec extends Specification { * * The method should: Update an existing pet * + * + * * TODO fill in the parameters and test return value. */ @Ignore("Not Implemented") @@ -287,7 +297,8 @@ class PetControllerSpec extends Specification { var uri = UriTemplate.of('/pet').expand([:]) MutableHttpRequest request = HttpRequest.PUT(uri, body) .contentType('application/json') - .accept('application/json') + .accept('[Ljava.lang.String;@c96923a') + .accept('[Ljava.lang.String;@c96923a') when: HttpResponse response = client.toBlocking().exchange(request, Pet.class); @@ -301,6 +312,8 @@ class PetControllerSpec extends Specification { * * The method should: Updates a pet in the store with form data * + * + * * TODO fill in the parameters and test return value. */ @Ignore("Not Implemented") @@ -337,7 +350,7 @@ class PetControllerSpec extends Specification { ]) MutableHttpRequest request = HttpRequest.POST(uri, form) .contentType('application/x-www-form-urlencoded') - .accept('application/json') + .accept('[Ljava.lang.String;@64b281a7') when: HttpResponse response = client.toBlocking().exchange(request); // To retrieve body you must specify required type (e.g. Map.class) as second argument @@ -351,6 +364,8 @@ class PetControllerSpec extends Specification { * * The method should: uploads an image * + * + * * TODO fill in the parameters and test return value. */ @Ignore("Not Implemented") @@ -358,10 +373,10 @@ class PetControllerSpec extends Specification { given: Long petId = 56L String additionalMetadata = 'example' - CompletedFileUpload file = null + CompletedFileUpload _file = null when: - ModelApiResponse result = controller.uploadFile(petId, additionalMetadata, file).block() + ModelApiResponse result = controller.uploadFile(petId, additionalMetadata, _file).block() then: true @@ -376,17 +391,18 @@ class PetControllerSpec extends Specification { @Ignore("Not Implemented") def 'uploadFile() test with client through path /pet/{petId}/uploadImage'() { given: - var body = MultipartBody.builder() // Create multipart body - .addPart('additionalMetadata', 'example') - .addPart('file', 'filename', File.createTempFile('test', '.tmp')) - .build() + var form = [ + // Fill in the body form parameters + 'additionalMetadata': 'example', + 'file': new FileReader(File.createTempFile('test', '.tmp')) + ] var uri = UriTemplate.of('/pet/{petId}/uploadImage').expand([ // Fill in the path variables 'petId': 56L ]) - MutableHttpRequest request = HttpRequest.POST(uri, body) + MutableHttpRequest request = HttpRequest.POST(uri, form) .contentType('multipart/form-data') - .accept('application/json') + .accept('[Ljava.lang.String;@30700cd') when: HttpResponse response = client.toBlocking().exchange(request, ModelApiResponse.class); diff --git a/samples/server/petstore/java-micronaut-server/src/test/groovy/org/openapitools/controller/StoreControllerSpec.groovy b/samples/server/petstore/java-micronaut-server/src/test/groovy/org/openapitools/controller/StoreControllerSpec.groovy index 98a808ccb171..bdd93dcacd47 100644 --- a/samples/server/petstore/java-micronaut-server/src/test/groovy/org/openapitools/controller/StoreControllerSpec.groovy +++ b/samples/server/petstore/java-micronaut-server/src/test/groovy/org/openapitools/controller/StoreControllerSpec.groovy @@ -32,7 +32,7 @@ class StoreControllerSpec extends Specification { EmbeddedServer server @Inject - @Client('${context-path}') + @Client HttpClient client @Inject @@ -73,7 +73,7 @@ class StoreControllerSpec extends Specification { 'orderId': 'example' ]) MutableHttpRequest request = HttpRequest.DELETE(uri) - .accept('application/json') + .accept('[Ljava.lang.String;@3847bca1') when: HttpResponse response = client.toBlocking().exchange(request); // To retrieve body you must specify required type (e.g. Map.class) as second argument @@ -113,7 +113,7 @@ class StoreControllerSpec extends Specification { given: var uri = UriTemplate.of('/store/inventory').expand([:]) MutableHttpRequest request = HttpRequest.GET(uri) - .accept('application/json') + .accept('[Ljava.lang.String;@f8eed1') when: HttpResponse response = client.toBlocking().exchange(request, Argument.of(Map.class, String.class, Integer.class)); @@ -157,7 +157,8 @@ class StoreControllerSpec extends Specification { 'orderId': 56L ]) MutableHttpRequest request = HttpRequest.GET(uri) - .accept('application/json') + .accept('[Ljava.lang.String;@70b7e8d0') + .accept('[Ljava.lang.String;@70b7e8d0') when: HttpResponse response = client.toBlocking().exchange(request, Order.class); @@ -171,6 +172,8 @@ class StoreControllerSpec extends Specification { * * The method should: Place an order for a pet * + * + * * TODO fill in the parameters and test return value. */ @Ignore("Not Implemented") @@ -198,7 +201,8 @@ class StoreControllerSpec extends Specification { var uri = UriTemplate.of('/store/order').expand([:]) MutableHttpRequest request = HttpRequest.POST(uri, body) .contentType('application/json') - .accept('application/json') + .accept('[Ljava.lang.String;@4b8d9f63') + .accept('[Ljava.lang.String;@4b8d9f63') when: HttpResponse response = client.toBlocking().exchange(request, Order.class); diff --git a/samples/server/petstore/java-micronaut-server/src/test/groovy/org/openapitools/controller/UserControllerSpec.groovy b/samples/server/petstore/java-micronaut-server/src/test/groovy/org/openapitools/controller/UserControllerSpec.groovy index 59940a3b5a50..9e9680899739 100644 --- a/samples/server/petstore/java-micronaut-server/src/test/groovy/org/openapitools/controller/UserControllerSpec.groovy +++ b/samples/server/petstore/java-micronaut-server/src/test/groovy/org/openapitools/controller/UserControllerSpec.groovy @@ -1,6 +1,6 @@ package org.openapitools.controller -import java.time.LocalDateTime +import java.time.OffsetDateTime import org.openapitools.model.User import io.micronaut.test.extensions.spock.annotation.MicronautTest import io.micronaut.http.client.HttpClient @@ -33,7 +33,7 @@ class UserControllerSpec extends Specification { EmbeddedServer server @Inject - @Client('${context-path}') + @Client HttpClient client @Inject @@ -73,7 +73,7 @@ class UserControllerSpec extends Specification { var uri = UriTemplate.of('/user').expand([:]) MutableHttpRequest request = HttpRequest.POST(uri, body) .contentType('application/json') - .accept('application/json') + .accept('[Ljava.lang.String;@4eaa9007') when: HttpResponse response = client.toBlocking().exchange(request); // To retrieve body you must specify required type (e.g. Map.class) as second argument @@ -87,12 +87,14 @@ class UserControllerSpec extends Specification { * * The method should: Creates list of users with given input array * + * + * * TODO fill in the parameters and test return value. */ @Ignore("Not Implemented") def 'createUsersWithArrayInput() method test'() { given: - List user = [] + List<@Valid User> user = [] when: controller.createUsersWithArrayInput(user).block() @@ -110,11 +112,11 @@ class UserControllerSpec extends Specification { @Ignore("Not Implemented") def 'createUsersWithArrayInput() test with client through path /user/createWithArray'() { given: - List body = [] + List<@Valid User> body = [] var uri = UriTemplate.of('/user/createWithArray').expand([:]) MutableHttpRequest request = HttpRequest.POST(uri, body) .contentType('application/json') - .accept('application/json') + .accept('[Ljava.lang.String;@9e37165') when: HttpResponse response = client.toBlocking().exchange(request); // To retrieve body you must specify required type (e.g. Map.class) as second argument @@ -128,12 +130,14 @@ class UserControllerSpec extends Specification { * * The method should: Creates list of users with given input array * + * + * * TODO fill in the parameters and test return value. */ @Ignore("Not Implemented") def 'createUsersWithListInput() method test'() { given: - List user = [] + List<@Valid User> user = [] when: controller.createUsersWithListInput(user).block() @@ -151,11 +155,11 @@ class UserControllerSpec extends Specification { @Ignore("Not Implemented") def 'createUsersWithListInput() test with client through path /user/createWithList'() { given: - List body = [] + List<@Valid User> body = [] var uri = UriTemplate.of('/user/createWithList').expand([:]) MutableHttpRequest request = HttpRequest.POST(uri, body) .contentType('application/json') - .accept('application/json') + .accept('[Ljava.lang.String;@465df9e1') when: HttpResponse response = client.toBlocking().exchange(request); // To retrieve body you must specify required type (e.g. Map.class) as second argument @@ -199,7 +203,7 @@ class UserControllerSpec extends Specification { 'username': 'example' ]) MutableHttpRequest request = HttpRequest.DELETE(uri) - .accept('application/json') + .accept('[Ljava.lang.String;@618c10ce') when: HttpResponse response = client.toBlocking().exchange(request); // To retrieve body you must specify required type (e.g. Map.class) as second argument @@ -213,6 +217,8 @@ class UserControllerSpec extends Specification { * * The method should: Get user by user name * + * + * * TODO fill in the parameters and test return value. */ @Ignore("Not Implemented") @@ -241,7 +247,8 @@ class UserControllerSpec extends Specification { 'username': 'example' ]) MutableHttpRequest request = HttpRequest.GET(uri) - .accept('application/json') + .accept('[Ljava.lang.String;@7bbc9e50') + .accept('[Ljava.lang.String;@7bbc9e50') when: HttpResponse response = client.toBlocking().exchange(request, User.class); @@ -255,6 +262,8 @@ class UserControllerSpec extends Specification { * * The method should: Logs user into the system * + * + * * TODO fill in the parameters and test return value. */ @Ignore("Not Implemented") @@ -281,7 +290,8 @@ class UserControllerSpec extends Specification { given: var uri = UriTemplate.of('/user/login').expand([:]) MutableHttpRequest request = HttpRequest.GET(uri) - .accept('application/json') + .accept('[Ljava.lang.String;@6946a01b') + .accept('[Ljava.lang.String;@6946a01b') request.getParameters() .add('username', 'example') .add('password', 'example') @@ -298,6 +308,8 @@ class UserControllerSpec extends Specification { * * The method should: Logs out current logged in user session * + * + * * TODO fill in the parameters and test return value. */ @Ignore("Not Implemented") @@ -322,7 +334,7 @@ class UserControllerSpec extends Specification { given: var uri = UriTemplate.of('/user/logout').expand([:]) MutableHttpRequest request = HttpRequest.GET(uri) - .accept('application/json') + .accept('[Ljava.lang.String;@40fdde23') when: HttpResponse response = client.toBlocking().exchange(request); // To retrieve body you must specify required type (e.g. Map.class) as second argument @@ -369,7 +381,7 @@ class UserControllerSpec extends Specification { ]) MutableHttpRequest request = HttpRequest.PUT(uri, body) .contentType('application/json') - .accept('application/json') + .accept('[Ljava.lang.String;@41f6ac92') when: HttpResponse response = client.toBlocking().exchange(request); // To retrieve body you must specify required type (e.g. Map.class) as second argument diff --git a/samples/server/petstore/java-micronaut-server/src/test/groovy/org/openapitools/model/PetSpec.groovy b/samples/server/petstore/java-micronaut-server/src/test/groovy/org/openapitools/model/PetSpec.groovy index 3905df46f6ec..48a10b373176 100644 --- a/samples/server/petstore/java-micronaut-server/src/test/groovy/org/openapitools/model/PetSpec.groovy +++ b/samples/server/petstore/java-micronaut-server/src/test/groovy/org/openapitools/model/PetSpec.groovy @@ -1,6 +1,7 @@ package org.openapitools.model import java.util.ArrayList +import java.util.Arrays import java.util.List import org.openapitools.model.Category import org.openapitools.model.Tag diff --git a/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/test/java/org/openapitools/api/PetApiTest.java b/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/test/java/org/openapitools/api/PetApiTest.java index 48eec50eebe8..5fc4823c1c74 100644 --- a/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/test/java/org/openapitools/api/PetApiTest.java +++ b/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/test/java/org/openapitools/api/PetApiTest.java @@ -2,24 +2,12 @@ * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. */ @@ -53,23 +41,23 @@ * *

This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. * - * API tests for PetApi + * API tests for PetApi */ public class PetApiTest { private PetApi api; - + @Before public void setup() { JacksonJsonProvider provider = new JacksonJsonProvider(); List providers = new ArrayList(); providers.add(provider); - + api = JAXRSClientFactory.create("http://petstore.swagger.io/v2", PetApi.class, providers); org.apache.cxf.jaxrs.client.Client client = WebClient.client(api); - - ClientConfiguration config = WebClient.getConfig(client); + + ClientConfiguration config = WebClient.getConfig(client); } @@ -85,8 +73,8 @@ public void addPetTest() { //api.addPet(body); // TODO: test validations - - + + } /** @@ -102,8 +90,8 @@ public void deletePetTest() { //api.deletePet(petId, apiKey); // TODO: test validations - - + + } /** @@ -120,8 +108,8 @@ public void findPetsByStatusTest() { //List response = api.findPetsByStatus(status); //assertNotNull(response); // TODO: test validations - - + + } /** @@ -138,8 +126,8 @@ public void findPetsByTagsTest() { //List response = api.findPetsByTags(tags); //assertNotNull(response); // TODO: test validations - - + + } /** @@ -156,8 +144,8 @@ public void getPetByIdTest() { //Pet response = api.getPetById(petId); //assertNotNull(response); // TODO: test validations - - + + } /** @@ -172,8 +160,8 @@ public void updatePetTest() { //api.updatePet(body); // TODO: test validations - - + + } /** @@ -190,8 +178,8 @@ public void updatePetWithFormTest() { //api.updatePetWithForm(petId, name, status); // TODO: test validations - - + + } /** @@ -204,12 +192,12 @@ public void updatePetWithFormTest() { public void uploadFileTest() { Long petId = null; String additionalMetadata = null; - org.apache.cxf.jaxrs.ext.multipart.Attachment file = null; - //ModelApiResponse response = api.uploadFile(petId, additionalMetadata, file); + File _file = null; + //ModelApiResponse response = api.uploadFile(petId, additionalMetadata, _file); //assertNotNull(response); // TODO: test validations - - + + } } diff --git a/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/test/java/org/openapitools/api/StoreApiTest.java b/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/test/java/org/openapitools/api/StoreApiTest.java index 58d1014fcdda..3f976f3dc7a0 100644 --- a/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/test/java/org/openapitools/api/StoreApiTest.java +++ b/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/test/java/org/openapitools/api/StoreApiTest.java @@ -2,24 +2,12 @@ * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. */ @@ -52,23 +40,23 @@ * *

This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. * - * API tests for StoreApi + * API tests for StoreApi */ public class StoreApiTest { private StoreApi api; - + @Before public void setup() { JacksonJsonProvider provider = new JacksonJsonProvider(); List providers = new ArrayList(); providers.add(provider); - + api = JAXRSClientFactory.create("http://petstore.swagger.io/v2", StoreApi.class, providers); org.apache.cxf.jaxrs.client.Client client = WebClient.client(api); - - ClientConfiguration config = WebClient.getConfig(client); + + ClientConfiguration config = WebClient.getConfig(client); } @@ -86,8 +74,8 @@ public void deleteOrderTest() { //api.deleteOrder(orderId); // TODO: test validations - - + + } /** @@ -103,8 +91,8 @@ public void getInventoryTest() { //Map response = api.getInventory(); //assertNotNull(response); // TODO: test validations - - + + } /** @@ -121,8 +109,8 @@ public void getOrderByIdTest() { //Order response = api.getOrderById(orderId); //assertNotNull(response); // TODO: test validations - - + + } /** @@ -137,8 +125,8 @@ public void placeOrderTest() { //Order response = api.placeOrder(body); //assertNotNull(response); // TODO: test validations - - + + } } diff --git a/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/test/java/org/openapitools/api/UserApiTest.java b/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/test/java/org/openapitools/api/UserApiTest.java index 96ef6b222ad9..af395ef11412 100644 --- a/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/test/java/org/openapitools/api/UserApiTest.java +++ b/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/test/java/org/openapitools/api/UserApiTest.java @@ -2,30 +2,18 @@ * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. */ package org.openapitools.api; -import java.util.List; +import java.util.Date; import org.openapitools.model.User; import org.junit.Test; import org.junit.Before; @@ -52,23 +40,23 @@ * *

This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. * - * API tests for UserApi + * API tests for UserApi */ public class UserApiTest { private UserApi api; - + @Before public void setup() { JacksonJsonProvider provider = new JacksonJsonProvider(); List providers = new ArrayList(); providers.add(provider); - + api = JAXRSClientFactory.create("http://petstore.swagger.io/v2", UserApi.class, providers); org.apache.cxf.jaxrs.client.Client client = WebClient.client(api); - - ClientConfiguration config = WebClient.getConfig(client); + + ClientConfiguration config = WebClient.getConfig(client); } @@ -86,8 +74,8 @@ public void createUserTest() { //api.createUser(body); // TODO: test validations - - + + } /** @@ -98,12 +86,12 @@ public void createUserTest() { */ @Test public void createUsersWithArrayInputTest() { - List body = null; + List<@Valid User> body = null; //api.createUsersWithArrayInput(body); // TODO: test validations - - + + } /** @@ -114,12 +102,12 @@ public void createUsersWithArrayInputTest() { */ @Test public void createUsersWithListInputTest() { - List body = null; + List<@Valid User> body = null; //api.createUsersWithListInput(body); // TODO: test validations - - + + } /** @@ -136,8 +124,8 @@ public void deleteUserTest() { //api.deleteUser(username); // TODO: test validations - - + + } /** @@ -152,8 +140,8 @@ public void getUserByNameTest() { //User response = api.getUserByName(username); //assertNotNull(response); // TODO: test validations - - + + } /** @@ -169,8 +157,8 @@ public void loginUserTest() { //String response = api.loginUser(username, password); //assertNotNull(response); // TODO: test validations - - + + } /** @@ -184,8 +172,8 @@ public void logoutUserTest() { //api.logoutUser(); // TODO: test validations - - + + } /** @@ -203,8 +191,8 @@ public void updateUserTest() { //api.updateUser(username, body); // TODO: test validations - - + + } } diff --git a/samples/server/petstore/jaxrs-cxf-non-spring-app/src/test/java/org/openapitools/api/PetApiTest.java b/samples/server/petstore/jaxrs-cxf-non-spring-app/src/test/java/org/openapitools/api/PetApiTest.java index 48eec50eebe8..5fc4823c1c74 100644 --- a/samples/server/petstore/jaxrs-cxf-non-spring-app/src/test/java/org/openapitools/api/PetApiTest.java +++ b/samples/server/petstore/jaxrs-cxf-non-spring-app/src/test/java/org/openapitools/api/PetApiTest.java @@ -2,24 +2,12 @@ * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. */ @@ -53,23 +41,23 @@ * *

This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. * - * API tests for PetApi + * API tests for PetApi */ public class PetApiTest { private PetApi api; - + @Before public void setup() { JacksonJsonProvider provider = new JacksonJsonProvider(); List providers = new ArrayList(); providers.add(provider); - + api = JAXRSClientFactory.create("http://petstore.swagger.io/v2", PetApi.class, providers); org.apache.cxf.jaxrs.client.Client client = WebClient.client(api); - - ClientConfiguration config = WebClient.getConfig(client); + + ClientConfiguration config = WebClient.getConfig(client); } @@ -85,8 +73,8 @@ public void addPetTest() { //api.addPet(body); // TODO: test validations - - + + } /** @@ -102,8 +90,8 @@ public void deletePetTest() { //api.deletePet(petId, apiKey); // TODO: test validations - - + + } /** @@ -120,8 +108,8 @@ public void findPetsByStatusTest() { //List response = api.findPetsByStatus(status); //assertNotNull(response); // TODO: test validations - - + + } /** @@ -138,8 +126,8 @@ public void findPetsByTagsTest() { //List response = api.findPetsByTags(tags); //assertNotNull(response); // TODO: test validations - - + + } /** @@ -156,8 +144,8 @@ public void getPetByIdTest() { //Pet response = api.getPetById(petId); //assertNotNull(response); // TODO: test validations - - + + } /** @@ -172,8 +160,8 @@ public void updatePetTest() { //api.updatePet(body); // TODO: test validations - - + + } /** @@ -190,8 +178,8 @@ public void updatePetWithFormTest() { //api.updatePetWithForm(petId, name, status); // TODO: test validations - - + + } /** @@ -204,12 +192,12 @@ public void updatePetWithFormTest() { public void uploadFileTest() { Long petId = null; String additionalMetadata = null; - org.apache.cxf.jaxrs.ext.multipart.Attachment file = null; - //ModelApiResponse response = api.uploadFile(petId, additionalMetadata, file); + File _file = null; + //ModelApiResponse response = api.uploadFile(petId, additionalMetadata, _file); //assertNotNull(response); // TODO: test validations - - + + } } diff --git a/samples/server/petstore/jaxrs-cxf-non-spring-app/src/test/java/org/openapitools/api/StoreApiTest.java b/samples/server/petstore/jaxrs-cxf-non-spring-app/src/test/java/org/openapitools/api/StoreApiTest.java index 58d1014fcdda..3f976f3dc7a0 100644 --- a/samples/server/petstore/jaxrs-cxf-non-spring-app/src/test/java/org/openapitools/api/StoreApiTest.java +++ b/samples/server/petstore/jaxrs-cxf-non-spring-app/src/test/java/org/openapitools/api/StoreApiTest.java @@ -2,24 +2,12 @@ * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. */ @@ -52,23 +40,23 @@ * *

This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. * - * API tests for StoreApi + * API tests for StoreApi */ public class StoreApiTest { private StoreApi api; - + @Before public void setup() { JacksonJsonProvider provider = new JacksonJsonProvider(); List providers = new ArrayList(); providers.add(provider); - + api = JAXRSClientFactory.create("http://petstore.swagger.io/v2", StoreApi.class, providers); org.apache.cxf.jaxrs.client.Client client = WebClient.client(api); - - ClientConfiguration config = WebClient.getConfig(client); + + ClientConfiguration config = WebClient.getConfig(client); } @@ -86,8 +74,8 @@ public void deleteOrderTest() { //api.deleteOrder(orderId); // TODO: test validations - - + + } /** @@ -103,8 +91,8 @@ public void getInventoryTest() { //Map response = api.getInventory(); //assertNotNull(response); // TODO: test validations - - + + } /** @@ -121,8 +109,8 @@ public void getOrderByIdTest() { //Order response = api.getOrderById(orderId); //assertNotNull(response); // TODO: test validations - - + + } /** @@ -137,8 +125,8 @@ public void placeOrderTest() { //Order response = api.placeOrder(body); //assertNotNull(response); // TODO: test validations - - + + } } diff --git a/samples/server/petstore/jaxrs-cxf-non-spring-app/src/test/java/org/openapitools/api/UserApiTest.java b/samples/server/petstore/jaxrs-cxf-non-spring-app/src/test/java/org/openapitools/api/UserApiTest.java index 96ef6b222ad9..af395ef11412 100644 --- a/samples/server/petstore/jaxrs-cxf-non-spring-app/src/test/java/org/openapitools/api/UserApiTest.java +++ b/samples/server/petstore/jaxrs-cxf-non-spring-app/src/test/java/org/openapitools/api/UserApiTest.java @@ -2,30 +2,18 @@ * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. */ package org.openapitools.api; -import java.util.List; +import java.util.Date; import org.openapitools.model.User; import org.junit.Test; import org.junit.Before; @@ -52,23 +40,23 @@ * *

This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. * - * API tests for UserApi + * API tests for UserApi */ public class UserApiTest { private UserApi api; - + @Before public void setup() { JacksonJsonProvider provider = new JacksonJsonProvider(); List providers = new ArrayList(); providers.add(provider); - + api = JAXRSClientFactory.create("http://petstore.swagger.io/v2", UserApi.class, providers); org.apache.cxf.jaxrs.client.Client client = WebClient.client(api); - - ClientConfiguration config = WebClient.getConfig(client); + + ClientConfiguration config = WebClient.getConfig(client); } @@ -86,8 +74,8 @@ public void createUserTest() { //api.createUser(body); // TODO: test validations - - + + } /** @@ -98,12 +86,12 @@ public void createUserTest() { */ @Test public void createUsersWithArrayInputTest() { - List body = null; + List<@Valid User> body = null; //api.createUsersWithArrayInput(body); // TODO: test validations - - + + } /** @@ -114,12 +102,12 @@ public void createUsersWithArrayInputTest() { */ @Test public void createUsersWithListInputTest() { - List body = null; + List<@Valid User> body = null; //api.createUsersWithListInput(body); // TODO: test validations - - + + } /** @@ -136,8 +124,8 @@ public void deleteUserTest() { //api.deleteUser(username); // TODO: test validations - - + + } /** @@ -152,8 +140,8 @@ public void getUserByNameTest() { //User response = api.getUserByName(username); //assertNotNull(response); // TODO: test validations - - + + } /** @@ -169,8 +157,8 @@ public void loginUserTest() { //String response = api.loginUser(username, password); //assertNotNull(response); // TODO: test validations - - + + } /** @@ -184,8 +172,8 @@ public void logoutUserTest() { //api.logoutUser(); // TODO: test validations - - + + } /** @@ -203,8 +191,8 @@ public void updateUserTest() { //api.updateUser(username, body); // TODO: test validations - - + + } } diff --git a/samples/server/petstore/jaxrs-cxf/src/test/java/org/openapitools/api/AnotherFakeApiTest.java b/samples/server/petstore/jaxrs-cxf/src/test/java/org/openapitools/api/AnotherFakeApiTest.java index e4f41cc407b0..edd0da7797c4 100644 --- a/samples/server/petstore/jaxrs-cxf/src/test/java/org/openapitools/api/AnotherFakeApiTest.java +++ b/samples/server/petstore/jaxrs-cxf/src/test/java/org/openapitools/api/AnotherFakeApiTest.java @@ -14,6 +14,7 @@ package org.openapitools.api; import org.openapitools.model.Client; +import java.util.UUID; import org.junit.Test; import org.junit.Before; import static org.junit.Assert.*; @@ -69,8 +70,9 @@ public void setup() { */ @Test public void call123testSpecialTagsTest() { + UUID uuidTest = null; Client body = null; - //Client response = api.call123testSpecialTags(body); + //Client response = api.call123testSpecialTags(uuidTest, body); //assertNotNull(response); // TODO: test validations diff --git a/samples/server/petstore/jaxrs-cxf/src/test/java/org/openapitools/api/FakeApiTest.java b/samples/server/petstore/jaxrs-cxf/src/test/java/org/openapitools/api/FakeApiTest.java index 272fbb72f433..20839b15e3ca 100644 --- a/samples/server/petstore/jaxrs-cxf/src/test/java/org/openapitools/api/FakeApiTest.java +++ b/samples/server/petstore/jaxrs-cxf/src/test/java/org/openapitools/api/FakeApiTest.java @@ -208,7 +208,7 @@ public void testEndpointParametersTest() { Long int64 = null; Float _float = null; String string = null; - org.apache.cxf.jaxrs.ext.multipart.Attachment binary = null; + File binary = null; LocalDate date = null; Date dateTime = null; String password = null; diff --git a/samples/server/petstore/jaxrs-cxf/src/test/java/org/openapitools/api/PetApiTest.java b/samples/server/petstore/jaxrs-cxf/src/test/java/org/openapitools/api/PetApiTest.java index 69889c133199..b5575602cb6a 100644 --- a/samples/server/petstore/jaxrs-cxf/src/test/java/org/openapitools/api/PetApiTest.java +++ b/samples/server/petstore/jaxrs-cxf/src/test/java/org/openapitools/api/PetApiTest.java @@ -192,7 +192,7 @@ public void updatePetWithFormTest() { public void uploadFileTest() { Long petId = null; String additionalMetadata = null; - org.apache.cxf.jaxrs.ext.multipart.Attachment _file = null; + File _file = null; //ModelApiResponse response = api.uploadFile(petId, additionalMetadata, _file); //assertNotNull(response); // TODO: test validations @@ -209,7 +209,7 @@ public void uploadFileTest() { @Test public void uploadFileWithRequiredFileTest() { Long petId = null; - org.apache.cxf.jaxrs.ext.multipart.Attachment requiredFile = null; + File requiredFile = null; String additionalMetadata = null; //ModelApiResponse response = api.uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata); //assertNotNull(response); diff --git a/samples/server/petstore/jaxrs-cxf/src/test/java/org/openapitools/api/UserApiTest.java b/samples/server/petstore/jaxrs-cxf/src/test/java/org/openapitools/api/UserApiTest.java index 9c7ddf654fd5..5b5d67899f75 100644 --- a/samples/server/petstore/jaxrs-cxf/src/test/java/org/openapitools/api/UserApiTest.java +++ b/samples/server/petstore/jaxrs-cxf/src/test/java/org/openapitools/api/UserApiTest.java @@ -14,7 +14,6 @@ package org.openapitools.api; import java.util.Date; -import java.util.List; import org.openapitools.model.User; import org.junit.Test; import org.junit.Before; @@ -87,7 +86,7 @@ public void createUserTest() { */ @Test public void createUsersWithArrayInputTest() { - List body = null; + List<@Valid User> body = null; //api.createUsersWithArrayInput(body); // TODO: test validations @@ -103,7 +102,7 @@ public void createUsersWithArrayInputTest() { */ @Test public void createUsersWithListInputTest() { - List body = null; + List<@Valid User> body = null; //api.createUsersWithListInput(body); // TODO: test validations diff --git a/samples/server/petstore/kotlin-spring-default/src/test/kotlin/org/openapitools/api/PetApiTest.kt b/samples/server/petstore/kotlin-spring-default/src/test/kotlin/org/openapitools/api/PetApiTest.kt index 933d16a7ccb3..38150b801434 100644 --- a/samples/server/petstore/kotlin-spring-default/src/test/kotlin/org/openapitools/api/PetApiTest.kt +++ b/samples/server/petstore/kotlin-spring-default/src/test/kotlin/org/openapitools/api/PetApiTest.kt @@ -120,7 +120,7 @@ class PetApiTest { fun uploadFileTest() { val petId: kotlin.Long = TODO() val additionalMetadata: kotlin.String? = TODO() - val file: org.springframework.core.io.Resource? = TODO() + val file: org.springframework.web.multipart.MultipartFile? = TODO() val response: ResponseEntity = api.uploadFile(petId, additionalMetadata, file) // TODO: test validations diff --git a/samples/server/petstore/kotlin-springboot-3/src/test/kotlin/org/openapitools/api/PetApiTest.kt b/samples/server/petstore/kotlin-springboot-3/src/test/kotlin/org/openapitools/api/PetApiTest.kt index e2181932883a..af7f7256c75c 100644 --- a/samples/server/petstore/kotlin-springboot-3/src/test/kotlin/org/openapitools/api/PetApiTest.kt +++ b/samples/server/petstore/kotlin-springboot-3/src/test/kotlin/org/openapitools/api/PetApiTest.kt @@ -121,7 +121,7 @@ class PetApiTest { fun uploadFileTest() { val petId: kotlin.Long = TODO() val additionalMetadata: kotlin.String? = TODO() - val file: org.springframework.core.io.Resource? = TODO() + val file: org.springframework.web.multipart.MultipartFile? = TODO() val response: ResponseEntity = api.uploadFile(petId, additionalMetadata, file) // TODO: test validations diff --git a/samples/server/petstore/kotlin-springboot-bigdecimal-default/src/test/kotlin/org/openapitools/api/TestApiTest.kt b/samples/server/petstore/kotlin-springboot-bigdecimal-default/src/test/kotlin/org/openapitools/api/TestApiTest.kt index 43d899b518c8..3ece7b27d7f4 100644 --- a/samples/server/petstore/kotlin-springboot-bigdecimal-default/src/test/kotlin/org/openapitools/api/TestApiTest.kt +++ b/samples/server/petstore/kotlin-springboot-bigdecimal-default/src/test/kotlin/org/openapitools/api/TestApiTest.kt @@ -16,8 +16,9 @@ class TestApiTest { */ @Test fun testPostTest() { - // val apa: Apa = TODO() - // val response: ResponseEntity = api.testPost(apa) + val apa: Apa = TODO() + val response: ResponseEntity = api.testPost(apa) + // TODO: test validations } } diff --git a/samples/server/petstore/kotlin-springboot-modelMutable/src/test/kotlin/org/openapitools/api/PetApiTest.kt b/samples/server/petstore/kotlin-springboot-modelMutable/src/test/kotlin/org/openapitools/api/PetApiTest.kt index 6625bcb8d5c1..4ee3b320cc3e 100644 --- a/samples/server/petstore/kotlin-springboot-modelMutable/src/test/kotlin/org/openapitools/api/PetApiTest.kt +++ b/samples/server/petstore/kotlin-springboot-modelMutable/src/test/kotlin/org/openapitools/api/PetApiTest.kt @@ -121,7 +121,7 @@ class PetApiTest { fun uploadFileTest() { val petId: kotlin.Long = TODO() val additionalMetadata: kotlin.String? = TODO() - val file: org.springframework.core.io.Resource? = TODO() + val file: org.springframework.web.multipart.MultipartFile? = TODO() val response: ResponseEntity = api.uploadFile(petId, additionalMetadata, file) // TODO: test validations diff --git a/samples/server/petstore/kotlin-springboot-multipart-request-model/src/test/kotlin/org/openapitools/api/MultipartMixedApiTest.kt b/samples/server/petstore/kotlin-springboot-multipart-request-model/src/test/kotlin/org/openapitools/api/MultipartMixedApiTest.kt index 6330073d7439..c0a4e5732f4b 100644 --- a/samples/server/petstore/kotlin-springboot-multipart-request-model/src/test/kotlin/org/openapitools/api/MultipartMixedApiTest.kt +++ b/samples/server/petstore/kotlin-springboot-multipart-request-model/src/test/kotlin/org/openapitools/api/MultipartMixedApiTest.kt @@ -18,7 +18,7 @@ class MultipartMixedApiTest { @Test fun multipartMixedTest() { val status: MultipartMixedStatus = TODO() - val file: org.springframework.core.io.Resource = TODO() + val file: org.springframework.web.multipart.MultipartFile = TODO() val marker: MultipartMixedRequestMarker? = TODO() val response: ResponseEntity = api.multipartMixed(status, file, marker) diff --git a/samples/server/petstore/kotlin-springboot-reactive/src/test/kotlin/org/openapitools/api/PetApiTest.kt b/samples/server/petstore/kotlin-springboot-reactive/src/test/kotlin/org/openapitools/api/PetApiTest.kt index 695d25351cb8..26f1a1f9e0b6 100644 --- a/samples/server/petstore/kotlin-springboot-reactive/src/test/kotlin/org/openapitools/api/PetApiTest.kt +++ b/samples/server/petstore/kotlin-springboot-reactive/src/test/kotlin/org/openapitools/api/PetApiTest.kt @@ -123,7 +123,7 @@ class PetApiTest { fun uploadFileTest() = runBlockingTest { val petId: kotlin.Long = TODO() val additionalMetadata: kotlin.String? = TODO() - val file: org.springframework.core.io.Resource? = TODO() + val file: org.springframework.web.multipart.MultipartFile? = TODO() val response: ResponseEntity = api.uploadFile(petId, additionalMetadata, file) // TODO: test validations diff --git a/samples/server/petstore/kotlin-springboot-source-swagger1/src/test/kotlin/org/openapitools/api/PetApiTest.kt b/samples/server/petstore/kotlin-springboot-source-swagger1/src/test/kotlin/org/openapitools/api/PetApiTest.kt index 6625bcb8d5c1..4ee3b320cc3e 100644 --- a/samples/server/petstore/kotlin-springboot-source-swagger1/src/test/kotlin/org/openapitools/api/PetApiTest.kt +++ b/samples/server/petstore/kotlin-springboot-source-swagger1/src/test/kotlin/org/openapitools/api/PetApiTest.kt @@ -121,7 +121,7 @@ class PetApiTest { fun uploadFileTest() { val petId: kotlin.Long = TODO() val additionalMetadata: kotlin.String? = TODO() - val file: org.springframework.core.io.Resource? = TODO() + val file: org.springframework.web.multipart.MultipartFile? = TODO() val response: ResponseEntity = api.uploadFile(petId, additionalMetadata, file) // TODO: test validations diff --git a/samples/server/petstore/kotlin-springboot-source-swagger2/src/test/kotlin/org/openapitools/api/PetApiTest.kt b/samples/server/petstore/kotlin-springboot-source-swagger2/src/test/kotlin/org/openapitools/api/PetApiTest.kt index 6625bcb8d5c1..4ee3b320cc3e 100644 --- a/samples/server/petstore/kotlin-springboot-source-swagger2/src/test/kotlin/org/openapitools/api/PetApiTest.kt +++ b/samples/server/petstore/kotlin-springboot-source-swagger2/src/test/kotlin/org/openapitools/api/PetApiTest.kt @@ -121,7 +121,7 @@ class PetApiTest { fun uploadFileTest() { val petId: kotlin.Long = TODO() val additionalMetadata: kotlin.String? = TODO() - val file: org.springframework.core.io.Resource? = TODO() + val file: org.springframework.web.multipart.MultipartFile? = TODO() val response: ResponseEntity = api.uploadFile(petId, additionalMetadata, file) // TODO: test validations diff --git a/samples/server/petstore/kotlin-springboot-springfox/src/test/kotlin/org/openapitools/api/PetApiTest.kt b/samples/server/petstore/kotlin-springboot-springfox/src/test/kotlin/org/openapitools/api/PetApiTest.kt index 6625bcb8d5c1..4ee3b320cc3e 100644 --- a/samples/server/petstore/kotlin-springboot-springfox/src/test/kotlin/org/openapitools/api/PetApiTest.kt +++ b/samples/server/petstore/kotlin-springboot-springfox/src/test/kotlin/org/openapitools/api/PetApiTest.kt @@ -121,7 +121,7 @@ class PetApiTest { fun uploadFileTest() { val petId: kotlin.Long = TODO() val additionalMetadata: kotlin.String? = TODO() - val file: org.springframework.core.io.Resource? = TODO() + val file: org.springframework.web.multipart.MultipartFile? = TODO() val response: ResponseEntity = api.uploadFile(petId, additionalMetadata, file) // TODO: test validations diff --git a/samples/server/petstore/kotlin-springboot/src/test/kotlin/org/openapitools/api/PetApiTest.kt b/samples/server/petstore/kotlin-springboot/src/test/kotlin/org/openapitools/api/PetApiTest.kt index 6625bcb8d5c1..4ee3b320cc3e 100644 --- a/samples/server/petstore/kotlin-springboot/src/test/kotlin/org/openapitools/api/PetApiTest.kt +++ b/samples/server/petstore/kotlin-springboot/src/test/kotlin/org/openapitools/api/PetApiTest.kt @@ -121,7 +121,7 @@ class PetApiTest { fun uploadFileTest() { val petId: kotlin.Long = TODO() val additionalMetadata: kotlin.String? = TODO() - val file: org.springframework.core.io.Resource? = TODO() + val file: org.springframework.web.multipart.MultipartFile? = TODO() val response: ResponseEntity = api.uploadFile(petId, additionalMetadata, file) // TODO: test validations diff --git a/samples/server/petstore/php-slim4/tests/Model/ApiResponseTest.php b/samples/server/petstore/php-slim4/tests/Model/ApiResponseTest.php index 20534f17a0cf..f9bfc41a4cb4 100644 --- a/samples/server/petstore/php-slim4/tests/Model/ApiResponseTest.php +++ b/samples/server/petstore/php-slim4/tests/Model/ApiResponseTest.php @@ -122,3 +122,4 @@ public function testGetOpenApiSchema() $this->assertIsArray($schemaArr); } } + diff --git a/samples/server/petstore/php-slim4/tests/Model/CategoryTest.php b/samples/server/petstore/php-slim4/tests/Model/CategoryTest.php index 558e3b094c7a..f02109eb03bd 100644 --- a/samples/server/petstore/php-slim4/tests/Model/CategoryTest.php +++ b/samples/server/petstore/php-slim4/tests/Model/CategoryTest.php @@ -112,3 +112,4 @@ public function testGetOpenApiSchema() $this->assertIsArray($schemaArr); } } + diff --git a/samples/server/petstore/php-slim4/tests/Model/OrderTest.php b/samples/server/petstore/php-slim4/tests/Model/OrderTest.php index 9003833b6307..cbde525beeb3 100644 --- a/samples/server/petstore/php-slim4/tests/Model/OrderTest.php +++ b/samples/server/petstore/php-slim4/tests/Model/OrderTest.php @@ -152,3 +152,4 @@ public function testGetOpenApiSchema() $this->assertIsArray($schemaArr); } } + diff --git a/samples/server/petstore/php-slim4/tests/Model/PetTest.php b/samples/server/petstore/php-slim4/tests/Model/PetTest.php index 839423bfcc7a..d57378a4fb7c 100644 --- a/samples/server/petstore/php-slim4/tests/Model/PetTest.php +++ b/samples/server/petstore/php-slim4/tests/Model/PetTest.php @@ -152,3 +152,4 @@ public function testGetOpenApiSchema() $this->assertIsArray($schemaArr); } } + diff --git a/samples/server/petstore/php-slim4/tests/Model/TagTest.php b/samples/server/petstore/php-slim4/tests/Model/TagTest.php index 880a4436baa9..253a4c9d301e 100644 --- a/samples/server/petstore/php-slim4/tests/Model/TagTest.php +++ b/samples/server/petstore/php-slim4/tests/Model/TagTest.php @@ -112,3 +112,4 @@ public function testGetOpenApiSchema() $this->assertIsArray($schemaArr); } } + diff --git a/samples/server/petstore/php-slim4/tests/Model/UserTest.php b/samples/server/petstore/php-slim4/tests/Model/UserTest.php index 606a0bd29b45..e87a308fcb79 100644 --- a/samples/server/petstore/php-slim4/tests/Model/UserTest.php +++ b/samples/server/petstore/php-slim4/tests/Model/UserTest.php @@ -172,3 +172,4 @@ public function testGetOpenApiSchema() $this->assertIsArray($schemaArr); } } + diff --git a/samples/server/petstore/php-symfony/SymfonyBundle-php/Tests/Api/PetApiInterfaceTest.php b/samples/server/petstore/php-symfony/SymfonyBundle-php/Tests/Api/PetApiInterfaceTest.php index 98d735524b91..6a2f0cc691b0 100644 --- a/samples/server/petstore/php-symfony/SymfonyBundle-php/Tests/Api/PetApiInterfaceTest.php +++ b/samples/server/petstore/php-symfony/SymfonyBundle-php/Tests/Api/PetApiInterfaceTest.php @@ -222,9 +222,9 @@ public function testUploadFile(): void */ protected function genTestData(string $regexp) { - $grammar = new \Hoa\File\Read('hoa://Library/Regex/Grammar.pp'); + $grammar = new \Hoa\File\Read('hoa://Library/Regex/Grammar.pp'); $compiler = \Hoa\Compiler\Llk\Llk::load($grammar); - $ast = $compiler->parse($regexp); + $ast = $compiler->parse($regexp); $generator = new \Hoa\Regex\Visitor\Isotropic(new \Hoa\Math\Sampler\Random()); return $generator->visit($ast); diff --git a/samples/server/petstore/php-symfony/SymfonyBundle-php/Tests/Api/StoreApiInterfaceTest.php b/samples/server/petstore/php-symfony/SymfonyBundle-php/Tests/Api/StoreApiInterfaceTest.php index 928160a944cf..c67f988f1230 100644 --- a/samples/server/petstore/php-symfony/SymfonyBundle-php/Tests/Api/StoreApiInterfaceTest.php +++ b/samples/server/petstore/php-symfony/SymfonyBundle-php/Tests/Api/StoreApiInterfaceTest.php @@ -152,9 +152,9 @@ public function testPlaceOrder(): void */ protected function genTestData(string $regexp) { - $grammar = new \Hoa\File\Read('hoa://Library/Regex/Grammar.pp'); + $grammar = new \Hoa\File\Read('hoa://Library/Regex/Grammar.pp'); $compiler = \Hoa\Compiler\Llk\Llk::load($grammar); - $ast = $compiler->parse($regexp); + $ast = $compiler->parse($regexp); $generator = new \Hoa\Regex\Visitor\Isotropic(new \Hoa\Math\Sampler\Random()); return $generator->visit($ast); diff --git a/samples/server/petstore/php-symfony/SymfonyBundle-php/Tests/Api/UserApiInterfaceTest.php b/samples/server/petstore/php-symfony/SymfonyBundle-php/Tests/Api/UserApiInterfaceTest.php index ce64a85b1004..170117554924 100644 --- a/samples/server/petstore/php-symfony/SymfonyBundle-php/Tests/Api/UserApiInterfaceTest.php +++ b/samples/server/petstore/php-symfony/SymfonyBundle-php/Tests/Api/UserApiInterfaceTest.php @@ -219,9 +219,9 @@ public function testUpdateUser(): void */ protected function genTestData(string $regexp) { - $grammar = new \Hoa\File\Read('hoa://Library/Regex/Grammar.pp'); + $grammar = new \Hoa\File\Read('hoa://Library/Regex/Grammar.pp'); $compiler = \Hoa\Compiler\Llk\Llk::load($grammar); - $ast = $compiler->parse($regexp); + $ast = $compiler->parse($regexp); $generator = new \Hoa\Regex\Visitor\Isotropic(new \Hoa\Math\Sampler\Random()); return $generator->visit($ast); diff --git a/samples/server/petstore/php-symfony/SymfonyBundle-php/Tests/Model/ApiResponseTest.php b/samples/server/petstore/php-symfony/SymfonyBundle-php/Tests/Model/ApiResponseTest.php index e1a93fc58dd9..fddc3355fe70 100644 --- a/samples/server/petstore/php-symfony/SymfonyBundle-php/Tests/Model/ApiResponseTest.php +++ b/samples/server/petstore/php-symfony/SymfonyBundle-php/Tests/Model/ApiResponseTest.php @@ -27,8 +27,9 @@ * Please update the test case below to test the model. */ -namespace OpenAPI\Server\Model; +namespace OpenAPI\Server\Tests\Model; +use OpenAPI\Server\Model\ApiResponse; use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\TestCase; @@ -58,7 +59,7 @@ public static function setUpBeforeClass(): void */ public function setUp(): void { - $this->object = $this->getMockBuilder(ApiResponse::class)->getMockForAbstractClass(); + $this->object = $this->getMockBuilder(ApiResponse::class)->getMockForAbstractClass(); } /** diff --git a/samples/server/petstore/php-symfony/SymfonyBundle-php/Tests/Model/CategoryTest.php b/samples/server/petstore/php-symfony/SymfonyBundle-php/Tests/Model/CategoryTest.php index 83357931e9b0..19ec96adf540 100644 --- a/samples/server/petstore/php-symfony/SymfonyBundle-php/Tests/Model/CategoryTest.php +++ b/samples/server/petstore/php-symfony/SymfonyBundle-php/Tests/Model/CategoryTest.php @@ -27,8 +27,9 @@ * Please update the test case below to test the model. */ -namespace OpenAPI\Server\Model; +namespace OpenAPI\Server\Tests\Model; +use OpenAPI\Server\Model\Category; use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\TestCase; @@ -58,7 +59,7 @@ public static function setUpBeforeClass(): void */ public function setUp(): void { - $this->object = $this->getMockBuilder(Category::class)->getMockForAbstractClass(); + $this->object = $this->getMockBuilder(Category::class)->getMockForAbstractClass(); } /** diff --git a/samples/server/petstore/php-symfony/SymfonyBundle-php/Tests/Model/OrderTest.php b/samples/server/petstore/php-symfony/SymfonyBundle-php/Tests/Model/OrderTest.php index 230058daff07..ba0602494dc9 100644 --- a/samples/server/petstore/php-symfony/SymfonyBundle-php/Tests/Model/OrderTest.php +++ b/samples/server/petstore/php-symfony/SymfonyBundle-php/Tests/Model/OrderTest.php @@ -27,8 +27,9 @@ * Please update the test case below to test the model. */ -namespace OpenAPI\Server\Model; +namespace OpenAPI\Server\Tests\Model; +use OpenAPI\Server\Model\Order; use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\TestCase; @@ -58,7 +59,7 @@ public static function setUpBeforeClass(): void */ public function setUp(): void { - $this->object = $this->getMockBuilder(Order::class)->getMockForAbstractClass(); + $this->object = $this->getMockBuilder(Order::class)->getMockForAbstractClass(); } /** diff --git a/samples/server/petstore/php-symfony/SymfonyBundle-php/Tests/Model/PetTest.php b/samples/server/petstore/php-symfony/SymfonyBundle-php/Tests/Model/PetTest.php index defee76700df..ffa79b199e5a 100644 --- a/samples/server/petstore/php-symfony/SymfonyBundle-php/Tests/Model/PetTest.php +++ b/samples/server/petstore/php-symfony/SymfonyBundle-php/Tests/Model/PetTest.php @@ -27,8 +27,9 @@ * Please update the test case below to test the model. */ -namespace OpenAPI\Server\Model; +namespace OpenAPI\Server\Tests\Model; +use OpenAPI\Server\Model\Pet; use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\TestCase; @@ -58,7 +59,7 @@ public static function setUpBeforeClass(): void */ public function setUp(): void { - $this->object = $this->getMockBuilder(Pet::class)->getMockForAbstractClass(); + $this->object = $this->getMockBuilder(Pet::class)->getMockForAbstractClass(); } /** diff --git a/samples/server/petstore/php-symfony/SymfonyBundle-php/Tests/Model/TagTest.php b/samples/server/petstore/php-symfony/SymfonyBundle-php/Tests/Model/TagTest.php index 1296d5972af5..36823a2299bb 100644 --- a/samples/server/petstore/php-symfony/SymfonyBundle-php/Tests/Model/TagTest.php +++ b/samples/server/petstore/php-symfony/SymfonyBundle-php/Tests/Model/TagTest.php @@ -27,8 +27,9 @@ * Please update the test case below to test the model. */ -namespace OpenAPI\Server\Model; +namespace OpenAPI\Server\Tests\Model; +use OpenAPI\Server\Model\Tag; use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\TestCase; @@ -58,7 +59,7 @@ public static function setUpBeforeClass(): void */ public function setUp(): void { - $this->object = $this->getMockBuilder(Tag::class)->getMockForAbstractClass(); + $this->object = $this->getMockBuilder(Tag::class)->getMockForAbstractClass(); } /** diff --git a/samples/server/petstore/php-symfony/SymfonyBundle-php/Tests/Model/UserTest.php b/samples/server/petstore/php-symfony/SymfonyBundle-php/Tests/Model/UserTest.php index c485d931d964..e9dbd7709051 100644 --- a/samples/server/petstore/php-symfony/SymfonyBundle-php/Tests/Model/UserTest.php +++ b/samples/server/petstore/php-symfony/SymfonyBundle-php/Tests/Model/UserTest.php @@ -27,8 +27,9 @@ * Please update the test case below to test the model. */ -namespace OpenAPI\Server\Model; +namespace OpenAPI\Server\Tests\Model; +use OpenAPI\Server\Model\User; use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\TestCase; @@ -58,7 +59,7 @@ public static function setUpBeforeClass(): void */ public function setUp(): void { - $this->object = $this->getMockBuilder(User::class)->getMockForAbstractClass(); + $this->object = $this->getMockBuilder(User::class)->getMockForAbstractClass(); } /** diff --git a/samples/server/petstore/python-aiohttp-srclayout/tests/test_pet_controller.py b/samples/server/petstore/python-aiohttp-srclayout/tests/test_pet_controller.py index 898181839f42..5714015e7559 100644 --- a/samples/server/petstore/python-aiohttp-srclayout/tests/test_pet_controller.py +++ b/samples/server/petstore/python-aiohttp-srclayout/tests/test_pet_controller.py @@ -8,6 +8,7 @@ from openapi_server.models.api_response import ApiResponse from openapi_server.models.pet import Pet + pytestmark = pytest.mark.asyncio @pytest.mark.skip("Connexion does not support multiple consumes. See https://github.com/zalando/connexion/pull/760") @@ -16,23 +17,7 @@ async def test_add_pet(client): Add a new pet to the store """ - body = { - "photoUrls" : [ "photoUrls", "photoUrls" ], - "name" : "doggie", - "id" : 0, - "category" : { - "name" : "name", - "id" : 6 - }, - "tags" : [ { - "name" : "name", - "id" : 1 - }, { - "name" : "name", - "id" : 1 - } ], - "status" : "available" -} + body = {"photoUrls":["photoUrls","photoUrls"],"name":"doggie","id":0,"category":{"name":"name","id":6},"tags":[{"name":"name","id":1},{"name":"name","id":1}],"status":"available"} headers = { 'Content-Type': 'application/json', 'Authorization': 'Bearer special-key', @@ -46,6 +31,8 @@ async def test_add_pet(client): assert response.status == 200, 'Response body is : ' + (await response.read()).decode('utf-8') +pytestmark = pytest.mark.asyncio + async def test_delete_pet(client): """Test case for delete_pet @@ -63,12 +50,14 @@ async def test_delete_pet(client): assert response.status == 200, 'Response body is : ' + (await response.read()).decode('utf-8') +pytestmark = pytest.mark.asyncio + async def test_find_pets_by_status(client): """Test case for find_pets_by_status Finds Pets by status """ - params = [('status', 'available')] + params = [('status', ['status_example'])] headers = { 'Accept': 'application/json', 'Authorization': 'Bearer special-key', @@ -82,12 +71,14 @@ async def test_find_pets_by_status(client): assert response.status == 200, 'Response body is : ' + (await response.read()).decode('utf-8') +pytestmark = pytest.mark.asyncio + async def test_find_pets_by_tags(client): """Test case for find_pets_by_tags Finds Pets by tags """ - params = [('tags', 'tags_example')] + params = [('tags', ['tags_example'])] headers = { 'Accept': 'application/json', 'Authorization': 'Bearer special-key', @@ -101,6 +92,8 @@ async def test_find_pets_by_tags(client): assert response.status == 200, 'Response body is : ' + (await response.read()).decode('utf-8') +pytestmark = pytest.mark.asyncio + async def test_get_pet_by_id(client): """Test case for get_pet_by_id @@ -118,29 +111,15 @@ async def test_get_pet_by_id(client): assert response.status == 200, 'Response body is : ' + (await response.read()).decode('utf-8') +pytestmark = pytest.mark.asyncio + @pytest.mark.skip("Connexion does not support multiple consumes. See https://github.com/zalando/connexion/pull/760") async def test_update_pet(client): """Test case for update_pet Update an existing pet """ - body = { - "photoUrls" : [ "photoUrls", "photoUrls" ], - "name" : "doggie", - "id" : 0, - "category" : { - "name" : "name", - "id" : 6 - }, - "tags" : [ { - "name" : "name", - "id" : 1 - }, { - "name" : "name", - "id" : 1 - } ], - "status" : "available" -} + body = {"photoUrls":["photoUrls","photoUrls"],"name":"doggie","id":0,"category":{"name":"name","id":6},"tags":[{"name":"name","id":1},{"name":"name","id":1}],"status":"available"} headers = { 'Content-Type': 'application/json', 'Authorization': 'Bearer special-key', @@ -154,6 +133,8 @@ async def test_update_pet(client): assert response.status == 200, 'Response body is : ' + (await response.read()).decode('utf-8') +pytestmark = pytest.mark.asyncio + @pytest.mark.skip("application/x-www-form-urlencoded not supported by Connexion") async def test_update_pet_with_form(client): """Test case for update_pet_with_form @@ -177,6 +158,8 @@ async def test_update_pet_with_form(client): assert response.status == 200, 'Response body is : ' + (await response.read()).decode('utf-8') +pytestmark = pytest.mark.asyncio + @pytest.mark.skip("multipart/form-data not supported by Connexion") async def test_upload_file(client): """Test case for upload_file @@ -190,7 +173,7 @@ async def test_upload_file(client): } data = FormData() data.add_field('additional_metadata', 'additional_metadata_example') - data.add_field('file', (BytesIO(b'some file data'), 'file.txt')) + data.add_field('file', '/path/to/file') response = await client.request( method='POST', path='/v2/pet/{pet_id}/uploadImage'.format(pet_id=56), diff --git a/samples/server/petstore/python-aiohttp-srclayout/tests/test_store_controller.py b/samples/server/petstore/python-aiohttp-srclayout/tests/test_store_controller.py index 9cbe796815f9..24deb57016b5 100644 --- a/samples/server/petstore/python-aiohttp-srclayout/tests/test_store_controller.py +++ b/samples/server/petstore/python-aiohttp-srclayout/tests/test_store_controller.py @@ -6,6 +6,7 @@ from openapi_server.models.order import Order + pytestmark = pytest.mark.asyncio async def test_delete_order(client): @@ -23,6 +24,8 @@ async def test_delete_order(client): assert response.status == 200, 'Response body is : ' + (await response.read()).decode('utf-8') +pytestmark = pytest.mark.asyncio + async def test_get_inventory(client): """Test case for get_inventory @@ -40,6 +43,8 @@ async def test_get_inventory(client): assert response.status == 200, 'Response body is : ' + (await response.read()).decode('utf-8') +pytestmark = pytest.mark.asyncio + async def test_get_order_by_id(client): """Test case for get_order_by_id @@ -50,19 +55,21 @@ async def test_get_order_by_id(client): } response = await client.request( method='GET', - path='/v2/store/order/{order_id}'.format(order_id=5), + path='/v2/store/order/{order_id}'.format(order_id=56), headers=headers, ) assert response.status == 200, 'Response body is : ' + (await response.read()).decode('utf-8') +pytestmark = pytest.mark.asyncio + @pytest.mark.skip("*/* not supported by Connexion. Use application/json instead. See https://github.com/zalando/connexion/pull/760") async def test_place_order(client): """Test case for place_order Place an order for a pet """ - body = {} + body = openapi_server.Order() headers = { 'Accept': 'application/json', 'Content-Type': 'application/json', diff --git a/samples/server/petstore/python-aiohttp-srclayout/tests/test_user_controller.py b/samples/server/petstore/python-aiohttp-srclayout/tests/test_user_controller.py index ae97db8ea413..be6f29e595c2 100644 --- a/samples/server/petstore/python-aiohttp-srclayout/tests/test_user_controller.py +++ b/samples/server/petstore/python-aiohttp-srclayout/tests/test_user_controller.py @@ -6,6 +6,7 @@ from openapi_server.models.user import User + pytestmark = pytest.mark.asyncio @pytest.mark.skip("*/* not supported by Connexion. Use application/json instead. See https://github.com/zalando/connexion/pull/760") @@ -14,7 +15,7 @@ async def test_create_user(client): Create user """ - body = {} + body = openapi_server.User() headers = { 'Content-Type': 'application/json', } @@ -27,13 +28,15 @@ async def test_create_user(client): assert response.status == 200, 'Response body is : ' + (await response.read()).decode('utf-8') +pytestmark = pytest.mark.asyncio + @pytest.mark.skip("*/* not supported by Connexion. Use application/json instead. See https://github.com/zalando/connexion/pull/760") async def test_create_users_with_array_input(client): """Test case for create_users_with_array_input Creates list of users with given input array """ - body = [{}] + body = [openapi_server.User()] headers = { 'Content-Type': 'application/json', } @@ -46,13 +49,15 @@ async def test_create_users_with_array_input(client): assert response.status == 200, 'Response body is : ' + (await response.read()).decode('utf-8') +pytestmark = pytest.mark.asyncio + @pytest.mark.skip("*/* not supported by Connexion. Use application/json instead. See https://github.com/zalando/connexion/pull/760") async def test_create_users_with_list_input(client): """Test case for create_users_with_list_input Creates list of users with given input array """ - body = [{}] + body = [openapi_server.User()] headers = { 'Content-Type': 'application/json', } @@ -65,6 +70,8 @@ async def test_create_users_with_list_input(client): assert response.status == 200, 'Response body is : ' + (await response.read()).decode('utf-8') +pytestmark = pytest.mark.asyncio + async def test_delete_user(client): """Test case for delete_user @@ -80,6 +87,8 @@ async def test_delete_user(client): assert response.status == 200, 'Response body is : ' + (await response.read()).decode('utf-8') +pytestmark = pytest.mark.asyncio + async def test_get_user_by_name(client): """Test case for get_user_by_name @@ -96,6 +105,8 @@ async def test_get_user_by_name(client): assert response.status == 200, 'Response body is : ' + (await response.read()).decode('utf-8') +pytestmark = pytest.mark.asyncio + async def test_login_user(client): """Test case for login_user @@ -115,6 +126,8 @@ async def test_login_user(client): assert response.status == 200, 'Response body is : ' + (await response.read()).decode('utf-8') +pytestmark = pytest.mark.asyncio + async def test_logout_user(client): """Test case for logout_user @@ -130,13 +143,15 @@ async def test_logout_user(client): assert response.status == 200, 'Response body is : ' + (await response.read()).decode('utf-8') +pytestmark = pytest.mark.asyncio + @pytest.mark.skip("*/* not supported by Connexion. Use application/json instead. See https://github.com/zalando/connexion/pull/760") async def test_update_user(client): """Test case for update_user Updated user """ - body = {} + body = openapi_server.User() headers = { 'Content-Type': 'application/json', } diff --git a/samples/server/petstore/python-blueplanet/app/openapi_server/test/test_pet_controller.py b/samples/server/petstore/python-blueplanet/app/openapi_server/test/test_pet_controller.py index 397a1edcc446..142ede3d0582 100644 --- a/samples/server/petstore/python-blueplanet/app/openapi_server/test/test_pet_controller.py +++ b/samples/server/petstore/python-blueplanet/app/openapi_server/test/test_pet_controller.py @@ -18,23 +18,7 @@ def test_add_pet(self): Add a new pet to the store """ - body = { - "photoUrls" : [ "photoUrls", "photoUrls" ], - "name" : "doggie", - "id" : 0, - "category" : { - "name" : "name", - "id" : 6 - }, - "tags" : [ { - "name" : "name", - "id" : 1 - }, { - "name" : "name", - "id" : 1 - } ], - "status" : "available" -} + body = {"photoUrls":["photoUrls","photoUrls"],"name":"doggie","id":0,"category":{"name":"name","id":6},"tags":[{"name":"name","id":1},{"name":"name","id":1}],"status":"available"} response = self.client.open( '/v2/pet', method='POST', @@ -61,7 +45,7 @@ def test_find_pets_by_status(self): Finds Pets by status """ - query_string = [('status', ['available'])] + query_string = [('status', ['status_example'])] response = self.client.open( '/v2/pet/findByStatus', method='GET', @@ -98,23 +82,7 @@ def test_update_pet(self): Update an existing pet """ - body = { - "photoUrls" : [ "photoUrls", "photoUrls" ], - "name" : "doggie", - "id" : 0, - "category" : { - "name" : "name", - "id" : 6 - }, - "tags" : [ { - "name" : "name", - "id" : 1 - }, { - "name" : "name", - "id" : 1 - } ], - "status" : "available" -} + body = {"photoUrls":["photoUrls","photoUrls"],"name":"doggie","id":0,"category":{"name":"name","id":6},"tags":[{"name":"name","id":1},{"name":"name","id":1}],"status":"available"} response = self.client.open( '/v2/pet', method='PUT', diff --git a/samples/server/petstore/python-blueplanet/app/openapi_server/test/test_store_controller.py b/samples/server/petstore/python-blueplanet/app/openapi_server/test/test_store_controller.py index 4523c069b0cb..c3f5795bd078 100644 --- a/samples/server/petstore/python-blueplanet/app/openapi_server/test/test_store_controller.py +++ b/samples/server/petstore/python-blueplanet/app/openapi_server/test/test_store_controller.py @@ -40,7 +40,7 @@ def test_get_order_by_id(self): Find purchase order by ID """ response = self.client.open( - '/v2/store/order/{order_id}'.format(order_id=1), + '/v2/store/order/{order_id}'.format(order_id=56), method='GET') self.assert200(response, 'Response body is : ' + response.data.decode('utf-8')) diff --git a/samples/server/petstore/python-fastapi/tests/test_fake_api.py b/samples/server/petstore/python-fastapi/tests/test_fake_api.py index e9921dc88004..4f1fcf322e2f 100644 --- a/samples/server/petstore/python-fastapi/tests/test_fake_api.py +++ b/samples/server/petstore/python-fastapi/tests/test_fake_api.py @@ -3,6 +3,9 @@ from fastapi.testclient import TestClient +from pydantic import Field, StrictStr # noqa: F401 +from typing import Any, Optional # noqa: F401 +from typing_extensions import Annotated # noqa: F401 def test_fake_query_param_default(client: TestClient): diff --git a/samples/server/petstore/python-fastapi/tests/test_pet_api.py b/samples/server/petstore/python-fastapi/tests/test_pet_api.py index ccfc88a2caa3..5b2ce40c798b 100644 --- a/samples/server/petstore/python-fastapi/tests/test_pet_api.py +++ b/samples/server/petstore/python-fastapi/tests/test_pet_api.py @@ -3,6 +3,9 @@ from fastapi.testclient import TestClient +from pydantic import Field, StrictBytes, StrictInt, StrictStr, field_validator # noqa: F401 +from typing import Any, List, Optional, Tuple, Union # noqa: F401 +from typing_extensions import Annotated # noqa: F401 from openapi_server.models.api_response import ApiResponse # noqa: F401 from openapi_server.models.pet import Pet # noqa: F401 diff --git a/samples/server/petstore/python-fastapi/tests/test_store_api.py b/samples/server/petstore/python-fastapi/tests/test_store_api.py index fd27a05e70ee..05bc4ae6a614 100644 --- a/samples/server/petstore/python-fastapi/tests/test_store_api.py +++ b/samples/server/petstore/python-fastapi/tests/test_store_api.py @@ -3,6 +3,9 @@ from fastapi.testclient import TestClient +from pydantic import Field, StrictInt, StrictStr # noqa: F401 +from typing import Any, Dict # noqa: F401 +from typing_extensions import Annotated # noqa: F401 from openapi_server.models.order import Order # noqa: F401 diff --git a/samples/server/petstore/python-fastapi/tests/test_user_api.py b/samples/server/petstore/python-fastapi/tests/test_user_api.py index 29e4a073a630..532f04c9b591 100644 --- a/samples/server/petstore/python-fastapi/tests/test_user_api.py +++ b/samples/server/petstore/python-fastapi/tests/test_user_api.py @@ -3,6 +3,9 @@ from fastapi.testclient import TestClient +from pydantic import Field, StrictStr, field_validator # noqa: F401 +from typing import Any, List # noqa: F401 +from typing_extensions import Annotated # noqa: F401 from openapi_server.models.user import User # noqa: F401 diff --git a/samples/server/petstore/python-flask/openapi_server/test/test_pet_controller.py b/samples/server/petstore/python-flask/openapi_server/test/test_pet_controller.py index a62cb03709c8..060787f5f777 100644 --- a/samples/server/petstore/python-flask/openapi_server/test/test_pet_controller.py +++ b/samples/server/petstore/python-flask/openapi_server/test/test_pet_controller.py @@ -16,8 +16,9 @@ def test_add_pet(self): Add a new pet to the store """ - body = {"photoUrls":["photoUrls","photoUrls"],"name":"doggie","id":0,"category":{"name":"name","id":6},"tags":[{"name":"name","id":1},{"name":"name","id":1}],"status":"available"} + pet = {"photoUrls":["photoUrls","photoUrls"],"name":"doggie","id":0,"category":{"name":"name","id":6},"tags":[{"name":"name","id":1},{"name":"name","id":1}],"status":"available"} headers = { + 'Accept': 'application/json', 'Content-Type': 'application/json', 'Authorization': 'Bearer special-key', } @@ -25,7 +26,7 @@ def test_add_pet(self): '/v2/pet', method='POST', headers=headers, - data=json.dumps(body), + data=json.dumps(pet), content_type='application/json') self.assert200(response, 'Response body is : ' + response.data.decode('utf-8')) @@ -104,8 +105,9 @@ def test_update_pet(self): Update an existing pet """ - body = {"photoUrls":["photoUrls","photoUrls"],"name":"doggie","id":0,"category":{"name":"name","id":6},"tags":[{"name":"name","id":1},{"name":"name","id":1}],"status":"available"} + pet = {"photoUrls":["photoUrls","photoUrls"],"name":"doggie","id":0,"category":{"name":"name","id":6},"tags":[{"name":"name","id":1},{"name":"name","id":1}],"status":"available"} headers = { + 'Accept': 'application/json', 'Content-Type': 'application/json', 'Authorization': 'Bearer special-key', } @@ -113,7 +115,7 @@ def test_update_pet(self): '/v2/pet', method='PUT', headers=headers, - data=json.dumps(body), + data=json.dumps(pet), content_type='application/json') self.assert200(response, 'Response body is : ' + response.data.decode('utf-8')) diff --git a/samples/server/petstore/python-flask/openapi_server/test/test_store_controller.py b/samples/server/petstore/python-flask/openapi_server/test/test_store_controller.py index 36b656cd827d..e57c7a515c93 100644 --- a/samples/server/petstore/python-flask/openapi_server/test/test_store_controller.py +++ b/samples/server/petstore/python-flask/openapi_server/test/test_store_controller.py @@ -54,13 +54,12 @@ def test_get_order_by_id(self): self.assert200(response, 'Response body is : ' + response.data.decode('utf-8')) - @unittest.skip("*/* not supported by Connexion. Use application/json instead. See https://github.com/zalando/connexion/pull/760") def test_place_order(self): """Test case for place_order Place an order for a pet """ - body = openapi_server.Order() + order = {"petId":6,"quantity":1,"id":0,"shipDate":"2000-01-23T04:56:07.000+00:00","complete":False,"status":"placed"} headers = { 'Accept': 'application/json', 'Content-Type': 'application/json', @@ -69,7 +68,7 @@ def test_place_order(self): '/v2/store/order', method='POST', headers=headers, - data=json.dumps(body), + data=json.dumps(order), content_type='application/json') self.assert200(response, 'Response body is : ' + response.data.decode('utf-8')) diff --git a/samples/server/petstore/python-flask/openapi_server/test/test_user_controller.py b/samples/server/petstore/python-flask/openapi_server/test/test_user_controller.py index a991011b3166..5b651c1bc0d6 100644 --- a/samples/server/petstore/python-flask/openapi_server/test/test_user_controller.py +++ b/samples/server/petstore/python-flask/openapi_server/test/test_user_controller.py @@ -9,59 +9,59 @@ class TestUserController(BaseTestCase): """UserController integration test stubs""" - @unittest.skip("*/* not supported by Connexion. Use application/json instead. See https://github.com/zalando/connexion/pull/760") def test_create_user(self): """Test case for create_user Create user """ - body = openapi_server.User() + user = {"firstName":"firstName","lastName":"lastName","password":"password","userStatus":6,"phone":"phone","id":0,"email":"email","username":"username"} headers = { 'Content-Type': 'application/json', + 'api_key': 'special-key', } response = self.client.open( '/v2/user', method='POST', headers=headers, - data=json.dumps(body), + data=json.dumps(user), content_type='application/json') self.assert200(response, 'Response body is : ' + response.data.decode('utf-8')) - @unittest.skip("*/* not supported by Connexion. Use application/json instead. See https://github.com/zalando/connexion/pull/760") def test_create_users_with_array_input(self): """Test case for create_users_with_array_input Creates list of users with given input array """ - body = [openapi_server.User()] + user = {"firstName":"firstName","lastName":"lastName","password":"password","userStatus":6,"phone":"phone","id":0,"email":"email","username":"username"} headers = { 'Content-Type': 'application/json', + 'api_key': 'special-key', } response = self.client.open( '/v2/user/createWithArray', method='POST', headers=headers, - data=json.dumps(body), + data=json.dumps(user), content_type='application/json') self.assert200(response, 'Response body is : ' + response.data.decode('utf-8')) - @unittest.skip("*/* not supported by Connexion. Use application/json instead. See https://github.com/zalando/connexion/pull/760") def test_create_users_with_list_input(self): """Test case for create_users_with_list_input Creates list of users with given input array """ - body = [openapi_server.User()] + user = {"firstName":"firstName","lastName":"lastName","password":"password","userStatus":6,"phone":"phone","id":0,"email":"email","username":"username"} headers = { 'Content-Type': 'application/json', + 'api_key': 'special-key', } response = self.client.open( '/v2/user/createWithList', method='POST', headers=headers, - data=json.dumps(body), + data=json.dumps(user), content_type='application/json') self.assert200(response, 'Response body is : ' + response.data.decode('utf-8')) @@ -72,6 +72,7 @@ def test_delete_user(self): Delete user """ headers = { + 'api_key': 'special-key', } response = self.client.open( '/v2/user/{username}'.format(username='username_example'), @@ -119,6 +120,7 @@ def test_logout_user(self): Logs out current logged in user session """ headers = { + 'api_key': 'special-key', } response = self.client.open( '/v2/user/logout', @@ -127,21 +129,21 @@ def test_logout_user(self): self.assert200(response, 'Response body is : ' + response.data.decode('utf-8')) - @unittest.skip("*/* not supported by Connexion. Use application/json instead. See https://github.com/zalando/connexion/pull/760") def test_update_user(self): """Test case for update_user Updated user """ - body = openapi_server.User() + user = {"firstName":"firstName","lastName":"lastName","password":"password","userStatus":6,"phone":"phone","id":0,"email":"email","username":"username"} headers = { 'Content-Type': 'application/json', + 'api_key': 'special-key', } response = self.client.open( '/v2/user/{username}'.format(username='username_example'), method='PUT', headers=headers, - data=json.dumps(body), + data=json.dumps(user), content_type='application/json') self.assert200(response, 'Response body is : ' + response.data.decode('utf-8')) diff --git a/samples/server/petstore/scala-cask/jvm/src/test/scala/sample/cask/model/ApiResponseTest.scala b/samples/server/petstore/scala-cask/jvm/src/test/scala/sample/cask/model/ApiResponseTest.scala index 00f610d291d7..7540137d62f0 100644 --- a/samples/server/petstore/scala-cask/jvm/src/test/scala/sample/cask/model/ApiResponseTest.scala +++ b/samples/server/petstore/scala-cask/jvm/src/test/scala/sample/cask/model/ApiResponseTest.scala @@ -1,14 +1,15 @@ -/** OpenAPI Petstore This is a sample server Petstore server. For this sample, you can use the api - * key `special-key` to test the authorization filters. - * - * OpenAPI spec version: 1.0.0 - * - * Contact: team@openapitools.org - * - * NOTE: This class is auto generated by OpenAPI Generator. - * - * https://openapi-generator.tech - */ +/** + * OpenAPI Petstore + * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. + * + * OpenAPI spec version: 1.0.0 + * + * Contact: team@openapitools.org + * + * NOTE: This class is auto generated by OpenAPI Generator. + * + * https://openapi-generator.tech + */ // this model was generated using modelTest.mustache package sample.cask.model @@ -19,16 +20,17 @@ import scala.util.* class ApiResponseTest extends AnyWordSpec with Matchers { - "ApiResponse.fromJson" should { - """not parse invalid json""" in { - val Failure(err) = Try(ApiResponseData.fromJsonString("invalid jason")) - err.getMessage should startWith("Error parsing json 'invalid jason'") - } - """parse """ ignore { - val Failure(err: ValidationErrors) = ApiResponseData.fromJsonString("""""").validated() - sys.error("TODO") - } - } + "ApiResponse.fromJson" should { + """not parse invalid json""" in { + val Failure(err) = Try(ApiResponseData.fromJsonString("invalid jason")) + err.getMessage should startWith ("Error parsing json 'invalid jason'") + } + """parse """ ignore { + val d8a = ApiResponseData.fromJsonString("""""") + val Failure(err : ValidationErrors) = ApiResponseData.validated(d8a, true) + sys.error("TODO") + } + } } diff --git a/samples/server/petstore/scala-cask/jvm/src/test/scala/sample/cask/model/CategoryTest.scala b/samples/server/petstore/scala-cask/jvm/src/test/scala/sample/cask/model/CategoryTest.scala index 3cca352ec89f..7854cbce9367 100644 --- a/samples/server/petstore/scala-cask/jvm/src/test/scala/sample/cask/model/CategoryTest.scala +++ b/samples/server/petstore/scala-cask/jvm/src/test/scala/sample/cask/model/CategoryTest.scala @@ -1,14 +1,15 @@ -/** OpenAPI Petstore This is a sample server Petstore server. For this sample, you can use the api - * key `special-key` to test the authorization filters. - * - * OpenAPI spec version: 1.0.0 - * - * Contact: team@openapitools.org - * - * NOTE: This class is auto generated by OpenAPI Generator. - * - * https://openapi-generator.tech - */ +/** + * OpenAPI Petstore + * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. + * + * OpenAPI spec version: 1.0.0 + * + * Contact: team@openapitools.org + * + * NOTE: This class is auto generated by OpenAPI Generator. + * + * https://openapi-generator.tech + */ // this model was generated using modelTest.mustache package sample.cask.model @@ -19,16 +20,17 @@ import scala.util.* class CategoryTest extends AnyWordSpec with Matchers { - "Category.fromJson" should { - """not parse invalid json""" in { - val Failure(err) = Try(CategoryData.fromJsonString("invalid jason")) - err.getMessage should startWith("Error parsing json 'invalid jason'") - } - """parse """ ignore { - val Failure(err: ValidationErrors) = CategoryData.fromJsonString("""""").validated() - sys.error("TODO") - } - } + "Category.fromJson" should { + """not parse invalid json""" in { + val Failure(err) = Try(CategoryData.fromJsonString("invalid jason")) + err.getMessage should startWith ("Error parsing json 'invalid jason'") + } + """parse """ ignore { + val d8a = CategoryData.fromJsonString("""""") + val Failure(err : ValidationErrors) = CategoryData.validated(d8a, true) + sys.error("TODO") + } + } } diff --git a/samples/server/petstore/scala-cask/jvm/src/test/scala/sample/cask/model/OrderTest.scala b/samples/server/petstore/scala-cask/jvm/src/test/scala/sample/cask/model/OrderTest.scala index 30c143463478..db417cc36053 100644 --- a/samples/server/petstore/scala-cask/jvm/src/test/scala/sample/cask/model/OrderTest.scala +++ b/samples/server/petstore/scala-cask/jvm/src/test/scala/sample/cask/model/OrderTest.scala @@ -1,14 +1,15 @@ -/** OpenAPI Petstore This is a sample server Petstore server. For this sample, you can use the api - * key `special-key` to test the authorization filters. - * - * OpenAPI spec version: 1.0.0 - * - * Contact: team@openapitools.org - * - * NOTE: This class is auto generated by OpenAPI Generator. - * - * https://openapi-generator.tech - */ +/** + * OpenAPI Petstore + * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. + * + * OpenAPI spec version: 1.0.0 + * + * Contact: team@openapitools.org + * + * NOTE: This class is auto generated by OpenAPI Generator. + * + * https://openapi-generator.tech + */ // this model was generated using modelTest.mustache package sample.cask.model @@ -20,16 +21,17 @@ import scala.util.* class OrderTest extends AnyWordSpec with Matchers { - "Order.fromJson" should { - """not parse invalid json""" in { - val Failure(err) = Try(OrderData.fromJsonString("invalid jason")) - err.getMessage should startWith("Error parsing json 'invalid jason'") - } - """parse """ ignore { - val Failure(err: ValidationErrors) = OrderData.fromJsonString("""""").validated() - sys.error("TODO") - } - } + "Order.fromJson" should { + """not parse invalid json""" in { + val Failure(err) = Try(OrderData.fromJsonString("invalid jason")) + err.getMessage should startWith ("Error parsing json 'invalid jason'") + } + """parse """ ignore { + val d8a = OrderData.fromJsonString("""""") + val Failure(err : ValidationErrors) = OrderData.validated(d8a, true) + sys.error("TODO") + } + } } diff --git a/samples/server/petstore/scala-cask/jvm/src/test/scala/sample/cask/model/PetTest.scala b/samples/server/petstore/scala-cask/jvm/src/test/scala/sample/cask/model/PetTest.scala index 5dfc568f56e1..fb9c238cd8b6 100644 --- a/samples/server/petstore/scala-cask/jvm/src/test/scala/sample/cask/model/PetTest.scala +++ b/samples/server/petstore/scala-cask/jvm/src/test/scala/sample/cask/model/PetTest.scala @@ -1,14 +1,15 @@ -/** OpenAPI Petstore This is a sample server Petstore server. For this sample, you can use the api - * key `special-key` to test the authorization filters. - * - * OpenAPI spec version: 1.0.0 - * - * Contact: team@openapitools.org - * - * NOTE: This class is auto generated by OpenAPI Generator. - * - * https://openapi-generator.tech - */ +/** + * OpenAPI Petstore + * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. + * + * OpenAPI spec version: 1.0.0 + * + * Contact: team@openapitools.org + * + * NOTE: This class is auto generated by OpenAPI Generator. + * + * https://openapi-generator.tech + */ // this model was generated using modelTest.mustache package sample.cask.model @@ -19,16 +20,17 @@ import scala.util.* class PetTest extends AnyWordSpec with Matchers { - "Pet.fromJson" should { - """not parse invalid json""" in { - val Failure(err) = Try(PetData.fromJsonString("invalid jason")) - err.getMessage should startWith("Error parsing json 'invalid jason'") - } - """parse """ ignore { - val Failure(err: ValidationErrors) = PetData.fromJsonString("""""").validated() - sys.error("TODO") - } - } + "Pet.fromJson" should { + """not parse invalid json""" in { + val Failure(err) = Try(PetData.fromJsonString("invalid jason")) + err.getMessage should startWith ("Error parsing json 'invalid jason'") + } + """parse """ ignore { + val d8a = PetData.fromJsonString("""""") + val Failure(err : ValidationErrors) = PetData.validated(d8a, true) + sys.error("TODO") + } + } } diff --git a/samples/server/petstore/scala-cask/jvm/src/test/scala/sample/cask/model/TagTest.scala b/samples/server/petstore/scala-cask/jvm/src/test/scala/sample/cask/model/TagTest.scala index ef1dea19c895..6e5e7116780f 100644 --- a/samples/server/petstore/scala-cask/jvm/src/test/scala/sample/cask/model/TagTest.scala +++ b/samples/server/petstore/scala-cask/jvm/src/test/scala/sample/cask/model/TagTest.scala @@ -1,14 +1,15 @@ -/** OpenAPI Petstore This is a sample server Petstore server. For this sample, you can use the api - * key `special-key` to test the authorization filters. - * - * OpenAPI spec version: 1.0.0 - * - * Contact: team@openapitools.org - * - * NOTE: This class is auto generated by OpenAPI Generator. - * - * https://openapi-generator.tech - */ +/** + * OpenAPI Petstore + * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. + * + * OpenAPI spec version: 1.0.0 + * + * Contact: team@openapitools.org + * + * NOTE: This class is auto generated by OpenAPI Generator. + * + * https://openapi-generator.tech + */ // this model was generated using modelTest.mustache package sample.cask.model @@ -19,16 +20,17 @@ import scala.util.* class TagTest extends AnyWordSpec with Matchers { - "Tag.fromJson" should { - """not parse invalid json""" in { - val Failure(err) = Try(TagData.fromJsonString("invalid jason")) - err.getMessage should startWith("Error parsing json 'invalid jason'") - } - """parse """ ignore { - val Failure(err: ValidationErrors) = TagData.fromJsonString("""""").validated() - sys.error("TODO") - } - } + "Tag.fromJson" should { + """not parse invalid json""" in { + val Failure(err) = Try(TagData.fromJsonString("invalid jason")) + err.getMessage should startWith ("Error parsing json 'invalid jason'") + } + """parse """ ignore { + val d8a = TagData.fromJsonString("""""") + val Failure(err : ValidationErrors) = TagData.validated(d8a, true) + sys.error("TODO") + } + } } diff --git a/samples/server/petstore/scala-cask/jvm/src/test/scala/sample/cask/model/UserTest.scala b/samples/server/petstore/scala-cask/jvm/src/test/scala/sample/cask/model/UserTest.scala index 561bc4dc0e0f..78c0f50d76c1 100644 --- a/samples/server/petstore/scala-cask/jvm/src/test/scala/sample/cask/model/UserTest.scala +++ b/samples/server/petstore/scala-cask/jvm/src/test/scala/sample/cask/model/UserTest.scala @@ -1,14 +1,15 @@ -/** OpenAPI Petstore This is a sample server Petstore server. For this sample, you can use the api - * key `special-key` to test the authorization filters. - * - * OpenAPI spec version: 1.0.0 - * - * Contact: team@openapitools.org - * - * NOTE: This class is auto generated by OpenAPI Generator. - * - * https://openapi-generator.tech - */ +/** + * OpenAPI Petstore + * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. + * + * OpenAPI spec version: 1.0.0 + * + * Contact: team@openapitools.org + * + * NOTE: This class is auto generated by OpenAPI Generator. + * + * https://openapi-generator.tech + */ // this model was generated using modelTest.mustache package sample.cask.model @@ -19,16 +20,17 @@ import scala.util.* class UserTest extends AnyWordSpec with Matchers { - "User.fromJson" should { - """not parse invalid json""" in { - val Failure(err) = Try(UserData.fromJsonString("invalid jason")) - err.getMessage should startWith("Error parsing json 'invalid jason'") - } - """parse """ ignore { - val Failure(err: ValidationErrors) = UserData.fromJsonString("""""").validated() - sys.error("TODO") - } - } + "User.fromJson" should { + """not parse invalid json""" in { + val Failure(err) = Try(UserData.fromJsonString("invalid jason")) + err.getMessage should startWith ("Error parsing json 'invalid jason'") + } + """parse """ ignore { + val d8a = UserData.fromJsonString("""""") + val Failure(err : ValidationErrors) = UserData.validated(d8a, true) + sys.error("TODO") + } + } } From 178d47b0fffc7ace455ebdb21475c910fcd84cd4 Mon Sep 17 00:00:00 2001 From: Martin <2026226+martin-mfg@users.noreply.github.com> Date: Tue, 10 Dec 2024 20:18:38 +0100 Subject: [PATCH 4/5] revert overwriting custom tests, add custom java tests to list --- bin/utils/test_file_list.yaml | 36 +- .../Org.OpenAPITools.Test/Api/AuthApiTests.cs | 11 - .../Org.OpenAPITools.Test/Api/BodyApiTests.cs | 56 +- .../Org.OpenAPITools.Test/Api/FormApiTests.cs | 31 - .../Api/HeaderApiTests.cs | 10 +- .../Org.OpenAPITools.Test/Api/PathApiTests.cs | 10 +- .../Api/QueryApiTests.cs | 29 +- .../Model/NumberPropertiesOnlyTests.cs | 12 +- .../client/echo_api/go/test/api_body_test.go | 59 +- .../openapitools/client/api/AuthApiTest.java | 14 +- .../openapitools/client/api/AuthApiTest.java | 19 +- .../openapitools/client/api/AuthApiTest.java | 14 +- .../openapitools/client/api/BodyApiTest.java | 91 ++- .../openapitools/client/api/AuthApiTest.java | 11 +- .../tests/Api/AuthApiTest.php | 2 +- .../tests/Api/BodyApiTest.php | 2 +- .../tests/Api/FormApiTest.php | 2 +- .../tests/Api/HeaderApiTest.php | 2 +- .../tests/Api/PathApiTest.php | 2 +- .../tests/Api/QueryApiTest.php | 2 +- .../tests/Model/BirdTest.php | 2 +- .../tests/Model/CategoryTest.php | 2 +- .../tests/Model/DataQueryTest.php | 2 +- .../tests/Model/DefaultValueTest.php | 2 +- .../tests/Model/NumberPropertiesOnlyTest.php | 2 +- .../tests/Model/PetTest.php | 2 +- .../tests/Model/QueryTest.php | 2 +- .../tests/Model/StringEnumRefTest.php | 2 +- .../tests/Model/TagTest.php | 2 +- ...stFormObjectMultipartRequestMarkerTest.php | 2 +- ...rueObjectAllOfQueryObjectParameterTest.php | 2 +- ...rueArrayStringQueryObjectParameterTest.php | 2 +- .../php-nextgen/tests/Api/AuthApiTest.php | 22 +- .../php-nextgen/tests/Api/BodyApiTest.php | 46 +- .../php-nextgen/tests/Api/FormApiTest.php | 22 +- .../php-nextgen/tests/Api/HeaderApiTest.php | 14 +- .../php-nextgen/tests/Api/PathApiTest.php | 14 +- .../php-nextgen/tests/Api/QueryApiTest.php | 34 +- .../php-nextgen/tests/Model/BirdTest.php | 4 +- .../php-nextgen/tests/Model/CategoryTest.php | 4 +- .../php-nextgen/tests/Model/DataQueryTest.php | 4 +- .../tests/Model/DefaultValueTest.php | 4 +- .../tests/Model/NumberPropertiesOnlyTest.php | 4 +- .../php-nextgen/tests/Model/PetTest.php | 4 +- .../php-nextgen/tests/Model/QueryTest.php | 4 +- .../tests/Model/StringEnumRefTest.php | 4 +- .../php-nextgen/tests/Model/TagTest.php | 4 +- ...stFormObjectMultipartRequestMarkerTest.php | 2 +- ...rueObjectAllOfQueryObjectParameterTest.php | 4 +- ...rueArrayStringQueryObjectParameterTest.php | 4 +- .../powershell/tests/Api/AuthApi.Tests.ps1 | 8 - .../powershell/tests/Api/BodyApi.Tests.ps1 | 16 - .../powershell/tests/Api/FormApi.Tests.ps1 | 8 - .../powershell/tests/Api/QueryApi.Tests.ps1 | 16 - .../test/test_auth_api.py | 13 +- .../test/test_bird.py | 25 +- .../test/test_body_api.py | 85 +-- .../test/test_category.py | 25 +- .../test/test_data_query.py | 27 +- .../test/test_default_value.py | 39 +- .../test/test_form_api.py | 36 +- .../test/test_header_api.py | 24 +- .../test/test_number_properties_only.py | 25 +- .../test/test_path_api.py | 24 +- .../test/test_pet.py | 33 +- .../test/test_query.py | 25 +- .../test/test_query_api.py | 79 +-- .../test/test_string_enum_ref.py | 13 +- .../test/test_tag.py | 25 +- ...st_form_object_multipart_request_marker.py | 2 +- ...ue_object_all_of_query_object_parameter.py | 29 +- ...rue_array_string_query_object_parameter.py | 23 +- .../python-pydantic-v1/test/test_auth_api.py | 9 +- .../python-pydantic-v1/test/test_bird.py | 20 +- .../python-pydantic-v1/test/test_body_api.py | 81 +-- .../python-pydantic-v1/test/test_category.py | 20 +- .../test/test_data_query.py | 22 +- .../test/test_default_value.py | 34 +- .../python-pydantic-v1/test/test_form_api.py | 32 +- .../test/test_header_api.py | 20 +- .../test/test_number_properties_only.py | 20 +- .../python-pydantic-v1/test/test_path_api.py | 20 +- .../python-pydantic-v1/test/test_pet.py | 28 +- .../python-pydantic-v1/test/test_query.py | 20 +- .../python-pydantic-v1/test/test_query_api.py | 71 +- .../test/test_string_enum_ref.py | 10 +- .../python-pydantic-v1/test/test_tag.py | 20 +- ...ue_object_all_of_query_object_parameter.py | 24 +- ...rue_array_string_query_object_parameter.py | 18 +- .../echo_api/python/test/test_auth_api.py | 13 +- .../client/echo_api/python/test/test_bird.py | 25 +- .../echo_api/python/test/test_body_api.py | 85 +-- .../echo_api/python/test/test_category.py | 25 +- .../echo_api/python/test/test_data_query.py | 27 +- .../python/test/test_default_value.py | 39 +- .../echo_api/python/test/test_form_api.py | 36 +- .../echo_api/python/test/test_header_api.py | 24 +- .../test/test_number_properties_only.py | 25 +- .../echo_api/python/test/test_path_api.py | 24 +- .../client/echo_api/python/test/test_pet.py | 33 +- .../client/echo_api/python/test/test_query.py | 25 +- .../echo_api/python/test/test_query_api.py | 79 +-- .../python/test/test_string_enum_ref.py | 13 +- .../client/echo_api/python/test/test_tag.py | 25 +- ...st_form_object_multipart_request_marker.py | 2 +- ...ue_object_all_of_query_object_parameter.py | 29 +- ...rue_array_string_query_object_parameter.py | 23 +- .../echo_api/r/tests/testthat/test_body_api.R | 12 - .../echo_api/r/tests/testthat/test_form_api.R | 12 - .../r/tests/testthat/test_query_api.R | 24 - .../default/classes/OASApiResponseTest.cls | 7 + .../petstore/crystal/spec/api/pet_api_spec.cr | 52 +- .../petstore/crystal/spec/models/pet_spec.cr | 46 +- .../petstore/crystal/spec/models/tag_spec.cr | 17 +- .../Api/DefaultApiTests.cs | 44 -- .../Org.OpenAPITools.Test/Api/FakeApiTests.cs | 74 +-- .../Org.OpenAPITools.Test/Api/PetApiTests.cs | 336 ++++++++-- ...ctivityOutputElementRepresentationTests.cs | 5 +- .../Model/ActivityTests.cs | 4 + .../Model/AdditionalPropertiesClassTests.cs | 11 +- .../Model/AnimalTests.cs | 5 +- .../Model/ApiResponseTests.cs | 6 +- .../Model/AppleReqTests.cs | 5 +- .../Org.OpenAPITools.Test/Model/AppleTests.cs | 12 +- .../Model/ArrayOfArrayOfNumberOnlyTests.cs | 4 + .../Model/ArrayOfNumberOnlyTests.cs | 4 + .../Model/ArrayTestTests.cs | 6 +- .../Model/BananaReqTests.cs | 5 +- .../Model/BananaTests.cs | 4 + .../Model/BasquePigTests.cs | 4 + .../Model/CapitalizationTests.cs | 9 +- .../Org.OpenAPITools.Test/Model/CatTests.cs | 4 + .../Model/CategoryTests.cs | 5 +- .../Model/ChildCatTests.cs | 5 +- .../Model/ClassModelTests.cs | 4 + .../Model/ComplexQuadrilateralTests.cs | 5 +- .../Model/DanishPigTests.cs | 4 + .../Model/DateOnlyClassTests.cs | 4 + .../Model/DeprecatedObjectTests.cs | 4 + .../Org.OpenAPITools.Test/Model/DogTests.cs | 4 + .../Model/DrawingTests.cs | 7 +- .../Model/EnumArraysTests.cs | 5 +- .../Model/EnumClassTests.cs | 5 + .../Model/EnumTestTests.cs | 12 +- .../Model/EquilateralTriangleTests.cs | 5 +- .../Model/FileSchemaTestClassTests.cs | 5 +- .../Org.OpenAPITools.Test/Model/FileTests.cs | 4 + .../Model/FooGetDefaultResponseTests.cs | 4 + .../Org.OpenAPITools.Test/Model/FooTests.cs | 4 + .../Model/FormatTestTests.cs | 89 +-- .../Model/FruitReqTests.cs | 7 +- .../Org.OpenAPITools.Test/Model/FruitTests.cs | 16 +- .../Model/GmFruitTests.cs | 16 +- .../Model/GrandparentAnimalTests.cs | 4 +- .../Model/HasOnlyReadOnlyTests.cs | 5 +- .../Model/HealthCheckResultTests.cs | 4 + .../Model/IsoscelesTriangleTests.cs | 5 +- .../Org.OpenAPITools.Test/Model/ListTests.cs | 10 +- .../Model/LiteralStringClassTests.cs | 4 +- .../Model/MammalTests.cs | 7 +- .../Model/MapTestTests.cs | 7 +- ...ertiesAndAdditionalPropertiesClassTests.cs | 13 +- .../Model/Model200ResponseTests.cs | 5 +- .../Model/ModelClientTests.cs | 10 +- .../Org.OpenAPITools.Test/Model/NameTests.cs | 19 +- .../Model/NullableClassTests.cs | 15 +- .../Model/NullableGuidClassTests.cs | 4 + .../Model/NullableShapeTests.cs | 5 +- .../Model/NumberOnlyTests.cs | 4 + .../Model/ObjectWithDeprecatedFieldsTests.cs | 7 +- .../Model/OneOfStringTests.cs | 4 + .../Org.OpenAPITools.Test/Model/OrderTests.cs | 9 +- .../Model/OuterCompositeTests.cs | 6 +- .../Model/OuterEnumDefaultValueTests.cs | 5 + .../OuterEnumIntegerDefaultValueTests.cs | 5 + .../Model/OuterEnumIntegerTests.cs | 5 + .../Model/OuterEnumTests.cs | 5 + .../Model/ParentPetTests.cs | 4 + .../Org.OpenAPITools.Test/Model/PetTests.cs | 9 +- .../Org.OpenAPITools.Test/Model/PigTests.cs | 4 + .../Model/PolymorphicPropertyTests.cs | 5 + .../Model/QuadrilateralInterfaceTests.cs | 4 + .../Model/QuadrilateralTests.cs | 5 +- .../Model/ReadOnlyFirstTests.cs | 5 +- .../Model/ReturnTests.cs | 33 +- .../Model/ScaleneTriangleTests.cs | 5 +- .../Model/ShapeInterfaceTests.cs | 4 + .../Model/ShapeOrNullTests.cs | 5 +- .../Org.OpenAPITools.Test/Model/ShapeTests.cs | 5 +- .../Model/SimpleQuadrilateralTests.cs | 5 +- .../Model/SpecialModelNameTests.cs | 11 +- .../Org.OpenAPITools.Test/Model/TagTests.cs | 5 +- ...CollectionEndingWithWordListObjectTests.cs | 3 + .../TestCollectionEndingWithWordListTests.cs | 3 + .../Model/TriangleInterfaceTests.cs | 4 + .../Model/TriangleTests.cs | 5 +- .../Org.OpenAPITools.Test/Model/UserTests.cs | 15 +- .../Org.OpenAPITools.Test/Model/WhaleTests.cs | 6 +- .../Org.OpenAPITools.Test/Model/ZebraTests.cs | 5 +- .../Model/ZeroBasedEnumClassTests.cs | 3 + .../Model/ZeroBasedEnumTests.cs | 4 + .../Model/ArrayOfArrayOfNumberOnlyTests.cs | 70 +- .../Org.OpenAPITools.Test/Model/PetTests.cs | 136 +++- .../Model/SpecialModelNameTests.cs | 43 +- .../org/openapitools/api/PetApiSpec.groovy | 276 +++++--- .../org/openapitools/api/StoreApiSpec.groovy | 74 +-- .../openapitools/client/api/PetApiTest.java | 147 +++-- .../openapitools/client/api/PetApiTest.java | 68 +- .../openapitools/client/model/MammalTest.java | 58 +- .../openapitools/client/model/ZebraTest.java | 50 +- .../openapitools/client/api/PetApiTest.java | 580 ++++++++++++++--- .../openapitools/client/api/PetApiTest.java | 609 +++++++++++++++--- .../model/ArrayOfArrayOfNumberOnlyTest.java | 30 +- .../openapitools/client/api/PetApiTest.java | 51 +- .../javascript-es6/test/api/PetApi.spec.js | 76 ++- .../client/models/AnyOfUserOrPetTest.kt | 138 ++-- .../client/models/UserOrPetTest.kt | 136 ++-- .../ruby/spec/models/mamal_with_enum_spec.rb | 8 +- .../test/api_response_test.dart | 3 +- .../test/category_test.dart | 3 +- .../petstore_client_lib/test/order_test.dart | 3 +- .../test/pet_api_test.dart | 13 +- .../petstore_client_lib/test/pet_test.dart | 3 +- .../test/store_api_test.dart | 5 +- .../petstore_client_lib/test/tag_test.dart | 3 +- .../test/user_api_test.dart | 13 +- .../petstore_client_lib/test/user_test.dart | 3 +- .../additional_properties_class_test.dart | 3 +- .../test/all_of_with_single_ref_test.dart | 2 +- .../test/animal_test.dart | 3 +- .../test/another_fake_api_test.dart | 3 +- .../test/api_response_test.dart | 3 +- .../array_of_array_of_number_only_test.dart | 3 +- .../test/array_of_number_only_test.dart | 3 +- .../test/array_test_test.dart | 3 +- .../test/capitalization_test.dart | 3 +- .../test/cat_test.dart | 3 +- .../test/category_test.dart | 3 +- .../test/child_with_nullable_test.dart | 2 +- .../test/class_model_test.dart | 3 +- .../test/default_api_test.dart | 5 +- .../test/deprecated_object_test.dart | 3 +- .../test/dog_test.dart | 3 +- .../test/enum_arrays_test.dart | 3 +- .../test/enum_class_test.dart | 3 +- .../test/enum_test_test.dart | 3 +- .../test/fake_api_test.dart | 52 +- ...fake_big_decimal_map200_response_test.dart | 2 +- .../test/fake_classname_tags123_api_test.dart | 3 +- .../test/file_schema_test_class_test.dart | 3 +- .../test/foo_get_default_response_test.dart | 2 +- .../test/foo_test.dart | 3 +- .../test/format_test_test.dart | 3 +- .../test/has_only_read_only_test.dart | 3 +- .../test/health_check_result_test.dart | 3 +- .../test/map_test_test.dart | 3 +- ..._and_additional_properties_class_test.dart | 3 +- .../test/model200_response_test.dart | 3 +- .../test/model_client_test.dart | 3 +- .../test/model_file_test.dart | 3 +- .../test/model_list_test.dart | 3 +- .../test/model_return_test.dart | 3 +- .../test/name_test.dart | 3 +- .../test/nullable_class_test.dart | 3 +- .../test/number_only_test.dart | 3 +- .../object_with_deprecated_fields_test.dart | 3 +- .../test/order_test.dart | 3 +- .../test/outer_composite_test.dart | 3 +- .../test/outer_enum_default_value_test.dart | 3 +- ...outer_enum_integer_default_value_test.dart | 3 +- .../test/outer_enum_integer_test.dart | 3 +- .../test/outer_enum_test.dart | 3 +- .../outer_object_with_enum_property_test.dart | 3 +- .../test/parent_with_nullable_test.dart | 2 +- .../test/pet_api_test.dart | 15 +- .../test/pet_test.dart | 3 +- .../test/read_only_first_test.dart | 3 +- .../test/single_ref_type_test.dart | 2 +- .../test/special_model_name_test.dart | 3 +- .../test/store_api_test.dart | 5 +- .../test/tag_test.dart | 3 +- ...rm_additional_properties_request_test.dart | 2 +- .../test/user_api_test.dart | 13 +- .../test/user_test.dart | 3 +- .../model/MySchemaNameCharactersTest.java | 12 +- .../openapitools/client/api/PetApiTest.java | 65 +- .../openapitools/client/model/MammalTest.java | 58 +- .../openapitools/client/model/ZebraTest.java | 50 +- .../python-aiohttp/test/test_enum_test.py | 2 - .../python-aiohttp/test/test_fake_api.py | 7 - .../test/test_enum_test.py | 2 - .../test/test_fake_api.py | 7 - .../test_additional_properties_any_type.py | 14 +- .../test/test_additional_properties_class.py | 16 +- .../test/test_additional_properties_object.py | 14 +- ...tional_properties_with_description_only.py | 14 +- .../test/test_all_of_with_single_ref.py | 29 +- .../python-pydantic-v1/test/test_animal.py | 27 +- .../test/test_another_fake_api.py | 18 +- .../test/test_any_of_color.py | 18 +- .../test/test_any_of_pig.py | 32 +- .../test/test_api_response.py | 29 +- .../test/test_array_of_array_of_model.py | 16 +- .../test_array_of_array_of_number_only.py | 25 +- .../test/test_array_of_number_only.py | 25 +- .../test/test_array_test.py | 32 +- .../test/test_basque_pig.py | 27 +- .../test/test_capitalization.py | 35 +- .../python-pydantic-v1/test/test_cat.py | 27 +- .../python-pydantic-v1/test/test_category.py | 23 +- .../test/test_circular_all_of_ref.py | 12 +- .../test/test_circular_reference_model.py | 18 +- .../test/test_class_model.py | 27 +- .../python-pydantic-v1/test/test_client.py | 25 +- .../python-pydantic-v1/test/test_color.py | 18 +- .../python-pydantic-v1/test/test_creature.py | 16 +- .../test/test_creature_info.py | 14 +- .../test/test_danish_pig.py | 27 +- .../test/test_default_api.py | 18 +- .../test/test_deprecated_object.py | 25 +- .../python-pydantic-v1/test/test_dog.py | 27 +- .../test/test_dummy_model.py | 20 +- .../test/test_enum_arrays.py | 23 +- .../test/test_enum_class.py | 10 +- .../test/test_enum_string1.py | 6 +- .../test/test_enum_string2.py | 6 +- .../python-pydantic-v1/test/test_enum_test.py | 42 +- .../python-pydantic-v1/test/test_fake_api.py | 211 ++---- .../test/test_fake_classname_tags123_api.py | 2 +- .../python-pydantic-v1/test/test_field.py | 2 +- .../python-pydantic-v1/test/test_file.py | 25 +- .../test/test_file_schema_test_class.py | 27 +- .../python-pydantic-v1/test/test_first_ref.py | 18 +- .../python-pydantic-v1/test/test_foo.py | 25 +- .../test/test_foo_get_default_response.py | 25 +- .../test/test_format_test.py | 63 +- .../test/test_has_only_read_only.py | 27 +- .../test/test_health_check_result.py | 25 +- .../test/test_import_test_datetime_api.py | 2 +- .../test/test_inner_dict_with_property.py | 16 +- .../test/test_int_or_string.py | 14 +- .../test/test_map_of_array_of_model.py | 14 +- .../python-pydantic-v1/test/test_map_test.py | 32 +- ...perties_and_additional_properties_class.py | 29 +- .../test/test_model200_response.py | 29 +- .../test/test_model_return.py | 27 +- .../python-pydantic-v1/test/test_name.py | 33 +- .../test/test_nullable_class.py | 50 +- .../test/test_nullable_property.py | 16 +- .../test/test_number_only.py | 25 +- ...st_object_to_test_additional_properties.py | 14 +- .../test_object_with_deprecated_fields.py | 31 +- .../test/test_one_of_enum_string.py | 14 +- .../python-pydantic-v1/test/test_order.py | 35 +- .../test/test_outer_composite.py | 29 +- .../test/test_outer_enum.py | 12 +- .../test/test_outer_enum_default_value.py | 10 +- .../test/test_outer_enum_integer.py | 10 +- .../test_outer_enum_integer_default_value.py | 26 +- .../test_outer_object_with_enum_property.py | 22 +- .../python-pydantic-v1/test/test_parent.py | 14 +- .../test/test_parent_with_optional_dict.py | 16 +- .../python-pydantic-v1/test/test_pet.py | 35 +- .../python-pydantic-v1/test/test_pet_api.py | 34 +- .../python-pydantic-v1/test/test_pig.py | 32 +- .../test/test_property_name_collision.py | 20 +- .../test/test_read_only_first.py | 27 +- .../test/test_second_circular_all_of_ref.py | 9 +- .../test/test_second_ref.py | 18 +- .../test/test_self_reference_model.py | 20 +- .../test/test_single_ref_type.py | 26 +- .../test/test_special_character_enum.py | 10 +- .../test/test_special_model_name.py | 25 +- .../test/test_special_name.py | 24 +- .../python-pydantic-v1/test/test_store_api.py | 24 +- .../python-pydantic-v1/test/test_tag.py | 27 +- .../python-pydantic-v1/test/test_tiger.py | 14 +- .../python-pydantic-v1/test/test_user.py | 39 +- .../python-pydantic-v1/test/test_user_api.py | 32 +- .../test/test_with_nested_one_of.py | 30 +- .../test_additional_properties_any_type.py | 19 +- .../test/test_additional_properties_class.py | 21 +- .../test/test_additional_properties_object.py | 19 +- ...tional_properties_with_description_only.py | 19 +- .../python/test/test_all_of_super_model.py | 2 +- .../test/test_all_of_with_single_ref.py | 34 +- .../petstore/python/test/test_animal.py | 34 +- .../python/test/test_another_fake_api.py | 22 +- .../petstore/python/test/test_any_of_color.py | 23 +- .../petstore/python/test/test_any_of_pig.py | 35 +- .../test/test_array_of_array_of_model.py | 21 +- .../test_array_of_array_of_number_only.py | 30 +- .../python/test/test_array_of_number_only.py | 30 +- .../petstore/python/test/test_array_test.py | 37 +- .../python/test/test_base_discriminator.py | 2 +- .../petstore/python/test/test_basque_pig.py | 32 +- .../petstore/python/test/test_bathing.py | 3 +- .../python/test/test_capitalization.py | 40 +- .../client/petstore/python/test/test_cat.py | 30 +- .../petstore/python/test/test_category.py | 28 +- .../python/test/test_circular_all_of_ref.py | 14 +- .../test/test_circular_reference_model.py | 23 +- .../petstore/python/test/test_class_model.py | 32 +- .../petstore/python/test/test_client.py | 30 +- .../client/petstore/python/test/test_color.py | 23 +- .../petstore/python/test/test_creature.py | 21 +- .../python/test/test_creature_info.py | 19 +- .../petstore/python/test/test_danish_pig.py | 32 +- .../petstore/python/test/test_default_api.py | 20 +- .../python/test/test_deprecated_object.py | 30 +- .../test/test_discriminator_all_of_sub.py | 2 +- .../test/test_discriminator_all_of_super.py | 2 +- .../client/petstore/python/test/test_dog.py | 30 +- .../petstore/python/test/test_dummy_model.py | 25 +- .../petstore/python/test/test_enum_arrays.py | 28 +- .../petstore/python/test/test_enum_class.py | 13 +- .../petstore/python/test/test_enum_string1.py | 9 +- .../petstore/python/test/test_enum_string2.py | 9 +- .../petstore/python/test/test_enum_test.py | 47 +- .../petstore/python/test/test_fake_api.py | 228 ++----- .../test/test_fake_classname_tags123_api.py | 25 +- .../petstore/python/test/test_feeding.py | 3 +- .../client/petstore/python/test/test_file.py | 30 +- .../test/test_file_schema_test_class.py | 32 +- .../petstore/python/test/test_first_ref.py | 23 +- .../client/petstore/python/test/test_foo.py | 30 +- .../test/test_foo_get_default_response.py | 30 +- .../petstore/python/test/test_format_test.py | 65 +- .../python/test/test_has_only_read_only.py | 32 +- .../python/test/test_health_check_result.py | 30 +- .../client/petstore/python/test/test_info.py | 2 +- .../test/test_inner_dict_with_property.py | 21 +- .../petstore/python/test/test_input_all_of.py | 2 +- .../python/test/test_int_or_string.py | 19 +- .../petstore/python/test/test_list_class.py | 7 +- .../python/test/test_map_of_array_of_model.py | 19 +- .../petstore/python/test/test_map_test.py | 37 +- ...perties_and_additional_properties_class.py | 36 +- .../python/test/test_model200_response.py | 34 +- .../python/test/test_model_api_response.py | 3 +- .../petstore/python/test/test_model_field.py | 4 +- .../petstore/python/test/test_model_return.py | 32 +- .../client/petstore/python/test/test_name.py | 38 +- .../python/test/test_nullable_class.py | 55 +- .../python/test/test_nullable_property.py | 21 +- .../petstore/python/test/test_number_only.py | 30 +- ...st_object_to_test_additional_properties.py | 19 +- .../test_object_with_deprecated_fields.py | 36 +- .../python/test/test_one_of_enum_string.py | 19 +- .../client/petstore/python/test/test_order.py | 40 +- .../python/test/test_outer_composite.py | 34 +- .../petstore/python/test/test_outer_enum.py | 15 +- .../test/test_outer_enum_default_value.py | 13 +- .../python/test/test_outer_enum_integer.py | 13 +- .../test_outer_enum_integer_default_value.py | 29 +- .../test_outer_object_with_enum_property.py | 27 +- .../petstore/python/test/test_parent.py | 19 +- .../test/test_parent_with_optional_dict.py | 21 +- .../client/petstore/python/test/test_pet.py | 44 +- .../petstore/python/test/test_pet_api.py | 54 +- .../client/petstore/python/test/test_pig.py | 35 +- .../python/test/test_poop_cleaning.py | 3 +- .../python/test/test_primitive_string.py | 2 +- .../petstore/python/test/test_property_map.py | 2 +- .../test/test_property_name_collision.py | 25 +- .../python/test/test_read_only_first.py | 32 +- .../test/test_second_circular_all_of_ref.py | 11 +- .../petstore/python/test/test_second_ref.py | 23 +- .../python/test/test_self_reference_model.py | 25 +- .../python/test/test_single_ref_type.py | 29 +- .../test/test_special_character_enum.py | 13 +- .../python/test/test_special_model_name.py | 30 +- .../petstore/python/test/test_special_name.py | 29 +- .../petstore/python/test/test_store_api.py | 34 +- .../client/petstore/python/test/test_tag.py | 32 +- .../client/petstore/python/test/test_task.py | 3 +- .../python/test/test_task_activity.py | 3 +- ..._error_responses_with_model400_response.py | 3 +- ..._error_responses_with_model404_response.py | 3 +- ..._freeform_additional_properties_request.py | 7 +- .../test/test_test_model_with_enum_default.py | 2 +- ...t_for_multipart_requests_request_marker.py | 2 +- .../client/petstore/python/test/test_tiger.py | 19 +- ...t_with_additional_model_list_properties.py | 7 +- ..._with_additional_string_list_properties.py | 7 +- .../client/petstore/python/test/test_user.py | 44 +- .../petstore/python/test/test_user_api.py | 50 +- .../python/test/test_with_nested_one_of.py | 35 +- .../go-gin-api-server-interface-only/go.mod | 6 +- .../server/petstore/go-gin-api-server/go.mod | 6 +- .../controller/PetControllerSpec.groovy | 48 +- .../controller/StoreControllerSpec.groovy | 14 +- .../controller/UserControllerSpec.groovy | 40 +- .../tests/test_pet_controller.py | 57 +- .../tests/test_store_controller.py | 11 +- .../tests/test_user_controller.py | 23 +- .../test/test_pet_controller.py | 38 +- .../test/test_store_controller.py | 2 +- .../python-fastapi/tests/test_fake_api.py | 3 - .../python-fastapi/tests/test_pet_api.py | 3 - .../python-fastapi/tests/test_store_api.py | 3 - .../python-fastapi/tests/test_user_api.py | 3 - .../test/test_pet_controller.py | 10 +- .../test/test_store_controller.py | 5 +- .../test/test_user_controller.py | 26 +- 505 files changed, 6272 insertions(+), 5417 deletions(-) diff --git a/bin/utils/test_file_list.yaml b/bin/utils/test_file_list.yaml index bdb057850e46..77c439b0efe8 100644 --- a/bin/utils/test_file_list.yaml +++ b/bin/utils/test_file_list.yaml @@ -6,7 +6,7 @@ sha256: b98a6043573332de4f049db50b36bce7b5fada8511769da97f6561066a0f8c5c - filename: "samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/linux-logo.png" sha256: 0a67c32728197e942b13bdda064b73793f12f5c795f1e5cf35a3adf69c973230 -# java okhttp gson test files +# java test files - filename: "samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/ClientTest.java" sha256: 325fdd5d7e2c97790c0fb44f712ab7b2ba022d7e1a5b0056f47b07f342682b6d - filename: "samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/JSONTest.java" @@ -15,3 +15,37 @@ sha256: 8b1b8f2a2ad00ccb090873a94a5f73e328b98317d2ec715f53bd7a1accb2a023 - filename: "samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/PetTest.java" sha256: a1f8a70bf7b0c382a8def5bacf7b1fb189e687fabb40235aa799001e0597f545 +- filename: "samples/client/echo_api/java/apache-httpclient/src/test/java/org/openapitools/client/api/AuthApiTest.java" + sha256: 26f2dd90f9075e51add1cd7e88869a1e9345d9dbacf01199c1bf8a49395a8648 +- filename: "samples/client/echo_api/java/feign-gson/src/test/java/org/openapitools/client/api/AuthApiTest.java" + sha256: b45d2ff04ad65e39a4d67a86a37d1a406e125df392f51ef0484d6c8da8b10454 +- filename: "samples/client/echo_api/java/okhttp-gson/src/test/java/org/openapitools/client/api/AuthApiTest.java" + sha256: 761d101afddb8920f640c91741b5e7af56ebd753c80d537e0aaa4e1021887666 +- filename: "samples/client/echo_api/java/resteasy/src/test/java/org/openapitools/client/api/BodyApiTest.java" + sha256: 04715cabbe9bd27ff98dd56e3db489ebc9ffbf98d9af104a6707b0a40ab4f8fe +- filename: "samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/api/AuthApiTest.java" + sha256: fa45f446111823f02b9c8e8d010e3c1a28fc0f00a325e674da14d0e12296ea96 +- filename: "samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/api/PetApiTest.java" + sha256: 24c6a39a9d7327d397dc038c368a19c84f14ed96a69fe28d53719b3eaf0a725c +- filename: "samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/api/PetApiTest.java" + sha256: 5e9f471d34310f94895751bb96cc79583376f043593c3a387c82077c70f8102f +- filename: "samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/MammalTest.java" + sha256: 67a9e63e13ebddac21cb236aa015edce30f5d3bd8d6adcf50044cad00d48c45e +- filename: "samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/ZebraTest.java" + sha256: 15eeb6d8a9a79d0f1930b861540d9c5780d6c49ea4fdb68269ac3e7ec481e142 +- filename: "samples/client/petstore/java/okhttp-gson-3.1/src/test/java/org/openapitools/client/api/PetApiTest.java" + sha256: d8f7fff724f81e666daf115cc25f8347e1fda4e861aa30df0dae3fa50c91404c +- filename: "samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/api/PetApiTest.java" + sha256: 711a242b6257b87363c59b20dcaed45f9b146e2be246339a039a5d0338ad280c +- filename: "samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnlyTest.java" + sha256: 3a1add6f05f057c45b2ea489f619c3b455bf75e8e748fabd5487972b330ae2e6 +- filename: "samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/api/PetApiTest.java" + sha256: 68ed9228c99ecf2ff3842074242d3be7565da3b702b7f46008a5e119ef15c167 +- filename: "samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/test/java/org/openapitools/client/model/MySchemaNameCharactersTest.java" + sha256: f0a82dd21d10f199bc403241fc9c7f4a8fa5e2d1646fd06f7941c2e528a1da45 +- filename: "samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/api/PetApiTest.java" + sha256: 5e9f471d34310f94895751bb96cc79583376f043593c3a387c82077c70f8102f +- filename: "samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/MammalTest.java" + sha256: 67a9e63e13ebddac21cb236aa015edce30f5d3bd8d6adcf50044cad00d48c45e +- filename: "samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ZebraTest.java" + sha256: 15eeb6d8a9a79d0f1930b861540d9c5780d6c49ea4fdb68269ac3e7ec481e142 diff --git a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools.Test/Api/AuthApiTests.cs b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools.Test/Api/AuthApiTests.cs index 7aee0fb1720e..456245d7bab6 100644 --- a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools.Test/Api/AuthApiTests.cs +++ b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools.Test/Api/AuthApiTests.cs @@ -63,16 +63,5 @@ public void TestAuthHttpBasicTest() //var response = instance.TestAuthHttpBasic(); //Assert.IsType(response); } - - ///

- /// Test TestAuthHttpBearer - /// - [Fact] - public void TestAuthHttpBearerTest() - { - // TODO uncomment below to test the method and replace null with proper value - //var response = instance.TestAuthHttpBearer(); - //Assert.IsType(response); - } } } diff --git a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools.Test/Api/BodyApiTests.cs b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools.Test/Api/BodyApiTests.cs index 44f3129559b7..06da198a3efa 100644 --- a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools.Test/Api/BodyApiTests.cs +++ b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools.Test/Api/BodyApiTests.cs @@ -19,6 +19,7 @@ using Org.OpenAPITools.Client; using Org.OpenAPITools.Api; +using Org.OpenAPITools.Model; // uncomment below to import models //using Org.OpenAPITools.Model; @@ -78,42 +79,6 @@ public void TestBodyApplicationOctetstreamBinaryTest() //Assert.IsType(response); } - /// - /// Test TestBodyMultipartFormdataArrayOfBinary - /// - [Fact] - public void TestBodyMultipartFormdataArrayOfBinaryTest() - { - // TODO uncomment below to test the method and replace null with proper value - //List files = null; - //var response = instance.TestBodyMultipartFormdataArrayOfBinary(files); - //Assert.IsType(response); - } - - /// - /// Test TestBodyMultipartFormdataSingleBinary - /// - [Fact] - public void TestBodyMultipartFormdataSingleBinaryTest() - { - // TODO uncomment below to test the method and replace null with proper value - //System.IO.Stream? myFile = null; - //var response = instance.TestBodyMultipartFormdataSingleBinary(myFile); - //Assert.IsType(response); - } - - /// - /// Test TestEchoBodyAllOfPet - /// - [Fact] - public void TestEchoBodyAllOfPetTest() - { - // TODO uncomment below to test the method and replace null with proper value - //Pet? pet = null; - //var response = instance.TestEchoBodyAllOfPet(pet); - //Assert.IsType(response); - } - /// /// Test TestEchoBodyFreeFormObjectResponseString /// @@ -132,10 +97,9 @@ public void TestEchoBodyFreeFormObjectResponseStringTest() [Fact] public void TestEchoBodyPetTest() { - // TODO uncomment below to test the method and replace null with proper value - //Pet? pet = null; - //var response = instance.TestEchoBodyPet(pet); - //Assert.IsType(response); + Pet? pet = new Pet(123, "cat", new Category() { Id = 12, Name = "Test" }, new List(){"http://google.com"},null, null); + var response = instance.TestEchoBodyPet(pet); + Assert.IsType(response); } /// @@ -150,18 +114,6 @@ public void TestEchoBodyPetResponseStringTest() //Assert.IsType(response); } - /// - /// Test TestEchoBodyStringEnum - /// - [Fact] - public void TestEchoBodyStringEnumTest() - { - // TODO uncomment below to test the method and replace null with proper value - //string? body = null; - //var response = instance.TestEchoBodyStringEnum(body); - //Assert.IsType(response); - } - /// /// Test TestEchoBodyTagResponseString /// diff --git a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools.Test/Api/FormApiTests.cs b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools.Test/Api/FormApiTests.cs index 00b610e43f03..d5bc490bddeb 100644 --- a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools.Test/Api/FormApiTests.cs +++ b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools.Test/Api/FormApiTests.cs @@ -19,8 +19,6 @@ using Org.OpenAPITools.Client; using Org.OpenAPITools.Api; -// uncomment below to import models -//using Org.OpenAPITools.Model; namespace Org.OpenAPITools.Test.Api { @@ -68,34 +66,5 @@ public void TestFormIntegerBooleanStringTest() //var response = instance.TestFormIntegerBooleanString(integerForm, booleanForm, stringForm); //Assert.IsType(response); } - - /// - /// Test TestFormObjectMultipart - /// - [Fact] - public void TestFormObjectMultipartTest() - { - // TODO uncomment below to test the method and replace null with proper value - //TestFormObjectMultipartRequestMarker marker = null; - //var response = instance.TestFormObjectMultipart(marker); - //Assert.IsType(response); - } - - /// - /// Test TestFormOneof - /// - [Fact] - public void TestFormOneofTest() - { - // TODO uncomment below to test the method and replace null with proper value - //string? form1 = null; - //int? form2 = null; - //string? form3 = null; - //bool? form4 = null; - //long? id = null; - //string? name = null; - //var response = instance.TestFormOneof(form1, form2, form3, form4, id, name); - //Assert.IsType(response); - } } } diff --git a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools.Test/Api/HeaderApiTests.cs b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools.Test/Api/HeaderApiTests.cs index 4f2fbcffaf9f..a2e6d2032ede 100644 --- a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools.Test/Api/HeaderApiTests.cs +++ b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools.Test/Api/HeaderApiTests.cs @@ -19,8 +19,6 @@ using Org.OpenAPITools.Client; using Org.OpenAPITools.Api; -// uncomment below to import models -//using Org.OpenAPITools.Model; namespace Org.OpenAPITools.Test.Api { @@ -56,18 +54,16 @@ public void InstanceTest() } /// - /// Test TestHeaderIntegerBooleanStringEnums + /// Test TestHeaderIntegerBooleanString /// [Fact] - public void TestHeaderIntegerBooleanStringEnumsTest() + public void TestHeaderIntegerBooleanStringTest() { // TODO uncomment below to test the method and replace null with proper value //int? integerHeader = null; //bool? booleanHeader = null; //string? stringHeader = null; - //string? enumNonrefStringHeader = null; - //StringEnumRef? enumRefStringHeader = null; - //var response = instance.TestHeaderIntegerBooleanStringEnums(integerHeader, booleanHeader, stringHeader, enumNonrefStringHeader, enumRefStringHeader); + //var response = instance.TestHeaderIntegerBooleanString(integerHeader, booleanHeader, stringHeader); //Assert.IsType(response); } } diff --git a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools.Test/Api/PathApiTests.cs b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools.Test/Api/PathApiTests.cs index bb27fd798dec..f2879c217dfb 100644 --- a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools.Test/Api/PathApiTests.cs +++ b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools.Test/Api/PathApiTests.cs @@ -19,8 +19,6 @@ using Org.OpenAPITools.Client; using Org.OpenAPITools.Api; -// uncomment below to import models -//using Org.OpenAPITools.Model; namespace Org.OpenAPITools.Test.Api { @@ -56,17 +54,15 @@ public void InstanceTest() } /// - /// Test TestsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath + /// Test TestsPathStringPathStringIntegerPathInteger /// [Fact] - public void TestsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathTest() + public void TestsPathStringPathStringIntegerPathIntegerTest() { // TODO uncomment below to test the method and replace null with proper value //string pathString = null; //int pathInteger = null; - //string enumNonrefStringPath = null; - //StringEnumRef enumRefStringPath = null; - //var response = instance.TestsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath(pathString, pathInteger, enumNonrefStringPath, enumRefStringPath); + //var response = instance.TestsPathStringPathStringIntegerPathInteger(pathString, pathInteger); //Assert.IsType(response); } } diff --git a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools.Test/Api/QueryApiTests.cs b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools.Test/Api/QueryApiTests.cs index 7c5e580130de..d551bb07dbc1 100644 --- a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools.Test/Api/QueryApiTests.cs +++ b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools.Test/Api/QueryApiTests.cs @@ -62,9 +62,8 @@ public void InstanceTest() public void TestEnumRefStringTest() { // TODO uncomment below to test the method and replace null with proper value - //string? enumNonrefStringQuery = null; //StringEnumRef? enumRefStringQuery = null; - //var response = instance.TestEnumRefString(enumNonrefStringQuery, enumRefStringQuery); + //var response = instance.TestEnumRefString(enumRefStringQuery); //Assert.IsType(response); } @@ -76,7 +75,7 @@ public void TestQueryDatetimeDateStringTest() { // TODO uncomment below to test the method and replace null with proper value //DateTime? datetimeQuery = null; - //DateOnly? dateQuery = null; + //DateTime? dateQuery = null; //string? stringQuery = null; //var response = instance.TestQueryDatetimeDateString(datetimeQuery, dateQuery, stringQuery); //Assert.IsType(response); @@ -120,30 +119,6 @@ public void TestQueryStyleDeepObjectExplodeTrueObjectAllOfTest() //Assert.IsType(response); } - /// - /// Test TestQueryStyleFormExplodeFalseArrayInteger - /// - [Fact] - public void TestQueryStyleFormExplodeFalseArrayIntegerTest() - { - // TODO uncomment below to test the method and replace null with proper value - //List? queryObject = null; - //var response = instance.TestQueryStyleFormExplodeFalseArrayInteger(queryObject); - //Assert.IsType(response); - } - - /// - /// Test TestQueryStyleFormExplodeFalseArrayString - /// - [Fact] - public void TestQueryStyleFormExplodeFalseArrayStringTest() - { - // TODO uncomment below to test the method and replace null with proper value - //List? queryObject = null; - //var response = instance.TestQueryStyleFormExplodeFalseArrayString(queryObject); - //Assert.IsType(response); - } - /// /// Test TestQueryStyleFormExplodeTrueArrayString /// diff --git a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools.Test/Model/NumberPropertiesOnlyTests.cs b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools.Test/Model/NumberPropertiesOnlyTests.cs index 300daf5c40fa..e889f6a7a2c1 100644 --- a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools.Test/Model/NumberPropertiesOnlyTests.cs +++ b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools.Test/Model/NumberPropertiesOnlyTests.cs @@ -65,21 +65,21 @@ public void NumberTest() } /// - /// Test the property 'Float' + /// Test the property 'VarFloat' /// [Fact] - public void FloatTest() + public void VarFloatTest() { - // TODO unit test for the property 'Float' + // TODO unit test for the property 'VarFloat' } /// - /// Test the property 'Double' + /// Test the property 'VarDouble' /// [Fact] - public void DoubleTest() + public void VarDoubleTest() { - // TODO unit test for the property 'Double' + // TODO unit test for the property 'VarDouble' } } } diff --git a/samples/client/echo_api/go/test/api_body_test.go b/samples/client/echo_api/go/test/api_body_test.go index 3488cc1cb89f..7bfd79b70ec6 100644 --- a/samples/client/echo_api/go/test/api_body_test.go +++ b/samples/client/echo_api/go/test/api_body_test.go @@ -11,10 +11,12 @@ package openapi import ( "context" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" + "os" "testing" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" ) func Test_openapi_BodyAPIService(t *testing.T) { @@ -24,19 +26,20 @@ func Test_openapi_BodyAPIService(t *testing.T) { t.Run("Test BodyAPIService TestBinaryGif", func(t *testing.T) { - t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.BodyAPI.TestBinaryGif(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + f, err := os.Stat(resp.Name()) + require.Nil(t, err) + require.Greater(t, f.Size(), int64(0)) }) t.Run("Test BodyAPIService TestBodyApplicationOctetstreamBinary", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.BodyAPI.TestBodyApplicationOctetstreamBinary(context.Background()).Execute() @@ -48,7 +51,7 @@ func Test_openapi_BodyAPIService(t *testing.T) { t.Run("Test BodyAPIService TestBodyMultipartFormdataArrayOfBinary", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.BodyAPI.TestBodyMultipartFormdataArrayOfBinary(context.Background()).Execute() @@ -58,33 +61,9 @@ func Test_openapi_BodyAPIService(t *testing.T) { }) - t.Run("Test BodyAPIService TestBodyMultipartFormdataSingleBinary", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.BodyAPI.TestBodyMultipartFormdataSingleBinary(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test BodyAPIService TestEchoBodyAllOfPet", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.BodyAPI.TestEchoBodyAllOfPet(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - t.Run("Test BodyAPIService TestEchoBodyFreeFormObjectResponseString", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.BodyAPI.TestEchoBodyFreeFormObjectResponseString(context.Background()).Execute() @@ -96,7 +75,7 @@ func Test_openapi_BodyAPIService(t *testing.T) { t.Run("Test BodyAPIService TestEchoBodyPet", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.BodyAPI.TestEchoBodyPet(context.Background()).Execute() @@ -108,7 +87,7 @@ func Test_openapi_BodyAPIService(t *testing.T) { t.Run("Test BodyAPIService TestEchoBodyPetResponseString", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.BodyAPI.TestEchoBodyPetResponseString(context.Background()).Execute() @@ -118,21 +97,9 @@ func Test_openapi_BodyAPIService(t *testing.T) { }) - t.Run("Test BodyAPIService TestEchoBodyStringEnum", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.BodyAPI.TestEchoBodyStringEnum(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - t.Run("Test BodyAPIService TestEchoBodyTagResponseString", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.BodyAPI.TestEchoBodyTagResponseString(context.Background()).Execute() diff --git a/samples/client/echo_api/java/apache-httpclient/src/test/java/org/openapitools/client/api/AuthApiTest.java b/samples/client/echo_api/java/apache-httpclient/src/test/java/org/openapitools/client/api/AuthApiTest.java index 7dbdc2b85c87..81b483fa7069 100644 --- a/samples/client/echo_api/java/apache-httpclient/src/test/java/org/openapitools/client/api/AuthApiTest.java +++ b/samples/client/echo_api/java/apache-httpclient/src/test/java/org/openapitools/client/api/AuthApiTest.java @@ -14,9 +14,9 @@ package org.openapitools.client.api; import org.openapitools.client.ApiException; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Assertions; import java.time.LocalDate; import java.time.OffsetDateTime; @@ -28,7 +28,6 @@ /** * API tests for AuthApi */ -@Disabled public class AuthApiTest { private final AuthApi api = new AuthApi(); @@ -57,8 +56,13 @@ public void testAuthHttpBasicTest() throws ApiException { */ @Test public void testAuthHttpBearerTest() throws ApiException { - String response = api.testAuthHttpBearer(); + String response; + api.getApiClient().setBearerToken("fixed token"); + response = api.testAuthHttpBearer(); + Assertions.assertTrue(response.contains("Authorization: Bearer fixed token")); - // TODO: test validations + api.getApiClient().setBearerToken(() -> "dynamic token"); + response = api.testAuthHttpBearer(); + Assertions.assertTrue(response.contains("Authorization: Bearer dynamic token")); } } diff --git a/samples/client/echo_api/java/feign-gson/src/test/java/org/openapitools/client/api/AuthApiTest.java b/samples/client/echo_api/java/feign-gson/src/test/java/org/openapitools/client/api/AuthApiTest.java index 581e79f5f0e1..f53e1f75b5df 100644 --- a/samples/client/echo_api/java/feign-gson/src/test/java/org/openapitools/client/api/AuthApiTest.java +++ b/samples/client/echo_api/java/feign-gson/src/test/java/org/openapitools/client/api/AuthApiTest.java @@ -1,5 +1,7 @@ package org.openapitools.client.api; +import feign.codec.StringDecoder; +import org.junit.jupiter.api.Assertions; import org.openapitools.client.ApiClient; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.BeforeEach; @@ -44,9 +46,20 @@ void testAuthHttpBasicTest() { */ @Test void testAuthHttpBearerTest() { - // String response = api.testAuthHttpBearer(); - - // TODO: test validations + ApiClient client = new ApiClient("http_bearer_auth"); + client.getFeignBuilder().decoder(new StringDecoder()); + { + client.setBearerToken("fixed token"); + AuthApi api = client.buildClient(AuthApi.class); + String response = api.testAuthHttpBearer(); + Assertions.assertTrue(response.contains("Authorization: Bearer fixed token")); + } + { + client.setBearerToken(() -> "dynamic token"); + AuthApi api = client.buildClient(AuthApi.class); + String response = api.testAuthHttpBearer(); + Assertions.assertTrue(response.contains("Authorization: Bearer dynamic token")); + } } diff --git a/samples/client/echo_api/java/okhttp-gson/src/test/java/org/openapitools/client/api/AuthApiTest.java b/samples/client/echo_api/java/okhttp-gson/src/test/java/org/openapitools/client/api/AuthApiTest.java index 30f2ae34d88c..dcf4ae34da4e 100644 --- a/samples/client/echo_api/java/okhttp-gson/src/test/java/org/openapitools/client/api/AuthApiTest.java +++ b/samples/client/echo_api/java/okhttp-gson/src/test/java/org/openapitools/client/api/AuthApiTest.java @@ -13,6 +13,8 @@ package org.openapitools.client.api; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Assertions; import org.openapitools.client.ApiException; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; @@ -21,11 +23,11 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import org.openapitools.client.ApiResponse; /** * API tests for AuthApi */ -@Disabled public class AuthApiTest { private final AuthApi api = new AuthApi(); @@ -52,8 +54,14 @@ public void testAuthHttpBasicTest() throws ApiException { */ @Test public void testAuthHttpBearerTest() throws ApiException { - String response = api.testAuthHttpBearer(); - // TODO: test validations + String response; + api.getApiClient().setBearerToken("fixed token"); + response = api.testAuthHttpBearer(); + Assertions.assertTrue(response.contains("Authorization: Bearer fixed token")); + + api.getApiClient().setBearerToken(() -> "dynamic token"); + response = api.testAuthHttpBearer(); + Assertions.assertTrue(response.contains("Authorization: Bearer dynamic token")); } } diff --git a/samples/client/echo_api/java/resteasy/src/test/java/org/openapitools/client/api/BodyApiTest.java b/samples/client/echo_api/java/resteasy/src/test/java/org/openapitools/client/api/BodyApiTest.java index 182989d0c6d0..a8d0edaa3f26 100644 --- a/samples/client/echo_api/java/resteasy/src/test/java/org/openapitools/client/api/BodyApiTest.java +++ b/samples/client/echo_api/java/resteasy/src/test/java/org/openapitools/client/api/BodyApiTest.java @@ -13,26 +13,21 @@ package org.openapitools.client.api; +import org.junit.jupiter.api.Test; import org.openapitools.client.ApiException; +import org.openapitools.client.api.EchoServerResponseParser; + import java.io.File; -import org.openapitools.client.model.Pet; -import org.openapitools.client.model.StringEnumRef; -import org.openapitools.client.model.Tag; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import java.io.FileWriter; +import java.io.IOException; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; +import static org.assertj.core.api.Assertions.assertThat; +import static org.junit.jupiter.api.Assertions.assertTrue; /** * API tests for BodyApi */ -class BodyApiTest { +public class BodyApiTest { private final BodyApi api = new BodyApi(); @@ -45,7 +40,7 @@ class BodyApiTest { * if the Api call fails */ @Test - void testBinaryGifTest() throws ApiException { + public void testBinaryGifTest() throws ApiException { // //File response = api.testBinaryGif(); @@ -60,7 +55,7 @@ void testBinaryGifTest() throws ApiException { * if the Api call fails */ @Test - void testBodyApplicationOctetstreamBinaryTest() throws ApiException { + public void testBodyApplicationOctetstreamBinaryTest() throws ApiException { // //File body = null; // @@ -77,7 +72,7 @@ void testBodyApplicationOctetstreamBinaryTest() throws ApiException { * if the Api call fails */ @Test - void testBodyMultipartFormdataArrayOfBinaryTest() throws ApiException { + public void testBodyMultipartFormdataArrayOfBinaryTest() throws ApiException { // //List files = null; // @@ -85,23 +80,38 @@ void testBodyMultipartFormdataArrayOfBinaryTest() throws ApiException { // TODO: test validations } + /** * Test single binary in multipart mime * - * Test single binary in multipart mime - * - * @throws ApiException - * if the Api call fails + * @see + * #17367 */ @Test - void testBodyMultipartFormdataSingleBinaryTest() throws ApiException { - // - //File myFile = null; - // - //String response = api.testBodyMultipartFormdataSingleBinary(myFile); - - // TODO: test validations + public void testBodyMultipartFormdataSingleBinaryTest() + throws ApiException, IOException { + File myFile = new File("test.txt"); + if (!myFile.exists()){ + assertTrue(myFile.createNewFile()); + } + FileWriter fw = new FileWriter(myFile); + fw.write("testing only"); + fw.close(); + myFile.deleteOnExit(); + + String response = + api.testBodyMultipartFormdataSingleBinary(myFile); + + EchoServerResponseParser parser = + new EchoServerResponseParser(response); + + String contentDisposition = parser.headers.get("Content-Disposition"); + + assertThat(contentDisposition).contains( + "form-data; name=\"my-file\"; filename=\"test.txt\"" + ); } + /** * Test body parameter(s) * @@ -111,7 +121,7 @@ void testBodyMultipartFormdataSingleBinaryTest() throws ApiException { * if the Api call fails */ @Test - void testEchoBodyAllOfPetTest() throws ApiException { + public void testEchoBodyAllOfPetTest() throws ApiException { // //Pet pet = null; // @@ -128,7 +138,7 @@ void testEchoBodyAllOfPetTest() throws ApiException { * if the Api call fails */ @Test - void testEchoBodyFreeFormObjectResponseStringTest() throws ApiException { + public void testEchoBodyFreeFormObjectResponseStringTest() throws ApiException { // //Object body = null; // @@ -145,7 +155,7 @@ void testEchoBodyFreeFormObjectResponseStringTest() throws ApiException { * if the Api call fails */ @Test - void testEchoBodyPetTest() throws ApiException { + public void testEchoBodyPetTest() throws ApiException { // //Pet pet = null; // @@ -162,7 +172,7 @@ void testEchoBodyPetTest() throws ApiException { * if the Api call fails */ @Test - void testEchoBodyPetResponseStringTest() throws ApiException { + public void testEchoBodyPetResponseStringTest() throws ApiException { // //Pet pet = null; // @@ -170,23 +180,6 @@ void testEchoBodyPetResponseStringTest() throws ApiException { // TODO: test validations } - /** - * Test string enum response body - * - * Test string enum response body - * - * @throws ApiException - * if the Api call fails - */ - @Test - void testEchoBodyStringEnumTest() throws ApiException { - // - //String body = null; - // - //StringEnumRef response = api.testEchoBodyStringEnum(body); - - // TODO: test validations - } /** * Test empty json (request body) * @@ -196,7 +189,7 @@ void testEchoBodyStringEnumTest() throws ApiException { * if the Api call fails */ @Test - void testEchoBodyTagResponseStringTest() throws ApiException { + public void testEchoBodyTagResponseStringTest() throws ApiException { // //Tag tag = null; // diff --git a/samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/api/AuthApiTest.java b/samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/api/AuthApiTest.java index 66cb9a7700b5..cafc848c0a8c 100644 --- a/samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/api/AuthApiTest.java +++ b/samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/api/AuthApiTest.java @@ -27,7 +27,6 @@ /** * API tests for AuthApi */ -@Disabled class AuthApiTest { private final AuthApi api = new AuthApi(); @@ -59,10 +58,14 @@ void testAuthHttpBasicTest() { */ @Test void testAuthHttpBearerTest() { + String response; + api.getApiClient().setBearerToken("fixed token"); + response = api.testAuthHttpBearer(); + Assert.assertTrue(response.contains("Authorization: Bearer fixed token")); - String response = api.testAuthHttpBearer(); - - // TODO: test validations + api.getApiClient().setBearerToken(() -> "dynamic token"); + response = api.testAuthHttpBearer(); + Assert.assertTrue(response.contains("Authorization: Bearer dynamic token")); } } diff --git a/samples/client/echo_api/php-nextgen-streaming/tests/Api/AuthApiTest.php b/samples/client/echo_api/php-nextgen-streaming/tests/Api/AuthApiTest.php index 247cf96ef2ec..ae29180cc953 100644 --- a/samples/client/echo_api/php-nextgen-streaming/tests/Api/AuthApiTest.php +++ b/samples/client/echo_api/php-nextgen-streaming/tests/Api/AuthApiTest.php @@ -16,7 +16,7 @@ * The version of the OpenAPI document: 0.1.0 * Contact: team@openapitools.org * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.11.0-SNAPSHOT + * Generator version: 7.8.0-SNAPSHOT */ /** diff --git a/samples/client/echo_api/php-nextgen-streaming/tests/Api/BodyApiTest.php b/samples/client/echo_api/php-nextgen-streaming/tests/Api/BodyApiTest.php index cea56c6a6814..fc745ade8311 100644 --- a/samples/client/echo_api/php-nextgen-streaming/tests/Api/BodyApiTest.php +++ b/samples/client/echo_api/php-nextgen-streaming/tests/Api/BodyApiTest.php @@ -16,7 +16,7 @@ * The version of the OpenAPI document: 0.1.0 * Contact: team@openapitools.org * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.11.0-SNAPSHOT + * Generator version: 7.8.0-SNAPSHOT */ /** diff --git a/samples/client/echo_api/php-nextgen-streaming/tests/Api/FormApiTest.php b/samples/client/echo_api/php-nextgen-streaming/tests/Api/FormApiTest.php index 08fcc054958b..2834c594d23a 100644 --- a/samples/client/echo_api/php-nextgen-streaming/tests/Api/FormApiTest.php +++ b/samples/client/echo_api/php-nextgen-streaming/tests/Api/FormApiTest.php @@ -16,7 +16,7 @@ * The version of the OpenAPI document: 0.1.0 * Contact: team@openapitools.org * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.11.0-SNAPSHOT + * Generator version: 7.8.0-SNAPSHOT */ /** diff --git a/samples/client/echo_api/php-nextgen-streaming/tests/Api/HeaderApiTest.php b/samples/client/echo_api/php-nextgen-streaming/tests/Api/HeaderApiTest.php index e806c0ad20a4..e2cc1b1b7bf4 100644 --- a/samples/client/echo_api/php-nextgen-streaming/tests/Api/HeaderApiTest.php +++ b/samples/client/echo_api/php-nextgen-streaming/tests/Api/HeaderApiTest.php @@ -16,7 +16,7 @@ * The version of the OpenAPI document: 0.1.0 * Contact: team@openapitools.org * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.11.0-SNAPSHOT + * Generator version: 7.8.0-SNAPSHOT */ /** diff --git a/samples/client/echo_api/php-nextgen-streaming/tests/Api/PathApiTest.php b/samples/client/echo_api/php-nextgen-streaming/tests/Api/PathApiTest.php index f9c7dcc8e123..852e2ff9430e 100644 --- a/samples/client/echo_api/php-nextgen-streaming/tests/Api/PathApiTest.php +++ b/samples/client/echo_api/php-nextgen-streaming/tests/Api/PathApiTest.php @@ -16,7 +16,7 @@ * The version of the OpenAPI document: 0.1.0 * Contact: team@openapitools.org * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.11.0-SNAPSHOT + * Generator version: 7.8.0-SNAPSHOT */ /** diff --git a/samples/client/echo_api/php-nextgen-streaming/tests/Api/QueryApiTest.php b/samples/client/echo_api/php-nextgen-streaming/tests/Api/QueryApiTest.php index a5517b21072a..375cdee50b18 100644 --- a/samples/client/echo_api/php-nextgen-streaming/tests/Api/QueryApiTest.php +++ b/samples/client/echo_api/php-nextgen-streaming/tests/Api/QueryApiTest.php @@ -16,7 +16,7 @@ * The version of the OpenAPI document: 0.1.0 * Contact: team@openapitools.org * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.11.0-SNAPSHOT + * Generator version: 7.8.0-SNAPSHOT */ /** diff --git a/samples/client/echo_api/php-nextgen-streaming/tests/Model/BirdTest.php b/samples/client/echo_api/php-nextgen-streaming/tests/Model/BirdTest.php index 087f947c09f9..0fcf3e468a53 100644 --- a/samples/client/echo_api/php-nextgen-streaming/tests/Model/BirdTest.php +++ b/samples/client/echo_api/php-nextgen-streaming/tests/Model/BirdTest.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 0.1.0 * Contact: team@openapitools.org * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.11.0-SNAPSHOT + * Generator version: 7.8.0-SNAPSHOT */ /** diff --git a/samples/client/echo_api/php-nextgen-streaming/tests/Model/CategoryTest.php b/samples/client/echo_api/php-nextgen-streaming/tests/Model/CategoryTest.php index e532c316fa29..f13294a7646e 100644 --- a/samples/client/echo_api/php-nextgen-streaming/tests/Model/CategoryTest.php +++ b/samples/client/echo_api/php-nextgen-streaming/tests/Model/CategoryTest.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 0.1.0 * Contact: team@openapitools.org * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.11.0-SNAPSHOT + * Generator version: 7.8.0-SNAPSHOT */ /** diff --git a/samples/client/echo_api/php-nextgen-streaming/tests/Model/DataQueryTest.php b/samples/client/echo_api/php-nextgen-streaming/tests/Model/DataQueryTest.php index e50fd5b9255b..a364ee144e2a 100644 --- a/samples/client/echo_api/php-nextgen-streaming/tests/Model/DataQueryTest.php +++ b/samples/client/echo_api/php-nextgen-streaming/tests/Model/DataQueryTest.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 0.1.0 * Contact: team@openapitools.org * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.11.0-SNAPSHOT + * Generator version: 7.8.0-SNAPSHOT */ /** diff --git a/samples/client/echo_api/php-nextgen-streaming/tests/Model/DefaultValueTest.php b/samples/client/echo_api/php-nextgen-streaming/tests/Model/DefaultValueTest.php index f380671404d6..52488c4b1c16 100644 --- a/samples/client/echo_api/php-nextgen-streaming/tests/Model/DefaultValueTest.php +++ b/samples/client/echo_api/php-nextgen-streaming/tests/Model/DefaultValueTest.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 0.1.0 * Contact: team@openapitools.org * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.11.0-SNAPSHOT + * Generator version: 7.8.0-SNAPSHOT */ /** diff --git a/samples/client/echo_api/php-nextgen-streaming/tests/Model/NumberPropertiesOnlyTest.php b/samples/client/echo_api/php-nextgen-streaming/tests/Model/NumberPropertiesOnlyTest.php index a1d3e9e8ecce..c383b0fa0a1e 100644 --- a/samples/client/echo_api/php-nextgen-streaming/tests/Model/NumberPropertiesOnlyTest.php +++ b/samples/client/echo_api/php-nextgen-streaming/tests/Model/NumberPropertiesOnlyTest.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 0.1.0 * Contact: team@openapitools.org * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.11.0-SNAPSHOT + * Generator version: 7.8.0-SNAPSHOT */ /** diff --git a/samples/client/echo_api/php-nextgen-streaming/tests/Model/PetTest.php b/samples/client/echo_api/php-nextgen-streaming/tests/Model/PetTest.php index 754487de7926..ca1792c029f2 100644 --- a/samples/client/echo_api/php-nextgen-streaming/tests/Model/PetTest.php +++ b/samples/client/echo_api/php-nextgen-streaming/tests/Model/PetTest.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 0.1.0 * Contact: team@openapitools.org * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.11.0-SNAPSHOT + * Generator version: 7.8.0-SNAPSHOT */ /** diff --git a/samples/client/echo_api/php-nextgen-streaming/tests/Model/QueryTest.php b/samples/client/echo_api/php-nextgen-streaming/tests/Model/QueryTest.php index 58c210fb6032..eca96fc35630 100644 --- a/samples/client/echo_api/php-nextgen-streaming/tests/Model/QueryTest.php +++ b/samples/client/echo_api/php-nextgen-streaming/tests/Model/QueryTest.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 0.1.0 * Contact: team@openapitools.org * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.11.0-SNAPSHOT + * Generator version: 7.8.0-SNAPSHOT */ /** diff --git a/samples/client/echo_api/php-nextgen-streaming/tests/Model/StringEnumRefTest.php b/samples/client/echo_api/php-nextgen-streaming/tests/Model/StringEnumRefTest.php index 11342c34bd5c..1effa1584181 100644 --- a/samples/client/echo_api/php-nextgen-streaming/tests/Model/StringEnumRefTest.php +++ b/samples/client/echo_api/php-nextgen-streaming/tests/Model/StringEnumRefTest.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 0.1.0 * Contact: team@openapitools.org * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.11.0-SNAPSHOT + * Generator version: 7.8.0-SNAPSHOT */ /** diff --git a/samples/client/echo_api/php-nextgen-streaming/tests/Model/TagTest.php b/samples/client/echo_api/php-nextgen-streaming/tests/Model/TagTest.php index 86678dfe9b5e..87dfc5185caa 100644 --- a/samples/client/echo_api/php-nextgen-streaming/tests/Model/TagTest.php +++ b/samples/client/echo_api/php-nextgen-streaming/tests/Model/TagTest.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 0.1.0 * Contact: team@openapitools.org * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.11.0-SNAPSHOT + * Generator version: 7.8.0-SNAPSHOT */ /** diff --git a/samples/client/echo_api/php-nextgen-streaming/tests/Model/TestFormObjectMultipartRequestMarkerTest.php b/samples/client/echo_api/php-nextgen-streaming/tests/Model/TestFormObjectMultipartRequestMarkerTest.php index 1bb03b3d112a..5a785f539031 100644 --- a/samples/client/echo_api/php-nextgen-streaming/tests/Model/TestFormObjectMultipartRequestMarkerTest.php +++ b/samples/client/echo_api/php-nextgen-streaming/tests/Model/TestFormObjectMultipartRequestMarkerTest.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 0.1.0 * Contact: team@openapitools.org * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.11.0-SNAPSHOT + * Generator version: 7.8.0-SNAPSHOT */ /** diff --git a/samples/client/echo_api/php-nextgen-streaming/tests/Model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameterTest.php b/samples/client/echo_api/php-nextgen-streaming/tests/Model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameterTest.php index b66353373551..45fd06acab2b 100644 --- a/samples/client/echo_api/php-nextgen-streaming/tests/Model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameterTest.php +++ b/samples/client/echo_api/php-nextgen-streaming/tests/Model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameterTest.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 0.1.0 * Contact: team@openapitools.org * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.11.0-SNAPSHOT + * Generator version: 7.8.0-SNAPSHOT */ /** diff --git a/samples/client/echo_api/php-nextgen-streaming/tests/Model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameterTest.php b/samples/client/echo_api/php-nextgen-streaming/tests/Model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameterTest.php index 267b09d889f5..41f69e3c1b1d 100644 --- a/samples/client/echo_api/php-nextgen-streaming/tests/Model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameterTest.php +++ b/samples/client/echo_api/php-nextgen-streaming/tests/Model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameterTest.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 0.1.0 * Contact: team@openapitools.org * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.11.0-SNAPSHOT + * Generator version: 7.8.0-SNAPSHOT */ /** diff --git a/samples/client/echo_api/php-nextgen/tests/Api/AuthApiTest.php b/samples/client/echo_api/php-nextgen/tests/Api/AuthApiTest.php index 247cf96ef2ec..e699f0c08ceb 100644 --- a/samples/client/echo_api/php-nextgen/tests/Api/AuthApiTest.php +++ b/samples/client/echo_api/php-nextgen/tests/Api/AuthApiTest.php @@ -3,6 +3,7 @@ * AuthApiTest * PHP version 8.1 * + * @category Class * @package OpenAPI\Client * @author OpenAPI Generator team * @link https://openapi-generator.tech @@ -16,7 +17,7 @@ * The version of the OpenAPI document: 0.1.0 * Contact: team@openapitools.org * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.11.0-SNAPSHOT + * OpenAPI Generator version: 7.0.1-SNAPSHOT */ /** @@ -27,14 +28,15 @@ namespace OpenAPI\Client\Test\Api; -use OpenAPI\Client\Configuration; -use OpenAPI\Client\ApiException; -use OpenAPI\Client\ObjectSerializer; +use \OpenAPI\Client\Configuration; +use \OpenAPI\Client\ApiException; +use \OpenAPI\Client\ObjectSerializer; use PHPUnit\Framework\TestCase; /** * AuthApiTest Class Doc Comment * + * @category Class * @package OpenAPI\Client * @author OpenAPI Generator team * @link https://openapi-generator.tech @@ -81,16 +83,4 @@ public function testTestAuthHttpBasic() // TODO: implement self::markTestIncomplete('Not implemented'); } - - /** - * Test case for testAuthHttpBearer - * - * To test HTTP bearer authentication. - * - */ - public function testTestAuthHttpBearer() - { - // TODO: implement - self::markTestIncomplete('Not implemented'); - } } diff --git a/samples/client/echo_api/php-nextgen/tests/Api/BodyApiTest.php b/samples/client/echo_api/php-nextgen/tests/Api/BodyApiTest.php index cea56c6a6814..8c91c94c380c 100644 --- a/samples/client/echo_api/php-nextgen/tests/Api/BodyApiTest.php +++ b/samples/client/echo_api/php-nextgen/tests/Api/BodyApiTest.php @@ -3,6 +3,7 @@ * BodyApiTest * PHP version 8.1 * + * @category Class * @package OpenAPI\Client * @author OpenAPI Generator team * @link https://openapi-generator.tech @@ -16,7 +17,7 @@ * The version of the OpenAPI document: 0.1.0 * Contact: team@openapitools.org * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.11.0-SNAPSHOT + * OpenAPI Generator version: 7.0.1-SNAPSHOT */ /** @@ -27,14 +28,15 @@ namespace OpenAPI\Client\Test\Api; -use OpenAPI\Client\Configuration; -use OpenAPI\Client\ApiException; -use OpenAPI\Client\ObjectSerializer; +use \OpenAPI\Client\Configuration; +use \OpenAPI\Client\ApiException; +use \OpenAPI\Client\ObjectSerializer; use PHPUnit\Framework\TestCase; /** * BodyApiTest Class Doc Comment * + * @category Class * @package OpenAPI\Client * @author OpenAPI Generator team * @link https://openapi-generator.tech @@ -106,30 +108,6 @@ public function testTestBodyMultipartFormdataArrayOfBinary() self::markTestIncomplete('Not implemented'); } - /** - * Test case for testBodyMultipartFormdataSingleBinary - * - * Test single binary in multipart mime. - * - */ - public function testTestBodyMultipartFormdataSingleBinary() - { - // TODO: implement - self::markTestIncomplete('Not implemented'); - } - - /** - * Test case for testEchoBodyAllOfPet - * - * Test body parameter(s). - * - */ - public function testTestEchoBodyAllOfPet() - { - // TODO: implement - self::markTestIncomplete('Not implemented'); - } - /** * Test case for testEchoBodyFreeFormObjectResponseString * @@ -166,18 +144,6 @@ public function testTestEchoBodyPetResponseString() self::markTestIncomplete('Not implemented'); } - /** - * Test case for testEchoBodyStringEnum - * - * Test string enum response body. - * - */ - public function testTestEchoBodyStringEnum() - { - // TODO: implement - self::markTestIncomplete('Not implemented'); - } - /** * Test case for testEchoBodyTagResponseString * diff --git a/samples/client/echo_api/php-nextgen/tests/Api/FormApiTest.php b/samples/client/echo_api/php-nextgen/tests/Api/FormApiTest.php index 08fcc054958b..a5443fde5fc5 100644 --- a/samples/client/echo_api/php-nextgen/tests/Api/FormApiTest.php +++ b/samples/client/echo_api/php-nextgen/tests/Api/FormApiTest.php @@ -3,6 +3,7 @@ * FormApiTest * PHP version 8.1 * + * @category Class * @package OpenAPI\Client * @author OpenAPI Generator team * @link https://openapi-generator.tech @@ -16,7 +17,7 @@ * The version of the OpenAPI document: 0.1.0 * Contact: team@openapitools.org * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.11.0-SNAPSHOT + * OpenAPI Generator version: 7.0.1-SNAPSHOT */ /** @@ -27,14 +28,15 @@ namespace OpenAPI\Client\Test\Api; -use OpenAPI\Client\Configuration; -use OpenAPI\Client\ApiException; -use OpenAPI\Client\ObjectSerializer; +use \OpenAPI\Client\Configuration; +use \OpenAPI\Client\ApiException; +use \OpenAPI\Client\ObjectSerializer; use PHPUnit\Framework\TestCase; /** * FormApiTest Class Doc Comment * + * @category Class * @package OpenAPI\Client * @author OpenAPI Generator team * @link https://openapi-generator.tech @@ -82,18 +84,6 @@ public function testTestFormIntegerBooleanString() self::markTestIncomplete('Not implemented'); } - /** - * Test case for testFormObjectMultipart - * - * Test form parameter(s) for multipart schema. - * - */ - public function testTestFormObjectMultipart() - { - // TODO: implement - self::markTestIncomplete('Not implemented'); - } - /** * Test case for testFormOneof * diff --git a/samples/client/echo_api/php-nextgen/tests/Api/HeaderApiTest.php b/samples/client/echo_api/php-nextgen/tests/Api/HeaderApiTest.php index e806c0ad20a4..99851ce00b82 100644 --- a/samples/client/echo_api/php-nextgen/tests/Api/HeaderApiTest.php +++ b/samples/client/echo_api/php-nextgen/tests/Api/HeaderApiTest.php @@ -3,6 +3,7 @@ * HeaderApiTest * PHP version 8.1 * + * @category Class * @package OpenAPI\Client * @author OpenAPI Generator team * @link https://openapi-generator.tech @@ -16,7 +17,7 @@ * The version of the OpenAPI document: 0.1.0 * Contact: team@openapitools.org * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.11.0-SNAPSHOT + * OpenAPI Generator version: 7.0.1-SNAPSHOT */ /** @@ -27,14 +28,15 @@ namespace OpenAPI\Client\Test\Api; -use OpenAPI\Client\Configuration; -use OpenAPI\Client\ApiException; -use OpenAPI\Client\ObjectSerializer; +use \OpenAPI\Client\Configuration; +use \OpenAPI\Client\ApiException; +use \OpenAPI\Client\ObjectSerializer; use PHPUnit\Framework\TestCase; /** * HeaderApiTest Class Doc Comment * + * @category Class * @package OpenAPI\Client * @author OpenAPI Generator team * @link https://openapi-generator.tech @@ -71,12 +73,12 @@ public static function tearDownAfterClass(): void } /** - * Test case for testHeaderIntegerBooleanStringEnums + * Test case for testHeaderIntegerBooleanString * * Test header parameter(s). * */ - public function testTestHeaderIntegerBooleanStringEnums() + public function testTestHeaderIntegerBooleanString() { // TODO: implement self::markTestIncomplete('Not implemented'); diff --git a/samples/client/echo_api/php-nextgen/tests/Api/PathApiTest.php b/samples/client/echo_api/php-nextgen/tests/Api/PathApiTest.php index f9c7dcc8e123..d4043ae9f5bf 100644 --- a/samples/client/echo_api/php-nextgen/tests/Api/PathApiTest.php +++ b/samples/client/echo_api/php-nextgen/tests/Api/PathApiTest.php @@ -3,6 +3,7 @@ * PathApiTest * PHP version 8.1 * + * @category Class * @package OpenAPI\Client * @author OpenAPI Generator team * @link https://openapi-generator.tech @@ -16,7 +17,7 @@ * The version of the OpenAPI document: 0.1.0 * Contact: team@openapitools.org * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.11.0-SNAPSHOT + * OpenAPI Generator version: 7.0.1-SNAPSHOT */ /** @@ -27,14 +28,15 @@ namespace OpenAPI\Client\Test\Api; -use OpenAPI\Client\Configuration; -use OpenAPI\Client\ApiException; -use OpenAPI\Client\ObjectSerializer; +use \OpenAPI\Client\Configuration; +use \OpenAPI\Client\ApiException; +use \OpenAPI\Client\ObjectSerializer; use PHPUnit\Framework\TestCase; /** * PathApiTest Class Doc Comment * + * @category Class * @package OpenAPI\Client * @author OpenAPI Generator team * @link https://openapi-generator.tech @@ -71,12 +73,12 @@ public static function tearDownAfterClass(): void } /** - * Test case for testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath + * Test case for testsPathStringPathStringIntegerPathInteger * * Test path parameter(s). * */ - public function testTestsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath() + public function testTestsPathStringPathStringIntegerPathInteger() { // TODO: implement self::markTestIncomplete('Not implemented'); diff --git a/samples/client/echo_api/php-nextgen/tests/Api/QueryApiTest.php b/samples/client/echo_api/php-nextgen/tests/Api/QueryApiTest.php index a5517b21072a..caee658915d6 100644 --- a/samples/client/echo_api/php-nextgen/tests/Api/QueryApiTest.php +++ b/samples/client/echo_api/php-nextgen/tests/Api/QueryApiTest.php @@ -3,6 +3,7 @@ * QueryApiTest * PHP version 8.1 * + * @category Class * @package OpenAPI\Client * @author OpenAPI Generator team * @link https://openapi-generator.tech @@ -16,7 +17,7 @@ * The version of the OpenAPI document: 0.1.0 * Contact: team@openapitools.org * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.11.0-SNAPSHOT + * OpenAPI Generator version: 7.0.1-SNAPSHOT */ /** @@ -27,14 +28,15 @@ namespace OpenAPI\Client\Test\Api; -use OpenAPI\Client\Configuration; -use OpenAPI\Client\ApiException; -use OpenAPI\Client\ObjectSerializer; +use \OpenAPI\Client\Configuration; +use \OpenAPI\Client\ApiException; +use \OpenAPI\Client\ObjectSerializer; use PHPUnit\Framework\TestCase; /** * QueryApiTest Class Doc Comment * + * @category Class * @package OpenAPI\Client * @author OpenAPI Generator team * @link https://openapi-generator.tech @@ -130,30 +132,6 @@ public function testTestQueryStyleDeepObjectExplodeTrueObjectAllOf() self::markTestIncomplete('Not implemented'); } - /** - * Test case for testQueryStyleFormExplodeFalseArrayInteger - * - * Test query parameter(s). - * - */ - public function testTestQueryStyleFormExplodeFalseArrayInteger() - { - // TODO: implement - self::markTestIncomplete('Not implemented'); - } - - /** - * Test case for testQueryStyleFormExplodeFalseArrayString - * - * Test query parameter(s). - * - */ - public function testTestQueryStyleFormExplodeFalseArrayString() - { - // TODO: implement - self::markTestIncomplete('Not implemented'); - } - /** * Test case for testQueryStyleFormExplodeTrueArrayString * diff --git a/samples/client/echo_api/php-nextgen/tests/Model/BirdTest.php b/samples/client/echo_api/php-nextgen/tests/Model/BirdTest.php index 087f947c09f9..b2a684f90d73 100644 --- a/samples/client/echo_api/php-nextgen/tests/Model/BirdTest.php +++ b/samples/client/echo_api/php-nextgen/tests/Model/BirdTest.php @@ -4,6 +4,7 @@ * * PHP version 8.1 * + * @category Class * @package OpenAPI\Client * @author OpenAPI Generator team * @link https://openapi-generator.tech @@ -17,7 +18,7 @@ * The version of the OpenAPI document: 0.1.0 * Contact: team@openapitools.org * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.11.0-SNAPSHOT + * OpenAPI Generator version: 7.0.1-SNAPSHOT */ /** @@ -33,6 +34,7 @@ /** * BirdTest Class Doc Comment * + * @category Class * @description Bird * @package OpenAPI\Client * @author OpenAPI Generator team diff --git a/samples/client/echo_api/php-nextgen/tests/Model/CategoryTest.php b/samples/client/echo_api/php-nextgen/tests/Model/CategoryTest.php index e532c316fa29..edfa0b8b1580 100644 --- a/samples/client/echo_api/php-nextgen/tests/Model/CategoryTest.php +++ b/samples/client/echo_api/php-nextgen/tests/Model/CategoryTest.php @@ -4,6 +4,7 @@ * * PHP version 8.1 * + * @category Class * @package OpenAPI\Client * @author OpenAPI Generator team * @link https://openapi-generator.tech @@ -17,7 +18,7 @@ * The version of the OpenAPI document: 0.1.0 * Contact: team@openapitools.org * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.11.0-SNAPSHOT + * OpenAPI Generator version: 7.0.1-SNAPSHOT */ /** @@ -33,6 +34,7 @@ /** * CategoryTest Class Doc Comment * + * @category Class * @description Category * @package OpenAPI\Client * @author OpenAPI Generator team diff --git a/samples/client/echo_api/php-nextgen/tests/Model/DataQueryTest.php b/samples/client/echo_api/php-nextgen/tests/Model/DataQueryTest.php index e50fd5b9255b..68cf3d2b0a19 100644 --- a/samples/client/echo_api/php-nextgen/tests/Model/DataQueryTest.php +++ b/samples/client/echo_api/php-nextgen/tests/Model/DataQueryTest.php @@ -4,6 +4,7 @@ * * PHP version 8.1 * + * @category Class * @package OpenAPI\Client * @author OpenAPI Generator team * @link https://openapi-generator.tech @@ -17,7 +18,7 @@ * The version of the OpenAPI document: 0.1.0 * Contact: team@openapitools.org * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.11.0-SNAPSHOT + * OpenAPI Generator version: 7.0.1-SNAPSHOT */ /** @@ -33,6 +34,7 @@ /** * DataQueryTest Class Doc Comment * + * @category Class * @description DataQuery * @package OpenAPI\Client * @author OpenAPI Generator team diff --git a/samples/client/echo_api/php-nextgen/tests/Model/DefaultValueTest.php b/samples/client/echo_api/php-nextgen/tests/Model/DefaultValueTest.php index f380671404d6..9c37428edded 100644 --- a/samples/client/echo_api/php-nextgen/tests/Model/DefaultValueTest.php +++ b/samples/client/echo_api/php-nextgen/tests/Model/DefaultValueTest.php @@ -4,6 +4,7 @@ * * PHP version 8.1 * + * @category Class * @package OpenAPI\Client * @author OpenAPI Generator team * @link https://openapi-generator.tech @@ -17,7 +18,7 @@ * The version of the OpenAPI document: 0.1.0 * Contact: team@openapitools.org * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.11.0-SNAPSHOT + * OpenAPI Generator version: 7.0.1-SNAPSHOT */ /** @@ -33,6 +34,7 @@ /** * DefaultValueTest Class Doc Comment * + * @category Class * @description to test the default value of properties * @package OpenAPI\Client * @author OpenAPI Generator team diff --git a/samples/client/echo_api/php-nextgen/tests/Model/NumberPropertiesOnlyTest.php b/samples/client/echo_api/php-nextgen/tests/Model/NumberPropertiesOnlyTest.php index a1d3e9e8ecce..13b2f2b0d6f0 100644 --- a/samples/client/echo_api/php-nextgen/tests/Model/NumberPropertiesOnlyTest.php +++ b/samples/client/echo_api/php-nextgen/tests/Model/NumberPropertiesOnlyTest.php @@ -4,6 +4,7 @@ * * PHP version 8.1 * + * @category Class * @package OpenAPI\Client * @author OpenAPI Generator team * @link https://openapi-generator.tech @@ -17,7 +18,7 @@ * The version of the OpenAPI document: 0.1.0 * Contact: team@openapitools.org * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.11.0-SNAPSHOT + * OpenAPI Generator version: 7.0.1-SNAPSHOT */ /** @@ -33,6 +34,7 @@ /** * NumberPropertiesOnlyTest Class Doc Comment * + * @category Class * @description NumberPropertiesOnly * @package OpenAPI\Client * @author OpenAPI Generator team diff --git a/samples/client/echo_api/php-nextgen/tests/Model/PetTest.php b/samples/client/echo_api/php-nextgen/tests/Model/PetTest.php index 754487de7926..f7ff28534f5f 100644 --- a/samples/client/echo_api/php-nextgen/tests/Model/PetTest.php +++ b/samples/client/echo_api/php-nextgen/tests/Model/PetTest.php @@ -4,6 +4,7 @@ * * PHP version 8.1 * + * @category Class * @package OpenAPI\Client * @author OpenAPI Generator team * @link https://openapi-generator.tech @@ -17,7 +18,7 @@ * The version of the OpenAPI document: 0.1.0 * Contact: team@openapitools.org * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.11.0-SNAPSHOT + * OpenAPI Generator version: 7.0.1-SNAPSHOT */ /** @@ -33,6 +34,7 @@ /** * PetTest Class Doc Comment * + * @category Class * @description Pet * @package OpenAPI\Client * @author OpenAPI Generator team diff --git a/samples/client/echo_api/php-nextgen/tests/Model/QueryTest.php b/samples/client/echo_api/php-nextgen/tests/Model/QueryTest.php index 58c210fb6032..a01c98c40a3a 100644 --- a/samples/client/echo_api/php-nextgen/tests/Model/QueryTest.php +++ b/samples/client/echo_api/php-nextgen/tests/Model/QueryTest.php @@ -4,6 +4,7 @@ * * PHP version 8.1 * + * @category Class * @package OpenAPI\Client * @author OpenAPI Generator team * @link https://openapi-generator.tech @@ -17,7 +18,7 @@ * The version of the OpenAPI document: 0.1.0 * Contact: team@openapitools.org * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.11.0-SNAPSHOT + * OpenAPI Generator version: 7.0.1-SNAPSHOT */ /** @@ -33,6 +34,7 @@ /** * QueryTest Class Doc Comment * + * @category Class * @description Query * @package OpenAPI\Client * @author OpenAPI Generator team diff --git a/samples/client/echo_api/php-nextgen/tests/Model/StringEnumRefTest.php b/samples/client/echo_api/php-nextgen/tests/Model/StringEnumRefTest.php index 11342c34bd5c..64bde9a7817b 100644 --- a/samples/client/echo_api/php-nextgen/tests/Model/StringEnumRefTest.php +++ b/samples/client/echo_api/php-nextgen/tests/Model/StringEnumRefTest.php @@ -4,6 +4,7 @@ * * PHP version 8.1 * + * @category Class * @package OpenAPI\Client * @author OpenAPI Generator team * @link https://openapi-generator.tech @@ -17,7 +18,7 @@ * The version of the OpenAPI document: 0.1.0 * Contact: team@openapitools.org * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.11.0-SNAPSHOT + * OpenAPI Generator version: 7.0.1-SNAPSHOT */ /** @@ -33,6 +34,7 @@ /** * StringEnumRefTest Class Doc Comment * + * @category Class * @description StringEnumRef * @package OpenAPI\Client * @author OpenAPI Generator team diff --git a/samples/client/echo_api/php-nextgen/tests/Model/TagTest.php b/samples/client/echo_api/php-nextgen/tests/Model/TagTest.php index 86678dfe9b5e..0e9a9cbca7e5 100644 --- a/samples/client/echo_api/php-nextgen/tests/Model/TagTest.php +++ b/samples/client/echo_api/php-nextgen/tests/Model/TagTest.php @@ -4,6 +4,7 @@ * * PHP version 8.1 * + * @category Class * @package OpenAPI\Client * @author OpenAPI Generator team * @link https://openapi-generator.tech @@ -17,7 +18,7 @@ * The version of the OpenAPI document: 0.1.0 * Contact: team@openapitools.org * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.11.0-SNAPSHOT + * OpenAPI Generator version: 7.0.1-SNAPSHOT */ /** @@ -33,6 +34,7 @@ /** * TagTest Class Doc Comment * + * @category Class * @description Tag * @package OpenAPI\Client * @author OpenAPI Generator team diff --git a/samples/client/echo_api/php-nextgen/tests/Model/TestFormObjectMultipartRequestMarkerTest.php b/samples/client/echo_api/php-nextgen/tests/Model/TestFormObjectMultipartRequestMarkerTest.php index 1bb03b3d112a..30eb64c636a8 100644 --- a/samples/client/echo_api/php-nextgen/tests/Model/TestFormObjectMultipartRequestMarkerTest.php +++ b/samples/client/echo_api/php-nextgen/tests/Model/TestFormObjectMultipartRequestMarkerTest.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 0.1.0 * Contact: team@openapitools.org * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.11.0-SNAPSHOT + * Generator version: 7.5.0-SNAPSHOT */ /** diff --git a/samples/client/echo_api/php-nextgen/tests/Model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameterTest.php b/samples/client/echo_api/php-nextgen/tests/Model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameterTest.php index b66353373551..04f2508bdda5 100644 --- a/samples/client/echo_api/php-nextgen/tests/Model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameterTest.php +++ b/samples/client/echo_api/php-nextgen/tests/Model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameterTest.php @@ -4,6 +4,7 @@ * * PHP version 8.1 * + * @category Class * @package OpenAPI\Client * @author OpenAPI Generator team * @link https://openapi-generator.tech @@ -17,7 +18,7 @@ * The version of the OpenAPI document: 0.1.0 * Contact: team@openapitools.org * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.11.0-SNAPSHOT + * OpenAPI Generator version: 7.0.1-SNAPSHOT */ /** @@ -33,6 +34,7 @@ /** * TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameterTest Class Doc Comment * + * @category Class * @description TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter * @package OpenAPI\Client * @author OpenAPI Generator team diff --git a/samples/client/echo_api/php-nextgen/tests/Model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameterTest.php b/samples/client/echo_api/php-nextgen/tests/Model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameterTest.php index 267b09d889f5..aea9a6b2729f 100644 --- a/samples/client/echo_api/php-nextgen/tests/Model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameterTest.php +++ b/samples/client/echo_api/php-nextgen/tests/Model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameterTest.php @@ -4,6 +4,7 @@ * * PHP version 8.1 * + * @category Class * @package OpenAPI\Client * @author OpenAPI Generator team * @link https://openapi-generator.tech @@ -17,7 +18,7 @@ * The version of the OpenAPI document: 0.1.0 * Contact: team@openapitools.org * @generated Generated by: https://openapi-generator.tech - * Generator version: 7.11.0-SNAPSHOT + * OpenAPI Generator version: 7.0.1-SNAPSHOT */ /** @@ -33,6 +34,7 @@ /** * TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameterTest Class Doc Comment * + * @category Class * @description TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter * @package OpenAPI\Client * @author OpenAPI Generator team diff --git a/samples/client/echo_api/powershell/tests/Api/AuthApi.Tests.ps1 b/samples/client/echo_api/powershell/tests/Api/AuthApi.Tests.ps1 index 8e6af427344b..fb4b6a144d8a 100644 --- a/samples/client/echo_api/powershell/tests/Api/AuthApi.Tests.ps1 +++ b/samples/client/echo_api/powershell/tests/Api/AuthApi.Tests.ps1 @@ -15,12 +15,4 @@ Describe -tag 'PSOpenAPITools' -name 'AuthApi' { } } - Context 'Test-AuthHttpBearer' { - It 'Test Test-AuthHttpBearer' { - #$TestResult = Test-AuthHttpBearer - #$TestResult | Should -BeOfType TODO - #$TestResult.property | Should -Be 0 - } - } - } diff --git a/samples/client/echo_api/powershell/tests/Api/BodyApi.Tests.ps1 b/samples/client/echo_api/powershell/tests/Api/BodyApi.Tests.ps1 index 8b57e6e28b2c..4829c660719c 100644 --- a/samples/client/echo_api/powershell/tests/Api/BodyApi.Tests.ps1 +++ b/samples/client/echo_api/powershell/tests/Api/BodyApi.Tests.ps1 @@ -31,14 +31,6 @@ Describe -tag 'PSOpenAPITools' -name 'BodyApi' { } } - Context 'Test-BodyMultipartFormdataSingleBinary' { - It 'Test Test-BodyMultipartFormdataSingleBinary' { - #$TestResult = Test-BodyMultipartFormdataSingleBinary -MyFile "TEST_VALUE" - #$TestResult | Should -BeOfType TODO - #$TestResult.property | Should -Be 0 - } - } - Context 'Test-EchoBodyFreeFormObjectResponseString' { It 'Test Test-EchoBodyFreeFormObjectResponseString' { #$TestResult = Test-EchoBodyFreeFormObjectResponseString -Body "TEST_VALUE" @@ -79,12 +71,4 @@ Describe -tag 'PSOpenAPITools' -name 'BodyApi' { } } - Context 'Test-EchoBodyStringEnum' { - It 'Test Test-EchoBodyStringEnum' { - #$TestResult = Test-EchoBodyStringEnum -Body "TEST_VALUE" - #$TestResult | Should -BeOfType TODO - #$TestResult.property | Should -Be 0 - } - } - } diff --git a/samples/client/echo_api/powershell/tests/Api/FormApi.Tests.ps1 b/samples/client/echo_api/powershell/tests/Api/FormApi.Tests.ps1 index 8374b3b9dd72..db830207c63e 100644 --- a/samples/client/echo_api/powershell/tests/Api/FormApi.Tests.ps1 +++ b/samples/client/echo_api/powershell/tests/Api/FormApi.Tests.ps1 @@ -15,14 +15,6 @@ Describe -tag 'PSOpenAPITools' -name 'FormApi' { } } - Context 'Test-FormObjectMultipart' { - It 'Test Test-FormObjectMultipart' { - #$TestResult = Test-FormObjectMultipart -Marker "TEST_VALUE" - #$TestResult | Should -BeOfType TODO - #$TestResult.property | Should -Be 0 - } - } - Context 'Test-FormOneof' { It 'Test Test-FormOneof' { #$TestResult = Test-FormOneof -Form1 "TEST_VALUE" -Form2 "TEST_VALUE" -Form3 "TEST_VALUE" -Form4 "TEST_VALUE" -Id "TEST_VALUE" -Name "TEST_VALUE" diff --git a/samples/client/echo_api/powershell/tests/Api/QueryApi.Tests.ps1 b/samples/client/echo_api/powershell/tests/Api/QueryApi.Tests.ps1 index a7b543136eb6..ebbdd643d0be 100644 --- a/samples/client/echo_api/powershell/tests/Api/QueryApi.Tests.ps1 +++ b/samples/client/echo_api/powershell/tests/Api/QueryApi.Tests.ps1 @@ -47,22 +47,6 @@ Describe -tag 'PSOpenAPITools' -name 'QueryApi' { } } - Context 'Test-QueryStyleFormExplodeFalseArrayInteger' { - It 'Test Test-QueryStyleFormExplodeFalseArrayInteger' { - #$TestResult = Test-QueryStyleFormExplodeFalseArrayInteger -QueryObject "TEST_VALUE" - #$TestResult | Should -BeOfType TODO - #$TestResult.property | Should -Be 0 - } - } - - Context 'Test-QueryStyleFormExplodeFalseArrayString' { - It 'Test Test-QueryStyleFormExplodeFalseArrayString' { - #$TestResult = Test-QueryStyleFormExplodeFalseArrayString -QueryObject "TEST_VALUE" - #$TestResult | Should -BeOfType TODO - #$TestResult.property | Should -Be 0 - } - } - Context 'Test-QueryStyleFormExplodeTrueArrayString' { It 'Test Test-QueryStyleFormExplodeTrueArrayString' { #$TestResult = Test-QueryStyleFormExplodeTrueArrayString -QueryObject "TEST_VALUE" diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_auth_api.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_auth_api.py index 47756f746042..bfd827933bd6 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_auth_api.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_auth_api.py @@ -15,14 +15,14 @@ import unittest -from openapi_client.api.auth_api import AuthApi +from openapi_client.api.auth_api import AuthApi # noqa: E501 class TestAuthApi(unittest.TestCase): """AuthApi unit test stubs""" def setUp(self) -> None: - self.api = AuthApi() + self.api = AuthApi() # noqa: E501 def tearDown(self) -> None: pass @@ -30,14 +30,7 @@ def tearDown(self) -> None: def test_test_auth_http_basic(self) -> None: """Test case for test_auth_http_basic - To test HTTP basic authentication - """ - pass - - def test_test_auth_http_bearer(self) -> None: - """Test case for test_auth_http_bearer - - To test HTTP bearer authentication + To test HTTP basic authentication # noqa: E501 """ pass diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_bird.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_bird.py index 1a2289c0d472..d95a104d7147 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_bird.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_bird.py @@ -3,19 +3,22 @@ """ Echo Server API - Echo Server API + Echo Server API # noqa: E501 The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +import datetime -from openapi_client.models.bird import Bird +import openapi_client +from openapi_client.models.bird import Bird # noqa: E501 +from openapi_client.rest import ApiException class TestBird(unittest.TestCase): """Bird unit test stubs""" @@ -26,20 +29,20 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> Bird: + def make_instance(self, include_optional): """Test Bird - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `Bird` """ - model = Bird() - if include_optional: + model = openapi_client.models.bird.Bird() # noqa: E501 + if include_optional : return Bird( - size = '', + size = '', color = '' ) - else: + else : return Bird( ) """ diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_body_api.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_body_api.py index f9b7917ee006..e5e24ace8102 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_body_api.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_body_api.py @@ -3,97 +3,36 @@ """ Echo Server API - Echo Server API + Echo Server API # noqa: E501 The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest -from openapi_client.api.body_api import BodyApi +import openapi_client +from openapi_client.api.body_api import BodyApi # noqa: E501 +from openapi_client.rest import ApiException class TestBodyApi(unittest.TestCase): """BodyApi unit test stubs""" - def setUp(self) -> None: - self.api = BodyApi() - - def tearDown(self) -> None: - pass - - def test_test_binary_gif(self) -> None: - """Test case for test_binary_gif - - Test binary (gif) response body - """ - pass - - def test_test_body_application_octetstream_binary(self) -> None: - """Test case for test_body_application_octetstream_binary - - Test body parameter(s) - """ - pass - - def test_test_body_multipart_formdata_array_of_binary(self) -> None: - """Test case for test_body_multipart_formdata_array_of_binary - - Test array of binary in multipart mime - """ - pass - - def test_test_body_multipart_formdata_single_binary(self) -> None: - """Test case for test_body_multipart_formdata_single_binary - - Test single binary in multipart mime - """ - pass - - def test_test_echo_body_all_of_pet(self) -> None: - """Test case for test_echo_body_all_of_pet - - Test body parameter(s) - """ - pass - - def test_test_echo_body_free_form_object_response_string(self) -> None: - """Test case for test_echo_body_free_form_object_response_string + def setUp(self): + self.api = openapi_client.api.body_api.BodyApi() # noqa: E501 - Test free form object - """ + def tearDown(self): pass - def test_test_echo_body_pet(self) -> None: + def test_test_echo_body_pet(self): """Test case for test_echo_body_pet - Test body parameter(s) - """ - pass - - def test_test_echo_body_pet_response_string(self) -> None: - """Test case for test_echo_body_pet_response_string - - Test empty response body - """ - pass - - def test_test_echo_body_string_enum(self) -> None: - """Test case for test_echo_body_string_enum - - Test string enum response body - """ - pass - - def test_test_echo_body_tag_response_string(self) -> None: - """Test case for test_echo_body_tag_response_string - - Test empty json (request body) + Test body parameter(s) # noqa: E501 """ pass diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_category.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_category.py index 12dfe19f63ac..b5771c572d33 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_category.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_category.py @@ -3,19 +3,22 @@ """ Echo Server API - Echo Server API + Echo Server API # noqa: E501 The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +import datetime -from openapi_client.models.category import Category +import openapi_client +from openapi_client.models.category import Category # noqa: E501 +from openapi_client.rest import ApiException class TestCategory(unittest.TestCase): """Category unit test stubs""" @@ -26,20 +29,20 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> Category: + def make_instance(self, include_optional): """Test Category - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `Category` """ - model = Category() - if include_optional: + model = openapi_client.models.category.Category() # noqa: E501 + if include_optional : return Category( - id = 1, + id = 1, name = 'Dogs' ) - else: + else : return Category( ) """ diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_data_query.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_data_query.py index fcd7c9566a37..f33d8daabae1 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_data_query.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_data_query.py @@ -3,19 +3,22 @@ """ Echo Server API - Echo Server API + Echo Server API # noqa: E501 The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +import datetime -from openapi_client.models.data_query import DataQuery +import openapi_client +from openapi_client.models.data_query import DataQuery # noqa: E501 +from openapi_client.rest import ApiException class TestDataQuery(unittest.TestCase): """DataQuery unit test stubs""" @@ -26,21 +29,21 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> DataQuery: + def make_instance(self, include_optional): """Test DataQuery - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `DataQuery` """ - model = DataQuery() - if include_optional: + model = openapi_client.models.data_query.DataQuery() # noqa: E501 + if include_optional : return DataQuery( - suffix = '', - text = 'Some text', + suffix = '', + text = 'Some text', var_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') ) - else: + else : return DataQuery( ) """ diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_default_value.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_default_value.py index 4bdc49448868..6e5f35fd2eff 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_default_value.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_default_value.py @@ -3,19 +3,22 @@ """ Echo Server API - Echo Server API + Echo Server API # noqa: E501 The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +import datetime -from openapi_client.models.default_value import DefaultValue +import openapi_client +from openapi_client.models.default_value import DefaultValue # noqa: E501 +from openapi_client.rest import ApiException class TestDefaultValue(unittest.TestCase): """DefaultValue unit test stubs""" @@ -26,40 +29,34 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> DefaultValue: + def make_instance(self, include_optional): """Test DefaultValue - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `DefaultValue` """ - model = DefaultValue() - if include_optional: + model = openapi_client.models.default_value.DefaultValue() # noqa: E501 + if include_optional : return DefaultValue( - array_string_enum_ref_default = [ - 'success' - ], array_string_enum_default = [ 'success' - ], + ], array_string_default = [ '' - ], + ], array_integer_default = [ 56 - ], + ], array_string = [ '' - ], + ], array_string_nullable = [ '' - ], - array_string_extension_nullable = [ - '' - ], + ], string_nullable = '' ) - else: + else : return DefaultValue( ) """ diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_form_api.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_form_api.py index fbd7ed641e6a..6422432c79ba 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_form_api.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_form_api.py @@ -3,48 +3,36 @@ """ Echo Server API - Echo Server API + Echo Server API # noqa: E501 The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest -from openapi_client.api.form_api import FormApi +import openapi_client +from openapi_client.api.form_api import FormApi # noqa: E501 +from openapi_client.rest import ApiException class TestFormApi(unittest.TestCase): """FormApi unit test stubs""" - def setUp(self) -> None: - self.api = FormApi() + def setUp(self): + self.api = openapi_client.api.form_api.FormApi() # noqa: E501 - def tearDown(self) -> None: + def tearDown(self): pass - def test_test_form_integer_boolean_string(self) -> None: + def test_test_form_integer_boolean_string(self): """Test case for test_form_integer_boolean_string - Test form parameter(s) - """ - pass - - def test_test_form_object_multipart(self) -> None: - """Test case for test_form_object_multipart - - Test form parameter(s) for multipart schema - """ - pass - - def test_test_form_oneof(self) -> None: - """Test case for test_form_oneof - - Test form parameter(s) for oneOf schema + Test form parameter(s) # noqa: E501 """ pass diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_header_api.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_header_api.py index 68670ebc567f..c1b7ed44e8f8 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_header_api.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_header_api.py @@ -3,34 +3,36 @@ """ Echo Server API - Echo Server API + Echo Server API # noqa: E501 The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest -from openapi_client.api.header_api import HeaderApi +import openapi_client +from openapi_client.api.header_api import HeaderApi # noqa: E501 +from openapi_client.rest import ApiException class TestHeaderApi(unittest.TestCase): """HeaderApi unit test stubs""" - def setUp(self) -> None: - self.api = HeaderApi() + def setUp(self): + self.api = openapi_client.api.header_api.HeaderApi() # noqa: E501 - def tearDown(self) -> None: + def tearDown(self): pass - def test_test_header_integer_boolean_string_enums(self) -> None: - """Test case for test_header_integer_boolean_string_enums + def test_test_header_integer_boolean_string(self): + """Test case for test_header_integer_boolean_string - Test header parameter(s) + Test header parameter(s) # noqa: E501 """ pass diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_number_properties_only.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_number_properties_only.py index 682503a0cbf7..68aa757f9df9 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_number_properties_only.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_number_properties_only.py @@ -3,19 +3,22 @@ """ Echo Server API - Echo Server API + Echo Server API # noqa: E501 The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 +""" import unittest +import datetime -from openapi_client.models.number_properties_only import NumberPropertiesOnly +import openapi_client +from openapi_client.models.number_properties_only import NumberPropertiesOnly # noqa: E501 +from openapi_client.rest import ApiException class TestNumberPropertiesOnly(unittest.TestCase): """NumberPropertiesOnly unit test stubs""" @@ -26,21 +29,21 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> NumberPropertiesOnly: + def make_instance(self, include_optional): """Test NumberPropertiesOnly - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `NumberPropertiesOnly` """ - model = NumberPropertiesOnly() - if include_optional: + model = openapi_client.models.number_properties_only.NumberPropertiesOnly() # noqa: E501 + if include_optional : return NumberPropertiesOnly( - number = 1.337, - var_float = 1.337, - double = 0.8 + number = 1.337, + float = 1.337, + double = '' ) - else: + else : return NumberPropertiesOnly( ) """ diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_path_api.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_path_api.py index faabe2102426..4d8e71f7ce6a 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_path_api.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_path_api.py @@ -3,34 +3,36 @@ """ Echo Server API - Echo Server API + Echo Server API # noqa: E501 The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest -from openapi_client.api.path_api import PathApi +import openapi_client +from openapi_client.api.path_api import PathApi # noqa: E501 +from openapi_client.rest import ApiException class TestPathApi(unittest.TestCase): """PathApi unit test stubs""" - def setUp(self) -> None: - self.api = PathApi() + def setUp(self): + self.api = openapi_client.api.path_api.PathApi() # noqa: E501 - def tearDown(self) -> None: + def tearDown(self): pass - def test_tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path(self) -> None: - """Test case for tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path + def test_tests_path_string_path_string_integer_path_integer(self): + """Test case for tests_path_string_path_string_integer_path_integer - Test path parameter(s) + Test path parameter(s) # noqa: E501 """ pass diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_pet.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_pet.py index 21965554b265..e02d8615bc08 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_pet.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_pet.py @@ -3,19 +3,22 @@ """ Echo Server API - Echo Server API + Echo Server API # noqa: E501 The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +import datetime -from openapi_client.models.pet import Pet +import openapi_client +from openapi_client.models.pet import Pet # noqa: E501 +from openapi_client.rest import ApiException class TestPet(unittest.TestCase): """Pet unit test stubs""" @@ -26,32 +29,32 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> Pet: + def make_instance(self, include_optional): """Test Pet - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `Pet` """ - model = Pet() - if include_optional: + model = openapi_client.models.pet.Pet() # noqa: E501 + if include_optional : return Pet( - id = 10, - name = 'doggie', + id = 10, + name = 'doggie', category = openapi_client.models.category.Category( id = 1, - name = 'Dogs', ), + name = 'Dogs', ), photo_urls = [ '' - ], + ], tags = [ openapi_client.models.tag.Tag( id = 56, name = '', ) - ], + ], status = 'available' ) - else: + else : return Pet( name = 'doggie', photo_urls = [ diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_query.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_query.py index c3d033ef0b51..a7652e1ae59c 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_query.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_query.py @@ -3,19 +3,22 @@ """ Echo Server API - Echo Server API + Echo Server API # noqa: E501 The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +import datetime -from openapi_client.models.query import Query +import openapi_client +from openapi_client.models.query import Query # noqa: E501 +from openapi_client.rest import ApiException class TestQuery(unittest.TestCase): """Query unit test stubs""" @@ -26,22 +29,22 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> Query: + def make_instance(self, include_optional): """Test Query - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `Query` """ - model = Query() - if include_optional: + model = openapi_client.models.query.Query() # noqa: E501 + if include_optional : return Query( - id = 56, + id = 56, outcomes = [ 'SUCCESS' ] ) - else: + else : return Query( ) """ diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_query_api.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_query_api.py index e2e6c2dac461..829a635d99b9 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_query_api.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_query_api.py @@ -3,97 +3,50 @@ """ Echo Server API - Echo Server API + Echo Server API # noqa: E501 The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest -from openapi_client.api.query_api import QueryApi +import openapi_client +from openapi_client.api.query_api import QueryApi # noqa: E501 +from openapi_client.rest import ApiException class TestQueryApi(unittest.TestCase): """QueryApi unit test stubs""" - def setUp(self) -> None: - self.api = QueryApi() - - def tearDown(self) -> None: - pass - - def test_test_enum_ref_string(self) -> None: - """Test case for test_enum_ref_string + def setUp(self): + self.api = openapi_client.api.query_api.QueryApi() # noqa: E501 - Test query parameter(s) - """ + def tearDown(self): pass - def test_test_query_datetime_date_string(self) -> None: - """Test case for test_query_datetime_date_string - - Test query parameter(s) - """ - pass - - def test_test_query_integer_boolean_string(self) -> None: + def test_test_query_integer_boolean_string(self): """Test case for test_query_integer_boolean_string - Test query parameter(s) - """ - pass - - def test_test_query_style_deep_object_explode_true_object(self) -> None: - """Test case for test_query_style_deep_object_explode_true_object - - Test query parameter(s) - """ - pass - - def test_test_query_style_deep_object_explode_true_object_all_of(self) -> None: - """Test case for test_query_style_deep_object_explode_true_object_all_of - - Test query parameter(s) - """ - pass - - def test_test_query_style_form_explode_false_array_integer(self) -> None: - """Test case for test_query_style_form_explode_false_array_integer - - Test query parameter(s) + Test query parameter(s) # noqa: E501 """ pass - def test_test_query_style_form_explode_false_array_string(self) -> None: - """Test case for test_query_style_form_explode_false_array_string - - Test query parameter(s) - """ - pass - - def test_test_query_style_form_explode_true_array_string(self) -> None: + def test_test_query_style_form_explode_true_array_string(self): """Test case for test_query_style_form_explode_true_array_string - Test query parameter(s) + Test query parameter(s) # noqa: E501 """ pass - def test_test_query_style_form_explode_true_object(self) -> None: + def test_test_query_style_form_explode_true_object(self): """Test case for test_query_style_form_explode_true_object - Test query parameter(s) - """ - pass - - def test_test_query_style_form_explode_true_object_all_of(self) -> None: - """Test case for test_query_style_form_explode_true_object_all_of - - Test query parameter(s) + Test query parameter(s) # noqa: E501 """ pass diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_string_enum_ref.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_string_enum_ref.py index ece5b369cc22..60a3f0781b18 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_string_enum_ref.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_string_enum_ref.py @@ -3,19 +3,22 @@ """ Echo Server API - Echo Server API + Echo Server API # noqa: E501 The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +import datetime -from openapi_client.models.string_enum_ref import StringEnumRef +import openapi_client +from openapi_client.models.string_enum_ref import StringEnumRef # noqa: E501 +from openapi_client.rest import ApiException class TestStringEnumRef(unittest.TestCase): """StringEnumRef unit test stubs""" diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_tag.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_tag.py index 7e235ac8b95b..8e48170ab6ae 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_tag.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_tag.py @@ -3,19 +3,22 @@ """ Echo Server API - Echo Server API + Echo Server API # noqa: E501 The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +import datetime -from openapi_client.models.tag import Tag +import openapi_client +from openapi_client.models.tag import Tag # noqa: E501 +from openapi_client.rest import ApiException class TestTag(unittest.TestCase): """Tag unit test stubs""" @@ -26,20 +29,20 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> Tag: + def make_instance(self, include_optional): """Test Tag - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `Tag` """ - model = Tag() - if include_optional: + model = openapi_client.models.tag.Tag() # noqa: E501 + if include_optional : return Tag( - id = 56, + id = 56, name = '' ) - else: + else : return Tag( ) """ diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_test_form_object_multipart_request_marker.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_test_form_object_multipart_request_marker.py index 97f5600a234d..d49974286060 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_test_form_object_multipart_request_marker.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_test_form_object_multipart_request_marker.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> TestFormObjectMultipartRequestMarker: """Test TestFormObjectMultipartRequestMarker - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `TestFormObjectMultipartRequestMarker` diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.py index 22731b578cc8..395407345615 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.py @@ -3,19 +3,22 @@ """ Echo Server API - Echo Server API + Echo Server API # noqa: E501 The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +import datetime -from openapi_client.models.test_query_style_deep_object_explode_true_object_all_of_query_object_parameter import TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter +import openapi_client +from openapi_client.models.test_query_style_deep_object_explode_true_object_all_of_query_object_parameter import TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter # noqa: E501 +from openapi_client.rest import ApiException class TestTestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter(unittest.TestCase): """TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter unit test stubs""" @@ -26,22 +29,22 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter: + def make_instance(self, include_optional): """Test TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter` """ - model = TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter() - if include_optional: + model = openapi_client.models.test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter() # noqa: E501 + if include_optional : return TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter( - size = '', - color = '', - id = 1, + size = '', + color = '', + id = 1, name = 'Dogs' ) - else: + else : return TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter( ) """ diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_test_query_style_form_explode_true_array_string_query_object_parameter.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_test_query_style_form_explode_true_array_string_query_object_parameter.py index 2656fbf8e027..6366b5c23587 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_test_query_style_form_explode_true_array_string_query_object_parameter.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/test/test_test_query_style_form_explode_true_array_string_query_object_parameter.py @@ -3,19 +3,22 @@ """ Echo Server API - Echo Server API + Echo Server API # noqa: E501 The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +import datetime -from openapi_client.models.test_query_style_form_explode_true_array_string_query_object_parameter import TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter +import openapi_client +from openapi_client.models.test_query_style_form_explode_true_array_string_query_object_parameter import TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter # noqa: E501 +from openapi_client.rest import ApiException class TestTestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter(unittest.TestCase): """TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter unit test stubs""" @@ -26,21 +29,21 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter: + def make_instance(self, include_optional): """Test TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter` """ - model = TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter() - if include_optional: + model = openapi_client.models.test_query_style_form_explode_true_array_string_query_object_parameter.TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter() # noqa: E501 + if include_optional : return TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter( values = [ '' ] ) - else: + else : return TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter( ) """ diff --git a/samples/client/echo_api/python-pydantic-v1/test/test_auth_api.py b/samples/client/echo_api/python-pydantic-v1/test/test_auth_api.py index 6317a3e9f6d2..bfd827933bd6 100644 --- a/samples/client/echo_api/python-pydantic-v1/test/test_auth_api.py +++ b/samples/client/echo_api/python-pydantic-v1/test/test_auth_api.py @@ -22,7 +22,7 @@ class TestAuthApi(unittest.TestCase): """AuthApi unit test stubs""" def setUp(self) -> None: - self.api = AuthApi() + self.api = AuthApi() # noqa: E501 def tearDown(self) -> None: pass @@ -34,13 +34,6 @@ def test_test_auth_http_basic(self) -> None: """ pass - def test_test_auth_http_bearer(self) -> None: - """Test case for test_auth_http_bearer - - To test HTTP bearer authentication # noqa: E501 - """ - pass - if __name__ == '__main__': unittest.main() diff --git a/samples/client/echo_api/python-pydantic-v1/test/test_bird.py b/samples/client/echo_api/python-pydantic-v1/test/test_bird.py index 0ce8736bd8a6..d95a104d7147 100644 --- a/samples/client/echo_api/python-pydantic-v1/test/test_bird.py +++ b/samples/client/echo_api/python-pydantic-v1/test/test_bird.py @@ -3,20 +3,22 @@ """ Echo Server API - Echo Server API + Echo Server API # noqa: E501 The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest import datetime +import openapi_client from openapi_client.models.bird import Bird # noqa: E501 +from openapi_client.rest import ApiException class TestBird(unittest.TestCase): """Bird unit test stubs""" @@ -27,20 +29,20 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> Bird: + def make_instance(self, include_optional): """Test Bird include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `Bird` """ - model = Bird() # noqa: E501 - if include_optional: + model = openapi_client.models.bird.Bird() # noqa: E501 + if include_optional : return Bird( - size = '', + size = '', color = '' ) - else: + else : return Bird( ) """ diff --git a/samples/client/echo_api/python-pydantic-v1/test/test_body_api.py b/samples/client/echo_api/python-pydantic-v1/test/test_body_api.py index 54bc03763e98..e5e24ace8102 100644 --- a/samples/client/echo_api/python-pydantic-v1/test/test_body_api.py +++ b/samples/client/echo_api/python-pydantic-v1/test/test_body_api.py @@ -3,100 +3,39 @@ """ Echo Server API - Echo Server API + Echo Server API # noqa: E501 The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +import openapi_client from openapi_client.api.body_api import BodyApi # noqa: E501 +from openapi_client.rest import ApiException class TestBodyApi(unittest.TestCase): """BodyApi unit test stubs""" - def setUp(self) -> None: - self.api = BodyApi() - - def tearDown(self) -> None: - pass - - def test_test_binary_gif(self) -> None: - """Test case for test_binary_gif - - Test binary (gif) response body # noqa: E501 - """ - pass - - def test_test_body_application_octetstream_binary(self) -> None: - """Test case for test_body_application_octetstream_binary - - Test body parameter(s) # noqa: E501 - """ - pass - - def test_test_body_multipart_formdata_array_of_binary(self) -> None: - """Test case for test_body_multipart_formdata_array_of_binary - - Test array of binary in multipart mime # noqa: E501 - """ - pass - - def test_test_body_multipart_formdata_single_binary(self) -> None: - """Test case for test_body_multipart_formdata_single_binary - - Test single binary in multipart mime # noqa: E501 - """ - pass - - def test_test_echo_body_all_of_pet(self) -> None: - """Test case for test_echo_body_all_of_pet - - Test body parameter(s) # noqa: E501 - """ - pass - - def test_test_echo_body_free_form_object_response_string(self) -> None: - """Test case for test_echo_body_free_form_object_response_string + def setUp(self): + self.api = openapi_client.api.body_api.BodyApi() # noqa: E501 - Test free form object # noqa: E501 - """ + def tearDown(self): pass - def test_test_echo_body_pet(self) -> None: + def test_test_echo_body_pet(self): """Test case for test_echo_body_pet Test body parameter(s) # noqa: E501 """ pass - def test_test_echo_body_pet_response_string(self) -> None: - """Test case for test_echo_body_pet_response_string - - Test empty response body # noqa: E501 - """ - pass - - def test_test_echo_body_string_enum(self) -> None: - """Test case for test_echo_body_string_enum - - Test string enum response body # noqa: E501 - """ - pass - - def test_test_echo_body_tag_response_string(self) -> None: - """Test case for test_echo_body_tag_response_string - - Test empty json (request body) # noqa: E501 - """ - pass - if __name__ == '__main__': unittest.main() diff --git a/samples/client/echo_api/python-pydantic-v1/test/test_category.py b/samples/client/echo_api/python-pydantic-v1/test/test_category.py index 487e50d95d5c..b5771c572d33 100644 --- a/samples/client/echo_api/python-pydantic-v1/test/test_category.py +++ b/samples/client/echo_api/python-pydantic-v1/test/test_category.py @@ -3,20 +3,22 @@ """ Echo Server API - Echo Server API + Echo Server API # noqa: E501 The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest import datetime +import openapi_client from openapi_client.models.category import Category # noqa: E501 +from openapi_client.rest import ApiException class TestCategory(unittest.TestCase): """Category unit test stubs""" @@ -27,20 +29,20 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> Category: + def make_instance(self, include_optional): """Test Category include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `Category` """ - model = Category() # noqa: E501 - if include_optional: + model = openapi_client.models.category.Category() # noqa: E501 + if include_optional : return Category( - id = 1, + id = 1, name = 'Dogs' ) - else: + else : return Category( ) """ diff --git a/samples/client/echo_api/python-pydantic-v1/test/test_data_query.py b/samples/client/echo_api/python-pydantic-v1/test/test_data_query.py index 5ae6bdbf8778..f33d8daabae1 100644 --- a/samples/client/echo_api/python-pydantic-v1/test/test_data_query.py +++ b/samples/client/echo_api/python-pydantic-v1/test/test_data_query.py @@ -3,20 +3,22 @@ """ Echo Server API - Echo Server API + Echo Server API # noqa: E501 The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest import datetime +import openapi_client from openapi_client.models.data_query import DataQuery # noqa: E501 +from openapi_client.rest import ApiException class TestDataQuery(unittest.TestCase): """DataQuery unit test stubs""" @@ -27,21 +29,21 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> DataQuery: + def make_instance(self, include_optional): """Test DataQuery include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `DataQuery` """ - model = DataQuery() # noqa: E501 - if include_optional: + model = openapi_client.models.data_query.DataQuery() # noqa: E501 + if include_optional : return DataQuery( - suffix = '', - text = 'Some text', + suffix = '', + text = 'Some text', var_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') ) - else: + else : return DataQuery( ) """ diff --git a/samples/client/echo_api/python-pydantic-v1/test/test_default_value.py b/samples/client/echo_api/python-pydantic-v1/test/test_default_value.py index a38f9d85c970..6e5f35fd2eff 100644 --- a/samples/client/echo_api/python-pydantic-v1/test/test_default_value.py +++ b/samples/client/echo_api/python-pydantic-v1/test/test_default_value.py @@ -3,20 +3,22 @@ """ Echo Server API - Echo Server API + Echo Server API # noqa: E501 The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest import datetime +import openapi_client from openapi_client.models.default_value import DefaultValue # noqa: E501 +from openapi_client.rest import ApiException class TestDefaultValue(unittest.TestCase): """DefaultValue unit test stubs""" @@ -27,40 +29,34 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> DefaultValue: + def make_instance(self, include_optional): """Test DefaultValue include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `DefaultValue` """ - model = DefaultValue() # noqa: E501 - if include_optional: + model = openapi_client.models.default_value.DefaultValue() # noqa: E501 + if include_optional : return DefaultValue( - array_string_enum_ref_default = [ - 'success' - ], array_string_enum_default = [ 'success' - ], + ], array_string_default = [ '' - ], + ], array_integer_default = [ 56 - ], + ], array_string = [ '' - ], + ], array_string_nullable = [ '' - ], - array_string_extension_nullable = [ - '' - ], + ], string_nullable = '' ) - else: + else : return DefaultValue( ) """ diff --git a/samples/client/echo_api/python-pydantic-v1/test/test_form_api.py b/samples/client/echo_api/python-pydantic-v1/test/test_form_api.py index 1d7eebf7a62c..6422432c79ba 100644 --- a/samples/client/echo_api/python-pydantic-v1/test/test_form_api.py +++ b/samples/client/echo_api/python-pydantic-v1/test/test_form_api.py @@ -3,51 +3,39 @@ """ Echo Server API - Echo Server API + Echo Server API # noqa: E501 The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +import openapi_client from openapi_client.api.form_api import FormApi # noqa: E501 +from openapi_client.rest import ApiException class TestFormApi(unittest.TestCase): """FormApi unit test stubs""" - def setUp(self) -> None: - self.api = FormApi() + def setUp(self): + self.api = openapi_client.api.form_api.FormApi() # noqa: E501 - def tearDown(self) -> None: + def tearDown(self): pass - def test_test_form_integer_boolean_string(self) -> None: + def test_test_form_integer_boolean_string(self): """Test case for test_form_integer_boolean_string Test form parameter(s) # noqa: E501 """ pass - def test_test_form_object_multipart(self) -> None: - """Test case for test_form_object_multipart - - Test form parameter(s) for multipart schema # noqa: E501 - """ - pass - - def test_test_form_oneof(self) -> None: - """Test case for test_form_oneof - - Test form parameter(s) for oneOf schema # noqa: E501 - """ - pass - if __name__ == '__main__': unittest.main() diff --git a/samples/client/echo_api/python-pydantic-v1/test/test_header_api.py b/samples/client/echo_api/python-pydantic-v1/test/test_header_api.py index b831f9fad281..c1b7ed44e8f8 100644 --- a/samples/client/echo_api/python-pydantic-v1/test/test_header_api.py +++ b/samples/client/echo_api/python-pydantic-v1/test/test_header_api.py @@ -3,32 +3,34 @@ """ Echo Server API - Echo Server API + Echo Server API # noqa: E501 The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +import openapi_client from openapi_client.api.header_api import HeaderApi # noqa: E501 +from openapi_client.rest import ApiException class TestHeaderApi(unittest.TestCase): """HeaderApi unit test stubs""" - def setUp(self) -> None: - self.api = HeaderApi() + def setUp(self): + self.api = openapi_client.api.header_api.HeaderApi() # noqa: E501 - def tearDown(self) -> None: + def tearDown(self): pass - def test_test_header_integer_boolean_string_enums(self) -> None: - """Test case for test_header_integer_boolean_string_enums + def test_test_header_integer_boolean_string(self): + """Test case for test_header_integer_boolean_string Test header parameter(s) # noqa: E501 """ diff --git a/samples/client/echo_api/python-pydantic-v1/test/test_number_properties_only.py b/samples/client/echo_api/python-pydantic-v1/test/test_number_properties_only.py index e5072e660a20..68aa757f9df9 100644 --- a/samples/client/echo_api/python-pydantic-v1/test/test_number_properties_only.py +++ b/samples/client/echo_api/python-pydantic-v1/test/test_number_properties_only.py @@ -3,20 +3,22 @@ """ Echo Server API - Echo Server API + Echo Server API # noqa: E501 The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 +""" import unittest import datetime +import openapi_client from openapi_client.models.number_properties_only import NumberPropertiesOnly # noqa: E501 +from openapi_client.rest import ApiException class TestNumberPropertiesOnly(unittest.TestCase): """NumberPropertiesOnly unit test stubs""" @@ -27,21 +29,21 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> NumberPropertiesOnly: + def make_instance(self, include_optional): """Test NumberPropertiesOnly include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `NumberPropertiesOnly` """ - model = NumberPropertiesOnly() # noqa: E501 - if include_optional: + model = openapi_client.models.number_properties_only.NumberPropertiesOnly() # noqa: E501 + if include_optional : return NumberPropertiesOnly( - number = 1.337, - float = 1.337, - double = 0.8 + number = 1.337, + float = 1.337, + double = '' ) - else: + else : return NumberPropertiesOnly( ) """ diff --git a/samples/client/echo_api/python-pydantic-v1/test/test_path_api.py b/samples/client/echo_api/python-pydantic-v1/test/test_path_api.py index 559023e62d38..4d8e71f7ce6a 100644 --- a/samples/client/echo_api/python-pydantic-v1/test/test_path_api.py +++ b/samples/client/echo_api/python-pydantic-v1/test/test_path_api.py @@ -3,32 +3,34 @@ """ Echo Server API - Echo Server API + Echo Server API # noqa: E501 The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +import openapi_client from openapi_client.api.path_api import PathApi # noqa: E501 +from openapi_client.rest import ApiException class TestPathApi(unittest.TestCase): """PathApi unit test stubs""" - def setUp(self) -> None: - self.api = PathApi() + def setUp(self): + self.api = openapi_client.api.path_api.PathApi() # noqa: E501 - def tearDown(self) -> None: + def tearDown(self): pass - def test_tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path(self) -> None: - """Test case for tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path + def test_tests_path_string_path_string_integer_path_integer(self): + """Test case for tests_path_string_path_string_integer_path_integer Test path parameter(s) # noqa: E501 """ diff --git a/samples/client/echo_api/python-pydantic-v1/test/test_pet.py b/samples/client/echo_api/python-pydantic-v1/test/test_pet.py index 17f0d1221411..e02d8615bc08 100644 --- a/samples/client/echo_api/python-pydantic-v1/test/test_pet.py +++ b/samples/client/echo_api/python-pydantic-v1/test/test_pet.py @@ -3,20 +3,22 @@ """ Echo Server API - Echo Server API + Echo Server API # noqa: E501 The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest import datetime +import openapi_client from openapi_client.models.pet import Pet # noqa: E501 +from openapi_client.rest import ApiException class TestPet(unittest.TestCase): """Pet unit test stubs""" @@ -27,32 +29,32 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> Pet: + def make_instance(self, include_optional): """Test Pet include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `Pet` """ - model = Pet() # noqa: E501 - if include_optional: + model = openapi_client.models.pet.Pet() # noqa: E501 + if include_optional : return Pet( - id = 10, - name = 'doggie', + id = 10, + name = 'doggie', category = openapi_client.models.category.Category( id = 1, - name = 'Dogs', ), + name = 'Dogs', ), photo_urls = [ '' - ], + ], tags = [ openapi_client.models.tag.Tag( id = 56, name = '', ) - ], + ], status = 'available' ) - else: + else : return Pet( name = 'doggie', photo_urls = [ diff --git a/samples/client/echo_api/python-pydantic-v1/test/test_query.py b/samples/client/echo_api/python-pydantic-v1/test/test_query.py index bc3dfd5afd1f..a7652e1ae59c 100644 --- a/samples/client/echo_api/python-pydantic-v1/test/test_query.py +++ b/samples/client/echo_api/python-pydantic-v1/test/test_query.py @@ -3,20 +3,22 @@ """ Echo Server API - Echo Server API + Echo Server API # noqa: E501 The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest import datetime +import openapi_client from openapi_client.models.query import Query # noqa: E501 +from openapi_client.rest import ApiException class TestQuery(unittest.TestCase): """Query unit test stubs""" @@ -27,22 +29,22 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> Query: + def make_instance(self, include_optional): """Test Query include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `Query` """ - model = Query() # noqa: E501 - if include_optional: + model = openapi_client.models.query.Query() # noqa: E501 + if include_optional : return Query( - id = 56, + id = 56, outcomes = [ 'SUCCESS' ] ) - else: + else : return Query( ) """ diff --git a/samples/client/echo_api/python-pydantic-v1/test/test_query_api.py b/samples/client/echo_api/python-pydantic-v1/test/test_query_api.py index 0d4db77452c9..829a635d99b9 100644 --- a/samples/client/echo_api/python-pydantic-v1/test/test_query_api.py +++ b/samples/client/echo_api/python-pydantic-v1/test/test_query_api.py @@ -3,100 +3,53 @@ """ Echo Server API - Echo Server API + Echo Server API # noqa: E501 The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +import openapi_client from openapi_client.api.query_api import QueryApi # noqa: E501 +from openapi_client.rest import ApiException class TestQueryApi(unittest.TestCase): """QueryApi unit test stubs""" - def setUp(self) -> None: - self.api = QueryApi() - - def tearDown(self) -> None: - pass - - def test_test_enum_ref_string(self) -> None: - """Test case for test_enum_ref_string + def setUp(self): + self.api = openapi_client.api.query_api.QueryApi() # noqa: E501 - Test query parameter(s) # noqa: E501 - """ + def tearDown(self): pass - def test_test_query_datetime_date_string(self) -> None: - """Test case for test_query_datetime_date_string - - Test query parameter(s) # noqa: E501 - """ - pass - - def test_test_query_integer_boolean_string(self) -> None: + def test_test_query_integer_boolean_string(self): """Test case for test_query_integer_boolean_string Test query parameter(s) # noqa: E501 """ pass - def test_test_query_style_deep_object_explode_true_object(self) -> None: - """Test case for test_query_style_deep_object_explode_true_object - - Test query parameter(s) # noqa: E501 - """ - pass - - def test_test_query_style_deep_object_explode_true_object_all_of(self) -> None: - """Test case for test_query_style_deep_object_explode_true_object_all_of - - Test query parameter(s) # noqa: E501 - """ - pass - - def test_test_query_style_form_explode_false_array_integer(self) -> None: - """Test case for test_query_style_form_explode_false_array_integer - - Test query parameter(s) # noqa: E501 - """ - pass - - def test_test_query_style_form_explode_false_array_string(self) -> None: - """Test case for test_query_style_form_explode_false_array_string - - Test query parameter(s) # noqa: E501 - """ - pass - - def test_test_query_style_form_explode_true_array_string(self) -> None: + def test_test_query_style_form_explode_true_array_string(self): """Test case for test_query_style_form_explode_true_array_string Test query parameter(s) # noqa: E501 """ pass - def test_test_query_style_form_explode_true_object(self) -> None: + def test_test_query_style_form_explode_true_object(self): """Test case for test_query_style_form_explode_true_object Test query parameter(s) # noqa: E501 """ pass - def test_test_query_style_form_explode_true_object_all_of(self) -> None: - """Test case for test_query_style_form_explode_true_object_all_of - - Test query parameter(s) # noqa: E501 - """ - pass - if __name__ == '__main__': unittest.main() diff --git a/samples/client/echo_api/python-pydantic-v1/test/test_string_enum_ref.py b/samples/client/echo_api/python-pydantic-v1/test/test_string_enum_ref.py index f48d7776fccf..60a3f0781b18 100644 --- a/samples/client/echo_api/python-pydantic-v1/test/test_string_enum_ref.py +++ b/samples/client/echo_api/python-pydantic-v1/test/test_string_enum_ref.py @@ -3,20 +3,22 @@ """ Echo Server API - Echo Server API + Echo Server API # noqa: E501 The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest import datetime +import openapi_client from openapi_client.models.string_enum_ref import StringEnumRef # noqa: E501 +from openapi_client.rest import ApiException class TestStringEnumRef(unittest.TestCase): """StringEnumRef unit test stubs""" diff --git a/samples/client/echo_api/python-pydantic-v1/test/test_tag.py b/samples/client/echo_api/python-pydantic-v1/test/test_tag.py index ce6f8f0cdbc5..8e48170ab6ae 100644 --- a/samples/client/echo_api/python-pydantic-v1/test/test_tag.py +++ b/samples/client/echo_api/python-pydantic-v1/test/test_tag.py @@ -3,20 +3,22 @@ """ Echo Server API - Echo Server API + Echo Server API # noqa: E501 The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest import datetime +import openapi_client from openapi_client.models.tag import Tag # noqa: E501 +from openapi_client.rest import ApiException class TestTag(unittest.TestCase): """Tag unit test stubs""" @@ -27,20 +29,20 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> Tag: + def make_instance(self, include_optional): """Test Tag include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `Tag` """ - model = Tag() # noqa: E501 - if include_optional: + model = openapi_client.models.tag.Tag() # noqa: E501 + if include_optional : return Tag( - id = 56, + id = 56, name = '' ) - else: + else : return Tag( ) """ diff --git a/samples/client/echo_api/python-pydantic-v1/test/test_test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.py b/samples/client/echo_api/python-pydantic-v1/test/test_test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.py index 8063f5b7b630..395407345615 100644 --- a/samples/client/echo_api/python-pydantic-v1/test/test_test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.py +++ b/samples/client/echo_api/python-pydantic-v1/test/test_test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.py @@ -3,20 +3,22 @@ """ Echo Server API - Echo Server API + Echo Server API # noqa: E501 The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest import datetime +import openapi_client from openapi_client.models.test_query_style_deep_object_explode_true_object_all_of_query_object_parameter import TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter # noqa: E501 +from openapi_client.rest import ApiException class TestTestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter(unittest.TestCase): """TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter unit test stubs""" @@ -27,22 +29,22 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter: + def make_instance(self, include_optional): """Test TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter` """ - model = TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter() # noqa: E501 - if include_optional: + model = openapi_client.models.test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter() # noqa: E501 + if include_optional : return TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter( - size = '', - color = '', - id = 1, + size = '', + color = '', + id = 1, name = 'Dogs' ) - else: + else : return TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter( ) """ diff --git a/samples/client/echo_api/python-pydantic-v1/test/test_test_query_style_form_explode_true_array_string_query_object_parameter.py b/samples/client/echo_api/python-pydantic-v1/test/test_test_query_style_form_explode_true_array_string_query_object_parameter.py index f0ce75f334f5..6366b5c23587 100644 --- a/samples/client/echo_api/python-pydantic-v1/test/test_test_query_style_form_explode_true_array_string_query_object_parameter.py +++ b/samples/client/echo_api/python-pydantic-v1/test/test_test_query_style_form_explode_true_array_string_query_object_parameter.py @@ -3,20 +3,22 @@ """ Echo Server API - Echo Server API + Echo Server API # noqa: E501 The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest import datetime +import openapi_client from openapi_client.models.test_query_style_form_explode_true_array_string_query_object_parameter import TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter # noqa: E501 +from openapi_client.rest import ApiException class TestTestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter(unittest.TestCase): """TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter unit test stubs""" @@ -27,21 +29,21 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter: + def make_instance(self, include_optional): """Test TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter` """ - model = TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter() # noqa: E501 - if include_optional: + model = openapi_client.models.test_query_style_form_explode_true_array_string_query_object_parameter.TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter() # noqa: E501 + if include_optional : return TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter( values = [ '' ] ) - else: + else : return TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter( ) """ diff --git a/samples/client/echo_api/python/test/test_auth_api.py b/samples/client/echo_api/python/test/test_auth_api.py index 47756f746042..bfd827933bd6 100644 --- a/samples/client/echo_api/python/test/test_auth_api.py +++ b/samples/client/echo_api/python/test/test_auth_api.py @@ -15,14 +15,14 @@ import unittest -from openapi_client.api.auth_api import AuthApi +from openapi_client.api.auth_api import AuthApi # noqa: E501 class TestAuthApi(unittest.TestCase): """AuthApi unit test stubs""" def setUp(self) -> None: - self.api = AuthApi() + self.api = AuthApi() # noqa: E501 def tearDown(self) -> None: pass @@ -30,14 +30,7 @@ def tearDown(self) -> None: def test_test_auth_http_basic(self) -> None: """Test case for test_auth_http_basic - To test HTTP basic authentication - """ - pass - - def test_test_auth_http_bearer(self) -> None: - """Test case for test_auth_http_bearer - - To test HTTP bearer authentication + To test HTTP basic authentication # noqa: E501 """ pass diff --git a/samples/client/echo_api/python/test/test_bird.py b/samples/client/echo_api/python/test/test_bird.py index 1a2289c0d472..d95a104d7147 100644 --- a/samples/client/echo_api/python/test/test_bird.py +++ b/samples/client/echo_api/python/test/test_bird.py @@ -3,19 +3,22 @@ """ Echo Server API - Echo Server API + Echo Server API # noqa: E501 The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +import datetime -from openapi_client.models.bird import Bird +import openapi_client +from openapi_client.models.bird import Bird # noqa: E501 +from openapi_client.rest import ApiException class TestBird(unittest.TestCase): """Bird unit test stubs""" @@ -26,20 +29,20 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> Bird: + def make_instance(self, include_optional): """Test Bird - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `Bird` """ - model = Bird() - if include_optional: + model = openapi_client.models.bird.Bird() # noqa: E501 + if include_optional : return Bird( - size = '', + size = '', color = '' ) - else: + else : return Bird( ) """ diff --git a/samples/client/echo_api/python/test/test_body_api.py b/samples/client/echo_api/python/test/test_body_api.py index f9b7917ee006..e5e24ace8102 100644 --- a/samples/client/echo_api/python/test/test_body_api.py +++ b/samples/client/echo_api/python/test/test_body_api.py @@ -3,97 +3,36 @@ """ Echo Server API - Echo Server API + Echo Server API # noqa: E501 The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest -from openapi_client.api.body_api import BodyApi +import openapi_client +from openapi_client.api.body_api import BodyApi # noqa: E501 +from openapi_client.rest import ApiException class TestBodyApi(unittest.TestCase): """BodyApi unit test stubs""" - def setUp(self) -> None: - self.api = BodyApi() - - def tearDown(self) -> None: - pass - - def test_test_binary_gif(self) -> None: - """Test case for test_binary_gif - - Test binary (gif) response body - """ - pass - - def test_test_body_application_octetstream_binary(self) -> None: - """Test case for test_body_application_octetstream_binary - - Test body parameter(s) - """ - pass - - def test_test_body_multipart_formdata_array_of_binary(self) -> None: - """Test case for test_body_multipart_formdata_array_of_binary - - Test array of binary in multipart mime - """ - pass - - def test_test_body_multipart_formdata_single_binary(self) -> None: - """Test case for test_body_multipart_formdata_single_binary - - Test single binary in multipart mime - """ - pass - - def test_test_echo_body_all_of_pet(self) -> None: - """Test case for test_echo_body_all_of_pet - - Test body parameter(s) - """ - pass - - def test_test_echo_body_free_form_object_response_string(self) -> None: - """Test case for test_echo_body_free_form_object_response_string + def setUp(self): + self.api = openapi_client.api.body_api.BodyApi() # noqa: E501 - Test free form object - """ + def tearDown(self): pass - def test_test_echo_body_pet(self) -> None: + def test_test_echo_body_pet(self): """Test case for test_echo_body_pet - Test body parameter(s) - """ - pass - - def test_test_echo_body_pet_response_string(self) -> None: - """Test case for test_echo_body_pet_response_string - - Test empty response body - """ - pass - - def test_test_echo_body_string_enum(self) -> None: - """Test case for test_echo_body_string_enum - - Test string enum response body - """ - pass - - def test_test_echo_body_tag_response_string(self) -> None: - """Test case for test_echo_body_tag_response_string - - Test empty json (request body) + Test body parameter(s) # noqa: E501 """ pass diff --git a/samples/client/echo_api/python/test/test_category.py b/samples/client/echo_api/python/test/test_category.py index 12dfe19f63ac..b5771c572d33 100644 --- a/samples/client/echo_api/python/test/test_category.py +++ b/samples/client/echo_api/python/test/test_category.py @@ -3,19 +3,22 @@ """ Echo Server API - Echo Server API + Echo Server API # noqa: E501 The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +import datetime -from openapi_client.models.category import Category +import openapi_client +from openapi_client.models.category import Category # noqa: E501 +from openapi_client.rest import ApiException class TestCategory(unittest.TestCase): """Category unit test stubs""" @@ -26,20 +29,20 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> Category: + def make_instance(self, include_optional): """Test Category - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `Category` """ - model = Category() - if include_optional: + model = openapi_client.models.category.Category() # noqa: E501 + if include_optional : return Category( - id = 1, + id = 1, name = 'Dogs' ) - else: + else : return Category( ) """ diff --git a/samples/client/echo_api/python/test/test_data_query.py b/samples/client/echo_api/python/test/test_data_query.py index fcd7c9566a37..f33d8daabae1 100644 --- a/samples/client/echo_api/python/test/test_data_query.py +++ b/samples/client/echo_api/python/test/test_data_query.py @@ -3,19 +3,22 @@ """ Echo Server API - Echo Server API + Echo Server API # noqa: E501 The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +import datetime -from openapi_client.models.data_query import DataQuery +import openapi_client +from openapi_client.models.data_query import DataQuery # noqa: E501 +from openapi_client.rest import ApiException class TestDataQuery(unittest.TestCase): """DataQuery unit test stubs""" @@ -26,21 +29,21 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> DataQuery: + def make_instance(self, include_optional): """Test DataQuery - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `DataQuery` """ - model = DataQuery() - if include_optional: + model = openapi_client.models.data_query.DataQuery() # noqa: E501 + if include_optional : return DataQuery( - suffix = '', - text = 'Some text', + suffix = '', + text = 'Some text', var_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') ) - else: + else : return DataQuery( ) """ diff --git a/samples/client/echo_api/python/test/test_default_value.py b/samples/client/echo_api/python/test/test_default_value.py index 4bdc49448868..6e5f35fd2eff 100644 --- a/samples/client/echo_api/python/test/test_default_value.py +++ b/samples/client/echo_api/python/test/test_default_value.py @@ -3,19 +3,22 @@ """ Echo Server API - Echo Server API + Echo Server API # noqa: E501 The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +import datetime -from openapi_client.models.default_value import DefaultValue +import openapi_client +from openapi_client.models.default_value import DefaultValue # noqa: E501 +from openapi_client.rest import ApiException class TestDefaultValue(unittest.TestCase): """DefaultValue unit test stubs""" @@ -26,40 +29,34 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> DefaultValue: + def make_instance(self, include_optional): """Test DefaultValue - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `DefaultValue` """ - model = DefaultValue() - if include_optional: + model = openapi_client.models.default_value.DefaultValue() # noqa: E501 + if include_optional : return DefaultValue( - array_string_enum_ref_default = [ - 'success' - ], array_string_enum_default = [ 'success' - ], + ], array_string_default = [ '' - ], + ], array_integer_default = [ 56 - ], + ], array_string = [ '' - ], + ], array_string_nullable = [ '' - ], - array_string_extension_nullable = [ - '' - ], + ], string_nullable = '' ) - else: + else : return DefaultValue( ) """ diff --git a/samples/client/echo_api/python/test/test_form_api.py b/samples/client/echo_api/python/test/test_form_api.py index fbd7ed641e6a..6422432c79ba 100644 --- a/samples/client/echo_api/python/test/test_form_api.py +++ b/samples/client/echo_api/python/test/test_form_api.py @@ -3,48 +3,36 @@ """ Echo Server API - Echo Server API + Echo Server API # noqa: E501 The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest -from openapi_client.api.form_api import FormApi +import openapi_client +from openapi_client.api.form_api import FormApi # noqa: E501 +from openapi_client.rest import ApiException class TestFormApi(unittest.TestCase): """FormApi unit test stubs""" - def setUp(self) -> None: - self.api = FormApi() + def setUp(self): + self.api = openapi_client.api.form_api.FormApi() # noqa: E501 - def tearDown(self) -> None: + def tearDown(self): pass - def test_test_form_integer_boolean_string(self) -> None: + def test_test_form_integer_boolean_string(self): """Test case for test_form_integer_boolean_string - Test form parameter(s) - """ - pass - - def test_test_form_object_multipart(self) -> None: - """Test case for test_form_object_multipart - - Test form parameter(s) for multipart schema - """ - pass - - def test_test_form_oneof(self) -> None: - """Test case for test_form_oneof - - Test form parameter(s) for oneOf schema + Test form parameter(s) # noqa: E501 """ pass diff --git a/samples/client/echo_api/python/test/test_header_api.py b/samples/client/echo_api/python/test/test_header_api.py index 68670ebc567f..c1b7ed44e8f8 100644 --- a/samples/client/echo_api/python/test/test_header_api.py +++ b/samples/client/echo_api/python/test/test_header_api.py @@ -3,34 +3,36 @@ """ Echo Server API - Echo Server API + Echo Server API # noqa: E501 The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest -from openapi_client.api.header_api import HeaderApi +import openapi_client +from openapi_client.api.header_api import HeaderApi # noqa: E501 +from openapi_client.rest import ApiException class TestHeaderApi(unittest.TestCase): """HeaderApi unit test stubs""" - def setUp(self) -> None: - self.api = HeaderApi() + def setUp(self): + self.api = openapi_client.api.header_api.HeaderApi() # noqa: E501 - def tearDown(self) -> None: + def tearDown(self): pass - def test_test_header_integer_boolean_string_enums(self) -> None: - """Test case for test_header_integer_boolean_string_enums + def test_test_header_integer_boolean_string(self): + """Test case for test_header_integer_boolean_string - Test header parameter(s) + Test header parameter(s) # noqa: E501 """ pass diff --git a/samples/client/echo_api/python/test/test_number_properties_only.py b/samples/client/echo_api/python/test/test_number_properties_only.py index 682503a0cbf7..68aa757f9df9 100644 --- a/samples/client/echo_api/python/test/test_number_properties_only.py +++ b/samples/client/echo_api/python/test/test_number_properties_only.py @@ -3,19 +3,22 @@ """ Echo Server API - Echo Server API + Echo Server API # noqa: E501 The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 +""" import unittest +import datetime -from openapi_client.models.number_properties_only import NumberPropertiesOnly +import openapi_client +from openapi_client.models.number_properties_only import NumberPropertiesOnly # noqa: E501 +from openapi_client.rest import ApiException class TestNumberPropertiesOnly(unittest.TestCase): """NumberPropertiesOnly unit test stubs""" @@ -26,21 +29,21 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> NumberPropertiesOnly: + def make_instance(self, include_optional): """Test NumberPropertiesOnly - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `NumberPropertiesOnly` """ - model = NumberPropertiesOnly() - if include_optional: + model = openapi_client.models.number_properties_only.NumberPropertiesOnly() # noqa: E501 + if include_optional : return NumberPropertiesOnly( - number = 1.337, - var_float = 1.337, - double = 0.8 + number = 1.337, + float = 1.337, + double = '' ) - else: + else : return NumberPropertiesOnly( ) """ diff --git a/samples/client/echo_api/python/test/test_path_api.py b/samples/client/echo_api/python/test/test_path_api.py index faabe2102426..4d8e71f7ce6a 100644 --- a/samples/client/echo_api/python/test/test_path_api.py +++ b/samples/client/echo_api/python/test/test_path_api.py @@ -3,34 +3,36 @@ """ Echo Server API - Echo Server API + Echo Server API # noqa: E501 The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest -from openapi_client.api.path_api import PathApi +import openapi_client +from openapi_client.api.path_api import PathApi # noqa: E501 +from openapi_client.rest import ApiException class TestPathApi(unittest.TestCase): """PathApi unit test stubs""" - def setUp(self) -> None: - self.api = PathApi() + def setUp(self): + self.api = openapi_client.api.path_api.PathApi() # noqa: E501 - def tearDown(self) -> None: + def tearDown(self): pass - def test_tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path(self) -> None: - """Test case for tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path + def test_tests_path_string_path_string_integer_path_integer(self): + """Test case for tests_path_string_path_string_integer_path_integer - Test path parameter(s) + Test path parameter(s) # noqa: E501 """ pass diff --git a/samples/client/echo_api/python/test/test_pet.py b/samples/client/echo_api/python/test/test_pet.py index 21965554b265..e02d8615bc08 100644 --- a/samples/client/echo_api/python/test/test_pet.py +++ b/samples/client/echo_api/python/test/test_pet.py @@ -3,19 +3,22 @@ """ Echo Server API - Echo Server API + Echo Server API # noqa: E501 The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +import datetime -from openapi_client.models.pet import Pet +import openapi_client +from openapi_client.models.pet import Pet # noqa: E501 +from openapi_client.rest import ApiException class TestPet(unittest.TestCase): """Pet unit test stubs""" @@ -26,32 +29,32 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> Pet: + def make_instance(self, include_optional): """Test Pet - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `Pet` """ - model = Pet() - if include_optional: + model = openapi_client.models.pet.Pet() # noqa: E501 + if include_optional : return Pet( - id = 10, - name = 'doggie', + id = 10, + name = 'doggie', category = openapi_client.models.category.Category( id = 1, - name = 'Dogs', ), + name = 'Dogs', ), photo_urls = [ '' - ], + ], tags = [ openapi_client.models.tag.Tag( id = 56, name = '', ) - ], + ], status = 'available' ) - else: + else : return Pet( name = 'doggie', photo_urls = [ diff --git a/samples/client/echo_api/python/test/test_query.py b/samples/client/echo_api/python/test/test_query.py index c3d033ef0b51..a7652e1ae59c 100644 --- a/samples/client/echo_api/python/test/test_query.py +++ b/samples/client/echo_api/python/test/test_query.py @@ -3,19 +3,22 @@ """ Echo Server API - Echo Server API + Echo Server API # noqa: E501 The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +import datetime -from openapi_client.models.query import Query +import openapi_client +from openapi_client.models.query import Query # noqa: E501 +from openapi_client.rest import ApiException class TestQuery(unittest.TestCase): """Query unit test stubs""" @@ -26,22 +29,22 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> Query: + def make_instance(self, include_optional): """Test Query - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `Query` """ - model = Query() - if include_optional: + model = openapi_client.models.query.Query() # noqa: E501 + if include_optional : return Query( - id = 56, + id = 56, outcomes = [ 'SUCCESS' ] ) - else: + else : return Query( ) """ diff --git a/samples/client/echo_api/python/test/test_query_api.py b/samples/client/echo_api/python/test/test_query_api.py index e2e6c2dac461..829a635d99b9 100644 --- a/samples/client/echo_api/python/test/test_query_api.py +++ b/samples/client/echo_api/python/test/test_query_api.py @@ -3,97 +3,50 @@ """ Echo Server API - Echo Server API + Echo Server API # noqa: E501 The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest -from openapi_client.api.query_api import QueryApi +import openapi_client +from openapi_client.api.query_api import QueryApi # noqa: E501 +from openapi_client.rest import ApiException class TestQueryApi(unittest.TestCase): """QueryApi unit test stubs""" - def setUp(self) -> None: - self.api = QueryApi() - - def tearDown(self) -> None: - pass - - def test_test_enum_ref_string(self) -> None: - """Test case for test_enum_ref_string + def setUp(self): + self.api = openapi_client.api.query_api.QueryApi() # noqa: E501 - Test query parameter(s) - """ + def tearDown(self): pass - def test_test_query_datetime_date_string(self) -> None: - """Test case for test_query_datetime_date_string - - Test query parameter(s) - """ - pass - - def test_test_query_integer_boolean_string(self) -> None: + def test_test_query_integer_boolean_string(self): """Test case for test_query_integer_boolean_string - Test query parameter(s) - """ - pass - - def test_test_query_style_deep_object_explode_true_object(self) -> None: - """Test case for test_query_style_deep_object_explode_true_object - - Test query parameter(s) - """ - pass - - def test_test_query_style_deep_object_explode_true_object_all_of(self) -> None: - """Test case for test_query_style_deep_object_explode_true_object_all_of - - Test query parameter(s) - """ - pass - - def test_test_query_style_form_explode_false_array_integer(self) -> None: - """Test case for test_query_style_form_explode_false_array_integer - - Test query parameter(s) + Test query parameter(s) # noqa: E501 """ pass - def test_test_query_style_form_explode_false_array_string(self) -> None: - """Test case for test_query_style_form_explode_false_array_string - - Test query parameter(s) - """ - pass - - def test_test_query_style_form_explode_true_array_string(self) -> None: + def test_test_query_style_form_explode_true_array_string(self): """Test case for test_query_style_form_explode_true_array_string - Test query parameter(s) + Test query parameter(s) # noqa: E501 """ pass - def test_test_query_style_form_explode_true_object(self) -> None: + def test_test_query_style_form_explode_true_object(self): """Test case for test_query_style_form_explode_true_object - Test query parameter(s) - """ - pass - - def test_test_query_style_form_explode_true_object_all_of(self) -> None: - """Test case for test_query_style_form_explode_true_object_all_of - - Test query parameter(s) + Test query parameter(s) # noqa: E501 """ pass diff --git a/samples/client/echo_api/python/test/test_string_enum_ref.py b/samples/client/echo_api/python/test/test_string_enum_ref.py index ece5b369cc22..60a3f0781b18 100644 --- a/samples/client/echo_api/python/test/test_string_enum_ref.py +++ b/samples/client/echo_api/python/test/test_string_enum_ref.py @@ -3,19 +3,22 @@ """ Echo Server API - Echo Server API + Echo Server API # noqa: E501 The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +import datetime -from openapi_client.models.string_enum_ref import StringEnumRef +import openapi_client +from openapi_client.models.string_enum_ref import StringEnumRef # noqa: E501 +from openapi_client.rest import ApiException class TestStringEnumRef(unittest.TestCase): """StringEnumRef unit test stubs""" diff --git a/samples/client/echo_api/python/test/test_tag.py b/samples/client/echo_api/python/test/test_tag.py index 7e235ac8b95b..8e48170ab6ae 100644 --- a/samples/client/echo_api/python/test/test_tag.py +++ b/samples/client/echo_api/python/test/test_tag.py @@ -3,19 +3,22 @@ """ Echo Server API - Echo Server API + Echo Server API # noqa: E501 The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +import datetime -from openapi_client.models.tag import Tag +import openapi_client +from openapi_client.models.tag import Tag # noqa: E501 +from openapi_client.rest import ApiException class TestTag(unittest.TestCase): """Tag unit test stubs""" @@ -26,20 +29,20 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> Tag: + def make_instance(self, include_optional): """Test Tag - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `Tag` """ - model = Tag() - if include_optional: + model = openapi_client.models.tag.Tag() # noqa: E501 + if include_optional : return Tag( - id = 56, + id = 56, name = '' ) - else: + else : return Tag( ) """ diff --git a/samples/client/echo_api/python/test/test_test_form_object_multipart_request_marker.py b/samples/client/echo_api/python/test/test_test_form_object_multipart_request_marker.py index 97f5600a234d..d49974286060 100644 --- a/samples/client/echo_api/python/test/test_test_form_object_multipart_request_marker.py +++ b/samples/client/echo_api/python/test/test_test_form_object_multipart_request_marker.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> TestFormObjectMultipartRequestMarker: """Test TestFormObjectMultipartRequestMarker - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `TestFormObjectMultipartRequestMarker` diff --git a/samples/client/echo_api/python/test/test_test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.py b/samples/client/echo_api/python/test/test_test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.py index 22731b578cc8..395407345615 100644 --- a/samples/client/echo_api/python/test/test_test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.py +++ b/samples/client/echo_api/python/test/test_test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.py @@ -3,19 +3,22 @@ """ Echo Server API - Echo Server API + Echo Server API # noqa: E501 The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +import datetime -from openapi_client.models.test_query_style_deep_object_explode_true_object_all_of_query_object_parameter import TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter +import openapi_client +from openapi_client.models.test_query_style_deep_object_explode_true_object_all_of_query_object_parameter import TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter # noqa: E501 +from openapi_client.rest import ApiException class TestTestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter(unittest.TestCase): """TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter unit test stubs""" @@ -26,22 +29,22 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter: + def make_instance(self, include_optional): """Test TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter` """ - model = TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter() - if include_optional: + model = openapi_client.models.test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter() # noqa: E501 + if include_optional : return TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter( - size = '', - color = '', - id = 1, + size = '', + color = '', + id = 1, name = 'Dogs' ) - else: + else : return TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter( ) """ diff --git a/samples/client/echo_api/python/test/test_test_query_style_form_explode_true_array_string_query_object_parameter.py b/samples/client/echo_api/python/test/test_test_query_style_form_explode_true_array_string_query_object_parameter.py index 2656fbf8e027..6366b5c23587 100644 --- a/samples/client/echo_api/python/test/test_test_query_style_form_explode_true_array_string_query_object_parameter.py +++ b/samples/client/echo_api/python/test/test_test_query_style_form_explode_true_array_string_query_object_parameter.py @@ -3,19 +3,22 @@ """ Echo Server API - Echo Server API + Echo Server API # noqa: E501 The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +import datetime -from openapi_client.models.test_query_style_form_explode_true_array_string_query_object_parameter import TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter +import openapi_client +from openapi_client.models.test_query_style_form_explode_true_array_string_query_object_parameter import TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter # noqa: E501 +from openapi_client.rest import ApiException class TestTestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter(unittest.TestCase): """TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter unit test stubs""" @@ -26,21 +29,21 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter: + def make_instance(self, include_optional): """Test TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter` """ - model = TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter() - if include_optional: + model = openapi_client.models.test_query_style_form_explode_true_array_string_query_object_parameter.TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter() # noqa: E501 + if include_optional : return TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter( values = [ '' ] ) - else: + else : return TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter( ) """ diff --git a/samples/client/echo_api/r/tests/testthat/test_body_api.R b/samples/client/echo_api/r/tests/testthat/test_body_api.R index b5b9c7288f90..ff54935492fb 100644 --- a/samples/client/echo_api/r/tests/testthat/test_body_api.R +++ b/samples/client/echo_api/r/tests/testthat/test_body_api.R @@ -100,18 +100,6 @@ test_that("TestEchoBodyPetResponseString", { #expect_equal(result, "EXPECTED_RESULT") }) -test_that("TestEchoBodyStringEnum", { - # tests for TestEchoBodyStringEnum - # base path: http://localhost:3000 - # Test string enum response body - # Test string enum response body - # @param body character String enum (optional) - # @return [StringEnumRef] - - # uncomment below to test the operation - #expect_equal(result, "EXPECTED_RESULT") -}) - test_that("TestEchoBodyTagResponseString", { # tests for TestEchoBodyTagResponseString # base path: http://localhost:3000 diff --git a/samples/client/echo_api/r/tests/testthat/test_form_api.R b/samples/client/echo_api/r/tests/testthat/test_form_api.R index 99438867befe..a2b306f2d8d0 100644 --- a/samples/client/echo_api/r/tests/testthat/test_form_api.R +++ b/samples/client/echo_api/r/tests/testthat/test_form_api.R @@ -19,18 +19,6 @@ test_that("TestFormIntegerBooleanString", { #expect_equal(result, "EXPECTED_RESULT") }) -test_that("TestFormObjectMultipart", { - # tests for TestFormObjectMultipart - # base path: http://localhost:3000 - # Test form parameter(s) for multipart schema - # Test form parameter(s) for multipart schema - # @param marker TestFormObjectMultipartRequestMarker - # @return [character] - - # uncomment below to test the operation - #expect_equal(result, "EXPECTED_RESULT") -}) - test_that("TestFormOneof", { # tests for TestFormOneof # base path: http://localhost:3000 diff --git a/samples/client/echo_api/r/tests/testthat/test_query_api.R b/samples/client/echo_api/r/tests/testthat/test_query_api.R index 90f47368b9c9..202460c859ad 100644 --- a/samples/client/echo_api/r/tests/testthat/test_query_api.R +++ b/samples/client/echo_api/r/tests/testthat/test_query_api.R @@ -70,30 +70,6 @@ test_that("TestQueryStyleDeepObjectExplodeTrueObjectAllOf", { #expect_equal(result, "EXPECTED_RESULT") }) -test_that("TestQueryStyleFormExplodeFalseArrayInteger", { - # tests for TestQueryStyleFormExplodeFalseArrayInteger - # base path: http://localhost:3000 - # Test query parameter(s) - # Test query parameter(s) - # @param query_object array[integer] (optional) - # @return [character] - - # uncomment below to test the operation - #expect_equal(result, "EXPECTED_RESULT") -}) - -test_that("TestQueryStyleFormExplodeFalseArrayString", { - # tests for TestQueryStyleFormExplodeFalseArrayString - # base path: http://localhost:3000 - # Test query parameter(s) - # Test query parameter(s) - # @param query_object array[character] (optional) - # @return [character] - - # uncomment below to test the operation - #expect_equal(result, "EXPECTED_RESULT") -}) - test_that("TestQueryStyleFormExplodeTrueArrayString", { # tests for TestQueryStyleFormExplodeTrueArrayString # base path: http://localhost:3000 diff --git a/samples/client/petstore/apex/force-app/main/default/classes/OASApiResponseTest.cls b/samples/client/petstore/apex/force-app/main/default/classes/OASApiResponseTest.cls index 8b43f71ae35f..4245ce16642d 100644 --- a/samples/client/petstore/apex/force-app/main/default/classes/OASApiResponseTest.cls +++ b/samples/client/petstore/apex/force-app/main/default/classes/OASApiResponseTest.cls @@ -68,4 +68,11 @@ private class OASApiResponseTest { System.assertEquals(apiResponse1.hashCode(), apiResponse2.hashCode()); System.assertEquals(apiResponse3.hashCode(), apiResponse4.hashCode()); } + + @isTest + private static void maintainRenamedProperties() { + OASApiResponse apiResponse = new OASApiResponse(); + Map propertyMappings = apiResponse.getPropertyMappings(); + System.assertEquals('r_type', propertyMappings.get('type')); + } } diff --git a/samples/client/petstore/crystal/spec/api/pet_api_spec.cr b/samples/client/petstore/crystal/spec/api/pet_api_spec.cr index 975d500c9261..5eb508ebd72a 100644 --- a/samples/client/petstore/crystal/spec/api/pet_api_spec.cr +++ b/samples/client/petstore/crystal/spec/api/pet_api_spec.cr @@ -5,7 +5,7 @@ #The version of the OpenAPI document: 1.0.0 # #Generated by: https://openapi-generator.tech -#Generator version: 7.11.0-SNAPSHOT +#OpenAPI Generator version: 5.0.1-SNAPSHOT # require "../spec_helper" @@ -25,19 +25,37 @@ describe "PetApi" do # unit tests for add_pet # Add a new pet to the store - # # @param pet Pet object that needs to be added to the store # @param [Hash] opts the optional parameters # @return [Pet] describe "add_pet test" do - it "should work" do + it "should work with only required attributes" do # assertion here. ref: https://crystal-lang.org/reference/guides/testing.html + + config = Petstore::Configuration.new + config.access_token = "yyy" + config.api_key[:api_key] = "xxx" + config.api_key_prefix[:api_key] = "Token" + + api_client = Petstore::ApiClient.new(config) + + api_instance = Petstore::PetApi.new(api_client) + + pet_name = "new pet" + new_pet = Petstore::Pet.new(id: nil, category: nil, name: pet_name, photo_urls: Array(String).new, tags: nil, status: nil) + + pet = api_instance.add_pet(new_pet) + pet.id.should_not be_nil + pet.category.should be_nil + pet.name.should eq pet_name + pet.photo_urls.should eq Array(String).new + pet.status.should be_nil + pet.tags.should eq Array(Petstore::Tag).new end end # unit tests for delete_pet # Deletes a pet - # # @param pet_id Pet id to delete # @param [Hash] opts the optional parameters # @option opts [String] :api_key @@ -81,12 +99,32 @@ describe "PetApi" do describe "get_pet_by_id test" do it "should work" do # assertion here. ref: https://crystal-lang.org/reference/guides/testing.html + + config = Petstore::Configuration.new + config.access_token = "yyy" + config.api_key[:api_key] = "xxx" + config.api_key_prefix[:api_key] = "Token" + + api_client = Petstore::ApiClient.new(config) + + api_instance = Petstore::PetApi.new(api_client) + + new_pet = Petstore::Pet.new(id: nil, category: nil, name: "crystal", photo_urls: Array(String).new, tags: nil, status: nil) + + pet = api_instance.add_pet(new_pet) + pet_id = pet.id.not_nil! + result = api_instance.get_pet_by_id(pet_id: pet_id) + result.id.should eq pet_id + result.category.should be_nil + result.name.should eq "crystal" + result.photo_urls.should eq Array(String).new + result.status.should be_nil + result.tags.should eq Array(Petstore::Tag).new end end # unit tests for update_pet # Update an existing pet - # # @param pet Pet object that needs to be added to the store # @param [Hash] opts the optional parameters # @return [Pet] @@ -98,7 +136,6 @@ describe "PetApi" do # unit tests for update_pet_with_form # Updates a pet in the store with form data - # # @param pet_id ID of pet that needs to be updated # @param [Hash] opts the optional parameters # @option opts [String] :name Updated name of the pet @@ -112,11 +149,10 @@ describe "PetApi" do # unit tests for upload_file # uploads an image - # # @param pet_id ID of pet to update # @param [Hash] opts the optional parameters # @option opts [String] :additional_metadata Additional data to pass to server - # @option opts [::File] :file file to upload + # @option opts [File] :file file to upload # @return [ApiResponse] describe "upload_file test" do it "should work" do diff --git a/samples/client/petstore/crystal/spec/models/pet_spec.cr b/samples/client/petstore/crystal/spec/models/pet_spec.cr index b7f30ac26ac1..dac484057c96 100644 --- a/samples/client/petstore/crystal/spec/models/pet_spec.cr +++ b/samples/client/petstore/crystal/spec/models/pet_spec.cr @@ -5,7 +5,7 @@ #The version of the OpenAPI document: 1.0.0 # #Generated by: https://openapi-generator.tech -#Generator version: 7.11.0-SNAPSHOT +#OpenAPI Generator version: 5.0.1-SNAPSHOT # require "../spec_helper" @@ -18,11 +18,49 @@ require "time" describe Petstore::Pet do describe "test an instance of Pet" do - it "should create an instance of Pet" do - #instance = Petstore::Pet.new - #expect(instance).to be_instance_of(Petstore::Pet) + it "should fail to compile if any required properties is missing" do + assert_compilation_error(path: "./pet_compilation_error_spec.cr", message: "Error: expected argument 'name' to 'Petstore::Pet.new' to be String, not Nil") + end + + it "should create an instance of Pet with only required properties" do + pet = Petstore::Pet.new(id: nil, category: nil, name: "new pet", photo_urls: Array(String).new, tags: nil, status: nil) + pet.should be_a(Petstore::Pet) + end + + it "should create an instance of Pet with all properties" do + pet_id = 12345_i64 + pet = Petstore::Pet.new(id: pet_id, category: Petstore::Category.new(id: pet_id + 10, name: "crystal category"), name: "crystal", photo_urls: ["https://crystal-lang.org"], tags: [Petstore::Tag.new(id: pet_id + 100, name: "crystal tag")], status: "available") + pet.should be_a(Petstore::Pet) + end + end + + describe "#from_json" do + it "should instantiate a new instance from json string with required properties" do + pet = Petstore::Pet.from_json("{\"name\": \"json pet\", \"photoUrls\": []}") + pet.should be_a(Petstore::Pet) + pet.name.should eq "json pet" + pet.photo_urls.should eq Array(String).new + end + + it "should raise error when instantiating a new instance from json string with missing required properties" do + expect_raises(JSON::SerializableError, "Missing JSON attribute: name") do + Petstore::Pet.from_json("{\"photoUrls\": []}") + end + expect_raises(JSON::SerializableError, "Missing JSON attribute: photoUrls") do + Petstore::Pet.from_json("{\"name\": \"json pet\"}") + end + end + + it "should raise error when instantiating a new instance from json string with required properties set to null value" do + expect_raises(JSON::SerializableError, "Expected String but was Null") do + Petstore::Pet.from_json("{\"name\": null, \"photoUrls\": []}") + end + expect_raises(JSON::SerializableError, "Expected BeginArray but was Null") do + Petstore::Pet.from_json("{\"name\": \"json pet\", \"photoUrls\": null}") + end end end + describe "test attribute 'id'" do it "should work" do # assertion here. ref: https://crystal-lang.org/reference/guides/testing.html diff --git a/samples/client/petstore/crystal/spec/models/tag_spec.cr b/samples/client/petstore/crystal/spec/models/tag_spec.cr index 128adcc6a068..64a05f292ce2 100644 --- a/samples/client/petstore/crystal/spec/models/tag_spec.cr +++ b/samples/client/petstore/crystal/spec/models/tag_spec.cr @@ -5,7 +5,7 @@ #The version of the OpenAPI document: 1.0.0 # #Generated by: https://openapi-generator.tech -#Generator version: 7.11.0-SNAPSHOT +#OpenAPI Generator version: 5.0.1-SNAPSHOT # require "../spec_helper" @@ -23,6 +23,21 @@ describe Petstore::Tag do #expect(instance).to be_instance_of(Petstore::Tag) end end + + describe "test equality of Tag instances" do + it "should equal to itself" do + tag1 = Petstore::Tag.new(id: 0, name: "same") + tag2 = tag1 + (tag1 == tag2).should be_true + end + + it "should equal to another instance with same attributes" do + tag1 = Petstore::Tag.new(id: 0, name: "tag") + tag2 = Petstore::Tag.new(id: 0, name: "tag") + (tag1 == tag2).should be_true + end + end + describe "test attribute 'id'" do it "should work" do # assertion here. ref: https://crystal-lang.org/reference/guides/testing.html diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs index 1ec3e8933caa..767537cf4086 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs @@ -63,49 +63,5 @@ public void FooGetTest() //var response = instance.FooGet(); //Assert.IsType(response); } - - /// - /// Test GetCountry - /// - [Fact] - public void GetCountryTest() - { - // TODO uncomment below to test the method and replace null with proper value - //string country = null; - //instance.GetCountry(country); - } - - /// - /// Test Hello - /// - [Fact] - public void HelloTest() - { - // TODO uncomment below to test the method and replace null with proper value - //var response = instance.Hello(); - //Assert.IsType>(response); - } - - /// - /// Test RolesReportGet - /// - [Fact] - public void RolesReportGetTest() - { - // TODO uncomment below to test the method and replace null with proper value - //var response = instance.RolesReportGet(); - //Assert.IsType>>(response); - } - - /// - /// Test Test - /// - [Fact] - public void TestTest() - { - // TODO uncomment below to test the method and replace null with proper value - //var response = instance.Test(); - //Assert.IsType(response); - } } } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Api/FakeApiTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Api/FakeApiTests.cs index 050588a08577..41e1c365c2b5 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Api/FakeApiTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Api/FakeApiTests.cs @@ -107,9 +107,8 @@ public void FakeOuterNumberSerializeTest() public void FakeOuterStringSerializeTest() { // TODO uncomment below to test the method and replace null with proper value - //Guid requiredStringUuid = null; //string body = null; - //var response = instance.FakeOuterStringSerialize(requiredStringUuid, body); + //var response = instance.FakeOuterStringSerialize(body); //Assert.IsType(response); } @@ -124,39 +123,6 @@ public void GetArrayOfEnumsTest() //Assert.IsType>(response); } - /// - /// Test GetMixedAnyOf - /// - [Fact] - public void GetMixedAnyOfTest() - { - // TODO uncomment below to test the method and replace null with proper value - //var response = instance.GetMixedAnyOf(); - //Assert.IsType(response); - } - - /// - /// Test GetMixedOneOf - /// - [Fact] - public void GetMixedOneOfTest() - { - // TODO uncomment below to test the method and replace null with proper value - //var response = instance.GetMixedOneOf(); - //Assert.IsType(response); - } - - /// - /// Test TestAdditionalPropertiesReference - /// - [Fact] - public void TestAdditionalPropertiesReferenceTest() - { - // TODO uncomment below to test the method and replace null with proper value - //Dictionary requestBody = null; - //instance.TestAdditionalPropertiesReference(requestBody); - } - /// /// Test TestBodyWithFileSchema /// @@ -200,20 +166,20 @@ public void TestEndpointParametersTest() { // TODO uncomment below to test the method and replace null with proper value //decimal number = null; - //double varDouble = null; + //double _double = null; //string patternWithoutDelimiter = null; - //byte[] varByte = null; + //byte[] _byte = null; //int? integer = null; //int? int32 = null; //long? int64 = null; - //float? varFloat = null; - //string varString = null; + //float? _float = null; + //string _string = null; //FileParameter binary = null; //DateTime? date = null; //DateTime? dateTime = null; //string password = null; //string callback = null; - //instance.TestEndpointParameters(number, varDouble, patternWithoutDelimiter, varByte, integer, int32, int64, varFloat, varString, binary, date, dateTime, password, callback); + //instance.TestEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback); } /// @@ -261,17 +227,6 @@ public void TestInlineAdditionalPropertiesTest() //instance.TestInlineAdditionalProperties(requestBody); } - /// - /// Test TestInlineFreeformAdditionalProperties - /// - [Fact] - public void TestInlineFreeformAdditionalPropertiesTest() - { - // TODO uncomment below to test the method and replace null with proper value - //TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest = null; - //instance.TestInlineFreeformAdditionalProperties(testInlineFreeformAdditionalPropertiesRequest); - } - /// /// Test TestJsonFormData /// @@ -296,22 +251,7 @@ public void TestQueryParameterCollectionFormatTest() //List http = null; //List url = null; //List context = null; - //string requiredNotNullable = null; - //string requiredNullable = null; - //string notRequiredNotNullable = null; - //string notRequiredNullable = null; - //instance.TestQueryParameterCollectionFormat(pipe, ioutil, http, url, context, requiredNotNullable, requiredNullable, notRequiredNotNullable, notRequiredNullable); - } - - /// - /// Test TestStringMapReference - /// - [Fact] - public void TestStringMapReferenceTest() - { - // TODO uncomment below to test the method and replace null with proper value - //Dictionary requestBody = null; - //instance.TestStringMapReference(requestBody); + //instance.TestQueryParameterCollectionFormat(pipe, ioutil, http, url, context); } } } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Api/PetApiTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Api/PetApiTests.cs index ed2b4df25b2b..e12582623e86 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Api/PetApiTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Api/PetApiTests.cs @@ -1,9 +1,10 @@ -/* +/* * OpenAPI Petstore * * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * The version of the OpenAPI document: 1.0.0 + * OpenAPI spec version: 1.0.0 + * * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -15,15 +16,16 @@ using System.Reflection; using Xunit; +using System.Net.Http; + using Org.OpenAPITools.Client; using Org.OpenAPITools.Api; -// uncomment below to import models -//using Org.OpenAPITools.Model; +using Org.OpenAPITools.Model; -namespace Org.OpenAPITools.Test.Api +namespace Org.OpenAPITools.Test { /// - /// Class for testing PetApi + /// Class for testing PetApi /// /// /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). @@ -33,83 +35,255 @@ public class PetApiTests : IDisposable { private PetApi instance; - public PetApiTests() + private long petId = 11088; + private long notExistentPetId = 99999; + + /// + /// Create a Pet object + /// + private Pet createPet() { - instance = new PetApi(); + // create pet + Pet p = new Pet(name: "Csharp test", photoUrls: new List { "http://petstore.com/csharp_test" }); + p.Id = petId; + //p.Name = "Csharp test"; + p.Status = Pet.StatusEnum.Available; + // create Category object + Category category = new Category(); + category.Id = 56; + category.Name = "sample category name2"; + List photoUrls = new List(new String[] { "sample photoUrls" }); + // create Tag object + Tag tag = new Tag(); + tag.Id = petId; + tag.Name = "csharp sample tag name1"; + List tags = new List(new Tag[] { tag }); + p.Tags = tags; + p.Category = category; + p.PhotoUrls = photoUrls; + + return p; } - public void Dispose() + /// + /// Convert string to byte array + /// + private byte[] GetBytes(string str) { - // Cleanup when everything is done. + byte[] bytes = new byte[str.Length * sizeof(char)]; + System.Buffer.BlockCopy(str.ToCharArray(), 0, bytes, 0, bytes.Length); + return bytes; } + public PetApiTests() + { + HttpClient httpClient = new HttpClient(); + HttpClientHandler httpClientHandler = new HttpClientHandler(); + instance = new PetApi(httpClient, httpClientHandler); + + // create pet + Pet p = createPet(); + + // add pet before testing + PetApi petApi = new PetApi("http://petstore.swagger.io/v2"); + petApi.AddPet(p); + } + /// /// Test an instance of PetApi /// [Fact] public void InstanceTest() { - // TODO uncomment below to test 'IsType' PetApi - //Assert.IsType(instance); + Assert.IsType(instance); } + /// /// Test AddPet /// [Fact] public void AddPetTest() { - // TODO uncomment below to test the method and replace null with proper value - //Pet pet = null; - //instance.AddPet(pet); + // create pet + Pet p = createPet(); + instance.AddPet(p); } - + /// /// Test DeletePet /// [Fact] public void DeletePetTest() { - // TODO uncomment below to test the method and replace null with proper value - //long petId = null; - //string apiKey = null; - //instance.DeletePet(petId, apiKey); + // no need to test as it'c covered by Cleanup() already } - + /// /// Test FindPetsByStatus /// [Fact] public void FindPetsByStatusTest() { - // TODO uncomment below to test the method and replace null with proper value - //List status = null; - //var response = instance.FindPetsByStatus(status); - //Assert.IsType>(response); - } + PetApi petApi = new PetApi(); + List tagsList = new List(new String[] { "available" }); + List listPet = petApi.FindPetsByTags(tagsList); + foreach (Pet pet in listPet) // Loop through List with foreach. + { + Assert.IsType(pet); + Assert.Equal("available", pet.Tags[0].Name); + } + } + /// /// Test FindPetsByTags /// [Fact] public void FindPetsByTagsTest() { - // TODO uncomment below to test the method and replace null with proper value - //List tags = null; - //var response = instance.FindPetsByTags(tags); - //Assert.IsType>(response); + List tags = new List(new String[] { "pet" }); + var response = instance.FindPetsByTags(tags); + Assert.IsType>(response); } - + /// /// Test GetPetById /// [Fact] public void GetPetByIdTest() { - // TODO uncomment below to test the method and replace null with proper value - //long petId = null; - //var response = instance.GetPetById(petId); - //Assert.IsType(response); + // set timeout to 10 seconds + Configuration c1 = new Configuration(); + c1.Timeout = TimeSpan.FromSeconds(10); + c1.UserAgent = "TEST_USER_AGENT"; + + HttpClient httpClient = new HttpClient(); + HttpClientHandler httpClientHandler = new HttpClientHandler(); + PetApi petApi = new PetApi(httpClient, c1, httpClientHandler); + Pet response = petApi.GetPetById(petId); + Assert.IsType(response); + + Assert.Equal("Csharp test", response.Name); + Assert.Equal(Pet.StatusEnum.Available, response.Status); + + Assert.IsType>(response.Tags); + Assert.Equal(petId, response.Tags[0].Id); + Assert.Equal("csharp sample tag name1", response.Tags[0].Name); + + Assert.IsType>(response.PhotoUrls); + Assert.Equal("sample photoUrls", response.PhotoUrls[0]); + + Assert.IsType(response.Category); + Assert.Equal(56, response.Category.Id); + Assert.Equal("sample category name2", response.Category.Name); + } + + /// + /// Test GetPetByIdAsync + /// + [Fact] + public void TestGetPetByIdAsync() + { + PetApi petApi = new PetApi(); + var task = petApi.GetPetByIdAsync(petId); + Pet response = task.Result; + Assert.IsType(response); + + Assert.Equal("Csharp test", response.Name); + Assert.Equal(Pet.StatusEnum.Available, response.Status); + + Assert.IsType>(response.Tags); + Assert.Equal(petId, response.Tags[0].Id); + Assert.Equal("csharp sample tag name1", response.Tags[0].Name); + + Assert.IsType>(response.PhotoUrls); + Assert.Equal("sample photoUrls", response.PhotoUrls[0]); + + Assert.IsType(response.Category); + Assert.Equal(56, response.Category.Id); + Assert.Equal("sample category name2", response.Category.Name); + } + + /// + /// Test GetPetById on a non-existent Id + /// + [Fact] + public void TestGetPetById_TestException() + { + PetApi petApi = new PetApi(); + + var exception = Assert.Throws(() => + { + petApi.GetPetById(notExistentPetId); + }); + + Assert.IsType(exception); + Assert.Equal(404, exception.ErrorCode); + Assert.Equal("{\"code\":1,\"type\":\"error\",\"message\":\"Pet not found\"}", exception.ErrorContent); + Assert.Equal("Error calling GetPetById: {\"code\":1,\"type\":\"error\",\"message\":\"Pet not found\"}", exception.Message); + } + + /* a simple test for binary response. no longer in use. + [Fact] + public void TestGetByIdBinaryResponse() + { + PetApi petApi = new PetApi(c1); + Stream response = petApi.GetPetByIdBinaryResponse(petId); + Assert.IsType(response); + StreamReader reader = new StreamReader(response); + // the following will fail for sure + //Assert.Equal("something", reader.ReadToEnd()); + } + */ + + /// + /// Test GetPetByIdWithHttpInfoAsync + /// + [Fact] + public void TestGetPetByIdWithHttpInfoAsync() + { + PetApi petApi = new PetApi(); + var task = petApi.GetPetByIdWithHttpInfoAsync(petId); + + Assert.Equal(200, (int)task.Result.StatusCode); + Assert.True(task.Result.Headers.ContainsKey("Content-Type")); + Assert.Equal("application/json", task.Result.Headers["Content-Type"][0]); + + Pet response = task.Result.Data; + Assert.IsType(response); + + Assert.Equal("Csharp test", response.Name); + Assert.Equal(Pet.StatusEnum.Available, response.Status); + + Assert.IsType>(response.Tags); + Assert.Equal(petId, response.Tags[0].Id); + Assert.Equal("csharp sample tag name1", response.Tags[0].Name); + + Assert.IsType>(response.PhotoUrls); + Assert.Equal("sample photoUrls", response.PhotoUrls[0]); + + Assert.IsType(response.Category); + Assert.Equal(56, response.Category.Id); + Assert.Equal("sample category name2", response.Category.Name); + } + + [Fact] + public void TestGetPetByIdWithHttpInfoAsync_Test404Response() + { + PetApi petApi = new PetApi(); + petApi.ExceptionFactory = null; + var response = petApi.GetPetByIdWithHttpInfoAsync(notExistentPetId).Result; + Pet result = response.Data; + + Assert.IsType>(response); + Assert.Equal(404, (int)response.StatusCode); + Assert.True(response.Headers.ContainsKey("Content-Type")); + Assert.Equal("application/json", response.Headers["Content-Type"][0]); + + Assert.Null(result); + Assert.Equal("{\"code\":1,\"type\":\"error\",\"message\":\"Pet not found\"}", response.RawContent); + Assert.Equal("Not Found", response.ErrorText); } /// @@ -119,37 +293,55 @@ public void GetPetByIdTest() public void UpdatePetTest() { // TODO uncomment below to test the method and replace null with proper value - //Pet pet = null; - //instance.UpdatePet(pet); + // create pet + Pet p = createPet(); + instance.UpdatePet(p); + } - + /// /// Test UpdatePetWithForm /// [Fact] public void UpdatePetWithFormTest() { - // TODO uncomment below to test the method and replace null with proper value - //long petId = null; - //string name = null; - //string status = null; - //instance.UpdatePetWithForm(petId, name, status); - } + PetApi petApi = new PetApi(); + petApi.UpdatePetWithForm(petId, "new form name", "pending"); + + Pet response = petApi.GetPetById(petId); + Assert.IsType(response); + Assert.IsType(response.Category); + Assert.IsType>(response.Tags); + Assert.Equal("new form name", response.Name); + Assert.Equal(Pet.StatusEnum.Pending, response.Status); + + Assert.Equal(petId, response.Tags[0].Id); + Assert.Equal(56, response.Category.Id); + + // test optional parameter + petApi.UpdatePetWithForm(petId, "new form name2"); + Pet response2 = petApi.GetPetById(petId); + Assert.Equal("new form name2", response2.Name); + } + /// /// Test UploadFile /// [Fact] public void UploadFileTest() { - // TODO uncomment below to test the method and replace null with proper value - //long petId = null; - //string additionalMetadata = null; - //FileParameter file = null; - //var response = instance.UploadFile(petId, additionalMetadata, file); - //Assert.IsType(response); - } + Assembly _assembly = Assembly.GetExecutingAssembly(); + Stream _imageStream = _assembly.GetManifestResourceStream("Org.OpenAPITools.Test.linux-logo.png"); + PetApi petApi = new PetApi(); + // test file upload with form parameters + petApi.UploadFile(petId, "new form name", _imageStream); + // test file upload without any form parameters + // using optional parameter syntax introduced at .net 4.0 + petApi.UploadFile(petId: petId, file: _imageStream); + } + /// /// Test UploadFileWithRequiredFile /// @@ -157,11 +349,47 @@ public void UploadFileTest() public void UploadFileWithRequiredFileTest() { // TODO uncomment below to test the method and replace null with proper value - //long petId = null; - //FileParameter requiredFile = null; + //long? petId = null; + //System.IO.Stream requiredFile = null; //string additionalMetadata = null; //var response = instance.UploadFileWithRequiredFile(petId, requiredFile, additionalMetadata); - //Assert.IsType(response); + //Assert.IsType (response, "response is ApiResponse"); + } + + /// + /// Test status code + /// + [Fact] + public void TestStatusCodeAndHeader() + { + PetApi petApi = new PetApi(); + var response = petApi.GetPetByIdWithHttpInfo(petId); + //Assert.Equal("OK", response.StatusCode); + Assert.Equal(200, (int)response.StatusCode); + Assert.True(response.Headers.ContainsKey("Content-Type")); + Assert.Equal("application/json", response.Headers["Content-Type"][0]); + } + + /// + /// Test default header (should be deprecated) + /// + [Fact] + public void TestDefaultHeader() + { + //PetApi petApi = new PetApi(); + // commented out the warning test below as it's confirmed the warning is working as expected + // there should be a warning for using AddDefaultHeader (deprecated) below + //petApi.AddDefaultHeader ("header_key", "header_value"); + // the following should be used instead as suggested in the doc + //petApi.Configuration.AddDefaultHeader("header_key2", "header_value2"); + } + + public void Dispose() + { + // remove the pet after testing + PetApi petApi = new PetApi(); + petApi.DeletePet(petId, "test key"); } } + } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ActivityOutputElementRepresentationTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ActivityOutputElementRepresentationTests.cs index b4bb73592031..f211a64884af 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ActivityOutputElementRepresentationTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ActivityOutputElementRepresentationTests.cs @@ -14,6 +14,7 @@ using System.Linq; using System.IO; using System.Collections.Generic; +using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,6 +55,7 @@ public void ActivityOutputElementRepresentationInstanceTest() //Assert.IsType(instance); } + /// /// Test the property 'Prop1' /// @@ -62,7 +64,6 @@ public void Prop1Test() { // TODO unit test for the property 'Prop1' } - /// /// Test the property 'Prop2' /// @@ -71,5 +72,7 @@ public void Prop2Test() { // TODO unit test for the property 'Prop2' } + } + } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ActivityTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ActivityTests.cs index 0b9efbd5a20b..afe9e846ee94 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ActivityTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ActivityTests.cs @@ -14,6 +14,7 @@ using System.Linq; using System.IO; using System.Collections.Generic; +using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,6 +55,7 @@ public void ActivityInstanceTest() //Assert.IsType(instance); } + /// /// Test the property 'ActivityOutputs' /// @@ -62,5 +64,7 @@ public void ActivityOutputsTest() { // TODO unit test for the property 'ActivityOutputs' } + } + } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesClassTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesClassTests.cs index d766719b5bce..9ab029ed0979 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesClassTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/AdditionalPropertiesClassTests.cs @@ -14,6 +14,7 @@ using System.Linq; using System.IO; using System.Collections.Generic; +using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,6 +55,7 @@ public void AdditionalPropertiesClassInstanceTest() //Assert.IsType(instance); } + /// /// Test the property 'MapProperty' /// @@ -62,7 +64,6 @@ public void MapPropertyTest() { // TODO unit test for the property 'MapProperty' } - /// /// Test the property 'MapOfMapProperty' /// @@ -71,7 +72,6 @@ public void MapOfMapPropertyTest() { // TODO unit test for the property 'MapOfMapProperty' } - /// /// Test the property 'Anytype1' /// @@ -80,7 +80,6 @@ public void Anytype1Test() { // TODO unit test for the property 'Anytype1' } - /// /// Test the property 'MapWithUndeclaredPropertiesAnytype1' /// @@ -89,7 +88,6 @@ public void MapWithUndeclaredPropertiesAnytype1Test() { // TODO unit test for the property 'MapWithUndeclaredPropertiesAnytype1' } - /// /// Test the property 'MapWithUndeclaredPropertiesAnytype2' /// @@ -98,7 +96,6 @@ public void MapWithUndeclaredPropertiesAnytype2Test() { // TODO unit test for the property 'MapWithUndeclaredPropertiesAnytype2' } - /// /// Test the property 'MapWithUndeclaredPropertiesAnytype3' /// @@ -107,7 +104,6 @@ public void MapWithUndeclaredPropertiesAnytype3Test() { // TODO unit test for the property 'MapWithUndeclaredPropertiesAnytype3' } - /// /// Test the property 'EmptyMap' /// @@ -116,7 +112,6 @@ public void EmptyMapTest() { // TODO unit test for the property 'EmptyMap' } - /// /// Test the property 'MapWithUndeclaredPropertiesString' /// @@ -125,5 +120,7 @@ public void MapWithUndeclaredPropertiesStringTest() { // TODO unit test for the property 'MapWithUndeclaredPropertiesString' } + } + } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/AnimalTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/AnimalTests.cs index 0bc46ab7f479..ced34a4faadd 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/AnimalTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/AnimalTests.cs @@ -14,6 +14,7 @@ using System.Linq; using System.IO; using System.Collections.Generic; +using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -63,7 +64,6 @@ public void CatDeserializeFromAnimalTest() // TODO uncomment below to test deserialize a Cat from type Animal //Assert.IsType(JsonConvert.DeserializeObject(new Cat().ToJson())); } - /// /// Test deserialize a Dog from type Animal /// @@ -82,7 +82,6 @@ public void ClassNameTest() { // TODO unit test for the property 'ClassName' } - /// /// Test the property 'Color' /// @@ -91,5 +90,7 @@ public void ColorTest() { // TODO unit test for the property 'Color' } + } + } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ApiResponseTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ApiResponseTests.cs index 901c6a02965e..2a2e098e6082 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ApiResponseTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ApiResponseTests.cs @@ -14,6 +14,7 @@ using System.Linq; using System.IO; using System.Collections.Generic; +using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,6 +55,7 @@ public void ApiResponseInstanceTest() //Assert.IsType(instance); } + /// /// Test the property 'Code' /// @@ -62,7 +64,6 @@ public void CodeTest() { // TODO unit test for the property 'Code' } - /// /// Test the property 'Type' /// @@ -71,7 +72,6 @@ public void TypeTest() { // TODO unit test for the property 'Type' } - /// /// Test the property 'Message' /// @@ -80,5 +80,7 @@ public void MessageTest() { // TODO unit test for the property 'Message' } + } + } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/AppleReqTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/AppleReqTests.cs index 94d06c61e236..f945f6593685 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/AppleReqTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/AppleReqTests.cs @@ -14,6 +14,7 @@ using System.Linq; using System.IO; using System.Collections.Generic; +using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,6 +55,7 @@ public void AppleReqInstanceTest() //Assert.IsType(instance); } + /// /// Test the property 'Cultivar' /// @@ -62,7 +64,6 @@ public void CultivarTest() { // TODO unit test for the property 'Cultivar' } - /// /// Test the property 'Mealy' /// @@ -71,5 +72,7 @@ public void MealyTest() { // TODO unit test for the property 'Mealy' } + } + } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/AppleTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/AppleTests.cs index b3aa7e34f8db..468d60184ada 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/AppleTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/AppleTests.cs @@ -14,6 +14,7 @@ using System.Linq; using System.IO; using System.Collections.Generic; +using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,6 +55,7 @@ public void AppleInstanceTest() //Assert.IsType(instance); } + /// /// Test the property 'Cultivar' /// @@ -62,7 +64,6 @@ public void CultivarTest() { // TODO unit test for the property 'Cultivar' } - /// /// Test the property 'Origin' /// @@ -72,13 +73,6 @@ public void OriginTest() // TODO unit test for the property 'Origin' } - /// - /// Test the property 'ColorCode' - /// - [Fact] - public void ColorCodeTest() - { - // TODO unit test for the property 'ColorCode' - } } + } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ArrayOfArrayOfNumberOnlyTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ArrayOfArrayOfNumberOnlyTests.cs index d52b1938e420..0b259d7d3916 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ArrayOfArrayOfNumberOnlyTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ArrayOfArrayOfNumberOnlyTests.cs @@ -14,6 +14,7 @@ using System.Linq; using System.IO; using System.Collections.Generic; +using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,6 +55,7 @@ public void ArrayOfArrayOfNumberOnlyInstanceTest() //Assert.IsType(instance); } + /// /// Test the property 'ArrayArrayNumber' /// @@ -62,5 +64,7 @@ public void ArrayArrayNumberTest() { // TODO unit test for the property 'ArrayArrayNumber' } + } + } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ArrayOfNumberOnlyTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ArrayOfNumberOnlyTests.cs index 421bfd6caeab..27f312ad25f5 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ArrayOfNumberOnlyTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ArrayOfNumberOnlyTests.cs @@ -14,6 +14,7 @@ using System.Linq; using System.IO; using System.Collections.Generic; +using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,6 +55,7 @@ public void ArrayOfNumberOnlyInstanceTest() //Assert.IsType(instance); } + /// /// Test the property 'ArrayNumber' /// @@ -62,5 +64,7 @@ public void ArrayNumberTest() { // TODO unit test for the property 'ArrayNumber' } + } + } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ArrayTestTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ArrayTestTests.cs index 5028c715b988..a433e8c87cf7 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ArrayTestTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ArrayTestTests.cs @@ -14,6 +14,7 @@ using System.Linq; using System.IO; using System.Collections.Generic; +using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,6 +55,7 @@ public void ArrayTestInstanceTest() //Assert.IsType(instance); } + /// /// Test the property 'ArrayOfString' /// @@ -62,7 +64,6 @@ public void ArrayOfStringTest() { // TODO unit test for the property 'ArrayOfString' } - /// /// Test the property 'ArrayArrayOfInteger' /// @@ -71,7 +72,6 @@ public void ArrayArrayOfIntegerTest() { // TODO unit test for the property 'ArrayArrayOfInteger' } - /// /// Test the property 'ArrayArrayOfModel' /// @@ -80,5 +80,7 @@ public void ArrayArrayOfModelTest() { // TODO unit test for the property 'ArrayArrayOfModel' } + } + } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/BananaReqTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/BananaReqTests.cs index 8242ff9e7969..8a6eeb82eeea 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/BananaReqTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/BananaReqTests.cs @@ -14,6 +14,7 @@ using System.Linq; using System.IO; using System.Collections.Generic; +using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,6 +55,7 @@ public void BananaReqInstanceTest() //Assert.IsType(instance); } + /// /// Test the property 'LengthCm' /// @@ -62,7 +64,6 @@ public void LengthCmTest() { // TODO unit test for the property 'LengthCm' } - /// /// Test the property 'Sweet' /// @@ -71,5 +72,7 @@ public void SweetTest() { // TODO unit test for the property 'Sweet' } + } + } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/BananaTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/BananaTests.cs index ddcea686eee8..8d8cc376b038 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/BananaTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/BananaTests.cs @@ -14,6 +14,7 @@ using System.Linq; using System.IO; using System.Collections.Generic; +using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,6 +55,7 @@ public void BananaInstanceTest() //Assert.IsType(instance); } + /// /// Test the property 'LengthCm' /// @@ -62,5 +64,7 @@ public void LengthCmTest() { // TODO unit test for the property 'LengthCm' } + } + } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/BasquePigTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/BasquePigTests.cs index 9cb45c006e64..3cdccaa75959 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/BasquePigTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/BasquePigTests.cs @@ -14,6 +14,7 @@ using System.Linq; using System.IO; using System.Collections.Generic; +using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,6 +55,7 @@ public void BasquePigInstanceTest() //Assert.IsType(instance); } + /// /// Test the property 'ClassName' /// @@ -62,5 +64,7 @@ public void ClassNameTest() { // TODO unit test for the property 'ClassName' } + } + } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/CapitalizationTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/CapitalizationTests.cs index 9e6a400d1ed1..185c83666fc7 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/CapitalizationTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/CapitalizationTests.cs @@ -14,6 +14,7 @@ using System.Linq; using System.IO; using System.Collections.Generic; +using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,6 +55,7 @@ public void CapitalizationInstanceTest() //Assert.IsType(instance); } + /// /// Test the property 'SmallCamel' /// @@ -62,7 +64,6 @@ public void SmallCamelTest() { // TODO unit test for the property 'SmallCamel' } - /// /// Test the property 'CapitalCamel' /// @@ -71,7 +72,6 @@ public void CapitalCamelTest() { // TODO unit test for the property 'CapitalCamel' } - /// /// Test the property 'SmallSnake' /// @@ -80,7 +80,6 @@ public void SmallSnakeTest() { // TODO unit test for the property 'SmallSnake' } - /// /// Test the property 'CapitalSnake' /// @@ -89,7 +88,6 @@ public void CapitalSnakeTest() { // TODO unit test for the property 'CapitalSnake' } - /// /// Test the property 'SCAETHFlowPoints' /// @@ -98,7 +96,6 @@ public void SCAETHFlowPointsTest() { // TODO unit test for the property 'SCAETHFlowPoints' } - /// /// Test the property 'ATT_NAME' /// @@ -107,5 +104,7 @@ public void ATT_NAMETest() { // TODO unit test for the property 'ATT_NAME' } + } + } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/CatTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/CatTests.cs index c1b10d32171b..701ba7602823 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/CatTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/CatTests.cs @@ -14,6 +14,7 @@ using System.Linq; using System.IO; using System.Collections.Generic; +using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,6 +55,7 @@ public void CatInstanceTest() //Assert.IsType(instance); } + /// /// Test the property 'Declawed' /// @@ -62,5 +64,7 @@ public void DeclawedTest() { // TODO unit test for the property 'Declawed' } + } + } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/CategoryTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/CategoryTests.cs index d1ef61862440..6ce48e601e47 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/CategoryTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/CategoryTests.cs @@ -14,6 +14,7 @@ using System.Linq; using System.IO; using System.Collections.Generic; +using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,6 +55,7 @@ public void CategoryInstanceTest() //Assert.IsType(instance); } + /// /// Test the property 'Id' /// @@ -62,7 +64,6 @@ public void IdTest() { // TODO unit test for the property 'Id' } - /// /// Test the property 'Name' /// @@ -71,5 +72,7 @@ public void NameTest() { // TODO unit test for the property 'Name' } + } + } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ChildCatTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ChildCatTests.cs index b40a42cb0225..68566fd8d560 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ChildCatTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ChildCatTests.cs @@ -14,6 +14,7 @@ using System.Linq; using System.IO; using System.Collections.Generic; +using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,6 +55,7 @@ public void ChildCatInstanceTest() //Assert.IsType(instance); } + /// /// Test the property 'Name' /// @@ -62,7 +64,6 @@ public void NameTest() { // TODO unit test for the property 'Name' } - /// /// Test the property 'PetType' /// @@ -71,5 +72,7 @@ public void PetTypeTest() { // TODO unit test for the property 'PetType' } + } + } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ClassModelTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ClassModelTests.cs index a09b95ab4c9c..d29472e83aaf 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ClassModelTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ClassModelTests.cs @@ -14,6 +14,7 @@ using System.Linq; using System.IO; using System.Collections.Generic; +using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,6 +55,7 @@ public void ClassModelInstanceTest() //Assert.IsType(instance); } + /// /// Test the property 'Class' /// @@ -62,5 +64,7 @@ public void ClassTest() { // TODO unit test for the property 'Class' } + } + } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ComplexQuadrilateralTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ComplexQuadrilateralTests.cs index 835c5b87bc6e..b3529280c8d6 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ComplexQuadrilateralTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ComplexQuadrilateralTests.cs @@ -14,6 +14,7 @@ using System.Linq; using System.IO; using System.Collections.Generic; +using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,6 +55,7 @@ public void ComplexQuadrilateralInstanceTest() //Assert.IsType(instance); } + /// /// Test the property 'ShapeType' /// @@ -62,7 +64,6 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } - /// /// Test the property 'QuadrilateralType' /// @@ -71,5 +72,7 @@ public void QuadrilateralTypeTest() { // TODO unit test for the property 'QuadrilateralType' } + } + } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/DanishPigTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/DanishPigTests.cs index 765496ea0ced..572d9bffa790 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/DanishPigTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/DanishPigTests.cs @@ -14,6 +14,7 @@ using System.Linq; using System.IO; using System.Collections.Generic; +using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,6 +55,7 @@ public void DanishPigInstanceTest() //Assert.IsType(instance); } + /// /// Test the property 'ClassName' /// @@ -62,5 +64,7 @@ public void ClassNameTest() { // TODO unit test for the property 'ClassName' } + } + } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/DateOnlyClassTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/DateOnlyClassTests.cs index 67be10782efd..3bd2b54a366a 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/DateOnlyClassTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/DateOnlyClassTests.cs @@ -14,6 +14,7 @@ using System.Linq; using System.IO; using System.Collections.Generic; +using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,6 +55,7 @@ public void DateOnlyClassInstanceTest() //Assert.IsType(instance); } + /// /// Test the property 'DateOnlyProperty' /// @@ -62,5 +64,7 @@ public void DateOnlyPropertyTest() { // TODO unit test for the property 'DateOnlyProperty' } + } + } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/DeprecatedObjectTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/DeprecatedObjectTests.cs index be6b35dbf451..1da5f4011c95 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/DeprecatedObjectTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/DeprecatedObjectTests.cs @@ -14,6 +14,7 @@ using System.Linq; using System.IO; using System.Collections.Generic; +using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,6 +55,7 @@ public void DeprecatedObjectInstanceTest() //Assert.IsType(instance); } + /// /// Test the property 'Name' /// @@ -62,5 +64,7 @@ public void NameTest() { // TODO unit test for the property 'Name' } + } + } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/DogTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/DogTests.cs index a00de64ef51a..992f93a51fd5 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/DogTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/DogTests.cs @@ -14,6 +14,7 @@ using System.Linq; using System.IO; using System.Collections.Generic; +using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,6 +55,7 @@ public void DogInstanceTest() //Assert.IsType(instance); } + /// /// Test the property 'Breed' /// @@ -62,5 +64,7 @@ public void BreedTest() { // TODO unit test for the property 'Breed' } + } + } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/DrawingTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/DrawingTests.cs index 3b1308e50513..0709ad9eeb3b 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/DrawingTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/DrawingTests.cs @@ -14,6 +14,7 @@ using System.Linq; using System.IO; using System.Collections.Generic; +using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,6 +55,7 @@ public void DrawingInstanceTest() //Assert.IsType(instance); } + /// /// Test the property 'MainShape' /// @@ -62,7 +64,6 @@ public void MainShapeTest() { // TODO unit test for the property 'MainShape' } - /// /// Test the property 'ShapeOrNull' /// @@ -71,7 +72,6 @@ public void ShapeOrNullTest() { // TODO unit test for the property 'ShapeOrNull' } - /// /// Test the property 'NullableShape' /// @@ -80,7 +80,6 @@ public void NullableShapeTest() { // TODO unit test for the property 'NullableShape' } - /// /// Test the property 'Shapes' /// @@ -89,5 +88,7 @@ public void ShapesTest() { // TODO unit test for the property 'Shapes' } + } + } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/EnumArraysTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/EnumArraysTests.cs index 6fcfa6f448c1..5779ca294775 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/EnumArraysTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/EnumArraysTests.cs @@ -14,6 +14,7 @@ using System.Linq; using System.IO; using System.Collections.Generic; +using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,6 +55,7 @@ public void EnumArraysInstanceTest() //Assert.IsType(instance); } + /// /// Test the property 'JustSymbol' /// @@ -62,7 +64,6 @@ public void JustSymbolTest() { // TODO unit test for the property 'JustSymbol' } - /// /// Test the property 'ArrayEnum' /// @@ -71,5 +72,7 @@ public void ArrayEnumTest() { // TODO unit test for the property 'ArrayEnum' } + } + } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/EnumClassTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/EnumClassTests.cs index bb46e292a652..a17738c5cbc5 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/EnumClassTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/EnumClassTests.cs @@ -14,6 +14,7 @@ using System.Linq; using System.IO; using System.Collections.Generic; +using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -53,5 +54,9 @@ public void EnumClassInstanceTest() // TODO uncomment below to test "IsType" EnumClass //Assert.IsType(instance); } + + + } + } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/EnumTestTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/EnumTestTests.cs index 3050af442410..4f81b845d493 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/EnumTestTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/EnumTestTests.cs @@ -14,6 +14,7 @@ using System.Linq; using System.IO; using System.Collections.Generic; +using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,6 +55,7 @@ public void EnumTestInstanceTest() //Assert.IsType(instance); } + /// /// Test the property 'EnumString' /// @@ -62,7 +64,6 @@ public void EnumStringTest() { // TODO unit test for the property 'EnumString' } - /// /// Test the property 'EnumStringRequired' /// @@ -71,7 +72,6 @@ public void EnumStringRequiredTest() { // TODO unit test for the property 'EnumStringRequired' } - /// /// Test the property 'EnumInteger' /// @@ -80,7 +80,6 @@ public void EnumIntegerTest() { // TODO unit test for the property 'EnumInteger' } - /// /// Test the property 'EnumIntegerOnly' /// @@ -89,7 +88,6 @@ public void EnumIntegerOnlyTest() { // TODO unit test for the property 'EnumIntegerOnly' } - /// /// Test the property 'EnumNumber' /// @@ -98,7 +96,6 @@ public void EnumNumberTest() { // TODO unit test for the property 'EnumNumber' } - /// /// Test the property 'OuterEnum' /// @@ -107,7 +104,6 @@ public void OuterEnumTest() { // TODO unit test for the property 'OuterEnum' } - /// /// Test the property 'OuterEnumInteger' /// @@ -116,7 +112,6 @@ public void OuterEnumIntegerTest() { // TODO unit test for the property 'OuterEnumInteger' } - /// /// Test the property 'OuterEnumDefaultValue' /// @@ -125,7 +120,6 @@ public void OuterEnumDefaultValueTest() { // TODO unit test for the property 'OuterEnumDefaultValue' } - /// /// Test the property 'OuterEnumIntegerDefaultValue' /// @@ -134,5 +128,7 @@ public void OuterEnumIntegerDefaultValueTest() { // TODO unit test for the property 'OuterEnumIntegerDefaultValue' } + } + } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/EquilateralTriangleTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/EquilateralTriangleTests.cs index 71d48f7e200a..4663cb667de6 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/EquilateralTriangleTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/EquilateralTriangleTests.cs @@ -14,6 +14,7 @@ using System.Linq; using System.IO; using System.Collections.Generic; +using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,6 +55,7 @@ public void EquilateralTriangleInstanceTest() //Assert.IsType(instance); } + /// /// Test the property 'ShapeType' /// @@ -62,7 +64,6 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } - /// /// Test the property 'TriangleType' /// @@ -71,5 +72,7 @@ public void TriangleTypeTest() { // TODO unit test for the property 'TriangleType' } + } + } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FileSchemaTestClassTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FileSchemaTestClassTests.cs index d89ad5a5bc7b..9f45b4fe89d5 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FileSchemaTestClassTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FileSchemaTestClassTests.cs @@ -14,6 +14,7 @@ using System.Linq; using System.IO; using System.Collections.Generic; +using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,6 +55,7 @@ public void FileSchemaTestClassInstanceTest() //Assert.IsType(instance); } + /// /// Test the property 'File' /// @@ -62,7 +64,6 @@ public void FileTest() { // TODO unit test for the property 'File' } - /// /// Test the property 'Files' /// @@ -71,5 +72,7 @@ public void FilesTest() { // TODO unit test for the property 'Files' } + } + } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FileTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FileTests.cs index 7eaea9c8786f..761bb72a844f 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FileTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FileTests.cs @@ -14,6 +14,7 @@ using System.Linq; using System.IO; using System.Collections.Generic; +using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,6 +55,7 @@ public void FileInstanceTest() //Assert.IsType(instance); } + /// /// Test the property 'SourceURI' /// @@ -62,5 +64,7 @@ public void SourceURITest() { // TODO unit test for the property 'SourceURI' } + } + } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FooGetDefaultResponseTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FooGetDefaultResponseTests.cs index 563269643111..0154d528418e 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FooGetDefaultResponseTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FooGetDefaultResponseTests.cs @@ -14,6 +14,7 @@ using System.Linq; using System.IO; using System.Collections.Generic; +using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,6 +55,7 @@ public void FooGetDefaultResponseInstanceTest() //Assert.IsType(instance); } + /// /// Test the property 'String' /// @@ -62,5 +64,7 @@ public void StringTest() { // TODO unit test for the property 'String' } + } + } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FooTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FooTests.cs index 52f87dd5b0e0..0b6ed52edbd4 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FooTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FooTests.cs @@ -14,6 +14,7 @@ using System.Linq; using System.IO; using System.Collections.Generic; +using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,6 +55,7 @@ public void FooInstanceTest() //Assert.IsType(instance); } + /// /// Test the property 'Bar' /// @@ -62,5 +64,7 @@ public void BarTest() { // TODO unit test for the property 'Bar' } + } + } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FormatTestTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FormatTestTests.cs index 611393395b3e..97332800e9af 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FormatTestTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FormatTestTests.cs @@ -14,6 +14,7 @@ using System.Linq; using System.IO; using System.Collections.Generic; +using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,6 +55,7 @@ public void FormatTestInstanceTest() //Assert.IsType(instance); } + /// /// Test the property 'Integer' /// @@ -62,7 +64,6 @@ public void IntegerTest() { // TODO unit test for the property 'Integer' } - /// /// Test the property 'Int32' /// @@ -71,61 +72,6 @@ public void Int32Test() { // TODO unit test for the property 'Int32' } - - /// - /// Test the property 'Int32Range' - /// - [Fact] - public void Int32RangeTest() - { - // TODO unit test for the property 'Int32Range' - } - - /// - /// Test the property 'Int64Positive' - /// - [Fact] - public void Int64PositiveTest() - { - // TODO unit test for the property 'Int64Positive' - } - - /// - /// Test the property 'Int64Negative' - /// - [Fact] - public void Int64NegativeTest() - { - // TODO unit test for the property 'Int64Negative' - } - - /// - /// Test the property 'Int64PositiveExclusive' - /// - [Fact] - public void Int64PositiveExclusiveTest() - { - // TODO unit test for the property 'Int64PositiveExclusive' - } - - /// - /// Test the property 'Int64NegativeExclusive' - /// - [Fact] - public void Int64NegativeExclusiveTest() - { - // TODO unit test for the property 'Int64NegativeExclusive' - } - - /// - /// Test the property 'UnsignedInteger' - /// - [Fact] - public void UnsignedIntegerTest() - { - // TODO unit test for the property 'UnsignedInteger' - } - /// /// Test the property 'Int64' /// @@ -134,16 +80,6 @@ public void Int64Test() { // TODO unit test for the property 'Int64' } - - /// - /// Test the property 'UnsignedLong' - /// - [Fact] - public void UnsignedLongTest() - { - // TODO unit test for the property 'UnsignedLong' - } - /// /// Test the property 'Number' /// @@ -152,7 +88,6 @@ public void NumberTest() { // TODO unit test for the property 'Number' } - /// /// Test the property 'Float' /// @@ -161,7 +96,6 @@ public void FloatTest() { // TODO unit test for the property 'Float' } - /// /// Test the property 'Double' /// @@ -170,7 +104,6 @@ public void DoubleTest() { // TODO unit test for the property 'Double' } - /// /// Test the property 'Decimal' /// @@ -179,7 +112,6 @@ public void DecimalTest() { // TODO unit test for the property 'Decimal' } - /// /// Test the property 'String' /// @@ -188,7 +120,6 @@ public void StringTest() { // TODO unit test for the property 'String' } - /// /// Test the property 'Byte' /// @@ -197,7 +128,6 @@ public void ByteTest() { // TODO unit test for the property 'Byte' } - /// /// Test the property 'Binary' /// @@ -206,7 +136,6 @@ public void BinaryTest() { // TODO unit test for the property 'Binary' } - /// /// Test the property 'Date' /// @@ -215,7 +144,6 @@ public void DateTest() { // TODO unit test for the property 'Date' } - /// /// Test the property 'DateTime' /// @@ -224,7 +152,6 @@ public void DateTimeTest() { // TODO unit test for the property 'DateTime' } - /// /// Test the property 'Uuid' /// @@ -233,7 +160,6 @@ public void UuidTest() { // TODO unit test for the property 'Uuid' } - /// /// Test the property 'Password' /// @@ -242,7 +168,6 @@ public void PasswordTest() { // TODO unit test for the property 'Password' } - /// /// Test the property 'PatternWithDigits' /// @@ -251,7 +176,6 @@ public void PatternWithDigitsTest() { // TODO unit test for the property 'PatternWithDigits' } - /// /// Test the property 'PatternWithDigitsAndDelimiter' /// @@ -261,13 +185,6 @@ public void PatternWithDigitsAndDelimiterTest() // TODO unit test for the property 'PatternWithDigitsAndDelimiter' } - /// - /// Test the property 'PatternWithBackslash' - /// - [Fact] - public void PatternWithBackslashTest() - { - // TODO unit test for the property 'PatternWithBackslash' - } } + } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FruitReqTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FruitReqTests.cs index 771ef1ae2c5d..5ea9e3ffc1d5 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FruitReqTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FruitReqTests.cs @@ -14,6 +14,7 @@ using System.Linq; using System.IO; using System.Collections.Generic; +using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,6 +55,7 @@ public void FruitReqInstanceTest() //Assert.IsType(instance); } + /// /// Test the property 'Cultivar' /// @@ -62,7 +64,6 @@ public void CultivarTest() { // TODO unit test for the property 'Cultivar' } - /// /// Test the property 'Mealy' /// @@ -71,7 +72,6 @@ public void MealyTest() { // TODO unit test for the property 'Mealy' } - /// /// Test the property 'LengthCm' /// @@ -80,7 +80,6 @@ public void LengthCmTest() { // TODO unit test for the property 'LengthCm' } - /// /// Test the property 'Sweet' /// @@ -89,5 +88,7 @@ public void SweetTest() { // TODO unit test for the property 'Sweet' } + } + } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FruitTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FruitTests.cs index 53881a333193..91e069bb42fa 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FruitTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/FruitTests.cs @@ -14,6 +14,7 @@ using System.Linq; using System.IO; using System.Collections.Generic; +using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,6 +55,7 @@ public void FruitInstanceTest() //Assert.IsType(instance); } + /// /// Test the property 'Color' /// @@ -62,7 +64,6 @@ public void ColorTest() { // TODO unit test for the property 'Color' } - /// /// Test the property 'Cultivar' /// @@ -71,7 +72,6 @@ public void CultivarTest() { // TODO unit test for the property 'Cultivar' } - /// /// Test the property 'Origin' /// @@ -80,16 +80,6 @@ public void OriginTest() { // TODO unit test for the property 'Origin' } - - /// - /// Test the property 'ColorCode' - /// - [Fact] - public void ColorCodeTest() - { - // TODO unit test for the property 'ColorCode' - } - /// /// Test the property 'LengthCm' /// @@ -98,5 +88,7 @@ public void LengthCmTest() { // TODO unit test for the property 'LengthCm' } + } + } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/GmFruitTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/GmFruitTests.cs index 6322d4e2a721..08fb0e07a1c8 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/GmFruitTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/GmFruitTests.cs @@ -14,6 +14,7 @@ using System.Linq; using System.IO; using System.Collections.Generic; +using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,6 +55,7 @@ public void GmFruitInstanceTest() //Assert.IsType(instance); } + /// /// Test the property 'Color' /// @@ -62,7 +64,6 @@ public void ColorTest() { // TODO unit test for the property 'Color' } - /// /// Test the property 'Cultivar' /// @@ -71,7 +72,6 @@ public void CultivarTest() { // TODO unit test for the property 'Cultivar' } - /// /// Test the property 'Origin' /// @@ -80,16 +80,6 @@ public void OriginTest() { // TODO unit test for the property 'Origin' } - - /// - /// Test the property 'ColorCode' - /// - [Fact] - public void ColorCodeTest() - { - // TODO unit test for the property 'ColorCode' - } - /// /// Test the property 'LengthCm' /// @@ -98,5 +88,7 @@ public void LengthCmTest() { // TODO unit test for the property 'LengthCm' } + } + } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/GrandparentAnimalTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/GrandparentAnimalTests.cs index 3adc2a0573e7..faa4930944be 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/GrandparentAnimalTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/GrandparentAnimalTests.cs @@ -14,6 +14,7 @@ using System.Linq; using System.IO; using System.Collections.Generic; +using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -63,7 +64,6 @@ public void ChildCatDeserializeFromParentPetTest() // TODO uncomment below to test deserialize a ChildCat from type ParentPet //Assert.IsType(JsonConvert.DeserializeObject(new ChildCat().ToJson())); } - /// /// Test deserialize a ParentPet from type GrandparentAnimal /// @@ -82,5 +82,7 @@ public void PetTypeTest() { // TODO unit test for the property 'PetType' } + } + } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/HasOnlyReadOnlyTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/HasOnlyReadOnlyTests.cs index 69abe3f9e6ad..651a9f0ce30c 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/HasOnlyReadOnlyTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/HasOnlyReadOnlyTests.cs @@ -14,6 +14,7 @@ using System.Linq; using System.IO; using System.Collections.Generic; +using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,6 +55,7 @@ public void HasOnlyReadOnlyInstanceTest() //Assert.IsType(instance); } + /// /// Test the property 'Bar' /// @@ -62,7 +64,6 @@ public void BarTest() { // TODO unit test for the property 'Bar' } - /// /// Test the property 'Foo' /// @@ -71,5 +72,7 @@ public void FooTest() { // TODO unit test for the property 'Foo' } + } + } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/HealthCheckResultTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/HealthCheckResultTests.cs index 794fda2c2d6d..857190a3334d 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/HealthCheckResultTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/HealthCheckResultTests.cs @@ -14,6 +14,7 @@ using System.Linq; using System.IO; using System.Collections.Generic; +using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,6 +55,7 @@ public void HealthCheckResultInstanceTest() //Assert.IsType(instance); } + /// /// Test the property 'NullableMessage' /// @@ -62,5 +64,7 @@ public void NullableMessageTest() { // TODO unit test for the property 'NullableMessage' } + } + } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/IsoscelesTriangleTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/IsoscelesTriangleTests.cs index ca8a058e37df..755c417cc54f 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/IsoscelesTriangleTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/IsoscelesTriangleTests.cs @@ -14,6 +14,7 @@ using System.Linq; using System.IO; using System.Collections.Generic; +using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,6 +55,7 @@ public void IsoscelesTriangleInstanceTest() //Assert.IsType(instance); } + /// /// Test the property 'ShapeType' /// @@ -62,7 +64,6 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } - /// /// Test the property 'TriangleType' /// @@ -71,5 +72,7 @@ public void TriangleTypeTest() { // TODO unit test for the property 'TriangleType' } + } + } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ListTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ListTests.cs index d659080e89c9..2ed828d05208 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ListTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ListTests.cs @@ -14,6 +14,7 @@ using System.Linq; using System.IO; using System.Collections.Generic; +using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,13 +55,16 @@ public void ListInstanceTest() //Assert.IsType(instance); } + /// - /// Test the property 'Var123List' + /// Test the property '_123List' /// [Fact] - public void Var123ListTest() + public void _123ListTest() { - // TODO unit test for the property 'Var123List' + // TODO unit test for the property '_123List' } + } + } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/LiteralStringClassTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/LiteralStringClassTests.cs index 58dc425228ff..74dc17b9f4a1 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/LiteralStringClassTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/LiteralStringClassTests.cs @@ -54,6 +54,7 @@ public void LiteralStringClassInstanceTest() //Assert.IsType(instance); } + /// /// Test the property 'EscapedLiteralString' /// @@ -62,7 +63,6 @@ public void EscapedLiteralStringTest() { // TODO unit test for the property 'EscapedLiteralString' } - /// /// Test the property 'UnescapedLiteralString' /// @@ -71,5 +71,7 @@ public void UnescapedLiteralStringTest() { // TODO unit test for the property 'UnescapedLiteralString' } + } + } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/MammalTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/MammalTests.cs index 3fdadd19646c..7b46cbf06450 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/MammalTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/MammalTests.cs @@ -14,6 +14,7 @@ using System.Linq; using System.IO; using System.Collections.Generic; +using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,6 +55,7 @@ public void MammalInstanceTest() //Assert.IsType(instance); } + /// /// Test the property 'HasBaleen' /// @@ -62,7 +64,6 @@ public void HasBaleenTest() { // TODO unit test for the property 'HasBaleen' } - /// /// Test the property 'HasTeeth' /// @@ -71,7 +72,6 @@ public void HasTeethTest() { // TODO unit test for the property 'HasTeeth' } - /// /// Test the property 'ClassName' /// @@ -80,7 +80,6 @@ public void ClassNameTest() { // TODO unit test for the property 'ClassName' } - /// /// Test the property 'Type' /// @@ -89,5 +88,7 @@ public void TypeTest() { // TODO unit test for the property 'Type' } + } + } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/MapTestTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/MapTestTests.cs index e055027f15bf..20036e1c905e 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/MapTestTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/MapTestTests.cs @@ -14,6 +14,7 @@ using System.Linq; using System.IO; using System.Collections.Generic; +using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,6 +55,7 @@ public void MapTestInstanceTest() //Assert.IsType(instance); } + /// /// Test the property 'MapMapOfString' /// @@ -62,7 +64,6 @@ public void MapMapOfStringTest() { // TODO unit test for the property 'MapMapOfString' } - /// /// Test the property 'MapOfEnumString' /// @@ -71,7 +72,6 @@ public void MapOfEnumStringTest() { // TODO unit test for the property 'MapOfEnumString' } - /// /// Test the property 'DirectMap' /// @@ -80,7 +80,6 @@ public void DirectMapTest() { // TODO unit test for the property 'DirectMap' } - /// /// Test the property 'IndirectMap' /// @@ -89,5 +88,7 @@ public void IndirectMapTest() { // TODO unit test for the property 'IndirectMap' } + } + } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/MixedPropertiesAndAdditionalPropertiesClassTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/MixedPropertiesAndAdditionalPropertiesClassTests.cs index 07c592a8a4c0..f56cd715f45f 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/MixedPropertiesAndAdditionalPropertiesClassTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/MixedPropertiesAndAdditionalPropertiesClassTests.cs @@ -14,6 +14,7 @@ using System.Linq; using System.IO; using System.Collections.Generic; +using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,14 +55,6 @@ public void MixedPropertiesAndAdditionalPropertiesClassInstanceTest() //Assert.IsType(instance); } - /// - /// Test the property 'UuidWithPattern' - /// - [Fact] - public void UuidWithPatternTest() - { - // TODO unit test for the property 'UuidWithPattern' - } /// /// Test the property 'Uuid' @@ -71,7 +64,6 @@ public void UuidTest() { // TODO unit test for the property 'Uuid' } - /// /// Test the property 'DateTime' /// @@ -80,7 +72,6 @@ public void DateTimeTest() { // TODO unit test for the property 'DateTime' } - /// /// Test the property 'Map' /// @@ -89,5 +80,7 @@ public void MapTest() { // TODO unit test for the property 'Map' } + } + } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/Model200ResponseTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/Model200ResponseTests.cs index 85be687d5c2b..e25478618f20 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/Model200ResponseTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/Model200ResponseTests.cs @@ -14,6 +14,7 @@ using System.Linq; using System.IO; using System.Collections.Generic; +using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,6 +55,7 @@ public void Model200ResponseInstanceTest() //Assert.IsType(instance); } + /// /// Test the property 'Name' /// @@ -62,7 +64,6 @@ public void NameTest() { // TODO unit test for the property 'Name' } - /// /// Test the property 'Class' /// @@ -71,5 +72,7 @@ public void ClassTest() { // TODO unit test for the property 'Class' } + } + } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ModelClientTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ModelClientTests.cs index a5f4aa1593e1..24a9e2631586 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ModelClientTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ModelClientTests.cs @@ -14,6 +14,7 @@ using System.Linq; using System.IO; using System.Collections.Generic; +using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,13 +55,16 @@ public void ModelClientInstanceTest() //Assert.IsType(instance); } + /// - /// Test the property 'VarClient' + /// Test the property '_Client' /// [Fact] - public void VarClientTest() + public void _ClientTest() { - // TODO unit test for the property 'VarClient' + // TODO unit test for the property '_Client' } + } + } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/NameTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/NameTests.cs index fc1756b66bec..c390049e66dc 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/NameTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/NameTests.cs @@ -14,6 +14,7 @@ using System.Linq; using System.IO; using System.Collections.Generic; +using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,15 +55,15 @@ public void NameInstanceTest() //Assert.IsType(instance); } + /// - /// Test the property 'VarName' + /// Test the property '_Name' /// [Fact] - public void VarNameTest() + public void _NameTest() { - // TODO unit test for the property 'VarName' + // TODO unit test for the property '_Name' } - /// /// Test the property 'SnakeCase' /// @@ -71,7 +72,6 @@ public void SnakeCaseTest() { // TODO unit test for the property 'SnakeCase' } - /// /// Test the property 'Property' /// @@ -80,14 +80,15 @@ public void PropertyTest() { // TODO unit test for the property 'Property' } - /// - /// Test the property 'Var123Number' + /// Test the property '_123Number' /// [Fact] - public void Var123NumberTest() + public void _123NumberTest() { - // TODO unit test for the property 'Var123Number' + // TODO unit test for the property '_123Number' } + } + } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/NullableClassTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/NullableClassTests.cs index 214795f86c27..8f00505612a9 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/NullableClassTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/NullableClassTests.cs @@ -14,6 +14,7 @@ using System.Linq; using System.IO; using System.Collections.Generic; +using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,6 +55,7 @@ public void NullableClassInstanceTest() //Assert.IsType(instance); } + /// /// Test the property 'IntegerProp' /// @@ -62,7 +64,6 @@ public void IntegerPropTest() { // TODO unit test for the property 'IntegerProp' } - /// /// Test the property 'NumberProp' /// @@ -71,7 +72,6 @@ public void NumberPropTest() { // TODO unit test for the property 'NumberProp' } - /// /// Test the property 'BooleanProp' /// @@ -80,7 +80,6 @@ public void BooleanPropTest() { // TODO unit test for the property 'BooleanProp' } - /// /// Test the property 'StringProp' /// @@ -89,7 +88,6 @@ public void StringPropTest() { // TODO unit test for the property 'StringProp' } - /// /// Test the property 'DateProp' /// @@ -98,7 +96,6 @@ public void DatePropTest() { // TODO unit test for the property 'DateProp' } - /// /// Test the property 'DatetimeProp' /// @@ -107,7 +104,6 @@ public void DatetimePropTest() { // TODO unit test for the property 'DatetimeProp' } - /// /// Test the property 'ArrayNullableProp' /// @@ -116,7 +112,6 @@ public void ArrayNullablePropTest() { // TODO unit test for the property 'ArrayNullableProp' } - /// /// Test the property 'ArrayAndItemsNullableProp' /// @@ -125,7 +120,6 @@ public void ArrayAndItemsNullablePropTest() { // TODO unit test for the property 'ArrayAndItemsNullableProp' } - /// /// Test the property 'ArrayItemsNullable' /// @@ -134,7 +128,6 @@ public void ArrayItemsNullableTest() { // TODO unit test for the property 'ArrayItemsNullable' } - /// /// Test the property 'ObjectNullableProp' /// @@ -143,7 +136,6 @@ public void ObjectNullablePropTest() { // TODO unit test for the property 'ObjectNullableProp' } - /// /// Test the property 'ObjectAndItemsNullableProp' /// @@ -152,7 +144,6 @@ public void ObjectAndItemsNullablePropTest() { // TODO unit test for the property 'ObjectAndItemsNullableProp' } - /// /// Test the property 'ObjectItemsNullable' /// @@ -161,5 +152,7 @@ public void ObjectItemsNullableTest() { // TODO unit test for the property 'ObjectItemsNullable' } + } + } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/NullableGuidClassTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/NullableGuidClassTests.cs index 1290072514cd..0bc0ea369188 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/NullableGuidClassTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/NullableGuidClassTests.cs @@ -14,6 +14,7 @@ using System.Linq; using System.IO; using System.Collections.Generic; +using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,6 +55,7 @@ public void NullableGuidClassInstanceTest() //Assert.IsType(instance); } + /// /// Test the property 'Uuid' /// @@ -62,5 +64,7 @@ public void UuidTest() { // TODO unit test for the property 'Uuid' } + } + } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/NullableShapeTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/NullableShapeTests.cs index 75e9c7e8fd49..5662f91d6e64 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/NullableShapeTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/NullableShapeTests.cs @@ -14,6 +14,7 @@ using System.Linq; using System.IO; using System.Collections.Generic; +using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,6 +55,7 @@ public void NullableShapeInstanceTest() //Assert.IsType(instance); } + /// /// Test the property 'ShapeType' /// @@ -62,7 +64,6 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } - /// /// Test the property 'QuadrilateralType' /// @@ -71,5 +72,7 @@ public void QuadrilateralTypeTest() { // TODO unit test for the property 'QuadrilateralType' } + } + } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/NumberOnlyTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/NumberOnlyTests.cs index 2fb06f9afb48..3a06cb020b2a 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/NumberOnlyTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/NumberOnlyTests.cs @@ -14,6 +14,7 @@ using System.Linq; using System.IO; using System.Collections.Generic; +using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,6 +55,7 @@ public void NumberOnlyInstanceTest() //Assert.IsType(instance); } + /// /// Test the property 'JustNumber' /// @@ -62,5 +64,7 @@ public void JustNumberTest() { // TODO unit test for the property 'JustNumber' } + } + } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ObjectWithDeprecatedFieldsTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ObjectWithDeprecatedFieldsTests.cs index e90b746d19c6..82f93fab48c5 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ObjectWithDeprecatedFieldsTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ObjectWithDeprecatedFieldsTests.cs @@ -14,6 +14,7 @@ using System.Linq; using System.IO; using System.Collections.Generic; +using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,6 +55,7 @@ public void ObjectWithDeprecatedFieldsInstanceTest() //Assert.IsType(instance); } + /// /// Test the property 'Uuid' /// @@ -62,7 +64,6 @@ public void UuidTest() { // TODO unit test for the property 'Uuid' } - /// /// Test the property 'Id' /// @@ -71,7 +72,6 @@ public void IdTest() { // TODO unit test for the property 'Id' } - /// /// Test the property 'DeprecatedRef' /// @@ -80,7 +80,6 @@ public void DeprecatedRefTest() { // TODO unit test for the property 'DeprecatedRef' } - /// /// Test the property 'Bars' /// @@ -89,5 +88,7 @@ public void BarsTest() { // TODO unit test for the property 'Bars' } + } + } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OneOfStringTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OneOfStringTests.cs index 04727e77c691..75bd7cd9bfd0 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OneOfStringTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OneOfStringTests.cs @@ -53,5 +53,9 @@ public void OneOfStringInstanceTest() // TODO uncomment below to test "IsType" OneOfString //Assert.IsType(instance); } + + + } + } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OrderTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OrderTests.cs index 84d2828b367f..cf5c561c5476 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OrderTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OrderTests.cs @@ -14,6 +14,7 @@ using System.Linq; using System.IO; using System.Collections.Generic; +using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,6 +55,7 @@ public void OrderInstanceTest() //Assert.IsType(instance); } + /// /// Test the property 'Id' /// @@ -62,7 +64,6 @@ public void IdTest() { // TODO unit test for the property 'Id' } - /// /// Test the property 'PetId' /// @@ -71,7 +72,6 @@ public void PetIdTest() { // TODO unit test for the property 'PetId' } - /// /// Test the property 'Quantity' /// @@ -80,7 +80,6 @@ public void QuantityTest() { // TODO unit test for the property 'Quantity' } - /// /// Test the property 'ShipDate' /// @@ -89,7 +88,6 @@ public void ShipDateTest() { // TODO unit test for the property 'ShipDate' } - /// /// Test the property 'Status' /// @@ -98,7 +96,6 @@ public void StatusTest() { // TODO unit test for the property 'Status' } - /// /// Test the property 'Complete' /// @@ -107,5 +104,7 @@ public void CompleteTest() { // TODO unit test for the property 'Complete' } + } + } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OuterCompositeTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OuterCompositeTests.cs index fd52fa2cfca7..2efda0db59c4 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OuterCompositeTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OuterCompositeTests.cs @@ -14,6 +14,7 @@ using System.Linq; using System.IO; using System.Collections.Generic; +using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,6 +55,7 @@ public void OuterCompositeInstanceTest() //Assert.IsType(instance); } + /// /// Test the property 'MyNumber' /// @@ -62,7 +64,6 @@ public void MyNumberTest() { // TODO unit test for the property 'MyNumber' } - /// /// Test the property 'MyString' /// @@ -71,7 +72,6 @@ public void MyStringTest() { // TODO unit test for the property 'MyString' } - /// /// Test the property 'MyBoolean' /// @@ -80,5 +80,7 @@ public void MyBooleanTest() { // TODO unit test for the property 'MyBoolean' } + } + } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumDefaultValueTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumDefaultValueTests.cs index db98c5a44ae3..986fff774c46 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumDefaultValueTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumDefaultValueTests.cs @@ -14,6 +14,7 @@ using System.Linq; using System.IO; using System.Collections.Generic; +using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -53,5 +54,9 @@ public void OuterEnumDefaultValueInstanceTest() // TODO uncomment below to test "IsType" OuterEnumDefaultValue //Assert.IsType(instance); } + + + } + } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerDefaultValueTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerDefaultValueTests.cs index a4c028ea750d..015d5dab945e 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerDefaultValueTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerDefaultValueTests.cs @@ -14,6 +14,7 @@ using System.Linq; using System.IO; using System.Collections.Generic; +using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -53,5 +54,9 @@ public void OuterEnumIntegerDefaultValueInstanceTest() // TODO uncomment below to test "IsType" OuterEnumIntegerDefaultValue //Assert.IsType(instance); } + + + } + } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerTests.cs index 4d1be408011e..385e899110a4 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumIntegerTests.cs @@ -14,6 +14,7 @@ using System.Linq; using System.IO; using System.Collections.Generic; +using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -53,5 +54,9 @@ public void OuterEnumIntegerInstanceTest() // TODO uncomment below to test "IsType" OuterEnumInteger //Assert.IsType(instance); } + + + } + } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumTests.cs index d4d6e96125d9..f47304767b9e 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/OuterEnumTests.cs @@ -14,6 +14,7 @@ using System.Linq; using System.IO; using System.Collections.Generic; +using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -53,5 +54,9 @@ public void OuterEnumInstanceTest() // TODO uncomment below to test "IsType" OuterEnum //Assert.IsType(instance); } + + + } + } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ParentPetTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ParentPetTests.cs index eb9f5956b215..1e17568ed331 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ParentPetTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ParentPetTests.cs @@ -14,6 +14,7 @@ using System.Linq; using System.IO; using System.Collections.Generic; +using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -63,5 +64,8 @@ public void ChildCatDeserializeFromParentPetTest() // TODO uncomment below to test deserialize a ChildCat from type ParentPet //Assert.IsType(JsonConvert.DeserializeObject(new ChildCat().ToJson())); } + + } + } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/PetTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/PetTests.cs index 535ab69d2aa2..154e66f8dfc0 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/PetTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/PetTests.cs @@ -14,6 +14,7 @@ using System.Linq; using System.IO; using System.Collections.Generic; +using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,6 +55,7 @@ public void PetInstanceTest() //Assert.IsType(instance); } + /// /// Test the property 'Id' /// @@ -62,7 +64,6 @@ public void IdTest() { // TODO unit test for the property 'Id' } - /// /// Test the property 'Category' /// @@ -71,7 +72,6 @@ public void CategoryTest() { // TODO unit test for the property 'Category' } - /// /// Test the property 'Name' /// @@ -80,7 +80,6 @@ public void NameTest() { // TODO unit test for the property 'Name' } - /// /// Test the property 'PhotoUrls' /// @@ -89,7 +88,6 @@ public void PhotoUrlsTest() { // TODO unit test for the property 'PhotoUrls' } - /// /// Test the property 'Tags' /// @@ -98,7 +96,6 @@ public void TagsTest() { // TODO unit test for the property 'Tags' } - /// /// Test the property 'Status' /// @@ -107,5 +104,7 @@ public void StatusTest() { // TODO unit test for the property 'Status' } + } + } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/PigTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/PigTests.cs index 34562dc6860f..55cf2189046b 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/PigTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/PigTests.cs @@ -14,6 +14,7 @@ using System.Linq; using System.IO; using System.Collections.Generic; +using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,6 +55,7 @@ public void PigInstanceTest() //Assert.IsType(instance); } + /// /// Test the property 'ClassName' /// @@ -62,5 +64,7 @@ public void ClassNameTest() { // TODO unit test for the property 'ClassName' } + } + } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/PolymorphicPropertyTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/PolymorphicPropertyTests.cs index a546cd2b0032..eff3c6ddc9bb 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/PolymorphicPropertyTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/PolymorphicPropertyTests.cs @@ -14,6 +14,7 @@ using System.Linq; using System.IO; using System.Collections.Generic; +using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -53,5 +54,9 @@ public void PolymorphicPropertyInstanceTest() // TODO uncomment below to test "IsType" PolymorphicProperty //Assert.IsType(instance); } + + + } + } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/QuadrilateralInterfaceTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/QuadrilateralInterfaceTests.cs index d08798b36050..6eef9f4c816d 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/QuadrilateralInterfaceTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/QuadrilateralInterfaceTests.cs @@ -14,6 +14,7 @@ using System.Linq; using System.IO; using System.Collections.Generic; +using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,6 +55,7 @@ public void QuadrilateralInterfaceInstanceTest() //Assert.IsType(instance); } + /// /// Test the property 'QuadrilateralType' /// @@ -62,5 +64,7 @@ public void QuadrilateralTypeTest() { // TODO unit test for the property 'QuadrilateralType' } + } + } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/QuadrilateralTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/QuadrilateralTests.cs index cd996d7e0edf..26826681a478 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/QuadrilateralTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/QuadrilateralTests.cs @@ -14,6 +14,7 @@ using System.Linq; using System.IO; using System.Collections.Generic; +using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,6 +55,7 @@ public void QuadrilateralInstanceTest() //Assert.IsType(instance); } + /// /// Test the property 'ShapeType' /// @@ -62,7 +64,6 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } - /// /// Test the property 'QuadrilateralType' /// @@ -71,5 +72,7 @@ public void QuadrilateralTypeTest() { // TODO unit test for the property 'QuadrilateralType' } + } + } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ReadOnlyFirstTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ReadOnlyFirstTests.cs index 056bc2b4519c..dc3d0fad54cd 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ReadOnlyFirstTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ReadOnlyFirstTests.cs @@ -14,6 +14,7 @@ using System.Linq; using System.IO; using System.Collections.Generic; +using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,6 +55,7 @@ public void ReadOnlyFirstInstanceTest() //Assert.IsType(instance); } + /// /// Test the property 'Bar' /// @@ -62,7 +64,6 @@ public void BarTest() { // TODO unit test for the property 'Bar' } - /// /// Test the property 'Baz' /// @@ -71,5 +72,7 @@ public void BazTest() { // TODO unit test for the property 'Baz' } + } + } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ReturnTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ReturnTests.cs index d2dc7ce4a7e1..c8c1d6510d2f 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ReturnTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ReturnTests.cs @@ -14,6 +14,7 @@ using System.Linq; using System.IO; using System.Collections.Generic; +using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,40 +55,16 @@ public void ReturnInstanceTest() //Assert.IsType(instance); } - /// - /// Test the property 'VarReturn' - /// - [Fact] - public void VarReturnTest() - { - // TODO unit test for the property 'VarReturn' - } /// - /// Test the property 'Lock' + /// Test the property '_Return' /// [Fact] - public void LockTest() + public void _ReturnTest() { - // TODO unit test for the property 'Lock' + // TODO unit test for the property '_Return' } - /// - /// Test the property 'Abstract' - /// - [Fact] - public void AbstractTest() - { - // TODO unit test for the property 'Abstract' - } - - /// - /// Test the property 'Unsafe' - /// - [Fact] - public void UnsafeTest() - { - // TODO unit test for the property 'Unsafe' - } } + } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ScaleneTriangleTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ScaleneTriangleTests.cs index a7332ab47b03..04cb9f1ab6b1 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ScaleneTriangleTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ScaleneTriangleTests.cs @@ -14,6 +14,7 @@ using System.Linq; using System.IO; using System.Collections.Generic; +using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,6 +55,7 @@ public void ScaleneTriangleInstanceTest() //Assert.IsType(instance); } + /// /// Test the property 'ShapeType' /// @@ -62,7 +64,6 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } - /// /// Test the property 'TriangleType' /// @@ -71,5 +72,7 @@ public void TriangleTypeTest() { // TODO unit test for the property 'TriangleType' } + } + } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ShapeInterfaceTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ShapeInterfaceTests.cs index e082fb3b4faa..7bd0bc86f963 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ShapeInterfaceTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ShapeInterfaceTests.cs @@ -14,6 +14,7 @@ using System.Linq; using System.IO; using System.Collections.Generic; +using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,6 +55,7 @@ public void ShapeInterfaceInstanceTest() //Assert.IsType(instance); } + /// /// Test the property 'ShapeType' /// @@ -62,5 +64,7 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } + } + } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ShapeOrNullTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ShapeOrNullTests.cs index b70c157800b5..d0af114157c9 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ShapeOrNullTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ShapeOrNullTests.cs @@ -14,6 +14,7 @@ using System.Linq; using System.IO; using System.Collections.Generic; +using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,6 +55,7 @@ public void ShapeOrNullInstanceTest() //Assert.IsType(instance); } + /// /// Test the property 'ShapeType' /// @@ -62,7 +64,6 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } - /// /// Test the property 'QuadrilateralType' /// @@ -71,5 +72,7 @@ public void QuadrilateralTypeTest() { // TODO unit test for the property 'QuadrilateralType' } + } + } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ShapeTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ShapeTests.cs index babd94722cfb..b01bd531f857 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ShapeTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ShapeTests.cs @@ -14,6 +14,7 @@ using System.Linq; using System.IO; using System.Collections.Generic; +using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,6 +55,7 @@ public void ShapeInstanceTest() //Assert.IsType(instance); } + /// /// Test the property 'ShapeType' /// @@ -62,7 +64,6 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } - /// /// Test the property 'QuadrilateralType' /// @@ -71,5 +72,7 @@ public void QuadrilateralTypeTest() { // TODO unit test for the property 'QuadrilateralType' } + } + } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/SimpleQuadrilateralTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/SimpleQuadrilateralTests.cs index 24f0288bcac4..6648e9809281 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/SimpleQuadrilateralTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/SimpleQuadrilateralTests.cs @@ -14,6 +14,7 @@ using System.Linq; using System.IO; using System.Collections.Generic; +using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,6 +55,7 @@ public void SimpleQuadrilateralInstanceTest() //Assert.IsType(instance); } + /// /// Test the property 'ShapeType' /// @@ -62,7 +64,6 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } - /// /// Test the property 'QuadrilateralType' /// @@ -71,5 +72,7 @@ public void QuadrilateralTypeTest() { // TODO unit test for the property 'QuadrilateralType' } + } + } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/SpecialModelNameTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/SpecialModelNameTests.cs index ef8a8d50e3ee..0f0e1ff12a9e 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/SpecialModelNameTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/SpecialModelNameTests.cs @@ -14,6 +14,7 @@ using System.Linq; using System.IO; using System.Collections.Generic; +using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,6 +55,7 @@ public void SpecialModelNameInstanceTest() //Assert.IsType(instance); } + /// /// Test the property 'SpecialPropertyName' /// @@ -62,14 +64,15 @@ public void SpecialPropertyNameTest() { // TODO unit test for the property 'SpecialPropertyName' } - /// - /// Test the property 'VarSpecialModelName' + /// Test the property '_SpecialModelName' /// [Fact] - public void VarSpecialModelNameTest() + public void _SpecialModelNameTest() { - // TODO unit test for the property 'VarSpecialModelName' + // TODO unit test for the property '_SpecialModelName' } + } + } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/TagTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/TagTests.cs index 8f9ad604eab9..6d56232d0a76 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/TagTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/TagTests.cs @@ -14,6 +14,7 @@ using System.Linq; using System.IO; using System.Collections.Generic; +using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,6 +55,7 @@ public void TagInstanceTest() //Assert.IsType(instance); } + /// /// Test the property 'Id' /// @@ -62,7 +64,6 @@ public void IdTest() { // TODO unit test for the property 'Id' } - /// /// Test the property 'Name' /// @@ -71,5 +72,7 @@ public void NameTest() { // TODO unit test for the property 'Name' } + } + } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/TestCollectionEndingWithWordListObjectTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/TestCollectionEndingWithWordListObjectTests.cs index 6623a04fcc40..4def0dcda9cc 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/TestCollectionEndingWithWordListObjectTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/TestCollectionEndingWithWordListObjectTests.cs @@ -54,6 +54,7 @@ public void TestCollectionEndingWithWordListObjectInstanceTest() //Assert.IsType(instance); } + /// /// Test the property 'TestCollectionEndingWithWordList' /// @@ -62,5 +63,7 @@ public void TestCollectionEndingWithWordListTest() { // TODO unit test for the property 'TestCollectionEndingWithWordList' } + } + } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/TestCollectionEndingWithWordListTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/TestCollectionEndingWithWordListTests.cs index a32943a0c841..e9df66daf2e5 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/TestCollectionEndingWithWordListTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/TestCollectionEndingWithWordListTests.cs @@ -54,6 +54,7 @@ public void TestCollectionEndingWithWordListInstanceTest() //Assert.IsType(instance); } + /// /// Test the property 'Value' /// @@ -62,5 +63,7 @@ public void ValueTest() { // TODO unit test for the property 'Value' } + } + } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/TriangleInterfaceTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/TriangleInterfaceTests.cs index 1750c64c4eda..fba65470bee6 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/TriangleInterfaceTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/TriangleInterfaceTests.cs @@ -14,6 +14,7 @@ using System.Linq; using System.IO; using System.Collections.Generic; +using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,6 +55,7 @@ public void TriangleInterfaceInstanceTest() //Assert.IsType(instance); } + /// /// Test the property 'TriangleType' /// @@ -62,5 +64,7 @@ public void TriangleTypeTest() { // TODO unit test for the property 'TriangleType' } + } + } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/TriangleTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/TriangleTests.cs index 0dd209f5303a..bdaab0b47965 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/TriangleTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/TriangleTests.cs @@ -14,6 +14,7 @@ using System.Linq; using System.IO; using System.Collections.Generic; +using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,6 +55,7 @@ public void TriangleInstanceTest() //Assert.IsType(instance); } + /// /// Test the property 'ShapeType' /// @@ -62,7 +64,6 @@ public void ShapeTypeTest() { // TODO unit test for the property 'ShapeType' } - /// /// Test the property 'TriangleType' /// @@ -71,5 +72,7 @@ public void TriangleTypeTest() { // TODO unit test for the property 'TriangleType' } + } + } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/UserTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/UserTests.cs index bc3cb3775de1..a7b095e4c28e 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/UserTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/UserTests.cs @@ -14,6 +14,7 @@ using System.Linq; using System.IO; using System.Collections.Generic; +using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,6 +55,7 @@ public void UserInstanceTest() //Assert.IsType(instance); } + /// /// Test the property 'Id' /// @@ -62,7 +64,6 @@ public void IdTest() { // TODO unit test for the property 'Id' } - /// /// Test the property 'Username' /// @@ -71,7 +72,6 @@ public void UsernameTest() { // TODO unit test for the property 'Username' } - /// /// Test the property 'FirstName' /// @@ -80,7 +80,6 @@ public void FirstNameTest() { // TODO unit test for the property 'FirstName' } - /// /// Test the property 'LastName' /// @@ -89,7 +88,6 @@ public void LastNameTest() { // TODO unit test for the property 'LastName' } - /// /// Test the property 'Email' /// @@ -98,7 +96,6 @@ public void EmailTest() { // TODO unit test for the property 'Email' } - /// /// Test the property 'Password' /// @@ -107,7 +104,6 @@ public void PasswordTest() { // TODO unit test for the property 'Password' } - /// /// Test the property 'Phone' /// @@ -116,7 +112,6 @@ public void PhoneTest() { // TODO unit test for the property 'Phone' } - /// /// Test the property 'UserStatus' /// @@ -125,7 +120,6 @@ public void UserStatusTest() { // TODO unit test for the property 'UserStatus' } - /// /// Test the property 'ObjectWithNoDeclaredProps' /// @@ -134,7 +128,6 @@ public void ObjectWithNoDeclaredPropsTest() { // TODO unit test for the property 'ObjectWithNoDeclaredProps' } - /// /// Test the property 'ObjectWithNoDeclaredPropsNullable' /// @@ -143,7 +136,6 @@ public void ObjectWithNoDeclaredPropsNullableTest() { // TODO unit test for the property 'ObjectWithNoDeclaredPropsNullable' } - /// /// Test the property 'AnyTypeProp' /// @@ -152,7 +144,6 @@ public void AnyTypePropTest() { // TODO unit test for the property 'AnyTypeProp' } - /// /// Test the property 'AnyTypePropNullable' /// @@ -161,5 +152,7 @@ public void AnyTypePropNullableTest() { // TODO unit test for the property 'AnyTypePropNullable' } + } + } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/WhaleTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/WhaleTests.cs index de86c02372cd..09610791943c 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/WhaleTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/WhaleTests.cs @@ -14,6 +14,7 @@ using System.Linq; using System.IO; using System.Collections.Generic; +using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,6 +55,7 @@ public void WhaleInstanceTest() //Assert.IsType(instance); } + /// /// Test the property 'HasBaleen' /// @@ -62,7 +64,6 @@ public void HasBaleenTest() { // TODO unit test for the property 'HasBaleen' } - /// /// Test the property 'HasTeeth' /// @@ -71,7 +72,6 @@ public void HasTeethTest() { // TODO unit test for the property 'HasTeeth' } - /// /// Test the property 'ClassName' /// @@ -80,5 +80,7 @@ public void ClassNameTest() { // TODO unit test for the property 'ClassName' } + } + } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ZebraTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ZebraTests.cs index 55e70c43e0a0..f44e92131400 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ZebraTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ZebraTests.cs @@ -14,6 +14,7 @@ using System.Linq; using System.IO; using System.Collections.Generic; +using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; @@ -54,6 +55,7 @@ public void ZebraInstanceTest() //Assert.IsType(instance); } + /// /// Test the property 'Type' /// @@ -62,7 +64,6 @@ public void TypeTest() { // TODO unit test for the property 'Type' } - /// /// Test the property 'ClassName' /// @@ -71,5 +72,7 @@ public void ClassNameTest() { // TODO unit test for the property 'ClassName' } + } + } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ZeroBasedEnumClassTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ZeroBasedEnumClassTests.cs index d828b6d03a7b..f713baf3235e 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ZeroBasedEnumClassTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ZeroBasedEnumClassTests.cs @@ -54,6 +54,7 @@ public void ZeroBasedEnumClassInstanceTest() //Assert.IsType(instance); } + /// /// Test the property 'ZeroBasedEnum' /// @@ -62,5 +63,7 @@ public void ZeroBasedEnumTest() { // TODO unit test for the property 'ZeroBasedEnum' } + } + } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ZeroBasedEnumTests.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ZeroBasedEnumTests.cs index 38260add43e8..412297e39f71 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ZeroBasedEnumTests.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ZeroBasedEnumTests.cs @@ -53,5 +53,9 @@ public void ZeroBasedEnumInstanceTest() // TODO uncomment below to test "IsType" ZeroBasedEnum //Assert.IsType(instance); } + + + } + } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ArrayOfArrayOfNumberOnlyTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ArrayOfArrayOfNumberOnlyTests.cs index d52b1938e420..884eb8b1e080 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ArrayOfArrayOfNumberOnlyTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/ArrayOfArrayOfNumberOnlyTests.cs @@ -1,9 +1,10 @@ -/* +/* * OpenAPI Petstore * * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * The version of the OpenAPI document: 1.0.0 + * OpenAPI spec version: 1.0.0 + * * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -14,12 +15,13 @@ using System.Linq; using System.IO; using System.Collections.Generic; +using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test.Model +namespace Org.OpenAPITools.Test { /// /// Class for testing ArrayOfArrayOfNumberOnly @@ -28,39 +30,65 @@ namespace Org.OpenAPITools.Test.Model /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). /// Please update the test case below to test the model. /// - public class ArrayOfArrayOfNumberOnlyTests : IDisposable + public class ArrayOfArrayOfNumberOnlyTests { - // TODO uncomment below to declare an instance variable for ArrayOfArrayOfNumberOnly - //private ArrayOfArrayOfNumberOnly instance; - - public ArrayOfArrayOfNumberOnlyTests() - { - // TODO uncomment below to create an instance of ArrayOfArrayOfNumberOnly - //instance = new ArrayOfArrayOfNumberOnly(); - } - - public void Dispose() - { - // Cleanup when everything is done. - } - /// /// Test an instance of ArrayOfArrayOfNumberOnly /// [Fact] public void ArrayOfArrayOfNumberOnlyInstanceTest() { - // TODO uncomment below to test "IsType" ArrayOfArrayOfNumberOnly - //Assert.IsType(instance); + // TODO uncomment below to test "IsInstanceOfType" ArrayOfArrayOfNumberOnly + //Assert.IsType (instance, "variable 'instance' is a ArrayOfArrayOfNumberOnly"); } + /// /// Test the property 'ArrayArrayNumber' /// [Fact] public void ArrayArrayNumberTest() { - // TODO unit test for the property 'ArrayArrayNumber' + // 1st instance + ArrayOfArrayOfNumberOnly instance1 = new ArrayOfArrayOfNumberOnly(); + List list1 = new List(); + list1.Add(11.1m); + list1.Add(8.9m); + + List> listOfList1 = new List>(); + listOfList1.Add(list1); + + instance1.ArrayArrayNumber = listOfList1; + + // 2nd instance + ArrayOfArrayOfNumberOnly instance2 = new ArrayOfArrayOfNumberOnly(); + List list2 = new List(); + list2.Add(11.1m); + list2.Add(8.9m); + + List> listOfList2 = new List>(); + listOfList2.Add(list2); + + instance2.ArrayArrayNumber = listOfList2; + + Assert.True(instance1.Equals(instance2)); + + // add one more element to list2 + list2.Add(183.3m); + Assert.False(instance1.Equals(instance2)); + + // 3rd instance + ArrayOfArrayOfNumberOnly instance3 = new ArrayOfArrayOfNumberOnly(); + List list3 = new List(); + list3.Add(11.1m); + list3.Add(1.1m); // not the same as 8.9 + + List> listOfList3 = new List>(); + instance2.ArrayArrayNumber = listOfList3; + + Assert.False(instance1.Equals(instance3)); } + } + } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/PetTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/PetTests.cs index 535ab69d2aa2..d514e9a043c8 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/PetTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/PetTests.cs @@ -1,9 +1,10 @@ -/* +/* * OpenAPI Petstore * * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * The version of the OpenAPI document: 1.0.0 + * OpenAPI spec version: 1.0.0 + * * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -14,12 +15,13 @@ using System.Linq; using System.IO; using System.Collections.Generic; +using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test.Model +namespace Org.OpenAPITools.Test { /// /// Class for testing Pet @@ -28,21 +30,11 @@ namespace Org.OpenAPITools.Test.Model /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). /// Please update the test case below to test the model. /// - public class PetTests : IDisposable + public class PetTests { - // TODO uncomment below to declare an instance variable for Pet //private Pet instance; - public PetTests() - { - // TODO uncomment below to create an instance of Pet - //instance = new Pet(); - } - - public void Dispose() - { - // Cleanup when everything is done. - } + private long petId = 11088; /// /// Test an instance of Pet @@ -50,10 +42,11 @@ public void Dispose() [Fact] public void PetInstanceTest() { - // TODO uncomment below to test "IsType" Pet - //Assert.IsType(instance); + // TODO uncomment below to test "IsInstanceOfType" Pet + //Assert.IsType (instance, "variable 'instance' is a Pet"); } + /// /// Test the property 'Id' /// @@ -62,7 +55,6 @@ public void IdTest() { // TODO unit test for the property 'Id' } - /// /// Test the property 'Category' /// @@ -71,7 +63,6 @@ public void CategoryTest() { // TODO unit test for the property 'Category' } - /// /// Test the property 'Name' /// @@ -80,7 +71,6 @@ public void NameTest() { // TODO unit test for the property 'Name' } - /// /// Test the property 'PhotoUrls' /// @@ -89,7 +79,6 @@ public void PhotoUrlsTest() { // TODO unit test for the property 'PhotoUrls' } - /// /// Test the property 'Tags' /// @@ -98,7 +87,6 @@ public void TagsTest() { // TODO unit test for the property 'Tags' } - /// /// Test the property 'Status' /// @@ -107,5 +95,109 @@ public void StatusTest() { // TODO unit test for the property 'Status' } + + /// + /// Test serialization + /// + [Fact] + public void TestSerialization() + { + // create pet + Pet p1 = new Pet(name: "Csharp test", photoUrls: new List { "http://petstore.com/csharp_test" }); + Assert.Equal("{\"name\":\"Csharp test\",\"photoUrls\":[\"http://petstore.com/csharp_test\"]}", JsonConvert.SerializeObject(p1)); + + // test additional properties (serialization) + Pet p2 = new Pet(name: "Csharp test", photoUrls: new List { "http://petstore.com/csharp_test" }); + p2.AdditionalProperties.Add("hello", "world"); + Assert.Equal("{\"name\":\"Csharp test\",\"photoUrls\":[\"http://petstore.com/csharp_test\"],\"hello\":\"world\"}", JsonConvert.SerializeObject(p2)); + + // test additional properties (deserialization) + Pet p3 = JsonConvert.DeserializeObject("{\"name\":\"Csharp test\",\"photoUrls\":[\"http://petstore.com/csharp_test\"],\"hello\":\"world\",\"int\":123}"); + Assert.Equal("Csharp test", p3.Name); + Assert.Equal("world", p3.AdditionalProperties["hello"]); + Assert.Equal(123L, p3.AdditionalProperties["int"]); + } + + /// + /// Test Equal + /// + [Fact] + public void TestEqual() + { + // create pet + Pet p1 = new Pet(name: "Csharp test", photoUrls: new List { "http://petstore.com/csharp_test" }); + p1.Id = petId; + //p1.Name = "Csharp test"; + p1.Status = Pet.StatusEnum.Available; + // create Category object + Category category1 = new Category(); + category1.Id = 56; + category1.Name = "sample category name2"; + List photoUrls1 = new List(new String[] { "sample photoUrls" }); + // create Tag object + Tag tag1 = new Tag(); + tag1.Id = petId; + tag1.Name = "csharp sample tag name1"; + List tags1 = new List(new Tag[] { tag1 }); + p1.Tags = tags1; + p1.Category = category1; + p1.PhotoUrls = photoUrls1; + + // create pet 2 + Pet p2 = new Pet(name: "Csharp test", photoUrls: new List { "http://petstore.com/csharp_test" }); + p2.Id = petId; + p2.Name = "Csharp test"; + p2.Status = Pet.StatusEnum.Available; + // create Category object + Category category2 = new Category(); + category2.Id = 56; + category2.Name = "sample category name2"; + List photoUrls2 = new List(new String[] { "sample photoUrls" }); + // create Tag object + Tag tag2 = new Tag(); + tag2.Id = petId; + tag2.Name = "csharp sample tag name1"; + List tags2 = new List(new Tag[] { tag2 }); + p2.Tags = tags2; + p2.Category = category2; + p2.PhotoUrls = photoUrls2; + + // p1 and p2 should be equal (both object and attribute level) + Assert.True(category1.Equals(category2)); + Assert.True(tags1.SequenceEqual(tags2)); + Assert.True(p1.PhotoUrls.SequenceEqual(p2.PhotoUrls)); + + Assert.True(p1.Equals(p2)); + + // update attribute to that p1 and p2 are not equal + category2.Name = "new category name"; + Assert.False(category1.Equals(category2)); + + tags2 = new List(); + Assert.False(tags1.SequenceEqual(tags2)); + + // photoUrls has not changed so it should be equal + Assert.True(p1.PhotoUrls.SequenceEqual(p2.PhotoUrls)); + + Assert.False(p1.Equals(p2)); + } + + + /// + /// Test Pet deserialization + /// + [Fact] + public void TestDeserialization() + { + // properly deserialized, no exception + Pet p2 = JsonConvert.DeserializeObject("{\n \"name\": \"csharp test 2\",\n \"photoUrls\": [\"http://petstore.com/csharp_test\", \"http://petstore.com/csharp_test2\"]\n}"); + // comment out below as the result (json string) is OS dependent. + //Assert.Equal("{\n \"name\": \"csharp test 2\",\n \"photoUrls\": [\n \"http://petstore.com/csharp_test\",\n \"http://petstore.com/csharp_test2\"\n ]\n}", p2.ToJson()); + + // Missing `name` to cause exceptions in deserialization + Assert.Throws(() => JsonConvert.DeserializeObject("{\n \"Something\": \"csharp test 2\",\n \"photoUrls\": [\"http://petstore.com/csharp_test\", \"http://petstore.com/csharp_test2\"]\n}")); + } + } + } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/SpecialModelNameTests.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/SpecialModelNameTests.cs index ef8a8d50e3ee..520c1c8a6d51 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/SpecialModelNameTests.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Model/SpecialModelNameTests.cs @@ -1,9 +1,10 @@ -/* +/* * OpenAPI Petstore * * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * The version of the OpenAPI document: 1.0.0 + * OpenAPI spec version: 1.0.0 + * * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -14,12 +15,13 @@ using System.Linq; using System.IO; using System.Collections.Generic; +using Org.OpenAPITools.Api; using Org.OpenAPITools.Model; using Org.OpenAPITools.Client; using System.Reflection; using Newtonsoft.Json; -namespace Org.OpenAPITools.Test.Model +namespace Org.OpenAPITools.Test { /// /// Class for testing SpecialModelName @@ -28,30 +30,16 @@ namespace Org.OpenAPITools.Test.Model /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). /// Please update the test case below to test the model. /// - public class SpecialModelNameTests : IDisposable + public class SpecialModelNameTests { - // TODO uncomment below to declare an instance variable for SpecialModelName - //private SpecialModelName instance; - - public SpecialModelNameTests() - { - // TODO uncomment below to create an instance of SpecialModelName - //instance = new SpecialModelName(); - } - - public void Dispose() - { - // Cleanup when everything is done. - } - /// /// Test an instance of SpecialModelName /// [Fact] public void SpecialModelNameInstanceTest() { - // TODO uncomment below to test "IsType" SpecialModelName - //Assert.IsType(instance); + // TODO uncomment below to test "IsInstanceOfType" SpecialModelName + //Assert.IsType (instance, "variable 'instance' is a SpecialModelName"); } /// @@ -60,16 +48,13 @@ public void SpecialModelNameInstanceTest() [Fact] public void SpecialPropertyNameTest() { - // TODO unit test for the property 'SpecialPropertyName' + SpecialModelName s = new SpecialModelName(); + s.SpecialPropertyName = 123L; + Assert.Equal("{\"$special[property.name]\":123}", JsonConvert.SerializeObject(s)); + // comment out the following as the result is OS-dependent + //Assert.Equal("{\"id\":123}", s.ToJson()); } - /// - /// Test the property 'VarSpecialModelName' - /// - [Fact] - public void VarSpecialModelNameTest() - { - // TODO unit test for the property 'VarSpecialModelName' - } } + } diff --git a/samples/client/petstore/java-micronaut-client/src/test/groovy/org/openapitools/api/PetApiSpec.groovy b/samples/client/petstore/java-micronaut-client/src/test/groovy/org/openapitools/api/PetApiSpec.groovy index 9006cd4c3eef..36e9a218c37d 100644 --- a/samples/client/petstore/java-micronaut-client/src/test/groovy/org/openapitools/api/PetApiSpec.groovy +++ b/samples/client/petstore/java-micronaut-client/src/test/groovy/org/openapitools/api/PetApiSpec.groovy @@ -1,19 +1,16 @@ package org.openapitools.api -import java.io.File -import org.openapitools.model.ModelApiResponse +import io.micronaut.http.HttpStatus +import io.micronaut.http.client.exceptions.HttpClientResponseException +import org.openapitools.model.Category +import org.openapitools.model.Tag + + import org.openapitools.model.Pet -import java.util.Set import io.micronaut.test.extensions.spock.annotation.MicronautTest +import spock.lang.Ignore import spock.lang.Specification import jakarta.inject.Inject -import spock.lang.Ignore -import java.util.Arrays -import java.util.ArrayList -import java.util.HashMap -import java.util.List -import java.util.Map -import java.util.HashSet /** @@ -25,171 +22,240 @@ class PetApiSpec extends Specification { @Inject PetApi api - /** - * Add a new pet to the store + * Find pet by ID + * Returns a pet when ID < 10. */ - @Ignore("Not Implemented") - void 'addPet() test'() { + void "getPetById() test"() { given: - Pet _body = new Pet() + Long petId = 5L + Pet response = api.getPetById(petId).block() - when: - api.addPet(_body).block() - - then: - true - // TODO: test validations + expect: + response != null + response.getId() == petId + response.getName() != null } - /** - * Deletes a pet + * ID > 10 or nonintegers will simulate API error conditions */ - @Ignore("Not Implemented") - void 'deletePet() test'() { + void "getPetById() error test"() { given: - Long petId = 56L - String apiKey = 'example' + Long petId = -11L when: - api.deletePet(petId, apiKey).block() + api.getPetById(petId).block() then: - true - // TODO: test validations + var e = thrown(HttpClientResponseException.class) + e.getMessage().contains("Pet not found") + e.getStatus() == HttpStatus.NOT_FOUND + } + + void "add and get pet test"() { + given: + Pet pet = new Pet() + .id(1002L) + .name("Bob") + .status(Pet.StatusEnum.AVAILABLE) + .category(new Category().id(0L).name("string")) + .photoUrls(["string"].toSet()) + .tags([new Tag().id(0L).name("string")]) + + api.addPet(pet).block() + Pet received = api.getPetById(pet.getId()).block() + + expect: + received != null + pet == received } - /** * Finds Pets by status - * * Multiple status values can be provided with comma separated strings */ - @Ignore("Not Implemented") - void 'findPetsByStatus() test'() { + @Ignore("Issue reported in https://github.com/micronaut-projects/micronaut-jackson-xml/issues/175") + void "findPetsByStatus() test"() { given: - List status = ['available'] + Pet pet = new Pet() + .id(1005L) + .name("Tom") + .status(Pet.StatusEnum.AVAILABLE) + .category(new Category().id(105L).name("Cat category")) + .photoUrls([].toSet()) + .tags([new Tag().id(1L).name("meowing"), new Tag().id(2L).name("purring")]) + + Pet pet2 = new Pet().id(1007L).name("Bob").status(Pet.StatusEnum.AVAILABLE) + Pet pet3 = new Pet().id(1008L).name("Unnamed").status(Pet.StatusEnum.SOLD) + .category(new Category().id(6L).name("Young dog category")) + .tags(new ArrayList<>()).photoUrls([].toSet()) when: - List body = api.findPetsByStatus(status).block() + api.addPet(pet).block() + api.addPet(pet2).block() + api.addPet(pet3).block() + + List available = api.findPetsByStatus(["available"]).block() + List sold = api.findPetsByStatus(["sold"]).block() + // The description says that it needs to be comma separated, but the actual format is multi + List both = api.findPetsByStatus(["available,sold"]).block() then: - true - // TODO: test validations + // Available pets + available != null + and: "The first pet should be present and match the added pet" + Pet receivedPet = available.stream().filter(p -> p.getId() == pet.getId()).findFirst().orElse(null) + receivedPet != null + pet == receivedPet + and: "The second added pet should be present in the available pets" + available.stream().anyMatch(p -> p.getId() == pet2.getId() && p.getName() == pet2.getName()) + and: "The third pet was sold and should not be present in available pets" + available.stream().allMatch(p -> p.getId() != pet3.getId()) + + // Sold pets + and: "The third added pet should be present in the sold pets" + sold.stream().anyMatch(p -> p.getId() == pet3.getId() && p.getName() == pet3.getName()) + and: "The first pet was sold and should not be present in available pets" + sold.stream().allMatch(p -> p.getId() != pet.getId()) + and: "The second pet was sold and should not be present in available pets" + sold.stream().allMatch(p -> p.getId() != pet2.getId()) + + // Both pets + // The formatting of query needs to be correct for this one + and: "The third pet should be present in all the pets and match the added pet" + Pet receivedPet3 = both.stream().filter(p -> p.getId() == pet3.getId()).findFirst().orElse(null) + receivedPet3 != null + pet3 == receivedPet3 + and: "The second added pet should be present in the all pets" + both.stream().anyMatch(p -> p.getId() == pet2.getId() && p.getName() == pet2.getName()) + and: "The first added pet should be present in the all pets" + both.stream().anyMatch(p -> p.getId() == pet.getId() && p.getName() == pet.getName()) } - - /** - * Finds Pets by tags - * - * Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. - */ - @Ignore("Not Implemented") - void 'findPetsByTags() test'() { - given: - Set tags = [].asSet() - + void "delete non-existing pet error test"() { when: - Set body = api.findPetsByTags(tags).block() + api.deletePet(-1L, "special-key").block() then: - true - // TODO: test validations + var e = thrown(HttpClientResponseException.class) + e.getMessage() == "Not Found" } - - /** - * Find pet by ID - * - * Returns a single pet - */ - @Ignore("Not Implemented") - void 'getPetById() test'() { + void "add and delete pet test"() { given: - Long petId = 56L + List status = ["available"] + + List initialPets = api.findPetsByStatus(status).block() when: - Pet body = api.getPetById(petId).block() + Pet pet1 = new Pet().id(101L).name("Bob").status(Pet.StatusEnum.AVAILABLE) + Pet pet2 = new Pet().id(103L).name("Rat").status(Pet.StatusEnum.AVAILABLE) + api.addPet(pet1).block() + api.addPet(pet2).block() - then: - true - // TODO: test validations + List pets = api.findPetsByStatus(status).block() + + then: "The 2 pets should have been added correctly" + pets != null + pets.size() - initialPets.size() == 2 + pets.stream().anyMatch(p -> p.getId() == pet1.getId() && p.getName() == pet1.getName()) + pets.stream().anyMatch(p -> p.getId() == pet2.getId() && p.getName() == pet2.getName()) + + when: + api.deletePet(pet1.getId(), "special-key").block() + api.deletePet(pet2.getId(), "special-key").block() + + List finalPets = api.findPetsByStatus(status).block() + + then: "The 2 pets should have been deleted" + finalPets != null + pets.size() - finalPets.size() == 2 + finalPets.stream().allMatch(p -> p.getId() != pet1.getId()) + finalPets.stream().allMatch(p -> p.getId() != pet2.getId()) } - /** * Update an existing pet */ - @Ignore("Not Implemented") - void 'updatePet() test'() { + void "updatePet() test"() { given: - Pet _body = new Pet() + Pet pet = new Pet().id(1L).name("Jazz") when: - api.updatePet(_body).block() + api.updatePet(pet).block() - then: - true - // TODO: test validations + then: "The pet should be available and match the updates" + Pet received = api.getPetById(1L).block() + pet.getId() == received.getId() + pet.getName() == received.getName() } - + /** * Updates a pet in the store with form data */ - @Ignore("Not Implemented") - void 'updatePetWithForm() test'() { + void "updatePetWithForm() test"() { given: - Long petId = 56L - String name = 'example' - String status = 'example' + Long petId = 2L + String name = "Jack the Bull" + String status = "sold" when: api.updatePetWithForm(petId, name, status).block() then: - true - // TODO: test validations + Pet pet = api.getPetById(2L).block() + petId == pet.getId() + name == pet.getName() + status == pet.getStatus().toString() } - + /** * uploads an image */ - @Ignore("Not Implemented") - void 'uploadFile() test'() { + void "upload file test"() throws IOException { given: - Long petId = 56L - String additionalMetadata = 'example' - File _file = null + Long petId = 2L + String additionalMetadata = "a test file" + + File file = new File("hello.txt") + BufferedWriter writer = new BufferedWriter(new FileWriter(file)) + writer.write("Hello world!") + writer.close() when: - ModelApiResponse body = api.uploadFile(petId, additionalMetadata, _file).block() + api.uploadFile(petId, additionalMetadata, new File(file.getAbsolutePath())) then: - true - // TODO: test validations + notThrown() } - - /** - * uploads an image (required) - */ - @Ignore("Not Implemented") - void 'uploadFileWithRequiredFile() test'() { + @Ignore("Issue reported in https://github.com/micronaut-projects/micronaut-jackson-xml/issues/175") + void "findPetByTags() test"() { given: - Long petId = 56L - File requiredFile = null - String additionalMetadata = 'example' + Tag tag = new Tag().name("cute").id(2L) + + Pet pet1 = new Pet().id(2000L).name("Conor").category(new Category().name("cats").id(10L)) + .photoUrls([].toSet()).tags([tag]) + Pet pet2 = new Pet().id(2001L).name("Mike").category(new Category().name("dogs").id(10L)) + .photoUrls([].toSet()).tags([tag]) when: - ModelApiResponse body = api.uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata).block() + api.addPet(pet1).block() + api.addPet(pet2).block() - then: - true - // TODO: test validations - } + then: "The 2 pets should be successfully found with the given tag" + Set pets = api.findPetsByTags([tag.getName()].toSet()).block() - + pets.stream().allMatch(p -> p.getTags().contains(tag)) + + Pet receivedPet1 = pets.stream().filter(p -> p.getId() == pet1.getId()).findFirst().orElse(null) + Pet receivedPet2 = pets.stream().filter(p -> p.getId() == pet2.getId()).findFirst().orElse(null) + receivedPet1 != null + receivedPet2 != null + pet1 == receivedPet1 + pet2 == receivedPet2 + } } diff --git a/samples/client/petstore/java-micronaut-client/src/test/groovy/org/openapitools/api/StoreApiSpec.groovy b/samples/client/petstore/java-micronaut-client/src/test/groovy/org/openapitools/api/StoreApiSpec.groovy index 1826c791507c..cdeb7c148541 100644 --- a/samples/client/petstore/java-micronaut-client/src/test/groovy/org/openapitools/api/StoreApiSpec.groovy +++ b/samples/client/petstore/java-micronaut-client/src/test/groovy/org/openapitools/api/StoreApiSpec.groovy @@ -1,99 +1,79 @@ package org.openapitools.api +import io.micronaut.http.client.exceptions.HttpClientResponseException import org.openapitools.model.Order import io.micronaut.test.extensions.spock.annotation.MicronautTest +import spock.lang.Ignore import spock.lang.Specification import jakarta.inject.Inject -import spock.lang.Ignore -import java.util.Arrays -import java.util.ArrayList -import java.util.HashMap -import java.util.List -import java.util.Map -import java.util.HashSet +import java.time.LocalDateTime /** * API tests for StoreApi */ @MicronautTest -class StoreApiSpec extends Specification { +public class StoreApiSpec extends Specification { @Inject StoreApi api - /** - * Delete purchase order by ID - * - * For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors + * Place an order for a pet */ - @Ignore("Not Implemented") - void 'deleteOrder() test'() { + @Ignore("The test fails because the produces is specified as */* instead of a specific value") + void "placeOrder() test"() { given: - String orderId = 'example' + Order order = new Order().id(1L).shipDate(LocalDateTime.MIN).complete(true) + .petId(5L).quantity(1).status(Order.StatusEnum.DELIVERED) when: - api.deleteOrder(orderId).block() + Order response = api.placeOrder(order).block() then: - true - // TODO: test validations + order == response } - /** * Returns pet inventories by status - * * Returns a map of status codes to quantities */ - @Ignore("Not Implemented") - void 'getInventory() test'() { - given: - + void "getInventory() test"() { when: - Map body = api.getInventory().block() + Map response = api.getInventory().block() then: - true - // TODO: test validations + response != null } - /** * Find purchase order by ID - * * For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions */ - @Ignore("Not Implemented") - void 'getOrderById() test'() { - given: - Long orderId = 56L - + void "getOrderById() test"() { when: - Order body = api.getOrderById(orderId).block() + Long orderId = 4L + Order response = api.getOrderById(orderId).block() then: - true - // TODO: test validations + response != null + orderId == response.getId() } - + /** - * Place an order for a pet + * Delete purchase order by ID + * + * For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors */ - @Ignore("Not Implemented") - void 'placeOrder() test'() { + void "deleteOrder() not existing order error test"() { given: - Order _body = new Order() + String orderId = "1001" when: - Order body = api.placeOrder(_body).block() + api.deleteOrder(orderId).block() then: - true - // TODO: test validations + thrown(HttpClientResponseException) } - - } diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/api/PetApiTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/api/PetApiTest.java index 490cf38aa0a2..7a253d8d5a6c 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/api/PetApiTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/api/PetApiTest.java @@ -3,7 +3,7 @@ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -13,21 +13,22 @@ package org.openapitools.client.api; -import org.openapitools.client.*; -import org.openapitools.client.auth.*; -import java.io.File; -import org.openapitools.client.model.ModelApiResponse; -import org.openapitools.client.model.Pet; -import java.util.Set; +import static org.junit.jupiter.api.Assertions.*; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; +import org.openapitools.client.ApiClient; +import org.openapitools.client.ApiException; +import org.openapitools.client.Configuration; +import org.openapitools.client.auth.ApiKeyAuth; +import org.openapitools.client.model.Category; +import org.openapitools.client.model.Pet; +import org.openapitools.client.model.Tag; -import java.util.ArrayList; -import java.util.HashMap; +import java.io.File; +import java.util.Arrays; +import java.util.HashSet; import java.util.List; -import java.util.Map; +import java.util.Set; /** * API tests for PetApi @@ -35,6 +36,8 @@ public class PetApiTest { private final PetApi api = new PetApi(); + private final long petId = 5638l; + /** * Add a new pet to the store @@ -43,9 +46,61 @@ public class PetApiTest { */ @Test public void addPetTest() throws ApiException { - //Pet body = null; - //api.addPet(body); - // TODO: test validations + // add pet + Pet body = new Pet(); + body.setId(petId); + body.setName("jersey2 java8 pet"); + Category category = new Category(); + category.setId(petId); + category.setName("jersey2 java8 category"); + body.setCategory(category); + body.setStatus(Pet.StatusEnum.AVAILABLE); + body.setPhotoUrls(new HashSet<>(Arrays.asList("A", "B", "C"))); + Tag tag = new Tag(); + tag.setId(petId); + tag.setName("jersey2 java8 tag"); + body.setTags(Arrays.asList(tag)); + + api.addPet(body); + + //get pet by ID + Pet result = api.getPetById(petId); + assertEquals(result.getId(), body.getId()); + assertEquals(result.getCategory(), category); + assertEquals(result.getName(), body.getName()); + assertEquals(result.getPhotoUrls(), body.getPhotoUrls()); + assertEquals(result.getStatus(), body.getStatus()); + assertEquals(result.getTags(), body.getTags()); + + // update pet + api.updatePetWithForm(petId, "jersey2 java8 pet 2", "sold"); + + //get pet by ID + Pet result2 = api.getPetById(petId); + assertEquals(result2.getId(), body.getId()); + assertEquals(result2.getCategory(), category); + assertEquals(result2.getName(), "jersey2 java8 pet 2"); + assertEquals(result2.getPhotoUrls(), body.getPhotoUrls()); + assertEquals(result2.getStatus(), Pet.StatusEnum.SOLD); + assertEquals(result2.getTags(), body.getTags()); + + // delete pet + api.deletePet(petId, "empty api key"); + + try { + Pet result3 = api.getPetById(petId); + assertEquals(false, true); + } catch (ApiException e) { +// System.err.println("Exception when calling PetApi#getPetById"); +// System.err.println("Status code: " + e.getCode()); +// System.err.println("Reason: " + e.getResponseBody()); +// System.err.println("Response headers: " + e.getResponseHeaders()); + + assertEquals(e.getCode(), 404); + assertEquals(e.getResponseBody(), "{\"code\":1,\"type\":\"error\",\"message\":\"Pet not found\"}"); + + } + } /** @@ -55,52 +110,70 @@ public void addPetTest() throws ApiException { */ @Test public void deletePetTest() throws ApiException { - //Long petId = null; - //String apiKey = null; - //api.deletePet(petId, apiKey); + Long petId = null; + String apiKey = null; // TODO: test validations + //api.deletePet(petId, apiKey); } /** * Finds Pets by status - * + *

* Multiple status values can be provided with comma separated strings * * @throws ApiException if the Api call fails */ @Test public void findPetsByStatusTest() throws ApiException { - //List status = null; + List status = null; //List response = api.findPetsByStatus(status); // TODO: test validations } /** * Finds Pets by tags - * + *

* Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. * * @throws ApiException if the Api call fails */ @Test public void findPetsByTagsTest() throws ApiException { - //Set tags = null; + Set tags = null; //Set response = api.findPetsByTags(tags); // TODO: test validations } /** * Find pet by ID - * + *

* Returns a single pet * * @throws ApiException if the Api call fails */ @Test public void getPetByIdTest() throws ApiException { - //Long petId = null; - //Pet response = api.getPetById(petId); - // TODO: test validations + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); + + // Configure API key authorization: api_key + ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key"); + api_key.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //api_key.setApiKeyPrefix("Token"); + + PetApi apiInstance = new PetApi(defaultClient); + Long petId = 56L; // Long | ID of pet to return + try { + Pet result = apiInstance.getPetById(petId); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling PetApi#getPetById"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + } + } /** @@ -110,7 +183,7 @@ public void getPetByIdTest() throws ApiException { */ @Test public void updatePetTest() throws ApiException { - //Pet body = null; + Pet body = null; //api.updatePet(body); // TODO: test validations } @@ -122,9 +195,9 @@ public void updatePetTest() throws ApiException { */ @Test public void updatePetWithFormTest() throws ApiException { - //Long petId = null; - //String name = null; - //String status = null; + Long petId = null; + String name = null; + String status = null; //api.updatePetWithForm(petId, name, status); // TODO: test validations } @@ -136,10 +209,10 @@ public void updatePetWithFormTest() throws ApiException { */ @Test public void uploadFileTest() throws ApiException { - //Long petId = null; - //String additionalMetadata = null; - //File _file = null; - //ModelApiResponse response = api.uploadFile(petId, additionalMetadata, _file); + Long petId = null; + String additionalMetadata = null; + File file = null; + //ModelApiResponse response = api.uploadFile(petId, additionalMetadata, file); // TODO: test validations } @@ -150,9 +223,9 @@ public void uploadFileTest() throws ApiException { */ @Test public void uploadFileWithRequiredFileTest() throws ApiException { - //Long petId = null; - //File requiredFile = null; - //String additionalMetadata = null; + Long petId = null; + File requiredFile = null; + String additionalMetadata = null; //ModelApiResponse response = api.uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata); // TODO: test validations } diff --git a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/api/PetApiTest.java b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/api/PetApiTest.java index 0ad6098e431b..9c61bba29e36 100644 --- a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/api/PetApiTest.java +++ b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/api/PetApiTest.java @@ -16,20 +16,18 @@ import org.openapitools.client.*; import org.openapitools.client.auth.*; import java.io.File; -import org.openapitools.client.model.ModelApiResponse; -import org.openapitools.client.model.Pet; +import org.openapitools.client.model.*; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; +import java.util.Arrays; import java.util.ArrayList; +import java.util.Map; import java.util.HashMap; +import java.util.HashSet; import java.util.List; -import java.util.Map; - -import jakarta.validation.constraints.*; -import jakarta.validation.Valid; /** * API tests for PetApi @@ -37,6 +35,7 @@ public class PetApiTest { private final PetApi api = new PetApi(); + private final long petId = 5638l; /** * Add a new pet to the store @@ -47,9 +46,60 @@ public class PetApiTest { */ @Test public void addPetTest() throws ApiException { - //Pet pet = null; - //api.addPet(pet); - // TODO: test validations + // add pet + Pet body = new Pet(); + body.setId(petId); + body.setName("jersey2 java8 pet"); + Category category = new Category(); + category.setId(petId); + category.setName("jersey2 java8 category"); + body.setCategory(category); + body.setStatus(Pet.StatusEnum.AVAILABLE); + body.setPhotoUrls(Arrays.asList("A", "B", "C")); + Tag tag = new Tag(); + tag.setId(petId); + tag.setName("jersey2 java8 tag"); + body.setTags(Arrays.asList(tag)); + + api.addPet(body); + + //get pet by ID + Pet result = api.getPetById(petId); + Assertions.assertEquals(result.getId(), body.getId()); + Assertions.assertEquals(result.getCategory(), category); + Assertions.assertEquals(result.getName(), body.getName()); + Assertions.assertEquals(result.getPhotoUrls(), body.getPhotoUrls()); + Assertions.assertEquals(result.getStatus(), body.getStatus()); + Assertions.assertEquals(result.getTags(), body.getTags()); + + // update pet + api.updatePetWithForm(petId, "jersey2 java8 pet 2", "sold"); + + //get pet by ID + Pet result2 = api.getPetById(petId); + Assertions.assertEquals(result2.getId(), body.getId()); + Assertions.assertEquals(result2.getCategory(), category); + Assertions.assertEquals(result2.getName(), "jersey2 java8 pet 2"); + Assertions.assertEquals(result2.getPhotoUrls(), body.getPhotoUrls()); + Assertions.assertEquals(result2.getStatus(), Pet.StatusEnum.SOLD); + Assertions.assertEquals(result2.getTags(), body.getTags()); + + // delete pet + api.deletePet(petId, "empty api key"); + + try { + Pet result3 = api.getPetById(petId); + Assertions.assertEquals(false, true); + } catch (ApiException e) { +// System.err.println("Exception when calling PetApi#getPetById"); +// System.err.println("Status code: " + e.getCode()); +// System.err.println("Reason: " + e.getResponseBody()); +// System.err.println("Response headers: " + e.getResponseHeaders()); + + Assertions.assertEquals(e.getCode(), 404); + Assertions.assertEquals(e.getResponseBody(), "{\"code\":1,\"type\":\"error\",\"message\":\"Pet not found\"}"); + + } } /** diff --git a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/MammalTest.java b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/MammalTest.java index 8bafe09601bd..99a348ca642b 100644 --- a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/MammalTest.java +++ b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/MammalTest.java @@ -21,7 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; +import org.openapitools.client.JSON; import org.openapitools.client.model.Pig; import org.openapitools.client.model.Whale; import org.openapitools.client.model.Zebra; @@ -40,8 +40,31 @@ public class MammalTest { * Model tests for Mammal */ @Test - public void testMammal() { - // TODO: test Mammal + public void testMammal() throws Exception { + Mammal m = new Mammal(); + Zebra z = new Zebra(); + z.setType(Zebra.TypeEnum.MOUNTAIN); + z.setClassName("zebra"); + m.setActualInstance(z); + Assertions.assertEquals(JSON.getDefault().getMapper().writeValueAsString(m), "{\"type\":\"mountain\",\"className\":\"zebra\"}"); + } + + /** + * Model tests for getActualInstanceRecursively + */ + @Test + public void testGetActualInstanceRecursively() throws Exception { + Mammal m = new Mammal(); + Pig p = new Pig(); + DanishPig dp = new DanishPig(); + dp.setClassName("danish_pig"); + p.setActualInstance(dp); + m.setActualInstance(p); + Assertions.assertTrue(m.getActualInstanceRecursively() instanceof DanishPig); + + Pig p2 = new Pig(); + m.setActualInstance(p2); + Assertions.assertEquals(m.getActualInstanceRecursively(), null); } /** @@ -76,4 +99,33 @@ public void typeTest() { // TODO: test type } + /** + * Test code sample + */ + @Test + public void codeSampleTest() { + Mammal exampleMammal = new Mammal(); + + // create a new Pig + Pig examplePig = new Pig(); + // set Mammal to Pig + exampleMammal.setActualInstance(examplePig); + // to get back the Pig set earlier + Pig testPig = (Pig) exampleMammal.getActualInstance(); + + // create a new Whale + Whale exampleWhale = new Whale(); + // set Mammal to Whale + exampleMammal.setActualInstance(exampleWhale); + // to get back the Whale set earlier + Whale testWhale = (Whale) exampleMammal.getActualInstance(); + + // create a new Zebra + Zebra exampleZebra = new Zebra(); + // set Mammal to Zebra + exampleMammal.setActualInstance(exampleZebra); + // to get back the Zebra set earlier + Zebra testZebra = (Zebra) exampleMammal.getActualInstance(); + } + } diff --git a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/ZebraTest.java b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/ZebraTest.java index 7780a07a9ec1..509747319772 100644 --- a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/ZebraTest.java +++ b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/ZebraTest.java @@ -13,12 +13,19 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.databind.type.MapType; +import com.fasterxml.jackson.databind.type.TypeFactory; +import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; + +import java.util.HashMap; +import java.util.Map; + +import org.openapitools.client.JSON; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; @@ -35,7 +42,29 @@ public class ZebraTest { */ @Test public void testZebra() { - // TODO: test Zebra + Zebra z = new Zebra(); + z.setClassName("zebra"); + Map m = new HashMap<>(); + z.putAdditionalProperty("key1", "value1"); + z.putAdditionalProperty("key2", 12321); + z.setType(Zebra.TypeEnum.MOUNTAIN); + + JSON j = new JSON(); + try { + // serialize + Assertions.assertEquals(j.getMapper().writeValueAsString(z), "{\"type\":\"mountain\",\"className\":\"zebra\",\"key1\":\"value1\",\"key2\":12321}"); + + // deserialize + String zebraJson = "{\"type\":\"mountain\",\"className\":\"zebra\",\"key1\":\"value1\",\"key2\":12321}"; + Zebra zebraFromJson = j.getMapper().readValue(zebraJson, Zebra.class); + Assertions.assertEquals(zebraFromJson.getType(), Zebra.TypeEnum.MOUNTAIN); + Assertions.assertEquals(zebraFromJson.getClassName(), "zebra"); + Assertions.assertEquals(zebraFromJson.getAdditionalProperties().size(), 2); + Assertions.assertEquals(zebraFromJson.getAdditionalProperty("key1"), "value1"); + Assertions.assertEquals(zebraFromJson.getAdditionalProperty("key2"), 12321); + } catch (Exception ex) { + Assertions.assertEquals(true, false); // exception shouldn't be thrown + } } /** @@ -43,7 +72,22 @@ public void testZebra() { */ @Test public void typeTest() { - // TODO: test type + String zebraJson = "{\"type\":\"mountain\",\"className\":\"zebra\",\"key1\":\"value1\",\"key2\":12321}"; + + JSON j = new JSON(); + TypeFactory typeFactory = j.getMapper().getTypeFactory(); + MapType mapType = typeFactory.constructMapType(HashMap.class, String.class, Object.class); + try { + HashMap map = j.getMapper().readValue(zebraJson, mapType); + Assertions.assertEquals(map.get("type"), "mountain"); + + Map result = + j.getMapper().readValue(zebraJson, new TypeReference>() {}); + + Assertions.assertEquals(result.get("type"), "mountain"); + } catch (Exception ex) { + Assertions.assertEquals(true, false); // exception shouldn't be thrown + } } /** diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/test/java/org/openapitools/client/api/PetApiTest.java b/samples/client/petstore/java/okhttp-gson-3.1/src/test/java/org/openapitools/client/api/PetApiTest.java index 44e74f1cf98b..869dc302a973 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/test/java/org/openapitools/client/api/PetApiTest.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/test/java/org/openapitools/client/api/PetApiTest.java @@ -1,153 +1,527 @@ /* * OpenAPI Petstore - * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + * + * OpenAPI spec version: 1.0.0 * - * The version of the OpenAPI document: 1.0.0 - * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - package org.openapitools.client.api; -import org.openapitools.client.ApiException; -import java.io.File; -import org.openapitools.client.model.ModelApiResponse; -import org.openapitools.client.model.Pet; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import static org.junit.jupiter.api.Assertions.*; +import java.io.BufferedWriter; +import java.io.File; +import java.io.FileWriter; +import java.lang.reflect.Type; import java.util.ArrayList; +import java.util.Arrays; import java.util.HashMap; +import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Set; +import java.util.concurrent.ConcurrentLinkedQueue; +import java.util.concurrent.CountDownLatch; +import java.util.concurrent.ThreadLocalRandom; +import java.util.concurrent.TimeUnit; + +import org.junit.jupiter.api.*; +import org.openapitools.client.*; +import org.openapitools.client.ApiException; +import org.openapitools.client.auth.*; +import org.openapitools.client.model.*; +import org.openapitools.client.model.Pet; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; /** * API tests for PetApi */ -@Disabled public class PetApiTest { - private final PetApi api = new PetApi(); + private PetApi api = new PetApi(); + private final Logger LOG = LoggerFactory.getLogger(PetApiTest.class); + // In the circle.yml file, /etc/host is configured with an entry to resolve petstore.swagger.io + // to 127.0.0.1 + private static String basePath = "http://petstore.swagger.io:80/v2"; + + @BeforeEach + public void setup() { + // setup authentication + ApiKeyAuth apiKeyAuth = (ApiKeyAuth) api.getApiClient().getAuthentication("api_key"); + apiKeyAuth.setApiKey("special-key"); + api.getApiClient().setBasePath(basePath); + } - /** - * Add a new pet to the store - * - * - * - * @throws ApiException if the Api call fails - */ @Test - public void addPetTest() throws ApiException { - Pet pet = null; - Pet response = api.addPet(pet); - // TODO: test validations + public void testApiClient() { + // the default api client is used + assertEquals(Configuration.getDefaultApiClient(), api.getApiClient()); + assertNotNull(api.getApiClient()); + assertEquals(basePath, api.getApiClient().getBasePath()); + assertFalse(api.getApiClient().isDebugging()); + + ApiClient oldClient = api.getApiClient(); + + ApiClient newClient = new ApiClient(); + newClient.setVerifyingSsl(true); + newClient.setBasePath("http://example.com"); + newClient.setDebugging(true); + + // set api client via constructor + api = new PetApi(newClient); + assertNotNull(api.getApiClient()); + assertEquals("http://example.com", api.getApiClient().getBasePath()); + assertTrue(api.getApiClient().isDebugging()); + + // set api client via setter method + api.setApiClient(oldClient); + assertNotNull(api.getApiClient()); + assertEquals(basePath, api.getApiClient().getBasePath()); + assertFalse(api.getApiClient().isDebugging()); } - /** - * Deletes a pet - * - * - * - * @throws ApiException if the Api call fails - */ @Test - public void deletePetTest() throws ApiException { - Long petId = null; - String apiKey = null; - api.deletePet(petId, apiKey); - // TODO: test validations + public void testCreateAndGetPet() throws Exception { + Pet pet = createPet(); + api.addPet(pet); + + Pet fetched = api.getPetById(pet.getId()); + assertPetMatches(pet, fetched); + api.deletePet(pet.getId(), null); } - /** - * Finds Pets by status - * - * Multiple status values can be provided with comma separated strings - * - * @throws ApiException if the Api call fails - */ @Test - public void findPetsByStatusTest() throws ApiException { - List status = null; - List response = api.findPetsByStatus(status); - // TODO: test validations + public void testCreateAndGetPetWithHttpInfo() throws Exception { + Pet pet = createPet(); + api.addPetWithHttpInfo(pet); + + ApiResponse resp = api.getPetByIdWithHttpInfo(pet.getId()); + assertEquals(200, resp.getStatusCode()); + assertEquals("application/json", resp.getHeaders().get("Content-Type").get(0)); + Pet fetched = resp.getData(); + + assertPetMatches(pet, fetched); + api.deletePet(pet.getId(), null); } - /** - * Finds Pets by tags - * - * Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. - * - * @throws ApiException if the Api call fails - */ @Test - public void findPetsByTagsTest() throws ApiException { - List tags = null; - List response = api.findPetsByTags(tags); - // TODO: test validations + public void testCreateAndGetPetAsync() throws Exception { + Pet pet = createPet(); + api.addPet(pet); + // to store returned Pet or error message/exception + final Map result = new HashMap(); + + api.getPetByIdAsync( + pet.getId(), + new ApiCallback() { + @Override + public void onFailure( + ApiException e, + int statusCode, + Map> responseHeaders) { + result.put("error", e.getMessage()); + } + + @Override + public void onSuccess( + Pet pet, int statusCode, Map> responseHeaders) { + result.put("pet", pet); + } + + @Override + public void onUploadProgress( + long bytesWritten, long contentLength, boolean done) { + // empty + } + + @Override + public void onDownloadProgress( + long bytesRead, long contentLength, boolean done) { + // empty + } + }); + + // wait for the asynchronous call to finish (at most 10 seconds) + final int maxTry = 10; + int tryCount = 1; + Pet fetched = null; + do { + if (tryCount > maxTry) fail("have not got result of getPetByIdAsync after 10 seconds"); + Thread.sleep(1000); + tryCount += 1; + if (result.get("error") != null) fail((String) result.get("error")); + if (result.get("pet") != null) { + fetched = (Pet) result.get("pet"); + break; + } + } while (result.isEmpty()); + assertPetMatches(pet, fetched); + api.deletePet(pet.getId(), null); } - /** - * Find pet by ID - * - * Returns a single pet - * - * @throws ApiException if the Api call fails - */ @Test - public void getPetByIdTest() throws ApiException { - Long petId = null; - Pet response = api.getPetById(petId); - // TODO: test validations + public void testCreateAndGetPetAsyncInvalidID() throws Exception { + Pet pet = createPet(); + api.addPet(pet); + // to store returned Pet or error message/exception + final Map result = new HashMap(); + + // test getting a nonexistent pet + result.clear(); + api.getPetByIdAsync( + -10000L, + new ApiCallback() { + @Override + public void onFailure( + ApiException e, + int statusCode, + Map> responseHeaders) { + result.put("exception", e); + } + + @Override + public void onSuccess( + Pet pet, int statusCode, Map> responseHeaders) { + result.put("pet", pet); + } + + @Override + public void onUploadProgress( + long bytesWritten, long contentLength, boolean done) { + // empty + } + + @Override + public void onDownloadProgress( + long bytesRead, long contentLength, boolean done) { + // empty + } + }); + + // wait for the asynchronous call to finish (at most 10 seconds) + final int maxTry = 10; + int tryCount = 1; + Pet fetched = null; + ApiException exception = null; + + do { + if (tryCount > maxTry) fail("have not got result of getPetByIdAsync after 10 seconds"); + Thread.sleep(1000); + tryCount += 1; + if (result.get("pet") != null) fail("expected an error"); + if (result.get("exception") != null) { + exception = (ApiException) result.get("exception"); + break; + } + } while (result.isEmpty()); + assertNotNull(exception); + assertEquals(404, exception.getCode()); + String pattern = "^Message: Not Found\\RHTTP response code: 404\\RHTTP response body: .*\\RHTTP response headers: .*$"; + assertTrue(exception.getMessage().matches(pattern)); + assertEquals("application/json", exception.getResponseHeaders().get("Content-Type").get(0)); + api.deletePet(pet.getId(), null); } - /** - * Update an existing pet - * - * - * - * @throws ApiException if the Api call fails - */ + @Test - public void updatePetTest() throws ApiException { - Pet pet = null; - Pet response = api.updatePet(pet); - // TODO: test validations + public void testUpdatePet() throws Exception { + Pet pet = createPet(); + api.addPet(pet); + pet.setName("programmer"); + + api.updatePet(pet); + + Pet fetched = api.getPetById(pet.getId()); + assertPetMatches(pet, fetched); + api.deletePet(pet.getId(), null); } - /** - * Updates a pet in the store with form data - * - * - * - * @throws ApiException if the Api call fails - */ @Test - public void updatePetWithFormTest() throws ApiException { - Long petId = null; - String name = null; - String status = null; - api.updatePetWithForm(petId, name, status); - // TODO: test validations + public void testFindPetsByStatus() throws Exception { + assertEquals(basePath, api.getApiClient().getBasePath()); + Pet pet = createPet(); + api.addPet(pet); + pet.setName("programmer"); + pet.setStatus(Pet.StatusEnum.PENDING); + api.updatePet(pet); + + List pets = api.findPetsByStatus(Arrays.asList("pending")); + assertNotNull(pets); + + boolean found = false; + for (Pet fetched : pets) { + if (fetched.getId().equals(pet.getId())) { + found = true; + break; + } + } + + assertTrue(found); + + api.deletePet(pet.getId(), null); + } + + @Test + @Disabled + public void testFindPetsByTags() throws Exception { + Pet pet = createPet(); + pet.setName("monster"); + pet.setStatus(Pet.StatusEnum.AVAILABLE); + + List tags = new ArrayList(); + org.openapitools.client.model.Tag tag1 = new org.openapitools.client.model.Tag(); + tag1.setName("friendly"); + tags.add(tag1); + pet.setTags(tags); + + api.updatePet(pet); + + List pets = api.findPetsByTags((Arrays.asList("friendly"))); + assertNotNull(pets); + + boolean found = false; + for (Pet fetched : pets) { + if (fetched.getId().equals(pet.getId())) { + found = true; + break; + } + } + assertTrue(found); + + api.deletePet(pet.getId(), null); + } + + @Test + public void testUpdatePetWithForm() throws Exception { + Pet pet = createPet(); + pet.setName("frank"); + api.addPet(pet); + + Pet fetched = api.getPetById(pet.getId()); + + api.updatePetWithForm(fetched.getId(), "furt", null); + Pet updated = api.getPetById(fetched.getId()); + + assertEquals(updated.getName(), "furt"); + api.deletePet(pet.getId(), null); + } + + @Test + @Disabled + public void testDeletePet() throws Exception { + Pet pet = createPet(); + api.addPet(pet); + + Pet fetched = api.getPetById(pet.getId()); + api.deletePet(pet.getId(), null); + + try { + fetched = api.getPetById(fetched.getId()); + fail("expected an error"); + } catch (ApiException e) { + LOG.info("Code: {}. Message: {}", e.getCode(), e.getMessage()); + assertEquals(404, e.getCode()); + } + } + + @Test + public void testUploadFile() throws Exception { + Pet pet = createPet(); + api.addPet(pet); + + File file = new File("hello.txt"); + BufferedWriter writer = new BufferedWriter(new FileWriter(file)); + writer.write("Hello world!"); + writer.close(); + + api.uploadFile(pet.getId(), "a test file", new File(file.getAbsolutePath())); + api.deletePet(pet.getId(), null); + } + + @Test + public void testEqualsAndHashCode() { + Pet pet1 = new Pet(); + Pet pet2 = new Pet(); + assertTrue(pet1.equals(pet2)); + assertTrue(pet2.equals(pet1)); + assertTrue(pet1.hashCode() == pet2.hashCode()); + assertTrue(pet1.equals(pet1)); + assertTrue(pet1.hashCode() == pet1.hashCode()); + + pet2.setName("really-happy"); + pet2.setPhotoUrls( + (Arrays.asList("http://foo.bar.com/1", "http://foo.bar.com/2"))); + assertFalse(pet1.equals(pet2)); + assertFalse(pet2.equals(pet1)); + assertFalse(pet1.hashCode() == (pet2.hashCode())); + assertTrue(pet2.equals(pet2)); + assertTrue(pet2.hashCode() == pet2.hashCode()); + + pet1.setName("really-happy"); + pet1.setPhotoUrls( + (Arrays.asList("http://foo.bar.com/1", "http://foo.bar.com/2"))); + assertTrue(pet1.equals(pet2)); + assertTrue(pet2.equals(pet1)); + assertTrue(pet1.hashCode() == pet2.hashCode()); + assertTrue(pet1.equals(pet1)); + assertTrue(pet1.hashCode() == pet1.hashCode()); + } + + @Test + public void testAnyType() { // test any type in v3.1 spec + AnyTypeTest a = new AnyTypeTest(); + a.setAnyTypeProperty("test"); // shouldn't throw exception + assertEquals("test", a.getAnyTypeProperty()); + } + + private Pet createPet() { + Pet pet = new Pet(); + pet.setId(ThreadLocalRandom.current().nextLong(Long.MAX_VALUE)); + pet.setName("gorilla"); + + Category category = new Category(); + category.setName("really-happy"); + + pet.setCategory(category); + pet.setStatus(Pet.StatusEnum.AVAILABLE); + List photos = + (Arrays.asList("http://foo.bar.com/1", "http://foo.bar.com/2")); + pet.setPhotoUrls(photos); + + return pet; + } + + private String serializeJson(Object o, ApiClient apiClient) { + return apiClient.getJSON().serialize(o); + } + + private T deserializeJson(String json, Type type, ApiClient apiClient) { + return (T) apiClient.getJSON().deserialize(json, type); + } + + private void assertPetMatches(Pet expected, Pet actual) { + assertNotNull(actual); + assertEquals(expected.getId(), actual.getId()); + assertNotNull(actual.getCategory()); + assertEquals(expected.getCategory().getName(), actual.getCategory().getName()); } /** - * uploads an image + * Assert that the given upload/download progress list satisfies the following constraints: * - * - * - * @throws ApiException if the Api call fails + *

- List is not empty - Byte count should be nondecreasing - The last element, and only the + * last element, should have done=true */ - @Test - public void uploadFileTest() throws ApiException { - Long petId = null; - String additionalMetadata = null; - File _file = null; - ModelApiResponse response = api.uploadFile(petId, additionalMetadata, _file); - // TODO: test validations + private void assertValidProgress(List progressList) { + assertFalse(progressList.isEmpty()); + + Progress prev = null; + int index = 0; + for (Progress progress : progressList) { + if (prev != null) { + if (prev.done || prev.bytes > progress.bytes) { + fail("Progress list out of order at index " + index + ": " + progressList); + } + } + prev = progress; + index += 1; + } + + if (!prev.done) { + fail("Last progress item should have done=true: " + progressList); + } + } + + private static class TestApiCallback implements ApiCallback { + + private final CountDownLatch latch; + private final ConcurrentLinkedQueue uploadProgress = + new ConcurrentLinkedQueue(); + private final ConcurrentLinkedQueue downloadProgress = + new ConcurrentLinkedQueue(); + + private boolean done; + private boolean success; + private ApiException exception; + private T result; + + public TestApiCallback(CountDownLatch latch) { + this.latch = latch; + this.done = false; + } + + @Override + public void onFailure( + ApiException e, int statusCode, Map> responseHeaders) { + exception = e; + this.done = true; + this.success = false; + latch.countDown(); + } + + @Override + public void onSuccess(T result, int statusCode, Map> responseHeaders) { + this.result = result; + this.done = true; + this.success = true; + latch.countDown(); + } + + @Override + public void onUploadProgress(long bytesWritten, long contentLength, boolean done) { + uploadProgress.add(new Progress(bytesWritten, contentLength, done)); + } + + @Override + public void onDownloadProgress(long bytesRead, long contentLength, boolean done) { + downloadProgress.add(new Progress(bytesRead, contentLength, done)); + } + + public boolean isDone() { + return done; + } + + public boolean isSuccess() { + return success; + } + + public ApiException getException() { + return exception; + } + + public T getResult() { + return result; + } + + public List getUploadProgress() { + return new ArrayList(uploadProgress); + } + + public List getDownloadProgress() { + return new ArrayList(downloadProgress); + } } + private static class Progress { + public final long bytes; + public final long contentLength; + public final boolean done; + + public Progress(long bytes, long contentLength, boolean done) { + this.bytes = bytes; + this.contentLength = contentLength; + this.done = done; + } + + @Override + public String toString() { + return ""; + } + } } diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/api/PetApiTest.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/api/PetApiTest.java index 9c54e3b6ce2f..2aa8a1881336 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/api/PetApiTest.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/api/PetApiTest.java @@ -2,8 +2,8 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * The version of the OpenAPI document: 1.0.0 - * + * OpenAPI spec version: 1.0.0 + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,145 +14,550 @@ package org.openapitools.client.api; import org.openapitools.client.ApiException; -import java.io.File; -import org.openapitools.client.model.ModelApiResponse; import org.openapitools.client.model.Pet; -import java.util.Set; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; +import org.openapitools.client.auth.*; +import org.openapitools.client.model.*; +import org.openapitools.client.*; +import java.lang.reflect.Type; +import java.util.Arrays; import java.util.ArrayList; +import java.util.concurrent.ConcurrentLinkedQueue; +import java.util.concurrent.CountDownLatch; +import java.util.concurrent.TimeUnit; import java.util.HashMap; +import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Set; +import java.util.concurrent.ThreadLocalRandom; +import java.io.BufferedWriter; +import java.io.File; +import java.io.FileWriter; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +import org.junit.jupiter.api.*; +import static org.junit.jupiter.api.Assertions.*; /** * API tests for PetApi */ -@Disabled public class PetApiTest { - private final PetApi api = new PetApi(); + private PetApi api = new PetApi(); + private final Logger LOG = LoggerFactory.getLogger(PetApiTest.class); + // In the circle.yml file, /etc/host is configured with an entry to resolve petstore.swagger.io to 127.0.0.1 + private static String basePath = "http://petstore.swagger.io:80/v2"; + + @Before + public void setup() { + // setup authentication + ApiKeyAuth apiKeyAuth = (ApiKeyAuth) api.getApiClient().getAuthentication("api_key"); + apiKeyAuth.setApiKey("special-key"); + api.getApiClient().setBasePath(basePath); + } - /** - * Add a new pet to the store - * - * @throws ApiException if the Api call fails - */ @Test - public void addPetTest() throws ApiException { - Pet body = null; - api.addPet(body); - // TODO: test validations + public void testApiClient() { + // the default api client is used + assertEquals(Configuration.getDefaultApiClient(), api.getApiClient()); + assertNotNull(api.getApiClient()); + assertEquals(basePath, api.getApiClient().getBasePath()); + assertFalse(api.getApiClient().isDebugging()); + + ApiClient oldClient = api.getApiClient(); + + ApiClient newClient = new ApiClient(); + newClient.setVerifyingSsl(true); + newClient.setBasePath("http://example.com"); + newClient.setDebugging(true); + + // set api client via constructor + api = new PetApi(newClient); + assertNotNull(api.getApiClient()); + assertEquals("http://example.com", api.getApiClient().getBasePath()); + assertTrue(api.getApiClient().isDebugging()); + + // set api client via setter method + api.setApiClient(oldClient); + assertNotNull(api.getApiClient()); + assertEquals(basePath, api.getApiClient().getBasePath()); + assertFalse(api.getApiClient().isDebugging()); } - /** - * Deletes a pet - * - * @throws ApiException if the Api call fails - */ @Test - public void deletePetTest() throws ApiException { - Long petId = null; - String apiKey = null; - api.deletePet(petId, apiKey); - // TODO: test validations + public void testCreateAndGetPet() throws Exception { + Pet pet = createPet(); + api.addPet(pet); + + Pet fetched = api.getPetById(pet.getId()); + assertPetMatches(pet, fetched); + api.deletePet(pet.getId(), null); } - /** - * Finds Pets by status - * - * Multiple status values can be provided with comma separated strings - * - * @throws ApiException if the Api call fails - */ @Test - public void findPetsByStatusTest() throws ApiException { - List status = null; - List response = api.findPetsByStatus(status); - // TODO: test validations + public void testCreateAndGetPetWithHttpInfo() throws Exception { + Pet pet = createPet(); + api.addPetWithHttpInfo(pet); + + ApiResponse resp = api.getPetByIdWithHttpInfo(pet.getId()); + assertEquals(200, resp.getStatusCode()); + assertEquals("application/json", resp.getHeaders().get("Content-Type").get(0)); + Pet fetched = resp.getData(); + + assertPetMatches(pet, fetched); + api.deletePet(pet.getId(), null); } - /** - * Finds Pets by tags - * - * Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. - * - * @throws ApiException if the Api call fails - */ @Test - public void findPetsByTagsTest() throws ApiException { - Set tags = null; - Set response = api.findPetsByTags(tags); - // TODO: test validations + public void testCreateAndGetPetAsync() throws Exception { + Pet pet = createPet(); + api.addPet(pet); + // to store returned Pet or error message/exception + final Map result = new HashMap(); + + api.getPetByIdAsync(pet.getId(), new ApiCallback() { + @Override + public void onFailure(ApiException e, int statusCode, Map> responseHeaders) { + result.put("error", e.getMessage()); + } + + @Override + public void onSuccess(Pet pet, int statusCode, Map> responseHeaders) { + result.put("pet", pet); + } + + @Override + public void onUploadProgress(long bytesWritten, long contentLength, boolean done) { + //empty + } + + @Override + public void onDownloadProgress(long bytesRead, long contentLength, boolean done) { + //empty + } + }); + + // wait for the asynchronous call to finish (at most 10 seconds) + final int maxTry = 10; + int tryCount = 1; + Pet fetched = null; + do { + if (tryCount > maxTry) fail("have not got result of getPetByIdAsync after 10 seconds"); + Thread.sleep(1000); + tryCount += 1; + if (result.get("error") != null) fail((String) result.get("error")); + if (result.get("pet") != null) { + fetched = (Pet) result.get("pet"); + break; + } + } while (result.isEmpty()); + assertPetMatches(pet, fetched); + api.deletePet(pet.getId(), null); } - /** - * Find pet by ID - * - * Returns a single pet - * - * @throws ApiException if the Api call fails - */ @Test - public void getPetByIdTest() throws ApiException { - Long petId = null; - Pet response = api.getPetById(petId); - // TODO: test validations + public void testCreateAndGetPetAsyncInvalidID() throws Exception { + Pet pet = createPet(); + api.addPet(pet); + // to store returned Pet or error message/exception + final Map result = new HashMap(); + + // test getting a nonexistent pet + result.clear(); + api.getPetByIdAsync(-10000L, new ApiCallback() { + @Override + public void onFailure(ApiException e, int statusCode, Map> responseHeaders) { + result.put("exception", e); + } + + @Override + public void onSuccess(Pet pet, int statusCode, Map> responseHeaders) { + result.put("pet", pet); + } + + @Override + public void onUploadProgress(long bytesWritten, long contentLength, boolean done) { + //empty + } + + @Override + public void onDownloadProgress(long bytesRead, long contentLength, boolean done) { + //empty + } + }); + + // wait for the asynchronous call to finish (at most 10 seconds) + final int maxTry = 10; + int tryCount = 1; + Pet fetched = null; + ApiException exception = null; + + do { + if (tryCount > maxTry) fail("have not got result of getPetByIdAsync after 10 seconds"); + Thread.sleep(1000); + tryCount += 1; + if (result.get("pet") != null) fail("expected an error"); + if (result.get("exception") != null) { + exception = (ApiException) result.get("exception"); + break; + } + } while (result.isEmpty()); + assertNotNull(exception); + assertEquals(404, exception.getCode()); + assertEquals("Not Found", exception.getMessage()); + assertEquals("application/json", exception.getResponseHeaders().get("Content-Type").get(0)); + api.deletePet(pet.getId(), null); } - /** - * Update an existing pet - * - * @throws ApiException if the Api call fails - */ @Test - public void updatePetTest() throws ApiException { - Pet body = null; - api.updatePet(body); - // TODO: test validations + public void testCreateAndGetMultiplePetsAsync() throws Exception { + Pet pet1 = createPet(); + Pet pet2 = createPet(); + + final CountDownLatch addLatch = new CountDownLatch(2); + final TestApiCallback addCallback1 = new TestApiCallback(addLatch); + final TestApiCallback addCallback2 = new TestApiCallback(addLatch); + + // Make 2 simultaneous calls + api.addPetAsync(pet1, addCallback1); + api.addPetAsync(pet2, addCallback2); + + // wait for both asynchronous calls to finish (at most 10 seconds) + assertTrue(addLatch.await(10, TimeUnit.SECONDS)); + + assertTrue(addCallback1.isDone()); + assertTrue(addCallback2.isDone()); + + if (!addCallback1.isSuccess()) throw addCallback1.getException(); + if (!addCallback2.isSuccess()) throw addCallback2.getException(); + + assertValidProgress(addCallback1.getUploadProgress()); + assertValidProgress(addCallback2.getUploadProgress()); + + final CountDownLatch getLatch = new CountDownLatch(3); + final TestApiCallback getCallback1 = new TestApiCallback(getLatch); + final TestApiCallback getCallback2 = new TestApiCallback(getLatch); + final TestApiCallback getCallback3 = new TestApiCallback(getLatch); + + api.getPetByIdAsync(pet1.getId(), getCallback1); + api.getPetByIdAsync(pet2.getId(), getCallback2); + // Get nonexistent pet + api.getPetByIdAsync(-10000L, getCallback3); + + // wait for all asynchronous calls to finish (at most 10 seconds) + assertTrue(getLatch.await(10, TimeUnit.SECONDS)); + + assertTrue(getCallback1.isDone()); + assertTrue(getCallback2.isDone()); + assertTrue(getCallback3.isDone()); + + if (!getCallback1.isSuccess()) throw getCallback1.getException(); + if (!getCallback2.isSuccess()) throw getCallback2.getException(); + + assertPetMatches(pet1, getCallback1.getResult()); + assertPetMatches(pet2, getCallback2.getResult()); + + assertValidProgress(getCallback1.getDownloadProgress()); + assertValidProgress(getCallback2.getDownloadProgress()); + + // Last callback should fail with ApiException + assertFalse(getCallback3.isSuccess()); + final ApiException exception = getCallback3.getException(); + assertNotNull(exception); + assertEquals(404, exception.getCode()); + api.deletePet(pet1.getId(), null); + api.deletePet(pet2.getId(), null); } - /** - * Updates a pet in the store with form data - * - * @throws ApiException if the Api call fails - */ + @Test - public void updatePetWithFormTest() throws ApiException { - Long petId = null; - String name = null; - String status = null; - api.updatePetWithForm(petId, name, status); - // TODO: test validations + public void testUpdatePet() throws Exception { + Pet pet = createPet(); + api.addPet(pet); + pet.setName("programmer"); + + api.updatePet(pet); + + Pet fetched = api.getPetById(pet.getId()); + assertPetMatches(pet, fetched); + api.deletePet(pet.getId(), null); } - /** - * uploads an image - * - * @throws ApiException if the Api call fails - */ @Test - public void uploadFileTest() throws ApiException { - Long petId = null; - String additionalMetadata = null; - File _file = null; - ModelApiResponse response = api.uploadFile(petId, additionalMetadata, _file); - // TODO: test validations + public void testFindPetsByStatus() throws Exception { + assertEquals(basePath, api.getApiClient().getBasePath()); + Pet pet = createPet(); + api.addPet(pet); + pet.setName("programmer"); + pet.setStatus(Pet.StatusEnum.PENDING); + api.updatePet(pet); + + List pets = api.findPetsByStatus(Arrays.asList("pending")); + assertNotNull(pets); + + boolean found = false; + for (Pet fetched : pets) { + if (fetched.getId().equals(pet.getId())) { + found = true; + break; + } + } + + assertTrue(found); + + api.deletePet(pet.getId(), null); + } + + @Test + @Disabled + public void testFindPetsByTags() throws Exception { + Pet pet = createPet(); + pet.setName("monster"); + pet.setStatus(Pet.StatusEnum.AVAILABLE); + + List tags = new ArrayList(); + org.openapitools.client.model.Tag tag1 = new org.openapitools.client.model.Tag(); + tag1.setName("friendly"); + tags.add(tag1); + pet.setTags(tags); + + api.updatePet(pet); + + Set pets = api.findPetsByTags(new HashSet<>(Arrays.asList("friendly"))); + assertNotNull(pets); + + boolean found = false; + for (Pet fetched : pets) { + if (fetched.getId().equals(pet.getId())) { + found = true; + break; + } + } + assertTrue(found); + + api.deletePet(pet.getId(), null); + } + + @Test + public void testUpdatePetWithForm() throws Exception { + Pet pet = createPet(); + pet.setName("frank"); + api.addPet(pet); + + Pet fetched = api.getPetById(pet.getId()); + + api.updatePetWithForm(fetched.getId(), "furt", null); + Pet updated = api.getPetById(fetched.getId()); + + assertEquals(updated.getName(), "furt"); + api.deletePet(pet.getId(), null); + } + + @Test + public void testDeletePet() throws Exception { + Pet pet = createPet(); + api.addPet(pet); + + Pet fetched = api.getPetById(pet.getId()); + api.deletePet(pet.getId(), null); + + try { + fetched = api.getPetById(fetched.getId()); + fail("expected an error"); + } catch (ApiException e) { + LOG.info("Code: {}. Message: {}", e.getCode(), e.getMessage()); + assertEquals(404, e.getCode()); + } + } + + @Test + public void testUploadFile() throws Exception { + Pet pet = createPet(); + api.addPet(pet); + + File file = new File("hello.txt"); + BufferedWriter writer = new BufferedWriter(new FileWriter(file)); + writer.write("Hello world!"); + writer.close(); + + api.uploadFile(pet.getId(), "a test file", new File(file.getAbsolutePath())); + api.deletePet(pet.getId(), null); + } + + @Test + public void testEqualsAndHashCode() { + Pet pet1 = new Pet(); + Pet pet2 = new Pet(); + assertTrue(pet1.equals(pet2)); + assertTrue(pet2.equals(pet1)); + assertTrue(pet1.hashCode() == pet2.hashCode()); + assertTrue(pet1.equals(pet1)); + assertTrue(pet1.hashCode() == pet1.hashCode()); + + pet2.setName("really-happy"); + pet2.setPhotoUrls(new HashSet<>(Arrays.asList("http://foo.bar.com/1", "http://foo.bar.com/2"))); + assertFalse(pet1.equals(pet2)); + assertFalse(pet2.equals(pet1)); + assertFalse(pet1.hashCode() == (pet2.hashCode())); + assertTrue(pet2.equals(pet2)); + assertTrue(pet2.hashCode() == pet2.hashCode()); + + pet1.setName("really-happy"); + pet1.setPhotoUrls(new HashSet<>(Arrays.asList("http://foo.bar.com/1", "http://foo.bar.com/2"))); + assertTrue(pet1.equals(pet2)); + assertTrue(pet2.equals(pet1)); + assertTrue(pet1.hashCode() == pet2.hashCode()); + assertTrue(pet1.equals(pet1)); + assertTrue(pet1.hashCode() == pet1.hashCode()); + } + + + private Pet createPet() { + Pet pet = new Pet(); + pet.setId(ThreadLocalRandom.current().nextLong(Long.MAX_VALUE)); + pet.setName("gorilla"); + + Category category = new Category(); + category.setName("really-happy"); + + pet.setCategory(category); + pet.setStatus(Pet.StatusEnum.AVAILABLE); + Set photos = new HashSet<>(Arrays.asList("http://foo.bar.com/1", "http://foo.bar.com/2")); + pet.setPhotoUrls(photos); + + return pet; + } + + private String serializeJson(Object o, ApiClient apiClient) { + return apiClient.getJSON().serialize(o); + } + + private T deserializeJson(String json, Type type, ApiClient apiClient) { + return (T) apiClient.getJSON().deserialize(json, type); + } + + private void assertPetMatches(Pet expected, Pet actual) { + assertNotNull(actual); + assertEquals(expected.getId(), actual.getId()); + assertNotNull(actual.getCategory()); + assertEquals(expected.getCategory().getName(), + actual.getCategory().getName()); } /** - * uploads an image (required) - * - * @throws ApiException if the Api call fails + * Assert that the given upload/download progress list satisfies the + * following constraints: + *

+ * - List is not empty + * - Byte count should be nondecreasing + * - The last element, and only the last element, should have done=true */ - @Test - public void uploadFileWithRequiredFileTest() throws ApiException { - Long petId = null; - File requiredFile = null; - String additionalMetadata = null; - ModelApiResponse response = api.uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata); - // TODO: test validations + private void assertValidProgress(List progressList) { + assertFalse(progressList.isEmpty()); + + Progress prev = null; + int index = 0; + for (Progress progress : progressList) { + if (prev != null) { + if (prev.done || prev.bytes > progress.bytes) { + fail("Progress list out of order at index " + index + + ": " + progressList); + } + } + prev = progress; + index += 1; + } + + if (!prev.done) { + fail("Last progress item should have done=true: " + progressList); + } } + private static class TestApiCallback implements ApiCallback { + + private final CountDownLatch latch; + private final ConcurrentLinkedQueue uploadProgress = + new ConcurrentLinkedQueue(); + private final ConcurrentLinkedQueue downloadProgress = + new ConcurrentLinkedQueue(); + + private boolean done; + private boolean success; + private ApiException exception; + private T result; + + public TestApiCallback(CountDownLatch latch) { + this.latch = latch; + this.done = false; + } + + @Override + public void onFailure(ApiException e, int statusCode, Map> responseHeaders) { + exception = e; + this.done = true; + this.success = false; + latch.countDown(); + } + + @Override + public void onSuccess(T result, int statusCode, Map> responseHeaders) { + this.result = result; + this.done = true; + this.success = true; + latch.countDown(); + } + + @Override + public void onUploadProgress(long bytesWritten, long contentLength, boolean done) { + uploadProgress.add(new Progress(bytesWritten, contentLength, done)); + } + + @Override + public void onDownloadProgress(long bytesRead, long contentLength, boolean done) { + downloadProgress.add(new Progress(bytesRead, contentLength, done)); + } + + public boolean isDone() { + return done; + } + + public boolean isSuccess() { + return success; + } + + public ApiException getException() { + return exception; + } + + public T getResult() { + return result; + } + + public List getUploadProgress() { + return new ArrayList(uploadProgress); + } + + public List getDownloadProgress() { + return new ArrayList(downloadProgress); + } + } + + private static class Progress { + public final long bytes; + public final long contentLength; + public final boolean done; + + public Progress(long bytes, long contentLength, boolean done) { + this.bytes = bytes; + this.contentLength = contentLength; + this.done = done; + } + + @Override + public String toString() { + return ""; + } + } } diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnlyTest.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnlyTest.java index 618a21c8a982..dc2a20f163d4 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnlyTest.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnlyTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * The version of the OpenAPI document: 1.0.0 + * OpenAPI spec version: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,16 +13,20 @@ package org.openapitools.client.model; +import org.apache.commons.lang3.builder.EqualsBuilder; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.math.BigDecimal; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; + +import org.junit.jupiter.api.Assertions.*; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; @@ -36,7 +40,7 @@ public class ArrayOfArrayOfNumberOnlyTest { * Model tests for ArrayOfArrayOfNumberOnly */ @Test - public void testArrayOfArrayOfNumberOnly() { + public void test() { // TODO: test ArrayOfArrayOfNumberOnly } @@ -45,7 +49,25 @@ public void testArrayOfArrayOfNumberOnly() { */ @Test public void arrayArrayNumberTest() { - // TODO: test arrayArrayNumber + BigDecimal b1 = new BigDecimal("12.3"); + BigDecimal b2 = new BigDecimal("5.6"); + List arrayArrayNumber = new ArrayList(); + arrayArrayNumber.add(b1); + arrayArrayNumber.add(b2); + model.setArrayArrayNumber(new ArrayList>()); + model.getArrayArrayNumber().add(arrayArrayNumber); + + // create another instance for comparison + BigDecimal b3 = new BigDecimal("12.3"); + BigDecimal b4 = new BigDecimal("5.6"); + ArrayOfArrayOfNumberOnly model2 = new ArrayOfArrayOfNumberOnly(); + List arrayArrayNumber2 = new ArrayList(); + arrayArrayNumber2.add(b1); + arrayArrayNumber2.add(b2); + model2.setArrayArrayNumber(new ArrayList>()); + model2.getArrayArrayNumber().add(arrayArrayNumber2); + + Assert.assertTrue(model2.equals(model)); } } diff --git a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/api/PetApiTest.java b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/api/PetApiTest.java index 2cab5e0d300e..494c91ba315f 100644 --- a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/api/PetApiTest.java +++ b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/api/PetApiTest.java @@ -14,25 +14,26 @@ package org.openapitools.client.api; import org.openapitools.client.ApiException; -import java.io.File; import org.openapitools.client.model.ModelApiResponse; import org.openapitools.client.model.Pet; -import java.util.Set; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Assertions; +import java.io.File; +import java.io.FileWriter; import java.time.LocalDate; import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; +import java.util.Set; /** * API tests for PetApi */ -class PetApiTest { +public class PetApiTest { private final PetApi api = new PetApi(); @@ -45,7 +46,7 @@ class PetApiTest { * if the Api call fails */ @Test - void addPetTest() throws ApiException { + public void addPetTest() throws ApiException { // //Pet pet = null; // @@ -62,7 +63,7 @@ void addPetTest() throws ApiException { * if the Api call fails */ @Test - void deletePetTest() throws ApiException { + public void deletePetTest() throws ApiException { // //Long petId = null; // @@ -81,7 +82,7 @@ void deletePetTest() throws ApiException { * if the Api call fails */ @Test - void findPetsByStatusTest() throws ApiException { + public void findPetsByStatusTest() throws ApiException { // //List status = null; // @@ -98,7 +99,7 @@ void findPetsByStatusTest() throws ApiException { * if the Api call fails */ @Test - void findPetsByTagsTest() throws ApiException { + public void findPetsByTagsTest() throws ApiException { // //Set tags = null; // @@ -115,7 +116,7 @@ void findPetsByTagsTest() throws ApiException { * if the Api call fails */ @Test - void getPetByIdTest() throws ApiException { + public void getPetByIdTest() throws ApiException { // //Long petId = null; // @@ -132,7 +133,7 @@ void getPetByIdTest() throws ApiException { * if the Api call fails */ @Test - void updatePetTest() throws ApiException { + public void updatePetTest() throws ApiException { // //Pet pet = null; // @@ -149,7 +150,7 @@ void updatePetTest() throws ApiException { * if the Api call fails */ @Test - void updatePetWithFormTest() throws ApiException { + public void updatePetWithFormTest() throws ApiException { // //Long petId = null; // @@ -170,17 +171,19 @@ void updatePetWithFormTest() throws ApiException { * if the Api call fails */ @Test - void uploadFileTest() throws ApiException { - // - //Long petId = null; - // - //String additionalMetadata = null; - // - //File _file = null; - // - //ModelApiResponse response = api.uploadFile(petId, additionalMetadata, _file); - - // TODO: test validations + public void uploadFileTest() throws Exception { + Long petId = 1L; + String additionalMetadata = "additoinal data"; + File file = new File("test.txt"); + if(!file.exists()){ + file.createNewFile(); + } + FileWriter fw = new FileWriter(file); + fw.write("testing only"); + fw.close(); + file.deleteOnExit(); + ModelApiResponse response = api.uploadFile(petId, additionalMetadata, file); + Assertions.assertEquals((long)response.getCode(), 200); } /** * uploads an image (required) @@ -191,7 +194,7 @@ void uploadFileTest() throws ApiException { * if the Api call fails */ @Test - void uploadFileWithRequiredFileTest() throws ApiException { + public void uploadFileWithRequiredFileTest() throws ApiException { // //Long petId = null; // diff --git a/samples/client/petstore/javascript-es6/test/api/PetApi.spec.js b/samples/client/petstore/javascript-es6/test/api/PetApi.spec.js index 16591a407d97..e21aa53f7d2c 100644 --- a/samples/client/petstore/javascript-es6/test/api/PetApi.spec.js +++ b/samples/client/petstore/javascript-es6/test/api/PetApi.spec.js @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * The version of the OpenAPI document: 1.0.0 + * OpenAPI spec version: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,10 +14,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); + define(['expect.js', '../../src/index'], factory); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); + factory(require('expect.js'), require('../../src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); @@ -25,10 +25,11 @@ }(this, function(expect, OpenApiPetstore) { 'use strict'; - var instance; + var api_instance; + var id = 129038120; beforeEach(function() { - instance = new OpenApiPetstore.PetApi(); + api_instance = new OpenApiPetstore.PetApi(); }); var getProperty = function(object, getter, property) { @@ -47,7 +48,62 @@ object[property] = value; } + var createRandomPet = function() { + var pet = new OpenApiPetstore.Pet(); + setProperty(pet, "setId", "id", id); + setProperty(pet, "setName", "name", "pet" + id); + + var category = new OpenApiPetstore.Category(); + setProperty(category, "setId", "id", id); + setProperty(category, "setName", "name", "category" + id); + setProperty(pet, "setCategory", "category", category); + + setProperty(pet, "setStatus", "status", "available"); + var photos = ["http://foo.bar.com/1", "http://foo.bar.com/2"]; + setProperty(pet, "setPhotoUrls", "photoUrls", photos); + + return pet; + } + describe('PetApi', function() { + it('should create and get pet', function(done) { + this.timeout(15000); + var pet = createRandomPet(); + try { + //api_instance.addPet(pet, {_base_path_index: 1}, function(error) { + api_instance.addPet(pet, null, function(error) { + if (error) throw error; + + api_instance.getPetById(pet.id, function(error, fetched, response) { + if (error) throw error; + expect(response.status).to.be(200); + expect(response.ok).to.be(true); + expect(response.get('Content-Type')).to.be('application/json'); + + expect(fetched).to.be.a(OpenApiPetstore.Pet); + expect(JSON.stringify(fetched)).to.be('{"name":"pet129038120","photoUrls":["http://foo.bar.com/1","http://foo.bar.com/2"],"id":129038120,"category":{"name":"category129038120","id":129038120},"tags":[],"status":"available"}'); + + // test ApiClient.convertToType + var tag_result = OpenApiPetstore.ApiClient.convertToType(JSON.stringify(fetched), OpenApiPetstore.Pet); + expect(tag_result).to.be.a(OpenApiPetstore.Pet); + + // test returned object `Pet` + expect(fetched.id).to.be(pet.id); + expect(getProperty(fetched, "getPhotoUrls", "photoUrls")) + .to.eql(getProperty(pet, "getPhotoUrls", "photoUrls")); + expect(getProperty(fetched, "getCategory", "category")) + .to.be.a(OpenApiPetstore.Category); + expect(getProperty(getProperty(fetched, "getCategory", "category"), "getName", "name")) + .to.be(getProperty(getProperty(pet, "getCategory", "category"), "getName", "name")); + + api_instance.deletePet(pet.id); + done(); + }); + }); + } catch (error) { + done(error); + } + }); describe('addPet', function() { it('should call addPet successfully', function(done) { //uncomment below and update the code to test addPet @@ -128,16 +184,6 @@ done(); }); }); - describe('uploadFileWithRequiredFile', function() { - it('should call uploadFileWithRequiredFile successfully', function(done) { - //uncomment below and update the code to test uploadFileWithRequiredFile - //instance.uploadFileWithRequiredFile(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); }); })); diff --git a/samples/client/petstore/kotlin-model-prefix-type-mappings/src/test/kotlin/org/openapitools/client/models/AnyOfUserOrPetTest.kt b/samples/client/petstore/kotlin-model-prefix-type-mappings/src/test/kotlin/org/openapitools/client/models/AnyOfUserOrPetTest.kt index edcff52fa48e..c3eeb87dbf11 100644 --- a/samples/client/petstore/kotlin-model-prefix-type-mappings/src/test/kotlin/org/openapitools/client/models/AnyOfUserOrPetTest.kt +++ b/samples/client/petstore/kotlin-model-prefix-type-mappings/src/test/kotlin/org/openapitools/client/models/AnyOfUserOrPetTest.kt @@ -15,96 +15,76 @@ package org.openapitools.client.models +import com.google.gson.GsonBuilder +import com.google.gson.JsonSyntaxException import io.kotlintest.shouldBe import io.kotlintest.specs.ShouldSpec +import org.junit.jupiter.api.Assertions import org.openapitools.client.models.ApiAnyOfUserOrPet import org.openapitools.client.models.ApiCategory import org.openapitools.client.models.ApiPet import org.openapitools.client.models.ApiTag import org.openapitools.client.models.ApiUser +import java.lang.RuntimeException class ApiAnyOfUserOrPetTest : ShouldSpec() { init { - // uncomment below to create an instance of ApiAnyOfUserOrPet - //val modelInstance = ApiAnyOfUserOrPet() - - // to test the property `username` - should("test username") { - // uncomment below to test the property - //modelInstance.username shouldBe ("TODO") - } - - // to test the property `name` - should("test name") { - // uncomment below to test the property - //modelInstance.name shouldBe ("TODO") - } - - // to test the property `photoUrls` - should("test photoUrls") { - // uncomment below to test the property - //modelInstance.photoUrls shouldBe ("TODO") - } - - // to test the property `id` - should("test id") { - // uncomment below to test the property - //modelInstance.id shouldBe ("TODO") - } - - // to test the property `firstName` - should("test firstName") { - // uncomment below to test the property - //modelInstance.firstName shouldBe ("TODO") - } - - // to test the property `lastName` - should("test lastName") { - // uncomment below to test the property - //modelInstance.lastName shouldBe ("TODO") - } - - // to test the property `email` - should("test email") { - // uncomment below to test the property - //modelInstance.email shouldBe ("TODO") - } - - // to test the property `password` - should("test password") { - // uncomment below to test the property - //modelInstance.password shouldBe ("TODO") - } - - // to test the property `phone` - should("test phone") { - // uncomment below to test the property - //modelInstance.phone shouldBe ("TODO") - } - - // to test the property `userStatus` - User Status - should("test userStatus") { - // uncomment below to test the property - //modelInstance.userStatus shouldBe ("TODO") - } - - // to test the property `category` - should("test category") { - // uncomment below to test the property - //modelInstance.category shouldBe ("TODO") - } - - // to test the property `tags` - should("test tags") { - // uncomment below to test the property - //modelInstance.tags shouldBe ("TODO") - } - - // to test the property `status` - pet status in the store - should("test status") { - // uncomment below to test the property - //modelInstance.status shouldBe ("TODO") + should("test custom type adapter") { + val gson = GsonBuilder() + .registerTypeAdapterFactory(ApiUser.CustomTypeAdapterFactory()) + .registerTypeAdapterFactory(ApiCategory.CustomTypeAdapterFactory()) + .registerTypeAdapterFactory(ApiPet.CustomTypeAdapterFactory()) + .registerTypeAdapterFactory(ApiTag.CustomTypeAdapterFactory()) + .registerTypeAdapterFactory(ApiAnyOfUserOrPet.CustomTypeAdapterFactory()) + .create() + + // test Category + val categoryJson = "{\"id\":123,\"name\":\"category\"}" + val category = gson.fromJson(categoryJson, ApiCategory::class.java) + //val category = gson.fromJson("{\"name\":\"category\"}", ApiCategory::class.java) + category.id shouldBe 123L + category.name shouldBe "category" + + // test Pet + val petJson = "{\"id\":123,\"name\":\"pet\",\"photoUrls\":[\"https://a.com\"],\"category\":{\"id\":456,\"name\":\"pet category\"},\"tags\":[{\"id\":678,\"name\":\"pet tag\"}],\"status\":\"available\"}" + val pet = gson.fromJson(petJson, ApiPet::class.java) + pet.id shouldBe 123L + pet.name shouldBe "pet" + pet.photoUrls shouldBe arrayOf("https://a.com") + pet.tags shouldBe arrayOf(ApiTag(678, "pet tag")) + pet.category shouldBe ApiCategory(456, "pet category") + pet.status shouldBe ApiPet.Status.AVAILABLE + + // test invalid json (missing required fields) + val petJsonMissingRequiredFields = "{\"id\":123,\"category\":{\"id\":456,\"name\":\"pet category\"},\"tags\":[{\"id\":678,\"name\":\"pet tag\"}],\"status\":\"available\"}" + Assertions.assertThrows(IllegalArgumentException::class.java) { + val failedPet = gson.fromJson(petJsonMissingRequiredFields, ApiPet::class.java) + failedPet.id shouldBe 123L + } + + // test AnyOfUserOrPet (anyOf schema) + // invalid json + Assertions.assertThrows(JsonSyntaxException::class.java) { + val failed = gson.fromJson(categoryJson, ApiAnyOfUserOrPet::class.java) + if (failed != null) { + throw RuntimeException("this exception shouldn't be thrown") + } + } + + // valid json, actualInstance should be Pet + val anyOfUserOrPet = gson.fromJson(petJson, ApiAnyOfUserOrPet::class.java) + (anyOfUserOrPet.actualInstance is ApiPet) shouldBe true + (anyOfUserOrPet.actualInstance is ApiUser) shouldBe false + + val petFromAnyOf: ApiPet = anyOfUserOrPet.actualInstance as ApiPet + + petFromAnyOf.id shouldBe 123L + petFromAnyOf.name shouldBe "pet" + petFromAnyOf.photoUrls shouldBe arrayOf("https://a.com") + petFromAnyOf.tags shouldBe arrayOf(ApiTag(678, "pet tag")) + petFromAnyOf.category shouldBe ApiCategory(456, "pet category") + petFromAnyOf.status shouldBe ApiPet.Status.AVAILABLE } } diff --git a/samples/client/petstore/kotlin-model-prefix-type-mappings/src/test/kotlin/org/openapitools/client/models/UserOrPetTest.kt b/samples/client/petstore/kotlin-model-prefix-type-mappings/src/test/kotlin/org/openapitools/client/models/UserOrPetTest.kt index 0001fc064880..e33ae025bac5 100644 --- a/samples/client/petstore/kotlin-model-prefix-type-mappings/src/test/kotlin/org/openapitools/client/models/UserOrPetTest.kt +++ b/samples/client/petstore/kotlin-model-prefix-type-mappings/src/test/kotlin/org/openapitools/client/models/UserOrPetTest.kt @@ -23,89 +23,67 @@ import org.openapitools.client.models.ApiCategory import org.openapitools.client.models.ApiPet import org.openapitools.client.models.ApiTag import org.openapitools.client.models.ApiUser +import com.google.gson.GsonBuilder +import io.kotlintest.matchers.types.shouldBeSameInstanceAs +import io.kotlintest.shouldNotBe +import org.junit.jupiter.api.Assertions.assertThrows +import org.openapitools.client.infrastructure.ApiClient +import org.openapitools.client.infrastructure.registerTypeAdapterFactoryForAllModels +import java.io.IOException +import java.lang.RuntimeException class ApiUserOrPetTest : ShouldSpec() { init { - // uncomment below to create an instance of ApiUserOrPet - //val modelInstance = ApiUserOrPet() - // to test the property `username` - should("test username") { - // uncomment below to test the property - //modelInstance.username shouldBe ("TODO") + should("test custom type adapter") { + val gson = ApiClient().getSerializerBuilder().create() + + // test Category + val categoryJson = "{\"id\":123,\"name\":\"category\"}" + val category = gson.fromJson(categoryJson, ApiCategory::class.java) + //val category = gson.fromJson("{\"name\":\"category\"}", ApiCategory::class.java) + category.id shouldBe 123L + category.name shouldBe "category" + + // test Pet + val petJson = "{\"id\":123,\"name\":\"pet\",\"photoUrls\":[\"https://a.com\"],\"category\":{\"id\":456,\"name\":\"pet category\"},\"tags\":[{\"id\":678,\"name\":\"pet tag\"}],\"status\":\"available\"}" + val pet = gson.fromJson(petJson, ApiPet::class.java) + pet.id shouldBe 123L + pet.name shouldBe "pet" + pet.photoUrls shouldBe arrayOf("https://a.com") + pet.tags shouldBe arrayOf(ApiTag(678, "pet tag")) + pet.category shouldBe ApiCategory(456, "pet category") + pet.status shouldBe ApiPet.Status.AVAILABLE + + // test invalid json (missing required fields) + val petJsonMissingRequiredFields = "{\"id\":123,\"category\":{\"id\":456,\"name\":\"pet category\"},\"tags\":[{\"id\":678,\"name\":\"pet tag\"}],\"status\":\"available\"}" + assertThrows(IllegalArgumentException::class.java) { + val failedPet = gson.fromJson(petJsonMissingRequiredFields, ApiPet::class.java) + failedPet.id shouldBe 123L + } + + // test UserOrPet (oneOf schema) + // invalid json + assertThrows(com.google.gson.JsonSyntaxException::class.java) { + val failed = gson.fromJson(categoryJson, ApiUserOrPet::class.java) + if (failed != null) { + throw RuntimeException("this exception shouldn't be thrown") + } + } + + // valid json, actualInstance should be Pet + val userOrPet = gson.fromJson(petJson, ApiUserOrPet::class.java) + (userOrPet.actualInstance is ApiPet) shouldBe true + (userOrPet.actualInstance is ApiUser) shouldBe false + + val petFromOneOf: ApiPet = userOrPet.actualInstance as ApiPet + + petFromOneOf.id shouldBe 123L + petFromOneOf.name shouldBe "pet" + petFromOneOf.photoUrls shouldBe arrayOf("https://a.com") + petFromOneOf.tags shouldBe arrayOf(ApiTag(678, "pet tag")) + petFromOneOf.category shouldBe ApiCategory(456, "pet category") + petFromOneOf.status shouldBe ApiPet.Status.AVAILABLE } - - // to test the property `name` - should("test name") { - // uncomment below to test the property - //modelInstance.name shouldBe ("TODO") - } - - // to test the property `photoUrls` - should("test photoUrls") { - // uncomment below to test the property - //modelInstance.photoUrls shouldBe ("TODO") - } - - // to test the property `id` - should("test id") { - // uncomment below to test the property - //modelInstance.id shouldBe ("TODO") - } - - // to test the property `firstName` - should("test firstName") { - // uncomment below to test the property - //modelInstance.firstName shouldBe ("TODO") - } - - // to test the property `lastName` - should("test lastName") { - // uncomment below to test the property - //modelInstance.lastName shouldBe ("TODO") - } - - // to test the property `email` - should("test email") { - // uncomment below to test the property - //modelInstance.email shouldBe ("TODO") - } - - // to test the property `password` - should("test password") { - // uncomment below to test the property - //modelInstance.password shouldBe ("TODO") - } - - // to test the property `phone` - should("test phone") { - // uncomment below to test the property - //modelInstance.phone shouldBe ("TODO") - } - - // to test the property `userStatus` - User Status - should("test userStatus") { - // uncomment below to test the property - //modelInstance.userStatus shouldBe ("TODO") - } - - // to test the property `category` - should("test category") { - // uncomment below to test the property - //modelInstance.category shouldBe ("TODO") - } - - // to test the property `tags` - should("test tags") { - // uncomment below to test the property - //modelInstance.tags shouldBe ("TODO") - } - - // to test the property `status` - pet status in the store - should("test status") { - // uncomment below to test the property - //modelInstance.status shouldBe ("TODO") - } - } } diff --git a/samples/client/petstore/ruby/spec/models/mamal_with_enum_spec.rb b/samples/client/petstore/ruby/spec/models/mamal_with_enum_spec.rb index 5622e5ed8622..e3c1f1255c1a 100644 --- a/samples/client/petstore/ruby/spec/models/mamal_with_enum_spec.rb +++ b/samples/client/petstore/ruby/spec/models/mamal_with_enum_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -Generator version: 7.11.0-SNAPSHOT +OpenAPI Generator version: 7.3.0-SNAPSHOT =end @@ -26,7 +26,11 @@ describe '.build' do it 'returns the correct model' do - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + expect(described_class.build("BlackAndWhiteCow")).to eq(Petstore::Cow::BLACK_AND_WHITE_COW) + end + + it 'returns nil for unknown model' do + expect(described_class.build({ classname: 'monkey', type: 'gorilla' })).to be_nil end end end diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib/test/api_response_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib/test/api_response_test.dart index ee118ec81e02..e9743c1ddded 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib/test/api_response_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib/test/api_response_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.18 +// @dart=2.12 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,6 +11,7 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; +// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for ApiResponse void main() { // final instance = ApiResponse(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib/test/category_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib/test/category_test.dart index f607b63728d5..3e0e90fc90db 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib/test/category_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib/test/category_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.18 +// @dart=2.12 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,6 +11,7 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; +// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for Category void main() { // final instance = Category(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib/test/order_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib/test/order_test.dart index 219aa86360fc..b625abdaf9fc 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib/test/order_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib/test/order_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.18 +// @dart=2.12 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,6 +11,7 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; +// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for Order void main() { // final instance = Order(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib/test/pet_api_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib/test/pet_api_test.dart index 565bf857613b..bdb430ea1a80 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib/test/pet_api_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib/test/pet_api_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.18 +// @dart=2.12 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -12,6 +12,7 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; +// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 /// tests for PetApi void main() { // final instance = PetApi(); @@ -19,8 +20,6 @@ void main() { group('tests for PetApi', () { // Add a new pet to the store // - // - // //Future addPet(Pet pet) async test('test addPet', () async { // TODO @@ -28,8 +27,6 @@ void main() { // Deletes a pet // - // - // //Future deletePet(int petId, { String apiKey }) async test('test deletePet', () async { // TODO @@ -64,8 +61,6 @@ void main() { // Update an existing pet // - // - // //Future updatePet(Pet pet) async test('test updatePet', () async { // TODO @@ -73,8 +68,6 @@ void main() { // Updates a pet in the store with form data // - // - // //Future updatePetWithForm(int petId, { String name, String status }) async test('test updatePetWithForm', () async { // TODO @@ -82,8 +75,6 @@ void main() { // uploads an image // - // - // //Future uploadFile(int petId, { String additionalMetadata, MultipartFile file }) async test('test uploadFile', () async { // TODO diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib/test/pet_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib/test/pet_test.dart index 3678d8ce1d0c..ddb8f6a569e3 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib/test/pet_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib/test/pet_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.18 +// @dart=2.12 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,6 +11,7 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; +// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for Pet void main() { // final instance = Pet(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib/test/store_api_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib/test/store_api_test.dart index ea91b78f7079..4d6825e2cfd1 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib/test/store_api_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib/test/store_api_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.18 +// @dart=2.12 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -12,6 +12,7 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; +// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 /// tests for StoreApi void main() { // final instance = StoreApi(); @@ -46,8 +47,6 @@ void main() { // Place an order for a pet // - // - // //Future placeOrder(Order order) async test('test placeOrder', () async { // TODO diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib/test/tag_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib/test/tag_test.dart index 0a7baa9a5600..78d5880e6d4c 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib/test/tag_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib/test/tag_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.18 +// @dart=2.12 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,6 +11,7 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; +// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for Tag void main() { // final instance = Tag(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib/test/user_api_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib/test/user_api_test.dart index 573f19d8ffe1..4f82364bd172 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib/test/user_api_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib/test/user_api_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.18 +// @dart=2.12 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -12,6 +12,7 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; +// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 /// tests for UserApi void main() { // final instance = UserApi(); @@ -28,8 +29,6 @@ void main() { // Creates list of users with given input array // - // - // //Future createUsersWithArrayInput(List user) async test('test createUsersWithArrayInput', () async { // TODO @@ -37,8 +36,6 @@ void main() { // Creates list of users with given input array // - // - // //Future createUsersWithListInput(List user) async test('test createUsersWithListInput', () async { // TODO @@ -55,8 +52,6 @@ void main() { // Get user by user name // - // - // //Future getUserByName(String username) async test('test getUserByName', () async { // TODO @@ -64,8 +59,6 @@ void main() { // Logs user into the system // - // - // //Future loginUser(String username, String password) async test('test loginUser', () async { // TODO @@ -73,8 +66,6 @@ void main() { // Logs out current logged in user session // - // - // //Future logoutUser() async test('test logoutUser', () async { // TODO diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib/test/user_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib/test/user_test.dart index a0f010c10776..d86551e10b64 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib/test/user_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib/test/user_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.18 +// @dart=2.12 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,6 +11,7 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; +// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for User void main() { // final instance = User(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/additional_properties_class_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/additional_properties_class_test.dart index 2d8f6c5016cd..ba464213ba93 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/additional_properties_class_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/additional_properties_class_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.18 +// @dart=2.12 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,6 +11,7 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; +// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for AdditionalPropertiesClass void main() { // final instance = AdditionalPropertiesClass(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/all_of_with_single_ref_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/all_of_with_single_ref_test.dart index c04bbdcbe164..8fbbec42ef15 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/all_of_with_single_ref_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/all_of_with_single_ref_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.18 +// @dart=2.12 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/animal_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/animal_test.dart index db82504de600..b4d1e331abee 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/animal_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/animal_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.18 +// @dart=2.12 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,6 +11,7 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; +// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for Animal void main() { // final instance = Animal(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/another_fake_api_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/another_fake_api_test.dart index c1decf40a90c..34367effd5a9 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/another_fake_api_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/another_fake_api_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.18 +// @dart=2.12 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -12,6 +12,7 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; +// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 /// tests for AnotherFakeApi void main() { // final instance = AnotherFakeApi(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/api_response_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/api_response_test.dart index ee118ec81e02..e9743c1ddded 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/api_response_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/api_response_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.18 +// @dart=2.12 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,6 +11,7 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; +// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for ApiResponse void main() { // final instance = ApiResponse(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/array_of_array_of_number_only_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/array_of_array_of_number_only_test.dart index 060e4f7f77b3..16ba1e3e45c3 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/array_of_array_of_number_only_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/array_of_array_of_number_only_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.18 +// @dart=2.12 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,6 +11,7 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; +// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for ArrayOfArrayOfNumberOnly void main() { // final instance = ArrayOfArrayOfNumberOnly(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/array_of_number_only_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/array_of_number_only_test.dart index 79c02c90464d..5a83508f431e 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/array_of_number_only_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/array_of_number_only_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.18 +// @dart=2.12 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,6 +11,7 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; +// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for ArrayOfNumberOnly void main() { // final instance = ArrayOfNumberOnly(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/array_test_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/array_test_test.dart index 888cfe72101a..7ed043205d9d 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/array_test_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/array_test_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.18 +// @dart=2.12 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,6 +11,7 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; +// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for ArrayTest void main() { // final instance = ArrayTest(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/capitalization_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/capitalization_test.dart index b15b4070f8e8..ec2cf7e54803 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/capitalization_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/capitalization_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.18 +// @dart=2.12 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,6 +11,7 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; +// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for Capitalization void main() { // final instance = Capitalization(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/cat_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/cat_test.dart index b02c729a9f38..cb2a70551331 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/cat_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/cat_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.18 +// @dart=2.12 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,6 +11,7 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; +// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for Cat void main() { // final instance = Cat(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/category_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/category_test.dart index f463d6f760fd..8e45f5de2e51 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/category_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/category_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.18 +// @dart=2.12 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,6 +11,7 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; +// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for Category void main() { // final instance = Category(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/child_with_nullable_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/child_with_nullable_test.dart index 9adb87f0f252..30d4588bd807 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/child_with_nullable_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/child_with_nullable_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.18 +// @dart=2.12 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/class_model_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/class_model_test.dart index be11ea6968ff..0fa269691c11 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/class_model_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/class_model_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.18 +// @dart=2.12 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,6 +11,7 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; +// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for ClassModel void main() { // final instance = ClassModel(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/default_api_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/default_api_test.dart index 114c98209b61..530a221d7766 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/default_api_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/default_api_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.18 +// @dart=2.12 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -12,12 +12,13 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; +// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 /// tests for DefaultApi void main() { // final instance = DefaultApi(); group('tests for DefaultApi', () { - //Future fooGet() async + //Future fooGet() async test('test fooGet', () async { // TODO }); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/deprecated_object_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/deprecated_object_test.dart index 01d2d9a5200e..cee2bb6a5be3 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/deprecated_object_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/deprecated_object_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.18 +// @dart=2.12 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,6 +11,7 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; +// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for DeprecatedObject void main() { // final instance = DeprecatedObject(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/dog_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/dog_test.dart index f644eb71326a..7704643bc25c 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/dog_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/dog_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.18 +// @dart=2.12 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,6 +11,7 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; +// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for Dog void main() { // final instance = Dog(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/enum_arrays_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/enum_arrays_test.dart index c138856233ad..07318b4510fe 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/enum_arrays_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/enum_arrays_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.18 +// @dart=2.12 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,6 +11,7 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; +// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for EnumArrays void main() { // final instance = EnumArrays(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/enum_class_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/enum_class_test.dart index 19603ea30129..c93a03b32ffa 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/enum_class_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/enum_class_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.18 +// @dart=2.12 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,6 +11,7 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; +// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for EnumClass void main() { diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/enum_test_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/enum_test_test.dart index 27b65a5ece17..a5330759e27a 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/enum_test_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/enum_test_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.18 +// @dart=2.12 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,6 +11,7 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; +// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for EnumTest void main() { // final instance = EnumTest(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/fake_api_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/fake_api_test.dart index 69edaba6b381..0b0c6bcb8ac0 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/fake_api_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/fake_api_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.18 +// @dart=2.12 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -12,18 +12,12 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; +// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 /// tests for FakeApi void main() { // final instance = FakeApi(); group('tests for FakeApi', () { - // for Java apache and Java native, test toUrlQueryString for maps with BegDecimal keys - // - //Future fakeBigDecimalMap() async - test('test fakeBigDecimalMap', () async { - // TODO - }); - // Health check endpoint // //Future fakeHealthGet() async @@ -73,15 +67,6 @@ void main() { // TODO }); - // test referenced additionalProperties - // - // - // - //Future testAdditionalPropertiesReference(Map requestBody) async - test('test testAdditionalPropertiesReference', () async { - // TODO - }); - // For this test, the body has to be a binary file. // //Future testBodyWithBinary(MultipartFile body) async @@ -123,7 +108,7 @@ void main() { // // To test enum parameters // - //Future testEnumParameters({ List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, int enumQueryInteger, double enumQueryDouble, List enumQueryModelArray, List enumFormStringArray, String enumFormString }) async + //Future testEnumParameters({ List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, int enumQueryInteger, double enumQueryDouble, List enumFormStringArray, String enumFormString }) async test('test testEnumParameters', () async { // TODO }); @@ -139,40 +124,18 @@ void main() { // test inline additionalProperties // - // - // //Future testInlineAdditionalProperties(Map requestBody) async test('test testInlineAdditionalProperties', () async { // TODO }); - // test inline free-form additionalProperties - // - // - // - //Future testInlineFreeformAdditionalProperties(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) async - test('test testInlineFreeformAdditionalProperties', () async { - // TODO - }); - // test json serialization of form data // - // - // //Future testJsonFormData(String param, String param2) async test('test testJsonFormData', () async { // TODO }); - // test nullable parent property - // - // - // - //Future testNullable(ChildWithNullable childWithNullable) async - test('test testNullable', () async { - // TODO - }); - // To test the collection format in query parameters // //Future testQueryParameterCollectionFormat(List pipe, List ioutil, List http, List url, List context, String allowEmpty, { Map language }) async @@ -180,14 +143,5 @@ void main() { // TODO }); - // test referenced string map - // - // - // - //Future testStringMapReference(Map requestBody) async - test('test testStringMapReference', () async { - // TODO - }); - }); } diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/fake_big_decimal_map200_response_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/fake_big_decimal_map200_response_test.dart index b3ec6a63a599..7f888e73d4a7 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/fake_big_decimal_map200_response_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/fake_big_decimal_map200_response_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.18 +// @dart=2.12 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/fake_classname_tags123_api_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/fake_classname_tags123_api_test.dart index 7b3702f34a8d..2570d74f567c 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/fake_classname_tags123_api_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/fake_classname_tags123_api_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.18 +// @dart=2.12 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -12,6 +12,7 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; +// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 /// tests for FakeClassnameTags123Api void main() { // final instance = FakeClassnameTags123Api(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/file_schema_test_class_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/file_schema_test_class_test.dart index 6b9a34f502b7..b69c027e926a 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/file_schema_test_class_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/file_schema_test_class_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.18 +// @dart=2.12 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,6 +11,7 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; +// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for FileSchemaTestClass void main() { // final instance = FileSchemaTestClass(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/foo_get_default_response_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/foo_get_default_response_test.dart index 907eaa37eca3..9ed5ae1075ed 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/foo_get_default_response_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/foo_get_default_response_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.18 +// @dart=2.12 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/foo_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/foo_test.dart index 6dd3993f4875..82ac0359b8a6 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/foo_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/foo_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.18 +// @dart=2.12 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,6 +11,7 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; +// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for Foo void main() { // final instance = Foo(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/format_test_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/format_test_test.dart index 0fa3c2df5f9e..5f382b03b5bf 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/format_test_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/format_test_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.18 +// @dart=2.12 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,6 +11,7 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; +// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for FormatTest void main() { // final instance = FormatTest(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/has_only_read_only_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/has_only_read_only_test.dart index f535c23fa962..b41796d19d62 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/has_only_read_only_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/has_only_read_only_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.18 +// @dart=2.12 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,6 +11,7 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; +// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for HasOnlyReadOnly void main() { // final instance = HasOnlyReadOnly(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/health_check_result_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/health_check_result_test.dart index 4d30be858bb9..5f09d312d74d 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/health_check_result_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/health_check_result_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.18 +// @dart=2.12 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,6 +11,7 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; +// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for HealthCheckResult void main() { // final instance = HealthCheckResult(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/map_test_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/map_test_test.dart index ed11d6d1227b..f7da040f3265 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/map_test_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/map_test_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.18 +// @dart=2.12 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,6 +11,7 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; +// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for MapTest void main() { // final instance = MapTest(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/mixed_properties_and_additional_properties_class_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/mixed_properties_and_additional_properties_class_test.dart index 1652c6a177a5..f23f59f58c72 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/mixed_properties_and_additional_properties_class_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/mixed_properties_and_additional_properties_class_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.18 +// @dart=2.12 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,6 +11,7 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; +// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for MixedPropertiesAndAdditionalPropertiesClass void main() { // final instance = MixedPropertiesAndAdditionalPropertiesClass(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/model200_response_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/model200_response_test.dart index 431de0928582..46ccb12c5586 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/model200_response_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/model200_response_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.18 +// @dart=2.12 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,6 +11,7 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; +// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for Model200Response void main() { // final instance = Model200Response(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/model_client_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/model_client_test.dart index 614f136b9134..e730318e0679 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/model_client_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/model_client_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.18 +// @dart=2.12 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,6 +11,7 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; +// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for ModelClient void main() { // final instance = ModelClient(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/model_file_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/model_file_test.dart index 6e6d2a24d20a..663e0a76fb75 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/model_file_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/model_file_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.18 +// @dart=2.12 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,6 +11,7 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; +// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for ModelFile void main() { // final instance = ModelFile(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/model_list_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/model_list_test.dart index 6f6707fee36b..1300f29e4947 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/model_list_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/model_list_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.18 +// @dart=2.12 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,6 +11,7 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; +// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for ModelList void main() { // final instance = ModelList(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/model_return_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/model_return_test.dart index 6a1888f0883e..525c88715ac4 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/model_return_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/model_return_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.18 +// @dart=2.12 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,6 +11,7 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; +// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for ModelReturn void main() { // final instance = ModelReturn(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/name_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/name_test.dart index 15aca54b0cf8..0d92245332bf 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/name_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/name_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.18 +// @dart=2.12 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,6 +11,7 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; +// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for Name void main() { // final instance = Name(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/nullable_class_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/nullable_class_test.dart index 6258a447760f..269e281027ba 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/nullable_class_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/nullable_class_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.18 +// @dart=2.12 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,6 +11,7 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; +// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for NullableClass void main() { // final instance = NullableClass(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/number_only_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/number_only_test.dart index 7ef7ec0355a7..04381ff2c543 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/number_only_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/number_only_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.18 +// @dart=2.12 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,6 +11,7 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; +// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for NumberOnly void main() { // final instance = NumberOnly(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/object_with_deprecated_fields_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/object_with_deprecated_fields_test.dart index 8805f6cf4a1d..46275670a17a 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/object_with_deprecated_fields_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/object_with_deprecated_fields_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.18 +// @dart=2.12 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,6 +11,7 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; +// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for ObjectWithDeprecatedFields void main() { // final instance = ObjectWithDeprecatedFields(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/order_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/order_test.dart index 219aa86360fc..b625abdaf9fc 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/order_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/order_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.18 +// @dart=2.12 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,6 +11,7 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; +// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for Order void main() { // final instance = Order(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/outer_composite_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/outer_composite_test.dart index bacb1c0dc321..33fe3a7ef1a6 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/outer_composite_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/outer_composite_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.18 +// @dart=2.12 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,6 +11,7 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; +// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for OuterComposite void main() { // final instance = OuterComposite(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/outer_enum_default_value_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/outer_enum_default_value_test.dart index b8bccd1b0569..fa0e93aaf7b0 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/outer_enum_default_value_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/outer_enum_default_value_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.18 +// @dart=2.12 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,6 +11,7 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; +// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for OuterEnumDefaultValue void main() { diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/outer_enum_integer_default_value_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/outer_enum_integer_default_value_test.dart index 08acf7056dc8..6d88d2c3d159 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/outer_enum_integer_default_value_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/outer_enum_integer_default_value_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.18 +// @dart=2.12 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,6 +11,7 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; +// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for OuterEnumIntegerDefaultValue void main() { diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/outer_enum_integer_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/outer_enum_integer_test.dart index 5adf20a20d92..41715de4de58 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/outer_enum_integer_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/outer_enum_integer_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.18 +// @dart=2.12 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,6 +11,7 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; +// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for OuterEnumInteger void main() { diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/outer_enum_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/outer_enum_test.dart index 8c51aa895529..100df39ba80e 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/outer_enum_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/outer_enum_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.18 +// @dart=2.12 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,6 +11,7 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; +// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for OuterEnum void main() { diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/outer_object_with_enum_property_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/outer_object_with_enum_property_test.dart index 9fffef0c1db1..ffb9f4019c9a 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/outer_object_with_enum_property_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/outer_object_with_enum_property_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.18 +// @dart=2.12 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,6 +11,7 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; +// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for OuterObjectWithEnumProperty void main() { // final instance = OuterObjectWithEnumProperty(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/parent_with_nullable_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/parent_with_nullable_test.dart index a5bf5c7ddf24..3d16052226f6 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/parent_with_nullable_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/parent_with_nullable_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.18 +// @dart=2.12 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/pet_api_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/pet_api_test.dart index c2cc523391c8..939365f0f382 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/pet_api_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/pet_api_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.18 +// @dart=2.12 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -12,6 +12,7 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; +// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 /// tests for PetApi void main() { // final instance = PetApi(); @@ -19,8 +20,6 @@ void main() { group('tests for PetApi', () { // Add a new pet to the store // - // - // //Future addPet(Pet pet) async test('test addPet', () async { // TODO @@ -28,8 +27,6 @@ void main() { // Deletes a pet // - // - // //Future deletePet(int petId, { String apiKey }) async test('test deletePet', () async { // TODO @@ -64,8 +61,6 @@ void main() { // Update an existing pet // - // - // //Future updatePet(Pet pet) async test('test updatePet', () async { // TODO @@ -73,8 +68,6 @@ void main() { // Updates a pet in the store with form data // - // - // //Future updatePetWithForm(int petId, { String name, String status }) async test('test updatePetWithForm', () async { // TODO @@ -82,8 +75,6 @@ void main() { // uploads an image // - // - // //Future uploadFile(int petId, { String additionalMetadata, MultipartFile file }) async test('test uploadFile', () async { // TODO @@ -91,8 +82,6 @@ void main() { // uploads an image (required) // - // - // //Future uploadFileWithRequiredFile(int petId, MultipartFile requiredFile, { String additionalMetadata }) async test('test uploadFileWithRequiredFile', () async { // TODO diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/pet_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/pet_test.dart index 0369931e485b..8db1ddea4ec6 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/pet_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/pet_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.18 +// @dart=2.12 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,6 +11,7 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; +// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for Pet void main() { // final instance = Pet(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/read_only_first_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/read_only_first_test.dart index 9d84c9e3d0c9..16d3a5662597 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/read_only_first_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/read_only_first_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.18 +// @dart=2.12 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,6 +11,7 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; +// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for ReadOnlyFirst void main() { // final instance = ReadOnlyFirst(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/single_ref_type_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/single_ref_type_test.dart index aee6e38412e8..7f2fe102bf17 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/single_ref_type_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/single_ref_type_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.18 +// @dart=2.12 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/special_model_name_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/special_model_name_test.dart index afe850423289..4b00f426a86c 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/special_model_name_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/special_model_name_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.18 +// @dart=2.12 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,6 +11,7 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; +// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for SpecialModelName void main() { // final instance = SpecialModelName(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/store_api_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/store_api_test.dart index ea91b78f7079..4d6825e2cfd1 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/store_api_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/store_api_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.18 +// @dart=2.12 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -12,6 +12,7 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; +// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 /// tests for StoreApi void main() { // final instance = StoreApi(); @@ -46,8 +47,6 @@ void main() { // Place an order for a pet // - // - // //Future placeOrder(Order order) async test('test placeOrder', () async { // TODO diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/tag_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/tag_test.dart index 0a7baa9a5600..78d5880e6d4c 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/tag_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/tag_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.18 +// @dart=2.12 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,6 +11,7 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; +// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for Tag void main() { // final instance = Tag(); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/test_inline_freeform_additional_properties_request_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/test_inline_freeform_additional_properties_request_test.dart index 28b0b32698d7..b6ad45db259a 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/test_inline_freeform_additional_properties_request_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/test_inline_freeform_additional_properties_request_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.18 +// @dart=2.12 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/user_api_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/user_api_test.dart index 573f19d8ffe1..4f82364bd172 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/user_api_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/user_api_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.18 +// @dart=2.12 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -12,6 +12,7 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; +// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 /// tests for UserApi void main() { // final instance = UserApi(); @@ -28,8 +29,6 @@ void main() { // Creates list of users with given input array // - // - // //Future createUsersWithArrayInput(List user) async test('test createUsersWithArrayInput', () async { // TODO @@ -37,8 +36,6 @@ void main() { // Creates list of users with given input array // - // - // //Future createUsersWithListInput(List user) async test('test createUsersWithListInput', () async { // TODO @@ -55,8 +52,6 @@ void main() { // Get user by user name // - // - // //Future getUserByName(String username) async test('test getUserByName', () async { // TODO @@ -64,8 +59,6 @@ void main() { // Logs user into the system // - // - // //Future loginUser(String username, String password) async test('test loginUser', () async { // TODO @@ -73,8 +66,6 @@ void main() { // Logs out current logged in user session // - // - // //Future logoutUser() async test('test logoutUser', () async { // TODO diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/user_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/user_test.dart index a0f010c10776..d86551e10b64 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/user_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/test/user_test.dart @@ -1,7 +1,7 @@ // // AUTO-GENERATED FILE, DO NOT MODIFY! // -// @dart=2.18 +// @dart=2.12 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first @@ -11,6 +11,7 @@ import 'package:openapi/api.dart'; import 'package:test/test.dart'; +// these tests are not regenerated by dart 2 generator as they break compatibility with Dart versions under 2.12 // tests for User void main() { // final instance = User(); diff --git a/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/test/java/org/openapitools/client/model/MySchemaNameCharactersTest.java b/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/test/java/org/openapitools/client/model/MySchemaNameCharactersTest.java index 10ae15217bec..a7d4165b9747 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/test/java/org/openapitools/client/model/MySchemaNameCharactersTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/test/java/org/openapitools/client/model/MySchemaNameCharactersTest.java @@ -21,7 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; +import org.openapitools.client.JSON; import org.openapitools.client.model.Parent; import org.junit.jupiter.api.Assertions; @@ -39,7 +39,15 @@ public class MySchemaNameCharactersTest { */ @Test public void testMySchemaNameCharacters() { - // TODO: test MySchemaNameCharacters + String objJson = "{ \"objectType\": \"MySchemaName._-Characters\", \"prop2\":\"some_value\" }"; + try { + JSON j = new JSON(); + MySchemaNameCharacters obj = j.getMapper().readValue(objJson, MySchemaNameCharacters.class); + Assertions.assertEquals(obj.getObjectType(), "MySchemaName._-Characters"); + Assertions.assertEquals(obj.getProp2(), "some_value"); + } catch (Exception ex) { + Assertions.fail("Exception '" + ex.getMessage() + "' should not have been raised"); + } } /** diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/api/PetApiTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/api/PetApiTest.java index b27dcaba815c..9c61bba29e36 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/api/PetApiTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/api/PetApiTest.java @@ -16,17 +16,18 @@ import org.openapitools.client.*; import org.openapitools.client.auth.*; import java.io.File; -import org.openapitools.client.model.ModelApiResponse; -import org.openapitools.client.model.Pet; +import org.openapitools.client.model.*; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; +import java.util.Arrays; import java.util.ArrayList; +import java.util.Map; import java.util.HashMap; +import java.util.HashSet; import java.util.List; -import java.util.Map; /** * API tests for PetApi @@ -34,6 +35,7 @@ public class PetApiTest { private final PetApi api = new PetApi(); + private final long petId = 5638l; /** * Add a new pet to the store @@ -44,9 +46,60 @@ public class PetApiTest { */ @Test public void addPetTest() throws ApiException { - //Pet pet = null; - //api.addPet(pet); - // TODO: test validations + // add pet + Pet body = new Pet(); + body.setId(petId); + body.setName("jersey2 java8 pet"); + Category category = new Category(); + category.setId(petId); + category.setName("jersey2 java8 category"); + body.setCategory(category); + body.setStatus(Pet.StatusEnum.AVAILABLE); + body.setPhotoUrls(Arrays.asList("A", "B", "C")); + Tag tag = new Tag(); + tag.setId(petId); + tag.setName("jersey2 java8 tag"); + body.setTags(Arrays.asList(tag)); + + api.addPet(body); + + //get pet by ID + Pet result = api.getPetById(petId); + Assertions.assertEquals(result.getId(), body.getId()); + Assertions.assertEquals(result.getCategory(), category); + Assertions.assertEquals(result.getName(), body.getName()); + Assertions.assertEquals(result.getPhotoUrls(), body.getPhotoUrls()); + Assertions.assertEquals(result.getStatus(), body.getStatus()); + Assertions.assertEquals(result.getTags(), body.getTags()); + + // update pet + api.updatePetWithForm(petId, "jersey2 java8 pet 2", "sold"); + + //get pet by ID + Pet result2 = api.getPetById(petId); + Assertions.assertEquals(result2.getId(), body.getId()); + Assertions.assertEquals(result2.getCategory(), category); + Assertions.assertEquals(result2.getName(), "jersey2 java8 pet 2"); + Assertions.assertEquals(result2.getPhotoUrls(), body.getPhotoUrls()); + Assertions.assertEquals(result2.getStatus(), Pet.StatusEnum.SOLD); + Assertions.assertEquals(result2.getTags(), body.getTags()); + + // delete pet + api.deletePet(petId, "empty api key"); + + try { + Pet result3 = api.getPetById(petId); + Assertions.assertEquals(false, true); + } catch (ApiException e) { +// System.err.println("Exception when calling PetApi#getPetById"); +// System.err.println("Status code: " + e.getCode()); +// System.err.println("Reason: " + e.getResponseBody()); +// System.err.println("Response headers: " + e.getResponseHeaders()); + + Assertions.assertEquals(e.getCode(), 404); + Assertions.assertEquals(e.getResponseBody(), "{\"code\":1,\"type\":\"error\",\"message\":\"Pet not found\"}"); + + } } /** diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/MammalTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/MammalTest.java index 8bafe09601bd..99a348ca642b 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/MammalTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/MammalTest.java @@ -21,7 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; +import org.openapitools.client.JSON; import org.openapitools.client.model.Pig; import org.openapitools.client.model.Whale; import org.openapitools.client.model.Zebra; @@ -40,8 +40,31 @@ public class MammalTest { * Model tests for Mammal */ @Test - public void testMammal() { - // TODO: test Mammal + public void testMammal() throws Exception { + Mammal m = new Mammal(); + Zebra z = new Zebra(); + z.setType(Zebra.TypeEnum.MOUNTAIN); + z.setClassName("zebra"); + m.setActualInstance(z); + Assertions.assertEquals(JSON.getDefault().getMapper().writeValueAsString(m), "{\"type\":\"mountain\",\"className\":\"zebra\"}"); + } + + /** + * Model tests for getActualInstanceRecursively + */ + @Test + public void testGetActualInstanceRecursively() throws Exception { + Mammal m = new Mammal(); + Pig p = new Pig(); + DanishPig dp = new DanishPig(); + dp.setClassName("danish_pig"); + p.setActualInstance(dp); + m.setActualInstance(p); + Assertions.assertTrue(m.getActualInstanceRecursively() instanceof DanishPig); + + Pig p2 = new Pig(); + m.setActualInstance(p2); + Assertions.assertEquals(m.getActualInstanceRecursively(), null); } /** @@ -76,4 +99,33 @@ public void typeTest() { // TODO: test type } + /** + * Test code sample + */ + @Test + public void codeSampleTest() { + Mammal exampleMammal = new Mammal(); + + // create a new Pig + Pig examplePig = new Pig(); + // set Mammal to Pig + exampleMammal.setActualInstance(examplePig); + // to get back the Pig set earlier + Pig testPig = (Pig) exampleMammal.getActualInstance(); + + // create a new Whale + Whale exampleWhale = new Whale(); + // set Mammal to Whale + exampleMammal.setActualInstance(exampleWhale); + // to get back the Whale set earlier + Whale testWhale = (Whale) exampleMammal.getActualInstance(); + + // create a new Zebra + Zebra exampleZebra = new Zebra(); + // set Mammal to Zebra + exampleMammal.setActualInstance(exampleZebra); + // to get back the Zebra set earlier + Zebra testZebra = (Zebra) exampleMammal.getActualInstance(); + } + } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ZebraTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ZebraTest.java index 7780a07a9ec1..509747319772 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ZebraTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ZebraTest.java @@ -13,12 +13,19 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.databind.type.MapType; +import com.fasterxml.jackson.databind.type.TypeFactory; +import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; + +import java.util.HashMap; +import java.util.Map; + +import org.openapitools.client.JSON; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; @@ -35,7 +42,29 @@ public class ZebraTest { */ @Test public void testZebra() { - // TODO: test Zebra + Zebra z = new Zebra(); + z.setClassName("zebra"); + Map m = new HashMap<>(); + z.putAdditionalProperty("key1", "value1"); + z.putAdditionalProperty("key2", 12321); + z.setType(Zebra.TypeEnum.MOUNTAIN); + + JSON j = new JSON(); + try { + // serialize + Assertions.assertEquals(j.getMapper().writeValueAsString(z), "{\"type\":\"mountain\",\"className\":\"zebra\",\"key1\":\"value1\",\"key2\":12321}"); + + // deserialize + String zebraJson = "{\"type\":\"mountain\",\"className\":\"zebra\",\"key1\":\"value1\",\"key2\":12321}"; + Zebra zebraFromJson = j.getMapper().readValue(zebraJson, Zebra.class); + Assertions.assertEquals(zebraFromJson.getType(), Zebra.TypeEnum.MOUNTAIN); + Assertions.assertEquals(zebraFromJson.getClassName(), "zebra"); + Assertions.assertEquals(zebraFromJson.getAdditionalProperties().size(), 2); + Assertions.assertEquals(zebraFromJson.getAdditionalProperty("key1"), "value1"); + Assertions.assertEquals(zebraFromJson.getAdditionalProperty("key2"), 12321); + } catch (Exception ex) { + Assertions.assertEquals(true, false); // exception shouldn't be thrown + } } /** @@ -43,7 +72,22 @@ public void testZebra() { */ @Test public void typeTest() { - // TODO: test type + String zebraJson = "{\"type\":\"mountain\",\"className\":\"zebra\",\"key1\":\"value1\",\"key2\":12321}"; + + JSON j = new JSON(); + TypeFactory typeFactory = j.getMapper().getTypeFactory(); + MapType mapType = typeFactory.constructMapType(HashMap.class, String.class, Object.class); + try { + HashMap map = j.getMapper().readValue(zebraJson, mapType); + Assertions.assertEquals(map.get("type"), "mountain"); + + Map result = + j.getMapper().readValue(zebraJson, new TypeReference>() {}); + + Assertions.assertEquals(result.get("type"), "mountain"); + } catch (Exception ex) { + Assertions.assertEquals(true, false); // exception shouldn't be thrown + } } /** diff --git a/samples/openapi3/client/petstore/python-aiohttp/test/test_enum_test.py b/samples/openapi3/client/petstore/python-aiohttp/test/test_enum_test.py index 5f2f59e6c62b..e83daf724588 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/test/test_enum_test.py +++ b/samples/openapi3/client/petstore/python-aiohttp/test/test_enum_test.py @@ -42,8 +42,6 @@ def make_instance(self, include_optional) -> EnumTest: enum_number = 1.1, enum_number_vendor_ext = 42, enum_string_vendor_ext = 'FOO', - enum_string_single_member = 'abc', - enum_integer_single_member = 100, outer_enum = 'placed', outer_enum_integer = 2, outer_enum_default_value = 'placed', diff --git a/samples/openapi3/client/petstore/python-aiohttp/test/test_fake_api.py b/samples/openapi3/client/petstore/python-aiohttp/test/test_fake_api.py index 4f17026f3e68..902c6faa7224 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/test/test_fake_api.py +++ b/samples/openapi3/client/petstore/python-aiohttp/test/test_fake_api.py @@ -267,13 +267,6 @@ async def test_test_string_map_reference(self) -> None: """ pass - async def test_upload_file_with_additional_properties(self) -> None: - """Test case for upload_file_with_additional_properties - - uploads a file and additional properties using multipart/form-data - """ - pass - if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python-pydantic-v1-aiohttp/test/test_enum_test.py b/samples/openapi3/client/petstore/python-pydantic-v1-aiohttp/test/test_enum_test.py index a9f432cf9ce8..3c57cd467c8c 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1-aiohttp/test/test_enum_test.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1-aiohttp/test/test_enum_test.py @@ -43,8 +43,6 @@ def make_instance(self, include_optional) -> EnumTest: enum_number = 1.1, enum_number_vendor_ext = 42, enum_string_vendor_ext = 'FOO', - enum_string_single_member = 'abc', - enum_integer_single_member = 100, outer_enum = 'placed', outer_enum_integer = 2, outer_enum_default_value = 'placed', diff --git a/samples/openapi3/client/petstore/python-pydantic-v1-aiohttp/test/test_fake_api.py b/samples/openapi3/client/petstore/python-pydantic-v1-aiohttp/test/test_fake_api.py index 6c0ff851e10f..dcaf7fb84f15 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1-aiohttp/test/test_fake_api.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1-aiohttp/test/test_fake_api.py @@ -267,13 +267,6 @@ async def test_test_string_map_reference(self) -> None: """ pass - async def test_upload_file_with_additional_properties(self) -> None: - """Test case for upload_file_with_additional_properties - - uploads a file and additional properties using multipart/form-data # noqa: E501 - """ - pass - if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_additional_properties_any_type.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_additional_properties_any_type.py index a1669f0664d2..c2c9c7c58069 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_additional_properties_any_type.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_additional_properties_any_type.py @@ -3,19 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 +""" import unittest import datetime +import petstore_api from petstore_api.models.additional_properties_any_type import AdditionalPropertiesAnyType # noqa: E501 +from petstore_api.rest import ApiException class TestAdditionalPropertiesAnyType(unittest.TestCase): """AdditionalPropertiesAnyType unit test stubs""" @@ -26,19 +28,19 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> AdditionalPropertiesAnyType: + def make_instance(self, include_optional): """Test AdditionalPropertiesAnyType include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `AdditionalPropertiesAnyType` """ - model = AdditionalPropertiesAnyType() # noqa: E501 - if include_optional: + model = petstore_api.models.additional_properties_any_type.AdditionalPropertiesAnyType() # noqa: E501 + if include_optional : return AdditionalPropertiesAnyType( name = '' ) - else: + else : return AdditionalPropertiesAnyType( ) """ diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_additional_properties_class.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_additional_properties_class.py index d1dc12c44584..e3b48bedd571 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_additional_properties_class.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_additional_properties_class.py @@ -3,19 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 +""" import unittest import datetime +import petstore_api from petstore_api.models.additional_properties_class import AdditionalPropertiesClass # noqa: E501 +from petstore_api.rest import ApiException class TestAdditionalPropertiesClass(unittest.TestCase): """AdditionalPropertiesClass unit test stubs""" @@ -26,26 +28,26 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> AdditionalPropertiesClass: + def make_instance(self, include_optional): """Test AdditionalPropertiesClass include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `AdditionalPropertiesClass` """ - model = AdditionalPropertiesClass() # noqa: E501 - if include_optional: + model = petstore_api.models.additional_properties_class.AdditionalPropertiesClass() # noqa: E501 + if include_optional : return AdditionalPropertiesClass( map_property = { 'key' : '' - }, + }, map_of_map_property = { 'key' : { 'key' : '' } } ) - else: + else : return AdditionalPropertiesClass( ) """ diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_additional_properties_object.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_additional_properties_object.py index 9bfa2a0cde83..b68a8fda5790 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_additional_properties_object.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_additional_properties_object.py @@ -3,19 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 +""" import unittest import datetime +import petstore_api from petstore_api.models.additional_properties_object import AdditionalPropertiesObject # noqa: E501 +from petstore_api.rest import ApiException class TestAdditionalPropertiesObject(unittest.TestCase): """AdditionalPropertiesObject unit test stubs""" @@ -26,19 +28,19 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> AdditionalPropertiesObject: + def make_instance(self, include_optional): """Test AdditionalPropertiesObject include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `AdditionalPropertiesObject` """ - model = AdditionalPropertiesObject() # noqa: E501 - if include_optional: + model = petstore_api.models.additional_properties_object.AdditionalPropertiesObject() # noqa: E501 + if include_optional : return AdditionalPropertiesObject( name = '' ) - else: + else : return AdditionalPropertiesObject( ) """ diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_additional_properties_with_description_only.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_additional_properties_with_description_only.py index 88df1cc92955..d5166dfe1342 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_additional_properties_with_description_only.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_additional_properties_with_description_only.py @@ -3,19 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 +""" import unittest import datetime +import petstore_api from petstore_api.models.additional_properties_with_description_only import AdditionalPropertiesWithDescriptionOnly # noqa: E501 +from petstore_api.rest import ApiException class TestAdditionalPropertiesWithDescriptionOnly(unittest.TestCase): """AdditionalPropertiesWithDescriptionOnly unit test stubs""" @@ -26,19 +28,19 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> AdditionalPropertiesWithDescriptionOnly: + def make_instance(self, include_optional): """Test AdditionalPropertiesWithDescriptionOnly include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `AdditionalPropertiesWithDescriptionOnly` """ - model = AdditionalPropertiesWithDescriptionOnly() # noqa: E501 - if include_optional: + model = petstore_api.models.additional_properties_with_description_only.AdditionalPropertiesWithDescriptionOnly() # noqa: E501 + if include_optional : return AdditionalPropertiesWithDescriptionOnly( name = '' ) - else: + else : return AdditionalPropertiesWithDescriptionOnly( ) """ diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_all_of_with_single_ref.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_all_of_with_single_ref.py index 920ad3782e15..ee761ef82d0a 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_all_of_with_single_ref.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_all_of_with_single_ref.py @@ -3,19 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest import datetime +import petstore_api from petstore_api.models.all_of_with_single_ref import AllOfWithSingleRef # noqa: E501 +from petstore_api.rest import ApiException class TestAllOfWithSingleRef(unittest.TestCase): """AllOfWithSingleRef unit test stubs""" @@ -26,28 +28,25 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> AllOfWithSingleRef: + def make_instance(self, include_optional): """Test AllOfWithSingleRef include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `AllOfWithSingleRef` - """ - model = AllOfWithSingleRef() # noqa: E501 - if include_optional: + # model = petstore_api.models.all_of_with_single_ref.AllOfWithSingleRef() # noqa: E501 + if include_optional : return AllOfWithSingleRef( - username = '', - single_ref_type = 'admin' + username = '', + single_ref_type = None ) - else: + else : return AllOfWithSingleRef( ) - """ def testAllOfWithSingleRef(self): """Test AllOfWithSingleRef""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_animal.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_animal.py index b0b62a0bb2b3..d209151de678 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_animal.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_animal.py @@ -3,19 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest import datetime +import petstore_api from petstore_api.models.animal import Animal # noqa: E501 +from petstore_api.rest import ApiException class TestAnimal(unittest.TestCase): """Animal unit test stubs""" @@ -26,29 +28,26 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> Animal: + def make_instance(self, include_optional): """Test Animal include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `Animal` - """ - model = Animal() # noqa: E501 - if include_optional: + # model = petstore_api.models.animal.Animal() # noqa: E501 + if include_optional : return Animal( - class_name = '', + class_name = '', color = 'red' ) - else: + else : return Animal( class_name = '', ) - """ def testAnimal(self): """Test Animal""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_another_fake_api.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_another_fake_api.py index deb50e0e6b14..d95798cfc5a4 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_another_fake_api.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_another_fake_api.py @@ -3,30 +3,32 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +import petstore_api from petstore_api.api.another_fake_api import AnotherFakeApi # noqa: E501 +from petstore_api.rest import ApiException class TestAnotherFakeApi(unittest.TestCase): """AnotherFakeApi unit test stubs""" - def setUp(self) -> None: - self.api = AnotherFakeApi() + def setUp(self): + self.api = petstore_api.api.another_fake_api.AnotherFakeApi() # noqa: E501 - def tearDown(self) -> None: + def tearDown(self): pass - def test_call_123_test_special_tags(self) -> None: + def test_call_123_test_special_tags(self): """Test case for call_123_test_special_tags To test special tags # noqa: E501 diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_any_of_color.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_any_of_color.py index f99dfd0020b1..2a97cfef7526 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_any_of_color.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_any_of_color.py @@ -3,19 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest import datetime +import petstore_api from petstore_api.models.any_of_color import AnyOfColor # noqa: E501 +from petstore_api.rest import ApiException class TestAnyOfColor(unittest.TestCase): """AnyOfColor unit test stubs""" @@ -26,18 +28,18 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> AnyOfColor: + def make_instance(self, include_optional): """Test AnyOfColor include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `AnyOfColor` """ - model = AnyOfColor() # noqa: E501 - if include_optional: + model = petstore_api.models.any_of_color.AnyOfColor() # noqa: E501 + if include_optional : return AnyOfColor( ) - else: + else : return AnyOfColor( ) """ diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_any_of_pig.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_any_of_pig.py index c3e4760182c5..f041e5f9d6f7 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_any_of_pig.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_any_of_pig.py @@ -3,19 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest import datetime +import petstore_api from petstore_api.models.any_of_pig import AnyOfPig # noqa: E501 +from petstore_api.rest import ApiException class TestAnyOfPig(unittest.TestCase): """AnyOfPig unit test stubs""" @@ -26,28 +28,6 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> AnyOfPig: - """Test AnyOfPig - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AnyOfPig` - """ - model = AnyOfPig() # noqa: E501 - if include_optional: - return AnyOfPig( - class_name = '', - color = '', - size = 56 - ) - else: - return AnyOfPig( - class_name = '', - color = '', - size = 56, - ) - """ - def testAnyOfPig(self): """Test AnyOfPig""" # inst_req_only = self.make_instance(include_optional=False) diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_api_response.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_api_response.py index 9882aa1b9005..95efd33bce57 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_api_response.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_api_response.py @@ -3,19 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest import datetime +import petstore_api from petstore_api.models.api_response import ApiResponse # noqa: E501 +from petstore_api.rest import ApiException class TestApiResponse(unittest.TestCase): """ApiResponse unit test stubs""" @@ -26,29 +28,26 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> ApiResponse: + def make_instance(self, include_optional): """Test ApiResponse include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `ApiResponse` - """ - model = ApiResponse() # noqa: E501 - if include_optional: + # model = petstore_api.models.api_response.ApiResponse() # noqa: E501 + if include_optional : return ApiResponse( - code = 56, - type = '', + code = 56, + type = '', message = '' ) - else: + else : return ApiResponse( ) - """ def testApiResponse(self): """Test ApiResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_array_of_array_of_model.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_array_of_array_of_model.py index 7c0809b0b233..1072a19255de 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_array_of_array_of_model.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_array_of_array_of_model.py @@ -3,19 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 +""" import unittest import datetime +import petstore_api from petstore_api.models.array_of_array_of_model import ArrayOfArrayOfModel # noqa: E501 +from petstore_api.rest import ApiException class TestArrayOfArrayOfModel(unittest.TestCase): """ArrayOfArrayOfModel unit test stubs""" @@ -26,17 +28,17 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> ArrayOfArrayOfModel: + def make_instance(self, include_optional): """Test ArrayOfArrayOfModel include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `ArrayOfArrayOfModel` """ - model = ArrayOfArrayOfModel() # noqa: E501 - if include_optional: + model = petstore_api.models.array_of_array_of_model.ArrayOfArrayOfModel() # noqa: E501 + if include_optional : return ArrayOfArrayOfModel( - another_property = [ + shop_id_to_org_online_lip_map = [ [ petstore_api.models.tag.Tag( id = 56, @@ -44,7 +46,7 @@ def make_instance(self, include_optional) -> ArrayOfArrayOfModel: ] ] ) - else: + else : return ArrayOfArrayOfModel( ) """ diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_array_of_array_of_number_only.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_array_of_array_of_number_only.py index 22160c2bd055..001b4e565737 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_array_of_array_of_number_only.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_array_of_array_of_number_only.py @@ -3,19 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest import datetime +import petstore_api from petstore_api.models.array_of_array_of_number_only import ArrayOfArrayOfNumberOnly # noqa: E501 +from petstore_api.rest import ApiException class TestArrayOfArrayOfNumberOnly(unittest.TestCase): """ArrayOfArrayOfNumberOnly unit test stubs""" @@ -26,15 +28,13 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> ArrayOfArrayOfNumberOnly: + def make_instance(self, include_optional): """Test ArrayOfArrayOfNumberOnly include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `ArrayOfArrayOfNumberOnly` - """ - model = ArrayOfArrayOfNumberOnly() # noqa: E501 - if include_optional: + # model = petstore_api.models.array_of_array_of_number_only.ArrayOfArrayOfNumberOnly() # noqa: E501 + if include_optional : return ArrayOfArrayOfNumberOnly( array_array_number = [ [ @@ -42,15 +42,14 @@ def make_instance(self, include_optional) -> ArrayOfArrayOfNumberOnly: ] ] ) - else: + else : return ArrayOfArrayOfNumberOnly( ) - """ def testArrayOfArrayOfNumberOnly(self): """Test ArrayOfArrayOfNumberOnly""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_array_of_number_only.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_array_of_number_only.py index ade32f4f8f21..a35703ae0dac 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_array_of_number_only.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_array_of_number_only.py @@ -3,19 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest import datetime +import petstore_api from petstore_api.models.array_of_number_only import ArrayOfNumberOnly # noqa: E501 +from petstore_api.rest import ApiException class TestArrayOfNumberOnly(unittest.TestCase): """ArrayOfNumberOnly unit test stubs""" @@ -26,29 +28,26 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> ArrayOfNumberOnly: + def make_instance(self, include_optional): """Test ArrayOfNumberOnly include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `ArrayOfNumberOnly` - """ - model = ArrayOfNumberOnly() # noqa: E501 - if include_optional: + # model = petstore_api.models.array_of_number_only.ArrayOfNumberOnly() # noqa: E501 + if include_optional : return ArrayOfNumberOnly( array_number = [ 1.337 ] ) - else: + else : return ArrayOfNumberOnly( ) - """ def testArrayOfNumberOnly(self): """Test ArrayOfNumberOnly""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_array_test.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_array_test.py index 6858000a8b03..8327e415adcd 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_array_test.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_array_test.py @@ -3,19 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest import datetime +import petstore_api from petstore_api.models.array_test import ArrayTest # noqa: E501 +from petstore_api.rest import ApiException class TestArrayTest(unittest.TestCase): """ArrayTest unit test stubs""" @@ -26,27 +28,22 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> ArrayTest: + def make_instance(self, include_optional): """Test ArrayTest include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `ArrayTest` - """ - model = ArrayTest() # noqa: E501 - if include_optional: + # model = petstore_api.models.array_test.ArrayTest() # noqa: E501 + if include_optional : return ArrayTest( array_of_string = [ '' - ], - array_of_nullable_float = [ - 1.337 - ], + ], array_array_of_integer = [ [ 56 ] - ], + ], array_array_of_model = [ [ petstore_api.models.read_only_first.ReadOnlyFirst( @@ -55,15 +52,14 @@ def make_instance(self, include_optional) -> ArrayTest: ] ] ) - else: + else : return ArrayTest( ) - """ def testArrayTest(self): """Test ArrayTest""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_basque_pig.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_basque_pig.py index 42f62fa31115..26e2a845a95c 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_basque_pig.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_basque_pig.py @@ -3,19 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest import datetime +import petstore_api from petstore_api.models.basque_pig import BasquePig # noqa: E501 +from petstore_api.rest import ApiException class TestBasquePig(unittest.TestCase): """BasquePig unit test stubs""" @@ -26,30 +28,27 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> BasquePig: + def make_instance(self, include_optional): """Test BasquePig include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `BasquePig` - """ - model = BasquePig() # noqa: E501 - if include_optional: + # model = petstore_api.models.basque_pig.BasquePig() # noqa: E501 + if include_optional : return BasquePig( - class_name = '', + class_name = '', color = '' ) - else: + else : return BasquePig( class_name = '', color = '', ) - """ def testBasquePig(self): """Test BasquePig""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) + #inst_req_only = self.make_instance(include_optional=False) + #inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_capitalization.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_capitalization.py index 17b75e51e363..c7a9721dbc00 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_capitalization.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_capitalization.py @@ -3,19 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest import datetime +import petstore_api from petstore_api.models.capitalization import Capitalization # noqa: E501 +from petstore_api.rest import ApiException class TestCapitalization(unittest.TestCase): """Capitalization unit test stubs""" @@ -26,32 +28,29 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> Capitalization: + def make_instance(self, include_optional): """Test Capitalization include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `Capitalization` - """ - model = Capitalization() # noqa: E501 - if include_optional: + # model = petstore_api.models.capitalization.Capitalization() # noqa: E501 + if include_optional : return Capitalization( - small_camel = '', - capital_camel = '', - small_snake = '', - capital_snake = '', - sca_eth_flow_points = '', + small_camel = '', + capital_camel = '', + small_snake = '', + capital_snake = '', + sca_eth_flow_points = '', att_name = '' ) - else: + else : return Capitalization( ) - """ def testCapitalization(self): """Test Capitalization""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_cat.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_cat.py index 58e743f44c86..e04566b1aafd 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_cat.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_cat.py @@ -3,19 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest import datetime +import petstore_api from petstore_api.models.cat import Cat # noqa: E501 +from petstore_api.rest import ApiException class TestCat(unittest.TestCase): """Cat unit test stubs""" @@ -26,23 +28,6 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> Cat: - """Test Cat - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Cat` - """ - model = Cat() # noqa: E501 - if include_optional: - return Cat( - declawed = True - ) - else: - return Cat( - ) - """ - def testCat(self): """Test Cat""" # inst_req_only = self.make_instance(include_optional=False) diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_category.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_category.py index 2a287246f81a..14848fcebcd2 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_category.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_category.py @@ -3,19 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest import datetime +import petstore_api from petstore_api.models.category import Category # noqa: E501 +from petstore_api.rest import ApiException class TestCategory(unittest.TestCase): """Category unit test stubs""" @@ -26,24 +28,21 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> Category: + def make_instance(self, include_optional): """Test Category include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `Category` - """ - model = Category() # noqa: E501 - if include_optional: + # model = petstore_api.models.category.Category() # noqa: E501 + if include_optional : return Category( - id = 56, + id = 56, name = 'default-name' ) - else: + else : return Category( name = 'default-name', ) - """ def testCategory(self): """Test Category""" diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_circular_all_of_ref.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_circular_all_of_ref.py index aaa48641b37d..f72aa632ba8f 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_circular_all_of_ref.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_circular_all_of_ref.py @@ -36,10 +36,16 @@ def make_instance(self, include_optional) -> CircularAllOfRef: model = CircularAllOfRef() # noqa: E501 if include_optional: return CircularAllOfRef( - name = '', second_circular_all_of_ref = [ - petstore_api.models.second_circular_all_of_ref.SecondCircularAllOfRef() - ] + petstore_api.models.second_circular_all_of_ref.SecondCircularAllOfRef( + circular_all_of_ref = [ + petstore_api.models.circular_all_of_ref.CircularAllOfRef( + second_circular_all_of_ref = [ + petstore_api.models.second_circular_all_of_ref.SecondCircularAllOfRef() + ], ) + ], ) + ], + name = '' ) else: return CircularAllOfRef( diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_circular_reference_model.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_circular_reference_model.py index f23f02000225..f734d3fc0ff6 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_circular_reference_model.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_circular_reference_model.py @@ -3,19 +3,23 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 +""" + +from __future__ import absolute_import import unittest import datetime +import petstore_api from petstore_api.models.circular_reference_model import CircularReferenceModel # noqa: E501 +from petstore_api.rest import ApiException class TestCircularReferenceModel(unittest.TestCase): """CircularReferenceModel unit test stubs""" @@ -26,17 +30,17 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> CircularReferenceModel: + def make_instance(self, include_optional): """Test CircularReferenceModel include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `CircularReferenceModel` """ - model = CircularReferenceModel() # noqa: E501 - if include_optional: + model = petstore_api.models.circular_reference_model.CircularReferenceModel() # noqa: E501 + if include_optional : return CircularReferenceModel( - size = 56, + size = 56, nested = petstore_api.models.first_ref.FirstRef( category = '', self_ref = petstore_api.models.second_ref.SecondRef( @@ -46,7 +50,7 @@ def make_instance(self, include_optional) -> CircularReferenceModel: nested = petstore_api.models.first_ref.FirstRef( category = '', ), ), ), ) ) - else: + else : return CircularReferenceModel( ) """ diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_class_model.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_class_model.py index 6b78a1941820..511843f2dcfd 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_class_model.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_class_model.py @@ -3,19 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest import datetime +import petstore_api from petstore_api.models.class_model import ClassModel # noqa: E501 +from petstore_api.rest import ApiException class TestClassModel(unittest.TestCase): """ClassModel unit test stubs""" @@ -26,27 +28,24 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> ClassModel: + def make_instance(self, include_optional): """Test ClassModel include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `ClassModel` - """ - model = ClassModel() # noqa: E501 - if include_optional: + # model = petstore_api.models.class_model.ClassModel() # noqa: E501 + if include_optional : return ClassModel( - var_class = '' + _class = '' ) - else: + else : return ClassModel( ) - """ def testClassModel(self): """Test ClassModel""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_client.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_client.py index 9d109601e811..9209bb2c3f03 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_client.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_client.py @@ -3,19 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest import datetime +import petstore_api from petstore_api.models.client import Client # noqa: E501 +from petstore_api.rest import ApiException class TestClient(unittest.TestCase): """Client unit test stubs""" @@ -26,27 +28,24 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> Client: + def make_instance(self, include_optional): """Test Client include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `Client` - """ - model = Client() # noqa: E501 - if include_optional: + # model = petstore_api.models.client.Client() # noqa: E501 + if include_optional : return Client( client = '' ) - else: + else : return Client( ) - """ def testClient(self): """Test Client""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_color.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_color.py index 21f53552b360..9a7aabfea253 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_color.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_color.py @@ -3,19 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest import datetime +import petstore_api from petstore_api.models.color import Color # noqa: E501 +from petstore_api.rest import ApiException class TestColor(unittest.TestCase): """Color unit test stubs""" @@ -26,18 +28,18 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> Color: + def make_instance(self, include_optional): """Test Color include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `Color` """ - model = Color() # noqa: E501 - if include_optional: + model = petstore_api.models.color.Color() # noqa: E501 + if include_optional : return Color( ) - else: + else : return Color( ) """ diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_creature.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_creature.py index af6b9ef7b311..66b3e088cbbf 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_creature.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_creature.py @@ -3,19 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 +""" import unittest import datetime +import petstore_api from petstore_api.models.creature import Creature # noqa: E501 +from petstore_api.rest import ApiException class TestCreature(unittest.TestCase): """Creature unit test stubs""" @@ -26,21 +28,21 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> Creature: + def make_instance(self, include_optional): """Test Creature include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `Creature` """ - model = Creature() # noqa: E501 - if include_optional: + model = petstore_api.models.creature.Creature() # noqa: E501 + if include_optional : return Creature( info = petstore_api.models.creature_info.CreatureInfo( - name = '', ), + name = '', ), type = '' ) - else: + else : return Creature( info = petstore_api.models.creature_info.CreatureInfo( name = '', ), diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_creature_info.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_creature_info.py index a95dfd3d922b..0a85d5ffe7b2 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_creature_info.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_creature_info.py @@ -3,19 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 +""" import unittest import datetime +import petstore_api from petstore_api.models.creature_info import CreatureInfo # noqa: E501 +from petstore_api.rest import ApiException class TestCreatureInfo(unittest.TestCase): """CreatureInfo unit test stubs""" @@ -26,19 +28,19 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> CreatureInfo: + def make_instance(self, include_optional): """Test CreatureInfo include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `CreatureInfo` """ - model = CreatureInfo() # noqa: E501 - if include_optional: + model = petstore_api.models.creature_info.CreatureInfo() # noqa: E501 + if include_optional : return CreatureInfo( name = '' ) - else: + else : return CreatureInfo( name = '', ) diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_danish_pig.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_danish_pig.py index bbd0ffcb5f01..0d850ae94f41 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_danish_pig.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_danish_pig.py @@ -3,19 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest import datetime +import petstore_api from petstore_api.models.danish_pig import DanishPig # noqa: E501 +from petstore_api.rest import ApiException class TestDanishPig(unittest.TestCase): """DanishPig unit test stubs""" @@ -26,30 +28,27 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> DanishPig: + def make_instance(self, include_optional): """Test DanishPig include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `DanishPig` - """ - model = DanishPig() # noqa: E501 - if include_optional: + # model = petstore_api.models.danish_pig.DanishPig() # noqa: E501 + if include_optional : return DanishPig( - class_name = '', + class_name = '', size = 56 ) - else: + else : return DanishPig( class_name = '', size = 56, ) - """ def testDanishPig(self): """Test DanishPig""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) + #inst_req_only = self.make_instance(include_optional=False) + #inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_default_api.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_default_api.py index 595e520c3e35..50e7c57bd0bf 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_default_api.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_default_api.py @@ -3,30 +3,32 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +import petstore_api from petstore_api.api.default_api import DefaultApi # noqa: E501 +from petstore_api.rest import ApiException class TestDefaultApi(unittest.TestCase): """DefaultApi unit test stubs""" - def setUp(self) -> None: - self.api = DefaultApi() + def setUp(self): + self.api = petstore_api.api.default_api.DefaultApi() # noqa: E501 - def tearDown(self) -> None: + def tearDown(self): pass - def test_foo_get(self) -> None: + def test_foo_get(self): """Test case for foo_get """ diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_deprecated_object.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_deprecated_object.py index ba3a63c719de..50257271cd72 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_deprecated_object.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_deprecated_object.py @@ -3,19 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest import datetime +import petstore_api from petstore_api.models.deprecated_object import DeprecatedObject # noqa: E501 +from petstore_api.rest import ApiException class TestDeprecatedObject(unittest.TestCase): """DeprecatedObject unit test stubs""" @@ -26,27 +28,24 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> DeprecatedObject: + def make_instance(self, include_optional): """Test DeprecatedObject include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `DeprecatedObject` - """ - model = DeprecatedObject() # noqa: E501 - if include_optional: + # model = petstore_api.models.deprecated_object.DeprecatedObject() # noqa: E501 + if include_optional : return DeprecatedObject( name = '' ) - else: + else : return DeprecatedObject( ) - """ def testDeprecatedObject(self): """Test DeprecatedObject""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_dog.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_dog.py index d8a51df906c0..af75161287e1 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_dog.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_dog.py @@ -3,19 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest import datetime +import petstore_api from petstore_api.models.dog import Dog # noqa: E501 +from petstore_api.rest import ApiException class TestDog(unittest.TestCase): """Dog unit test stubs""" @@ -26,23 +28,6 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> Dog: - """Test Dog - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Dog` - """ - model = Dog() # noqa: E501 - if include_optional: - return Dog( - breed = '' - ) - else: - return Dog( - ) - """ - def testDog(self): """Test Dog""" # inst_req_only = self.make_instance(include_optional=False) diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_dummy_model.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_dummy_model.py index 45459b666b16..d6562c58bc2d 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_dummy_model.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_dummy_model.py @@ -3,19 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest import datetime +import petstore_api from petstore_api.models.dummy_model import DummyModel # noqa: E501 +from petstore_api.rest import ApiException class TestDummyModel(unittest.TestCase): """DummyModel unit test stubs""" @@ -26,23 +28,23 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> DummyModel: + def make_instance(self, include_optional): """Test DummyModel include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `DummyModel` """ - model = DummyModel() # noqa: E501 - if include_optional: + model = petstore_api.models.dummy_model.DummyModel() # noqa: E501 + if include_optional : return DummyModel( - category = '', + category = '', self_ref = petstore_api.models.self_reference_model.Self-Reference-Model( size = 56, nested = petstore_api.models.dummy_model.Dummy-Model( category = '', ), ) ) - else: + else : return DummyModel( ) """ diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_enum_arrays.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_enum_arrays.py index 21e4cf531c4e..52cc98601bc0 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_enum_arrays.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_enum_arrays.py @@ -3,19 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest import datetime +import petstore_api from petstore_api.models.enum_arrays import EnumArrays # noqa: E501 +from petstore_api.rest import ApiException class TestEnumArrays(unittest.TestCase): """EnumArrays unit test stubs""" @@ -26,25 +28,22 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> EnumArrays: + def make_instance(self, include_optional): """Test EnumArrays include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `EnumArrays` - """ - model = EnumArrays() # noqa: E501 - if include_optional: + # model = petstore_api.models.enum_arrays.EnumArrays() # noqa: E501 + if include_optional : return EnumArrays( - just_symbol = '>=', + just_symbol = '>=', array_enum = [ 'fish' ] ) - else: + else : return EnumArrays( ) - """ def testEnumArrays(self): """Test EnumArrays""" diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_enum_class.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_enum_class.py index 92822bcdd970..9d7a81272cd2 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_enum_class.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_enum_class.py @@ -3,19 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest import datetime +import petstore_api from petstore_api.models.enum_class import EnumClass # noqa: E501 +from petstore_api.rest import ApiException class TestEnumClass(unittest.TestCase): """EnumClass unit test stubs""" diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_enum_string1.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_enum_string1.py index 9cbeacbe344d..9dbe9eb44fb8 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_enum_string1.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_enum_string1.py @@ -3,19 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 +""" import unittest import datetime +import petstore_api from petstore_api.models.enum_string1 import EnumString1 # noqa: E501 +from petstore_api.rest import ApiException class TestEnumString1(unittest.TestCase): """EnumString1 unit test stubs""" diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_enum_string2.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_enum_string2.py index 409c7f257a58..4ec0ffcd86c7 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_enum_string2.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_enum_string2.py @@ -3,19 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 +""" import unittest import datetime +import petstore_api from petstore_api.models.enum_string2 import EnumString2 # noqa: E501 +from petstore_api.rest import ApiException class TestEnumString2(unittest.TestCase): """EnumString2 unit test stubs""" diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_enum_test.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_enum_test.py index a9f432cf9ce8..afb342ae9341 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_enum_test.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_enum_test.py @@ -3,19 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest import datetime +import petstore_api from petstore_api.models.enum_test import EnumTest # noqa: E501 +from petstore_api.rest import ApiException class TestEnumTest(unittest.TestCase): """EnumTest unit test stubs""" @@ -26,35 +28,27 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> EnumTest: + def make_instance(self, include_optional): """Test EnumTest include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `EnumTest` - """ - model = EnumTest() # noqa: E501 - if include_optional: + # model = petstore_api.models.enum_test.EnumTest() # noqa: E501 + if include_optional : return EnumTest( - enum_string = 'UPPER', - enum_string_required = 'UPPER', - enum_integer_default = 1, - enum_integer = 1, - enum_number = 1.1, - enum_number_vendor_ext = 42, - enum_string_vendor_ext = 'FOO', - enum_string_single_member = 'abc', - enum_integer_single_member = 100, - outer_enum = 'placed', - outer_enum_integer = 2, - outer_enum_default_value = 'placed', - outer_enum_integer_default_value = -1 + enum_string = 'UPPER', + enum_string_required = 'UPPER', + enum_integer = 1, + enum_number = 1.1, + outer_enum = 'placed', + outer_enum_integer = 2, + outer_enum_default_value = 'placed', + outer_enum_integer_default_value = 0 ) - else: + else : return EnumTest( enum_string_required = 'UPPER', ) - """ def testEnumTest(self): """Test EnumTest""" diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_fake_api.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_fake_api.py index 02384c933401..cf074093f90d 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_fake_api.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_fake_api.py @@ -3,277 +3,144 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +try: + from unittest.mock import patch +except ImportError: + from mock import patch +import petstore_api from petstore_api.api.fake_api import FakeApi # noqa: E501 class TestFakeApi(unittest.TestCase): """FakeApi unit test stubs""" - def setUp(self) -> None: - self.api = FakeApi() - - def tearDown(self) -> None: - pass - - def test_fake_any_type_request_body(self) -> None: - """Test case for fake_any_type_request_body + def setUp(self): + self.api = petstore_api.api.fake_api.FakeApi() # noqa: E501 - test any type request body # noqa: E501 - """ + def tearDown(self): pass - def test_fake_enum_ref_query_parameter(self) -> None: - """Test case for fake_enum_ref_query_parameter - - test enum reference query parameter # noqa: E501 - """ - pass - - def test_fake_health_get(self) -> None: + def test_fake_health_get(self): """Test case for fake_health_get Health check endpoint # noqa: E501 """ pass - def test_fake_http_signature_test(self) -> None: + def test_fake_http_signature_test(self): """Test case for fake_http_signature_test test http signature authentication # noqa: E501 """ pass - def test_fake_outer_boolean_serialize(self) -> None: + def test_fake_outer_boolean_serialize(self): """Test case for fake_outer_boolean_serialize """ pass - def test_fake_outer_composite_serialize(self) -> None: + def test_fake_outer_composite_serialize(self): """Test case for fake_outer_composite_serialize """ pass - def test_fake_outer_number_serialize(self) -> None: + def test_fake_outer_number_serialize(self): """Test case for fake_outer_number_serialize """ pass - def test_fake_outer_string_serialize(self) -> None: + def test_fake_outer_string_serialize(self): """Test case for fake_outer_string_serialize """ pass - def test_fake_property_enum_integer_serialize(self) -> None: - """Test case for fake_property_enum_integer_serialize - - """ - pass - - def test_fake_ref_enum_string(self) -> None: - """Test case for fake_ref_enum_string - - test ref to enum string # noqa: E501 - """ - pass - - def test_fake_return_boolean(self) -> None: - """Test case for fake_return_boolean - - test returning boolean # noqa: E501 - """ - pass - - def test_fake_return_byte_like_json(self) -> None: - """Test case for fake_return_byte_like_json - - test byte like json # noqa: E501 - """ - pass - - def test_fake_return_enum(self) -> None: - """Test case for fake_return_enum - - test returning enum # noqa: E501 - """ - pass - - def test_fake_return_enum_like_json(self) -> None: - """Test case for fake_return_enum_like_json - - test enum like json # noqa: E501 - """ - pass - - def test_fake_return_float(self) -> None: - """Test case for fake_return_float - - test returning float # noqa: E501 - """ - pass - - def test_fake_return_int(self) -> None: - """Test case for fake_return_int - - test returning int # noqa: E501 - """ - pass - - def test_fake_return_list_of_objects(self) -> None: - """Test case for fake_return_list_of_objects - - test returning list of objects # noqa: E501 - """ - pass - - def test_fake_return_str_like_json(self) -> None: - """Test case for fake_return_str_like_json - - test str like json # noqa: E501 - """ - pass - - def test_fake_return_string(self) -> None: - """Test case for fake_return_string - - test returning string # noqa: E501 - """ - pass - - def test_fake_uuid_example(self) -> None: - """Test case for fake_uuid_example - - test uuid example # noqa: E501 - """ - pass - - def test_test_additional_properties_reference(self) -> None: - """Test case for test_additional_properties_reference - - test referenced additionalProperties # noqa: E501 - """ - pass - - def test_test_body_with_binary(self) -> None: - """Test case for test_body_with_binary - - """ - pass - - def test_test_body_with_file_schema(self) -> None: + def test_test_body_with_file_schema(self): """Test case for test_body_with_file_schema """ pass - def test_test_body_with_query_params(self) -> None: + def test_test_body_with_query_params(self): """Test case for test_body_with_query_params """ pass - def test_test_client_model(self) -> None: + def test_test_client_model(self): """Test case for test_client_model To test \"client\" model # noqa: E501 """ pass - def test_test_date_time_query_parameter(self) -> None: - """Test case for test_date_time_query_parameter - - """ - pass - - def test_test_empty_and_non_empty_responses(self) -> None: - """Test case for test_empty_and_non_empty_responses - - test empty and non-empty responses # noqa: E501 - """ - pass - - def test_test_endpoint_parameters(self) -> None: + def test_test_endpoint_parameters(self): """Test case for test_endpoint_parameters Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 # noqa: E501 """ pass - def test_test_error_responses_with_model(self) -> None: - """Test case for test_error_responses_with_model + def test_test_enum_parameters(self): + """Test case for test_enum_parameters - test error responses with model # noqa: E501 + To test enum parameters # noqa: E501 """ pass - def test_test_group_parameters(self) -> None: + def test_test_group_parameters(self): """Test case for test_group_parameters Fake endpoint to test group parameters (optional) # noqa: E501 """ pass - def test_test_inline_additional_properties(self) -> None: + def test_test_inline_additional_properties(self): """Test case for test_inline_additional_properties test inline additionalProperties # noqa: E501 """ pass - def test_test_inline_freeform_additional_properties(self) -> None: - """Test case for test_inline_freeform_additional_properties - - test inline free-form additionalProperties # noqa: E501 - """ - pass - - def test_test_json_form_data(self) -> None: + def test_test_json_form_data(self): """Test case for test_json_form_data test json serialization of form data # noqa: E501 """ pass - def test_test_object_for_multipart_requests(self) -> None: - """Test case for test_object_for_multipart_requests - - """ - pass - - def test_test_query_parameter_collection_format(self) -> None: + def test_test_query_parameter_collection_format(self): """Test case for test_query_parameter_collection_format """ pass - def test_test_string_map_reference(self) -> None: - """Test case for test_string_map_reference - - test referenced string map # noqa: E501 - """ - pass - - def test_upload_file_with_additional_properties(self) -> None: - """Test case for upload_file_with_additional_properties + def test_headers_parameter(self): + """Test case for the _headers are passed by the user - uploads a file and additional properties using multipart/form-data # noqa: E501 + To test any optional parameter # noqa: E501 """ - pass - + api = petstore_api.api.PetApi() + with patch("petstore_api.api_client.ApiClient.call_api") as mock_method: + value_headers = {"Header1": "value1"} + api.find_pets_by_status(["available"], _headers=value_headers) + args, _ = mock_method.call_args + self.assertEqual(args, ('/pet/findByStatus', 'GET', {}, [('status', ['available'])], {'Accept': 'application/json', 'Header1': 'value1'}) +) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_fake_classname_tags123_api.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_fake_classname_tags123_api.py index bb449540c784..25088624aea3 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_fake_classname_tags123_api.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_fake_classname_tags123_api.py @@ -21,7 +21,7 @@ class TestFakeClassnameTags123Api(unittest.TestCase): """FakeClassnameTags123Api unit test stubs""" def setUp(self) -> None: - self.api = FakeClassnameTags123Api() + self.api = FakeClassnameTags123Api() # noqa: E501 def tearDown(self) -> None: pass diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_field.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_field.py index cb5e8e25dd24..c972d91444a5 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_field.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_field.py @@ -36,7 +36,7 @@ def make_instance(self, include_optional) -> Field: model = Field() # noqa: E501 if include_optional: return Field( - field = '' + dummy = '' ) else: return Field( diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_file.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_file.py index 0896f1869db5..3c9b91972d91 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_file.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_file.py @@ -3,19 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest import datetime +import petstore_api from petstore_api.models.file import File # noqa: E501 +from petstore_api.rest import ApiException class TestFile(unittest.TestCase): """File unit test stubs""" @@ -26,27 +28,24 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> File: + def make_instance(self, include_optional): """Test File include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `File` - """ - model = File() # noqa: E501 - if include_optional: + # model = petstore_api.models.file.File() # noqa: E501 + if include_optional : return File( source_uri = '' ) - else: + else : return File( ) - """ def testFile(self): """Test File""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_file_schema_test_class.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_file_schema_test_class.py index 72963bf91d52..2834ddc05413 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_file_schema_test_class.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_file_schema_test_class.py @@ -3,19 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest import datetime +import petstore_api from petstore_api.models.file_schema_test_class import FileSchemaTestClass # noqa: E501 +from petstore_api.rest import ApiException class TestFileSchemaTestClass(unittest.TestCase): """FileSchemaTestClass unit test stubs""" @@ -26,32 +28,29 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> FileSchemaTestClass: + def make_instance(self, include_optional): """Test FileSchemaTestClass include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `FileSchemaTestClass` - """ - model = FileSchemaTestClass() # noqa: E501 - if include_optional: + # model = petstore_api.models.file_schema_test_class.FileSchemaTestClass() # noqa: E501 + if include_optional : return FileSchemaTestClass( file = petstore_api.models.file.File( - source_uri = '', ), + source_uri = '', ), files = [ petstore_api.models.file.File( source_uri = '', ) ] ) - else: + else : return FileSchemaTestClass( ) - """ def testFileSchemaTestClass(self): """Test FileSchemaTestClass""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_first_ref.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_first_ref.py index a99fc7cfc796..bcec1c0334bf 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_first_ref.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_first_ref.py @@ -3,19 +3,23 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 +""" + +from __future__ import absolute_import import unittest import datetime +import petstore_api from petstore_api.models.first_ref import FirstRef # noqa: E501 +from petstore_api.rest import ApiException class TestFirstRef(unittest.TestCase): """FirstRef unit test stubs""" @@ -26,17 +30,17 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> FirstRef: + def make_instance(self, include_optional): """Test FirstRef include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `FirstRef` """ - model = FirstRef() # noqa: E501 - if include_optional: + model = petstore_api.models.first_ref.FirstRef() # noqa: E501 + if include_optional : return FirstRef( - category = '', + category = '', self_ref = petstore_api.models.second_ref.SecondRef( category = '', circular_ref = petstore_api.models.circular_reference_model.Circular-Reference-Model( @@ -44,7 +48,7 @@ def make_instance(self, include_optional) -> FirstRef: nested = petstore_api.models.first_ref.FirstRef( category = '', ), ), ) ) - else: + else : return FirstRef( ) """ diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_foo.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_foo.py index f92679671c7a..f592b1c37018 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_foo.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_foo.py @@ -3,19 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest import datetime +import petstore_api from petstore_api.models.foo import Foo # noqa: E501 +from petstore_api.rest import ApiException class TestFoo(unittest.TestCase): """Foo unit test stubs""" @@ -26,27 +28,24 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> Foo: + def make_instance(self, include_optional): """Test Foo include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `Foo` - """ - model = Foo() # noqa: E501 - if include_optional: + # model = petstore_api.models.foo.Foo() # noqa: E501 + if include_optional : return Foo( bar = 'bar' ) - else: + else : return Foo( ) - """ def testFoo(self): """Test Foo""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_foo_get_default_response.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_foo_get_default_response.py index 3a024f8e6c70..d2cadc258d8e 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_foo_get_default_response.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_foo_get_default_response.py @@ -3,19 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest import datetime +import petstore_api from petstore_api.models.foo_get_default_response import FooGetDefaultResponse # noqa: E501 +from petstore_api.rest import ApiException class TestFooGetDefaultResponse(unittest.TestCase): """FooGetDefaultResponse unit test stubs""" @@ -26,28 +28,25 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> FooGetDefaultResponse: + def make_instance(self, include_optional): """Test FooGetDefaultResponse include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `FooGetDefaultResponse` - """ - model = FooGetDefaultResponse() # noqa: E501 - if include_optional: + # model = petstore_api.models.foo_get_default_response.FooGetDefaultResponse() # noqa: E501 + if include_optional : return FooGetDefaultResponse( string = petstore_api.models.foo.Foo( bar = 'bar', ) ) - else: + else : return FooGetDefaultResponse( ) - """ def testFooGetDefaultResponse(self): """Test FooGetDefaultResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_format_test.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_format_test.py index 72c8965d4914..4d9f9bb87479 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_format_test.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_format_test.py @@ -3,19 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest import datetime +import petstore_api from petstore_api.models.format_test import FormatTest # noqa: E501 +from petstore_api.rest import ApiException class TestFormatTest(unittest.TestCase): """FormatTest unit test stubs""" @@ -26,46 +28,45 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> FormatTest: + def make_instance(self, include_optional): """Test FormatTest include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `FormatTest` - """ - model = FormatTest() # noqa: E501 - if include_optional: + # model = petstore_api.models.format_test.FormatTest() # noqa: E501 + if include_optional : return FormatTest( - integer = 10, - int32 = 20, - int64 = 56, - number = 32.1, - float = 54.3, - double = 67.8, - decimal = 1, - string = 'a', - string_with_double_quote_pattern = 'this is \"something\"', - byte = 'YQ==', - binary = bytes(b'blah'), - var_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - uuid = '72f98069-206d-4f12-9f12-3d1e525a8e84', - password = '0123456789', - pattern_with_digits = '0480728880', + integer = 10, + int32 = 20, + int64 = 56, + number = 132.1, + # TODO: pydantic v2: the "float" property aliases the "float" type in the pydantic v2 generator + # float = 54.3, + double = 67.8, + decimal = 1, + string = 'a', + byte = bytes("someting", 'utf-8'), + binary = bytes(b'blah'), + date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + uuid = '72f98069-206d-4f12-9f12-3d1e525a8e84', + password = '0123456789', + pattern_with_digits = '0480728880', pattern_with_digits_and_delimiter = 'image_480' ) - else: + else : return FormatTest( - number = 32.1, - var_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + number = 122.1, + byte = bytes("someting", 'utf-8'), + date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), password = '0123456789', ) - """ def testFormatTest(self): """Test FormatTest""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) + inst_req_only = self.make_instance(include_optional=False) + # TODO + #inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_has_only_read_only.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_has_only_read_only.py index f106dda48d7e..2a8d2df6a0f8 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_has_only_read_only.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_has_only_read_only.py @@ -3,19 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest import datetime +import petstore_api from petstore_api.models.has_only_read_only import HasOnlyReadOnly # noqa: E501 +from petstore_api.rest import ApiException class TestHasOnlyReadOnly(unittest.TestCase): """HasOnlyReadOnly unit test stubs""" @@ -26,28 +28,25 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> HasOnlyReadOnly: + def make_instance(self, include_optional): """Test HasOnlyReadOnly include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `HasOnlyReadOnly` - """ - model = HasOnlyReadOnly() # noqa: E501 - if include_optional: + # model = petstore_api.models.has_only_read_only.HasOnlyReadOnly() # noqa: E501 + if include_optional : return HasOnlyReadOnly( - bar = '', + bar = '', foo = '' ) - else: + else : return HasOnlyReadOnly( ) - """ def testHasOnlyReadOnly(self): """Test HasOnlyReadOnly""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_health_check_result.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_health_check_result.py index 4f36cde5f8b5..21c52053ea22 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_health_check_result.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_health_check_result.py @@ -3,19 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest import datetime +import petstore_api from petstore_api.models.health_check_result import HealthCheckResult # noqa: E501 +from petstore_api.rest import ApiException class TestHealthCheckResult(unittest.TestCase): """HealthCheckResult unit test stubs""" @@ -26,27 +28,24 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> HealthCheckResult: + def make_instance(self, include_optional): """Test HealthCheckResult include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `HealthCheckResult` - """ - model = HealthCheckResult() # noqa: E501 - if include_optional: + # model = petstore_api.models.health_check_result.HealthCheckResult() # noqa: E501 + if include_optional : return HealthCheckResult( nullable_message = '' ) - else: + else : return HealthCheckResult( ) - """ def testHealthCheckResult(self): """Test HealthCheckResult""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_import_test_datetime_api.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_import_test_datetime_api.py index fd9f99b9b39b..82e7781c0821 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_import_test_datetime_api.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_import_test_datetime_api.py @@ -21,7 +21,7 @@ class TestImportTestDatetimeApi(unittest.TestCase): """ImportTestDatetimeApi unit test stubs""" def setUp(self) -> None: - self.api = ImportTestDatetimeApi() + self.api = ImportTestDatetimeApi() # noqa: E501 def tearDown(self) -> None: pass diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_inner_dict_with_property.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_inner_dict_with_property.py index 1ba15fd984da..8a63b70d5524 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_inner_dict_with_property.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_inner_dict_with_property.py @@ -3,19 +3,23 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 +""" + +from __future__ import absolute_import import unittest import datetime +import petstore_api from petstore_api.models.inner_dict_with_property import InnerDictWithProperty # noqa: E501 +from petstore_api.rest import ApiException class TestInnerDictWithProperty(unittest.TestCase): """InnerDictWithProperty unit test stubs""" @@ -26,19 +30,19 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> InnerDictWithProperty: + def make_instance(self, include_optional): """Test InnerDictWithProperty include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `InnerDictWithProperty` """ - model = InnerDictWithProperty() # noqa: E501 - if include_optional: + model = petstore_api.models.inner_dict_with_property.InnerDictWithProperty() # noqa: E501 + if include_optional : return InnerDictWithProperty( a_property = None ) - else: + else : return InnerDictWithProperty( ) """ diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_int_or_string.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_int_or_string.py index 41bf80d02cb5..0de76602cb69 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_int_or_string.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_int_or_string.py @@ -3,19 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 +""" import unittest import datetime +import petstore_api from petstore_api.models.int_or_string import IntOrString # noqa: E501 +from petstore_api.rest import ApiException class TestIntOrString(unittest.TestCase): """IntOrString unit test stubs""" @@ -26,18 +28,18 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> IntOrString: + def make_instance(self, include_optional): """Test IntOrString include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `IntOrString` """ - model = IntOrString() # noqa: E501 - if include_optional: + model = petstore_api.models.int_or_string.IntOrString() # noqa: E501 + if include_optional : return IntOrString( ) - else: + else : return IntOrString( ) """ diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_map_of_array_of_model.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_map_of_array_of_model.py index 2f88aa7935ad..31ad486f5c03 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_map_of_array_of_model.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_map_of_array_of_model.py @@ -3,19 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 +""" import unittest import datetime +import petstore_api from petstore_api.models.map_of_array_of_model import MapOfArrayOfModel # noqa: E501 +from petstore_api.rest import ApiException class TestMapOfArrayOfModel(unittest.TestCase): """MapOfArrayOfModel unit test stubs""" @@ -26,15 +28,15 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> MapOfArrayOfModel: + def make_instance(self, include_optional): """Test MapOfArrayOfModel include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `MapOfArrayOfModel` """ - model = MapOfArrayOfModel() # noqa: E501 - if include_optional: + model = petstore_api.models.map_of_array_of_model.MapOfArrayOfModel() # noqa: E501 + if include_optional : return MapOfArrayOfModel( shop_id_to_org_online_lip_map = { 'key' : [ @@ -44,7 +46,7 @@ def make_instance(self, include_optional) -> MapOfArrayOfModel: ] } ) - else: + else : return MapOfArrayOfModel( ) """ diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_map_test.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_map_test.py index 8aedbfa8f665..5e11fed312ad 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_map_test.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_map_test.py @@ -3,19 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest import datetime +import petstore_api from petstore_api.models.map_test import MapTest # noqa: E501 +from petstore_api.rest import ApiException class TestMapTest(unittest.TestCase): """MapTest unit test stubs""" @@ -26,40 +28,38 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> MapTest: + def make_instance(self, include_optional): """Test MapTest include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `MapTest` - """ - model = MapTest() # noqa: E501 - if include_optional: + # model = petstore_api.models.map_test.MapTest() # noqa: E501 + if include_optional : return MapTest( map_map_of_string = { 'key' : { 'key' : '' } - }, + }, map_of_enum_string = { 'UPPER' : 'UPPER' - }, + }, direct_map = { 'key' : True - }, + }, indirect_map = { 'key' : True } ) - else: + else : return MapTest( ) - """ def testMapTest(self): """Test MapTest""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) + # TODO + #inst_req_only = self.make_instance(include_optional=False) + #inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_mixed_properties_and_additional_properties_class.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_mixed_properties_and_additional_properties_class.py index 12a96998a561..d217b1143656 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_mixed_properties_and_additional_properties_class.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_mixed_properties_and_additional_properties_class.py @@ -3,19 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest import datetime +import petstore_api from petstore_api.models.mixed_properties_and_additional_properties_class import MixedPropertiesAndAdditionalPropertiesClass # noqa: E501 +from petstore_api.rest import ApiException class TestMixedPropertiesAndAdditionalPropertiesClass(unittest.TestCase): """MixedPropertiesAndAdditionalPropertiesClass unit test stubs""" @@ -26,33 +28,30 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> MixedPropertiesAndAdditionalPropertiesClass: + def make_instance(self, include_optional): """Test MixedPropertiesAndAdditionalPropertiesClass include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `MixedPropertiesAndAdditionalPropertiesClass` - """ - model = MixedPropertiesAndAdditionalPropertiesClass() # noqa: E501 - if include_optional: + # model = petstore_api.models.mixed_properties_and_additional_properties_class.MixedPropertiesAndAdditionalPropertiesClass() # noqa: E501 + if include_optional : return MixedPropertiesAndAdditionalPropertiesClass( - uuid = '', - date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + uuid = '', + date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), map = { 'key' : petstore_api.models.animal.Animal( class_name = '', color = 'red', ) } ) - else: + else : return MixedPropertiesAndAdditionalPropertiesClass( ) - """ def testMixedPropertiesAndAdditionalPropertiesClass(self): """Test MixedPropertiesAndAdditionalPropertiesClass""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_model200_response.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_model200_response.py index f5e65f1aca4e..f7e9677e0074 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_model200_response.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_model200_response.py @@ -3,19 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest import datetime +import petstore_api from petstore_api.models.model200_response import Model200Response # noqa: E501 +from petstore_api.rest import ApiException class TestModel200Response(unittest.TestCase): """Model200Response unit test stubs""" @@ -26,28 +28,25 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> Model200Response: + def make_instance(self, include_optional): """Test Model200Response include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `Model200Response` - """ - model = Model200Response() # noqa: E501 - if include_optional: + # model = petstore_api.models.model200_response.Model200Response() # noqa: E501 + if include_optional : return Model200Response( - name = 56, - var_class = '' + name = 56, + _class = '' ) - else: + else : return Model200Response( ) - """ def testModel200Response(self): """Test Model200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_model_return.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_model_return.py index e011892fb0b3..b0f9d9c4f7f9 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_model_return.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_model_return.py @@ -3,19 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest import datetime +import petstore_api from petstore_api.models.model_return import ModelReturn # noqa: E501 +from petstore_api.rest import ApiException class TestModelReturn(unittest.TestCase): """ModelReturn unit test stubs""" @@ -26,27 +28,24 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> ModelReturn: + def make_instance(self, include_optional): """Test ModelReturn include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `ModelReturn` - """ - model = ModelReturn() # noqa: E501 - if include_optional: + # model = petstore_api.models.model_return.ModelReturn() # noqa: E501 + if include_optional : return ModelReturn( - var_return = 56 + _return = 56 ) - else: + else : return ModelReturn( ) - """ def testModelReturn(self): """Test ModelReturn""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_name.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_name.py index be7ddc8461d1..bbf11fd231ea 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_name.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_name.py @@ -3,19 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest import datetime +import petstore_api from petstore_api.models.name import Name # noqa: E501 +from petstore_api.rest import ApiException class TestName(unittest.TestCase): """Name unit test stubs""" @@ -26,31 +28,28 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> Name: + def make_instance(self, include_optional): """Test Name include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `Name` - """ - model = Name() # noqa: E501 - if include_optional: + # model = petstore_api.models.name.Name() # noqa: E501 + if include_optional : return Name( - name = 56, - snake_case = 56, - var_property = '', - var_123_number = 56 + name = 56, + snake_case = 56, + _property = '', + _123_number = 56 ) - else: + else : return Name( name = 56, ) - """ def testName(self): """Test Name""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_nullable_class.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_nullable_class.py index b1170db23c4d..7aa59f46bbd8 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_nullable_class.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_nullable_class.py @@ -3,19 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest import datetime +import petstore_api from petstore_api.models.nullable_class import NullableClass # noqa: E501 +from petstore_api.rest import ApiException class TestNullableClass(unittest.TestCase): """NullableClass unit test stubs""" @@ -26,52 +28,50 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> NullableClass: + def make_instance(self, include_optional): """Test NullableClass include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `NullableClass` - """ - model = NullableClass() # noqa: E501 - if include_optional: + # model = petstore_api.models.nullable_class.NullableClass() # noqa: E501 + if include_optional : return NullableClass( required_integer_prop = 56, - integer_prop = 56, - number_prop = 1.337, - boolean_prop = True, - string_prop = '', - date_prop = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - datetime_prop = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + integer_prop = 56, + number_prop = 1.337, + boolean_prop = True, + string_prop = '', + date_prop = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + datetime_prop = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), array_nullable_prop = [ None - ], + ], array_and_items_nullable_prop = [ None - ], + ], array_items_nullable = [ None - ], + ], object_nullable_prop = { 'key' : None - }, + }, object_and_items_nullable_prop = { 'key' : None - }, + }, object_items_nullable = { 'key' : None } ) - else: + else : return NullableClass( - required_integer_prop = 56, + required_integer_prop = 56 ) - """ def testNullableClass(self): """Test NullableClass""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) + # TODO + #inst_req_only = self.make_instance(include_optional=False) + #inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_nullable_property.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_nullable_property.py index aa34b84e7973..34129457b1d7 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_nullable_property.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_nullable_property.py @@ -3,19 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 +""" import unittest import datetime +import petstore_api from petstore_api.models.nullable_property import NullableProperty # noqa: E501 +from petstore_api.rest import ApiException class TestNullableProperty(unittest.TestCase): """NullableProperty unit test stubs""" @@ -26,20 +28,20 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> NullableProperty: + def make_instance(self, include_optional): """Test NullableProperty include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `NullableProperty` """ - model = NullableProperty() # noqa: E501 - if include_optional: + model = petstore_api.models.nullable_property.NullableProperty() # noqa: E501 + if include_optional : return NullableProperty( - id = 56, + id = 56, name = 'AUR,rZ#UM/?R,Fp^l6$ARjbhJk C>' ) - else: + else : return NullableProperty( id = 56, name = 'AUR,rZ#UM/?R,Fp^l6$ARjbhJk C>', diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_number_only.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_number_only.py index cfc8c5c778c4..776946c3d774 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_number_only.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_number_only.py @@ -3,19 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest import datetime +import petstore_api from petstore_api.models.number_only import NumberOnly # noqa: E501 +from petstore_api.rest import ApiException class TestNumberOnly(unittest.TestCase): """NumberOnly unit test stubs""" @@ -26,27 +28,24 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> NumberOnly: + def make_instance(self, include_optional): """Test NumberOnly include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `NumberOnly` - """ - model = NumberOnly() # noqa: E501 - if include_optional: + # model = petstore_api.models.number_only.NumberOnly() # noqa: E501 + if include_optional : return NumberOnly( just_number = 1.337 ) - else: + else : return NumberOnly( ) - """ def testNumberOnly(self): """Test NumberOnly""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_object_to_test_additional_properties.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_object_to_test_additional_properties.py index d080b21afb32..f1f354cad251 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_object_to_test_additional_properties.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_object_to_test_additional_properties.py @@ -3,19 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 +""" import unittest import datetime +import petstore_api from petstore_api.models.object_to_test_additional_properties import ObjectToTestAdditionalProperties # noqa: E501 +from petstore_api.rest import ApiException class TestObjectToTestAdditionalProperties(unittest.TestCase): """ObjectToTestAdditionalProperties unit test stubs""" @@ -26,19 +28,19 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> ObjectToTestAdditionalProperties: + def make_instance(self, include_optional): """Test ObjectToTestAdditionalProperties include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `ObjectToTestAdditionalProperties` """ - model = ObjectToTestAdditionalProperties() # noqa: E501 - if include_optional: + model = petstore_api.models.object_to_test_additional_properties.ObjectToTestAdditionalProperties() # noqa: E501 + if include_optional : return ObjectToTestAdditionalProperties( var_property = True ) - else: + else : return ObjectToTestAdditionalProperties( ) """ diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_object_with_deprecated_fields.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_object_with_deprecated_fields.py index 5f04c63a3cb3..e0cbf3e98a51 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_object_with_deprecated_fields.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_object_with_deprecated_fields.py @@ -3,19 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest import datetime +import petstore_api from petstore_api.models.object_with_deprecated_fields import ObjectWithDeprecatedFields # noqa: E501 +from petstore_api.rest import ApiException class TestObjectWithDeprecatedFields(unittest.TestCase): """ObjectWithDeprecatedFields unit test stubs""" @@ -26,33 +28,30 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> ObjectWithDeprecatedFields: + def make_instance(self, include_optional): """Test ObjectWithDeprecatedFields include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `ObjectWithDeprecatedFields` - """ - model = ObjectWithDeprecatedFields() # noqa: E501 - if include_optional: + # model = petstore_api.models.object_with_deprecated_fields.ObjectWithDeprecatedFields() # noqa: E501 + if include_optional : return ObjectWithDeprecatedFields( - uuid = '', - id = 1.337, + uuid = '', + id = 1.337, deprecated_ref = petstore_api.models.deprecated_object.DeprecatedObject( - name = '', ), + name = '', ), bars = [ 'bar' ] ) - else: + else : return ObjectWithDeprecatedFields( ) - """ def testObjectWithDeprecatedFields(self): """Test ObjectWithDeprecatedFields""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_one_of_enum_string.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_one_of_enum_string.py index 3db614a16caf..ed959c1479c2 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_one_of_enum_string.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_one_of_enum_string.py @@ -3,19 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 +""" import unittest import datetime +import petstore_api from petstore_api.models.one_of_enum_string import OneOfEnumString # noqa: E501 +from petstore_api.rest import ApiException class TestOneOfEnumString(unittest.TestCase): """OneOfEnumString unit test stubs""" @@ -26,18 +28,18 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> OneOfEnumString: + def make_instance(self, include_optional): """Test OneOfEnumString include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `OneOfEnumString` """ - model = OneOfEnumString() # noqa: E501 - if include_optional: + model = petstore_api.models.one_of_enum_string.OneOfEnumString() # noqa: E501 + if include_optional : return OneOfEnumString( ) - else: + else : return OneOfEnumString( ) """ diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_order.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_order.py index 3334ed8f949a..d6ec36f83a0d 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_order.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_order.py @@ -3,19 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest import datetime +import petstore_api from petstore_api.models.order import Order # noqa: E501 +from petstore_api.rest import ApiException class TestOrder(unittest.TestCase): """Order unit test stubs""" @@ -26,32 +28,29 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> Order: + def make_instance(self, include_optional): """Test Order include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `Order` - """ - model = Order() # noqa: E501 - if include_optional: + # model = petstore_api.models.order.Order() # noqa: E501 + if include_optional : return Order( - id = 56, - pet_id = 56, - quantity = 56, - ship_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - status = 'placed', + id = 56, + pet_id = 56, + quantity = 56, + ship_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + status = 'placed', complete = True ) - else: + else : return Order( ) - """ def testOrder(self): """Test Order""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_outer_composite.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_outer_composite.py index 7df32d8c6725..c6fd58849377 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_outer_composite.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_outer_composite.py @@ -3,19 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest import datetime +import petstore_api from petstore_api.models.outer_composite import OuterComposite # noqa: E501 +from petstore_api.rest import ApiException class TestOuterComposite(unittest.TestCase): """OuterComposite unit test stubs""" @@ -26,29 +28,26 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> OuterComposite: + def make_instance(self, include_optional): """Test OuterComposite include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `OuterComposite` - """ - model = OuterComposite() # noqa: E501 - if include_optional: + # model = petstore_api.models.outer_composite.OuterComposite() # noqa: E501 + if include_optional : return OuterComposite( - my_number = 1.337, - my_string = '', + my_number = 1.337, + my_string = '', my_boolean = True ) - else: + else : return OuterComposite( ) - """ def testOuterComposite(self): """Test OuterComposite""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_outer_enum.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_outer_enum.py index 5da04a9a45c0..aa195260019e 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_outer_enum.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_outer_enum.py @@ -3,19 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest import datetime +import petstore_api from petstore_api.models.outer_enum import OuterEnum # noqa: E501 +from petstore_api.rest import ApiException class TestOuterEnum(unittest.TestCase): """OuterEnum unit test stubs""" @@ -28,7 +30,7 @@ def tearDown(self): def testOuterEnum(self): """Test OuterEnum""" - # inst = OuterEnum() + inst = OuterEnum("placed") if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_outer_enum_default_value.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_outer_enum_default_value.py index df6499565fdb..f8fba3bd79ad 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_outer_enum_default_value.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_outer_enum_default_value.py @@ -3,19 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest import datetime +import petstore_api from petstore_api.models.outer_enum_default_value import OuterEnumDefaultValue # noqa: E501 +from petstore_api.rest import ApiException class TestOuterEnumDefaultValue(unittest.TestCase): """OuterEnumDefaultValue unit test stubs""" diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_outer_enum_integer.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_outer_enum_integer.py index 7b89b806ba24..ce1e47c61b14 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_outer_enum_integer.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_outer_enum_integer.py @@ -3,19 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest import datetime +import petstore_api from petstore_api.models.outer_enum_integer import OuterEnumInteger # noqa: E501 +from petstore_api.rest import ApiException class TestOuterEnumInteger(unittest.TestCase): """OuterEnumInteger unit test stubs""" diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_outer_enum_integer_default_value.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_outer_enum_integer_default_value.py index 532616fdee1f..f0b707fca778 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_outer_enum_integer_default_value.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_outer_enum_integer_default_value.py @@ -3,19 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest import datetime +import petstore_api from petstore_api.models.outer_enum_integer_default_value import OuterEnumIntegerDefaultValue # noqa: E501 +from petstore_api.rest import ApiException class TestOuterEnumIntegerDefaultValue(unittest.TestCase): """OuterEnumIntegerDefaultValue unit test stubs""" @@ -26,9 +28,23 @@ def setUp(self): def tearDown(self): pass + def make_instance(self, include_optional): + """Test OuterEnumIntegerDefaultValue + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = petstore_api.models.outer_enum_integer_default_value.OuterEnumIntegerDefaultValue() # noqa: E501 + if include_optional : + return OuterEnumIntegerDefaultValue( + ) + else : + return OuterEnumIntegerDefaultValue( + ) + def testOuterEnumIntegerDefaultValue(self): """Test OuterEnumIntegerDefaultValue""" - # inst = OuterEnumIntegerDefaultValue() + #inst_req_only = self.make_instance(include_optional=False) + #inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_outer_object_with_enum_property.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_outer_object_with_enum_property.py index 27e518b00593..35258d5d74ac 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_outer_object_with_enum_property.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_outer_object_with_enum_property.py @@ -3,19 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest import datetime +import petstore_api from petstore_api.models.outer_object_with_enum_property import OuterObjectWithEnumProperty # noqa: E501 +from petstore_api.rest import ApiException class TestOuterObjectWithEnumProperty(unittest.TestCase): """OuterObjectWithEnumProperty unit test stubs""" @@ -26,24 +28,20 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> OuterObjectWithEnumProperty: + def make_instance(self, include_optional): """Test OuterObjectWithEnumProperty include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `OuterObjectWithEnumProperty` - """ - model = OuterObjectWithEnumProperty() # noqa: E501 - if include_optional: + # model = petstore_api.models.outer_object_with_enum_property.OuterObjectWithEnumProperty() # noqa: E501 + if include_optional : return OuterObjectWithEnumProperty( - str_value = 'placed', value = 2 ) - else: + else : return OuterObjectWithEnumProperty( value = 2, ) - """ def testOuterObjectWithEnumProperty(self): """Test OuterObjectWithEnumProperty""" diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_parent.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_parent.py index ea206970c9cf..2a74505f08a1 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_parent.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_parent.py @@ -3,19 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 +""" import unittest import datetime +import petstore_api from petstore_api.models.parent import Parent # noqa: E501 +from petstore_api.rest import ApiException class TestParent(unittest.TestCase): """Parent unit test stubs""" @@ -26,22 +28,22 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> Parent: + def make_instance(self, include_optional): """Test Parent include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `Parent` """ - model = Parent() # noqa: E501 - if include_optional: + model = petstore_api.models.parent.Parent() # noqa: E501 + if include_optional : return Parent( optional_dict = { 'key' : petstore_api.models.inner_dict_with_property.InnerDictWithProperty( a_property = petstore_api.models.a_property.aProperty(), ) } ) - else: + else : return Parent( ) """ diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_parent_with_optional_dict.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_parent_with_optional_dict.py index 2c668a7047a8..25b769e3d390 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_parent_with_optional_dict.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_parent_with_optional_dict.py @@ -3,19 +3,23 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 +""" + +from __future__ import absolute_import import unittest import datetime +import petstore_api from petstore_api.models.parent_with_optional_dict import ParentWithOptionalDict # noqa: E501 +from petstore_api.rest import ApiException class TestParentWithOptionalDict(unittest.TestCase): """ParentWithOptionalDict unit test stubs""" @@ -26,22 +30,22 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> ParentWithOptionalDict: + def make_instance(self, include_optional): """Test ParentWithOptionalDict include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `ParentWithOptionalDict` """ - model = ParentWithOptionalDict() # noqa: E501 - if include_optional: + model = petstore_api.models.parent_with_optional_dict.ParentWithOptionalDict() # noqa: E501 + if include_optional : return ParentWithOptionalDict( optional_dict = { 'key' : petstore_api.models.inner_dict_with_property.InnerDictWithProperty( a_property = petstore_api.models.a_property.aProperty(), ) } ) - else: + else : return ParentWithOptionalDict( ) """ diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_pet.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_pet.py index f89e6cdf4b40..6d3fd2f35b04 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_pet.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_pet.py @@ -3,19 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest import datetime +import petstore_api from petstore_api.models.pet import Pet # noqa: E501 +from petstore_api.rest import ApiException class TestPet(unittest.TestCase): """Pet unit test stubs""" @@ -26,44 +28,41 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> Pet: + def make_instance(self, include_optional): """Test Pet include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `Pet` - """ - model = Pet() # noqa: E501 - if include_optional: + # model = petstore_api.models.pet.Pet() # noqa: E501 + if include_optional : return Pet( - id = 56, + id = 56, category = petstore_api.models.category.Category( id = 56, - name = 'default-name', ), - name = 'doggie', + name = 'default-name', ), + name = 'doggie', photo_urls = [ '' - ], + ], tags = [ petstore_api.models.tag.Tag( id = 56, name = '', ) - ], + ], status = 'available' ) - else: + else : return Pet( name = 'doggie', photo_urls = [ '' ], ) - """ def testPet(self): """Test Pet""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_pet_api.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_pet_api.py index 3c86f126b089..77665df879f1 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_pet_api.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_pet_api.py @@ -3,86 +3,88 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +import petstore_api from petstore_api.api.pet_api import PetApi # noqa: E501 +from petstore_api.rest import ApiException class TestPetApi(unittest.TestCase): """PetApi unit test stubs""" - def setUp(self) -> None: - self.api = PetApi() + def setUp(self): + self.api = petstore_api.api.pet_api.PetApi() # noqa: E501 - def tearDown(self) -> None: + def tearDown(self): pass - def test_add_pet(self) -> None: + def test_add_pet(self): """Test case for add_pet Add a new pet to the store # noqa: E501 """ pass - def test_delete_pet(self) -> None: + def test_delete_pet(self): """Test case for delete_pet Deletes a pet # noqa: E501 """ pass - def test_find_pets_by_status(self) -> None: + def test_find_pets_by_status(self): """Test case for find_pets_by_status Finds Pets by status # noqa: E501 """ pass - def test_find_pets_by_tags(self) -> None: + def test_find_pets_by_tags(self): """Test case for find_pets_by_tags Finds Pets by tags # noqa: E501 """ pass - def test_get_pet_by_id(self) -> None: + def test_get_pet_by_id(self): """Test case for get_pet_by_id Find pet by ID # noqa: E501 """ pass - def test_update_pet(self) -> None: + def test_update_pet(self): """Test case for update_pet Update an existing pet # noqa: E501 """ pass - def test_update_pet_with_form(self) -> None: + def test_update_pet_with_form(self): """Test case for update_pet_with_form Updates a pet in the store with form data # noqa: E501 """ pass - def test_upload_file(self) -> None: + def test_upload_file(self): """Test case for upload_file uploads an image # noqa: E501 """ pass - def test_upload_file_with_required_file(self) -> None: + def test_upload_file_with_required_file(self): """Test case for upload_file_with_required_file uploads an image (required) # noqa: E501 diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_pig.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_pig.py index cd3f112aabc5..95e99f35a738 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_pig.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_pig.py @@ -3,19 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest import datetime +import petstore_api from petstore_api.models.pig import Pig # noqa: E501 +from petstore_api.rest import ApiException class TestPig(unittest.TestCase): """Pig unit test stubs""" @@ -26,28 +28,6 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> Pig: - """Test Pig - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Pig` - """ - model = Pig() # noqa: E501 - if include_optional: - return Pig( - class_name = '', - color = '', - size = 56 - ) - else: - return Pig( - class_name = '', - color = '', - size = 56, - ) - """ - def testPig(self): """Test Pig""" # inst_req_only = self.make_instance(include_optional=False) diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_property_name_collision.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_property_name_collision.py index a869945b3204..04ab956f191d 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_property_name_collision.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_property_name_collision.py @@ -3,19 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 +""" import unittest import datetime +import petstore_api from petstore_api.models.property_name_collision import PropertyNameCollision # noqa: E501 +from petstore_api.rest import ApiException class TestPropertyNameCollision(unittest.TestCase): """PropertyNameCollision unit test stubs""" @@ -26,21 +28,21 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> PropertyNameCollision: + def make_instance(self, include_optional): """Test PropertyNameCollision include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `PropertyNameCollision` """ - model = PropertyNameCollision() # noqa: E501 - if include_optional: + model = petstore_api.models.property_name_collision.PropertyNameCollision() # noqa: E501 + if include_optional : return PropertyNameCollision( - underscore_type = '', - type = '', - type_with_underscore = '' + underscoreType = '', + type = '', + typeWithUnderscore = '' ) - else: + else : return PropertyNameCollision( ) """ diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_read_only_first.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_read_only_first.py index 1026a73205d4..310e4b1aebbe 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_read_only_first.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_read_only_first.py @@ -3,19 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest import datetime +import petstore_api from petstore_api.models.read_only_first import ReadOnlyFirst # noqa: E501 +from petstore_api.rest import ApiException class TestReadOnlyFirst(unittest.TestCase): """ReadOnlyFirst unit test stubs""" @@ -26,28 +28,25 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> ReadOnlyFirst: + def make_instance(self, include_optional): """Test ReadOnlyFirst include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `ReadOnlyFirst` - """ - model = ReadOnlyFirst() # noqa: E501 - if include_optional: + # model = petstore_api.models.read_only_first.ReadOnlyFirst() # noqa: E501 + if include_optional : return ReadOnlyFirst( - bar = '', + bar = '', baz = '' ) - else: + else : return ReadOnlyFirst( ) - """ def testReadOnlyFirst(self): """Test ReadOnlyFirst""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_second_circular_all_of_ref.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_second_circular_all_of_ref.py index c1ef0d1b7db1..3b9a26f72d82 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_second_circular_all_of_ref.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_second_circular_all_of_ref.py @@ -36,10 +36,13 @@ def make_instance(self, include_optional) -> SecondCircularAllOfRef: model = SecondCircularAllOfRef() # noqa: E501 if include_optional: return SecondCircularAllOfRef( - name = '', circular_all_of_ref = [ - petstore_api.models.circular_all_of_ref.CircularAllOfRef() - ] + petstore_api.models.circular_all_of_ref.CircularAllOfRef( + second_circular_all_of_ref = [ + petstore_api.models.second_circular_all_of_ref.SecondCircularAllOfRef() + ], ) + ], + name = '' ) else: return SecondCircularAllOfRef( diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_second_ref.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_second_ref.py index 44194f94544f..782892fd4e17 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_second_ref.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_second_ref.py @@ -3,19 +3,23 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 +""" + +from __future__ import absolute_import import unittest import datetime +import petstore_api from petstore_api.models.second_ref import SecondRef # noqa: E501 +from petstore_api.rest import ApiException class TestSecondRef(unittest.TestCase): """SecondRef unit test stubs""" @@ -26,17 +30,17 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> SecondRef: + def make_instance(self, include_optional): """Test SecondRef include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `SecondRef` """ - model = SecondRef() # noqa: E501 - if include_optional: + model = petstore_api.models.second_ref.SecondRef() # noqa: E501 + if include_optional : return SecondRef( - category = '', + category = '', circular_ref = petstore_api.models.circular_reference_model.Circular-Reference-Model( size = 56, nested = petstore_api.models.first_ref.FirstRef( @@ -44,7 +48,7 @@ def make_instance(self, include_optional) -> SecondRef: self_ref = petstore_api.models.second_ref.SecondRef( category = '', ), ), ) ) - else: + else : return SecondRef( ) """ diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_self_reference_model.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_self_reference_model.py index 8c23008b26ed..b3dd7ada2b2a 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_self_reference_model.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_self_reference_model.py @@ -3,19 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest import datetime +import petstore_api from petstore_api.models.self_reference_model import SelfReferenceModel # noqa: E501 +from petstore_api.rest import ApiException class TestSelfReferenceModel(unittest.TestCase): """SelfReferenceModel unit test stubs""" @@ -26,17 +28,17 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> SelfReferenceModel: + def make_instance(self, include_optional): """Test SelfReferenceModel include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `SelfReferenceModel` """ - model = SelfReferenceModel() # noqa: E501 - if include_optional: + model = petstore_api.models.self_reference_model.SelfReferenceModel() # noqa: E501 + if include_optional : return SelfReferenceModel( - size = 56, + size = 56, nested = petstore_api.models.dummy_model.Dummy-Model( category = '', self_ref = petstore_api.models.self_reference_model.Self-Reference-Model( @@ -44,7 +46,7 @@ def make_instance(self, include_optional) -> SelfReferenceModel: nested = petstore_api.models.dummy_model.Dummy-Model( category = '', ), ), ) ) - else: + else : return SelfReferenceModel( ) """ diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_single_ref_type.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_single_ref_type.py index f5642b8376b0..888a1a7b6da3 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_single_ref_type.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_single_ref_type.py @@ -3,19 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest import datetime +import petstore_api from petstore_api.models.single_ref_type import SingleRefType # noqa: E501 +from petstore_api.rest import ApiException class TestSingleRefType(unittest.TestCase): """SingleRefType unit test stubs""" @@ -26,9 +28,23 @@ def setUp(self): def tearDown(self): pass + def make_instance(self, include_optional): + """Test SingleRefType + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = petstore_api.models.single_ref_type.SingleRefType() # noqa: E501 + if include_optional : + return SingleRefType( + ) + else : + return SingleRefType( + ) + def testSingleRefType(self): """Test SingleRefType""" - # inst = SingleRefType() + #inst_req_only = self.make_instance(include_optional=False) + #inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_special_character_enum.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_special_character_enum.py index ee5baab13095..028f55599e49 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_special_character_enum.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_special_character_enum.py @@ -3,19 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest import datetime +import petstore_api from petstore_api.models.special_character_enum import SpecialCharacterEnum # noqa: E501 +from petstore_api.rest import ApiException class TestSpecialCharacterEnum(unittest.TestCase): """SpecialCharacterEnum unit test stubs""" diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_special_model_name.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_special_model_name.py index 12ec90a9067f..eb487cd42fc1 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_special_model_name.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_special_model_name.py @@ -3,19 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest import datetime +import petstore_api from petstore_api.models.special_model_name import SpecialModelName # noqa: E501 +from petstore_api.rest import ApiException class TestSpecialModelName(unittest.TestCase): """SpecialModelName unit test stubs""" @@ -26,27 +28,24 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> SpecialModelName: + def make_instance(self, include_optional): """Test SpecialModelName include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `SpecialModelName` - """ - model = SpecialModelName() # noqa: E501 - if include_optional: + # model = petstore_api.models.special_model_name.SpecialModelName() # noqa: E501 + if include_optional : return SpecialModelName( special_property_name = 56 ) - else: + else : return SpecialModelName( ) - """ def testSpecialModelName(self): """Test SpecialModelName""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_special_name.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_special_name.py index afaf0996b74c..1f4287871a8e 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_special_name.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_special_name.py @@ -3,19 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest import datetime +import petstore_api from petstore_api.models.special_name import SpecialName # noqa: E501 +from petstore_api.rest import ApiException class TestSpecialName(unittest.TestCase): """SpecialName unit test stubs""" @@ -26,23 +28,23 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> SpecialName: + def make_instance(self, include_optional): """Test SpecialName include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `SpecialName` """ - model = SpecialName() # noqa: E501 - if include_optional: + model = petstore_api.models.special_name.SpecialName() # noqa: E501 + if include_optional : return SpecialName( - var_property = 56, + var_property = 56, var_async = petstore_api.models.category.Category( id = 56, - name = 'default-name', ), - var_schema = 'available' + name = 'default-name', ), + status = 'available' ) - else: + else : return SpecialName( ) """ diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_store_api.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_store_api.py index a6f71182207e..81848d24a67e 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_store_api.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_store_api.py @@ -3,51 +3,53 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +import petstore_api from petstore_api.api.store_api import StoreApi # noqa: E501 +from petstore_api.rest import ApiException class TestStoreApi(unittest.TestCase): """StoreApi unit test stubs""" - def setUp(self) -> None: - self.api = StoreApi() + def setUp(self): + self.api = petstore_api.api.store_api.StoreApi() # noqa: E501 - def tearDown(self) -> None: + def tearDown(self): pass - def test_delete_order(self) -> None: + def test_delete_order(self): """Test case for delete_order Delete purchase order by ID # noqa: E501 """ pass - def test_get_inventory(self) -> None: + def test_get_inventory(self): """Test case for get_inventory Returns pet inventories by status # noqa: E501 """ pass - def test_get_order_by_id(self) -> None: + def test_get_order_by_id(self): """Test case for get_order_by_id Find purchase order by ID # noqa: E501 """ pass - def test_place_order(self) -> None: + def test_place_order(self): """Test case for place_order Place an order for a pet # noqa: E501 diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_tag.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_tag.py index d5ce3fb8a0cf..9680300032f1 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_tag.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_tag.py @@ -3,19 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest import datetime +import petstore_api from petstore_api.models.tag import Tag # noqa: E501 +from petstore_api.rest import ApiException class TestTag(unittest.TestCase): """Tag unit test stubs""" @@ -26,28 +28,25 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> Tag: + def make_instance(self, include_optional): """Test Tag include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `Tag` - """ - model = Tag() # noqa: E501 - if include_optional: + # model = petstore_api.models.tag.Tag() # noqa: E501 + if include_optional : return Tag( - id = 56, + id = 56, name = '' ) - else: + else : return Tag( ) - """ def testTag(self): """Test Tag""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_tiger.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_tiger.py index 7aab61a46066..83c91cea1a0d 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_tiger.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_tiger.py @@ -3,19 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 +""" import unittest import datetime +import petstore_api from petstore_api.models.tiger import Tiger # noqa: E501 +from petstore_api.rest import ApiException class TestTiger(unittest.TestCase): """Tiger unit test stubs""" @@ -26,19 +28,19 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> Tiger: + def make_instance(self, include_optional): """Test Tiger include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `Tiger` """ - model = Tiger() # noqa: E501 - if include_optional: + model = petstore_api.models.tiger.Tiger() # noqa: E501 + if include_optional : return Tiger( skill = '' ) - else: + else : return Tiger( ) """ diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_user.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_user.py index a1ce46e87a19..174c8e06be5d 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_user.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_user.py @@ -3,19 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest import datetime +import petstore_api from petstore_api.models.user import User # noqa: E501 +from petstore_api.rest import ApiException class TestUser(unittest.TestCase): """User unit test stubs""" @@ -26,34 +28,31 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> User: + def make_instance(self, include_optional): """Test User include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `User` - """ - model = User() # noqa: E501 - if include_optional: + # model = petstore_api.models.user.User() # noqa: E501 + if include_optional : return User( - id = 56, - username = '', - first_name = '', - last_name = '', - email = '', - password = '', - phone = '', + id = 56, + username = '', + first_name = '', + last_name = '', + email = '', + password = '', + phone = '', user_status = 56 ) - else: + else : return User( ) - """ def testUser(self): """Test User""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_user_api.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_user_api.py index de95331f8853..6df730fba2b1 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_user_api.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_user_api.py @@ -3,79 +3,81 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +import petstore_api from petstore_api.api.user_api import UserApi # noqa: E501 +from petstore_api.rest import ApiException class TestUserApi(unittest.TestCase): """UserApi unit test stubs""" - def setUp(self) -> None: - self.api = UserApi() + def setUp(self): + self.api = petstore_api.api.user_api.UserApi() # noqa: E501 - def tearDown(self) -> None: + def tearDown(self): pass - def test_create_user(self) -> None: + def test_create_user(self): """Test case for create_user Create user # noqa: E501 """ pass - def test_create_users_with_array_input(self) -> None: + def test_create_users_with_array_input(self): """Test case for create_users_with_array_input Creates list of users with given input array # noqa: E501 """ pass - def test_create_users_with_list_input(self) -> None: + def test_create_users_with_list_input(self): """Test case for create_users_with_list_input Creates list of users with given input array # noqa: E501 """ pass - def test_delete_user(self) -> None: + def test_delete_user(self): """Test case for delete_user Delete user # noqa: E501 """ pass - def test_get_user_by_name(self) -> None: + def test_get_user_by_name(self): """Test case for get_user_by_name Get user by user name # noqa: E501 """ pass - def test_login_user(self) -> None: + def test_login_user(self): """Test case for login_user Logs user into the system # noqa: E501 """ pass - def test_logout_user(self) -> None: + def test_logout_user(self): """Test case for logout_user Logs out current logged in user session # noqa: E501 """ pass - def test_update_user(self) -> None: + def test_update_user(self): """Test case for update_user Updated user # noqa: E501 diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_with_nested_one_of.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_with_nested_one_of.py index 43c4a69a29bb..994004dd7ab7 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_with_nested_one_of.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_with_nested_one_of.py @@ -3,19 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest import datetime +import petstore_api from petstore_api.models.with_nested_one_of import WithNestedOneOf # noqa: E501 +from petstore_api.rest import ApiException class TestWithNestedOneOf(unittest.TestCase): """WithNestedOneOf unit test stubs""" @@ -26,29 +28,25 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> WithNestedOneOf: + def make_instance(self, include_optional): """Test WithNestedOneOf include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `WithNestedOneOf` - """ - model = WithNestedOneOf() # noqa: E501 - if include_optional: + # model = petstore_api.models.with_nested_one_of.WithNestedOneOf() # noqa: E501 + if include_optional : return WithNestedOneOf( - size = 56, - nested_pig = None, - nested_oneof_enum_string = None + size = 56, + nested_pig = None ) - else: + else : return WithNestedOneOf( ) - """ def testWithNestedOneOf(self): """Test WithNestedOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) + #inst_req_only = self.make_instance(include_optional=False) + #inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_additional_properties_any_type.py b/samples/openapi3/client/petstore/python/test/test_additional_properties_any_type.py index 48603ddb4033..c2c9c7c58069 100644 --- a/samples/openapi3/client/petstore/python/test/test_additional_properties_any_type.py +++ b/samples/openapi3/client/petstore/python/test/test_additional_properties_any_type.py @@ -3,18 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 +""" import unittest +import datetime -from petstore_api.models.additional_properties_any_type import AdditionalPropertiesAnyType +import petstore_api +from petstore_api.models.additional_properties_any_type import AdditionalPropertiesAnyType # noqa: E501 +from petstore_api.rest import ApiException class TestAdditionalPropertiesAnyType(unittest.TestCase): """AdditionalPropertiesAnyType unit test stubs""" @@ -25,19 +28,19 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> AdditionalPropertiesAnyType: + def make_instance(self, include_optional): """Test AdditionalPropertiesAnyType - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `AdditionalPropertiesAnyType` """ - model = AdditionalPropertiesAnyType() - if include_optional: + model = petstore_api.models.additional_properties_any_type.AdditionalPropertiesAnyType() # noqa: E501 + if include_optional : return AdditionalPropertiesAnyType( name = '' ) - else: + else : return AdditionalPropertiesAnyType( ) """ diff --git a/samples/openapi3/client/petstore/python/test/test_additional_properties_class.py b/samples/openapi3/client/petstore/python/test/test_additional_properties_class.py index 0261c8f4a004..e3b48bedd571 100644 --- a/samples/openapi3/client/petstore/python/test/test_additional_properties_class.py +++ b/samples/openapi3/client/petstore/python/test/test_additional_properties_class.py @@ -3,18 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 +""" import unittest +import datetime -from petstore_api.models.additional_properties_class import AdditionalPropertiesClass +import petstore_api +from petstore_api.models.additional_properties_class import AdditionalPropertiesClass # noqa: E501 +from petstore_api.rest import ApiException class TestAdditionalPropertiesClass(unittest.TestCase): """AdditionalPropertiesClass unit test stubs""" @@ -25,26 +28,26 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> AdditionalPropertiesClass: + def make_instance(self, include_optional): """Test AdditionalPropertiesClass - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `AdditionalPropertiesClass` """ - model = AdditionalPropertiesClass() - if include_optional: + model = petstore_api.models.additional_properties_class.AdditionalPropertiesClass() # noqa: E501 + if include_optional : return AdditionalPropertiesClass( map_property = { 'key' : '' - }, + }, map_of_map_property = { 'key' : { 'key' : '' } } ) - else: + else : return AdditionalPropertiesClass( ) """ diff --git a/samples/openapi3/client/petstore/python/test/test_additional_properties_object.py b/samples/openapi3/client/petstore/python/test/test_additional_properties_object.py index 8b0dccef5647..b68a8fda5790 100644 --- a/samples/openapi3/client/petstore/python/test/test_additional_properties_object.py +++ b/samples/openapi3/client/petstore/python/test/test_additional_properties_object.py @@ -3,18 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 +""" import unittest +import datetime -from petstore_api.models.additional_properties_object import AdditionalPropertiesObject +import petstore_api +from petstore_api.models.additional_properties_object import AdditionalPropertiesObject # noqa: E501 +from petstore_api.rest import ApiException class TestAdditionalPropertiesObject(unittest.TestCase): """AdditionalPropertiesObject unit test stubs""" @@ -25,19 +28,19 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> AdditionalPropertiesObject: + def make_instance(self, include_optional): """Test AdditionalPropertiesObject - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `AdditionalPropertiesObject` """ - model = AdditionalPropertiesObject() - if include_optional: + model = petstore_api.models.additional_properties_object.AdditionalPropertiesObject() # noqa: E501 + if include_optional : return AdditionalPropertiesObject( name = '' ) - else: + else : return AdditionalPropertiesObject( ) """ diff --git a/samples/openapi3/client/petstore/python/test/test_additional_properties_with_description_only.py b/samples/openapi3/client/petstore/python/test/test_additional_properties_with_description_only.py index 698f5f8d8994..d5166dfe1342 100644 --- a/samples/openapi3/client/petstore/python/test/test_additional_properties_with_description_only.py +++ b/samples/openapi3/client/petstore/python/test/test_additional_properties_with_description_only.py @@ -3,18 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 +""" import unittest +import datetime -from petstore_api.models.additional_properties_with_description_only import AdditionalPropertiesWithDescriptionOnly +import petstore_api +from petstore_api.models.additional_properties_with_description_only import AdditionalPropertiesWithDescriptionOnly # noqa: E501 +from petstore_api.rest import ApiException class TestAdditionalPropertiesWithDescriptionOnly(unittest.TestCase): """AdditionalPropertiesWithDescriptionOnly unit test stubs""" @@ -25,19 +28,19 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> AdditionalPropertiesWithDescriptionOnly: + def make_instance(self, include_optional): """Test AdditionalPropertiesWithDescriptionOnly - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `AdditionalPropertiesWithDescriptionOnly` """ - model = AdditionalPropertiesWithDescriptionOnly() - if include_optional: + model = petstore_api.models.additional_properties_with_description_only.AdditionalPropertiesWithDescriptionOnly() # noqa: E501 + if include_optional : return AdditionalPropertiesWithDescriptionOnly( name = '' ) - else: + else : return AdditionalPropertiesWithDescriptionOnly( ) """ diff --git a/samples/openapi3/client/petstore/python/test/test_all_of_super_model.py b/samples/openapi3/client/petstore/python/test/test_all_of_super_model.py index 0b37180a54c1..dfc6d444ba7a 100644 --- a/samples/openapi3/client/petstore/python/test/test_all_of_super_model.py +++ b/samples/openapi3/client/petstore/python/test/test_all_of_super_model.py @@ -27,7 +27,7 @@ def tearDown(self): def make_instance(self, include_optional) -> AllOfSuperModel: """Test AllOfSuperModel - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `AllOfSuperModel` diff --git a/samples/openapi3/client/petstore/python/test/test_all_of_with_single_ref.py b/samples/openapi3/client/petstore/python/test/test_all_of_with_single_ref.py index ff147a1bc4e5..ee761ef82d0a 100644 --- a/samples/openapi3/client/petstore/python/test/test_all_of_with_single_ref.py +++ b/samples/openapi3/client/petstore/python/test/test_all_of_with_single_ref.py @@ -3,18 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +import datetime -from petstore_api.models.all_of_with_single_ref import AllOfWithSingleRef +import petstore_api +from petstore_api.models.all_of_with_single_ref import AllOfWithSingleRef # noqa: E501 +from petstore_api.rest import ApiException class TestAllOfWithSingleRef(unittest.TestCase): """AllOfWithSingleRef unit test stubs""" @@ -25,28 +28,25 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> AllOfWithSingleRef: + def make_instance(self, include_optional): """Test AllOfWithSingleRef - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `AllOfWithSingleRef` - """ - model = AllOfWithSingleRef() - if include_optional: + # model = petstore_api.models.all_of_with_single_ref.AllOfWithSingleRef() # noqa: E501 + if include_optional : return AllOfWithSingleRef( - username = '', - single_ref_type = 'admin' + username = '', + single_ref_type = None ) - else: + else : return AllOfWithSingleRef( ) - """ def testAllOfWithSingleRef(self): """Test AllOfWithSingleRef""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_animal.py b/samples/openapi3/client/petstore/python/test/test_animal.py index 4ea318679b61..75d9ddf51887 100644 --- a/samples/openapi3/client/petstore/python/test/test_animal.py +++ b/samples/openapi3/client/petstore/python/test/test_animal.py @@ -3,18 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +import datetime -from petstore_api.models.animal import Animal +import petstore_api +from petstore_api.models.animal import Animal # noqa: E501 +from petstore_api.rest import ApiException class TestAnimal(unittest.TestCase): """Animal unit test stubs""" @@ -25,29 +28,26 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> Animal: + def make_instance(self, include_optional): """Test Animal - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `Animal` - """ - model = Animal() - if include_optional: + # model = petstore_api.models.animal.Animal() # noqa: E501 + if include_optional : return Animal( - class_name = '', + className = '', color = 'red' ) - else: + else : return Animal( - class_name = '', + className = '', ) - """ def testAnimal(self): """Test Animal""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_another_fake_api.py b/samples/openapi3/client/petstore/python/test/test_another_fake_api.py index d1b73d979ffc..d95798cfc5a4 100644 --- a/samples/openapi3/client/petstore/python/test/test_another_fake_api.py +++ b/samples/openapi3/client/petstore/python/test/test_another_fake_api.py @@ -3,33 +3,35 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest -from petstore_api.api.another_fake_api import AnotherFakeApi +import petstore_api +from petstore_api.api.another_fake_api import AnotherFakeApi # noqa: E501 +from petstore_api.rest import ApiException class TestAnotherFakeApi(unittest.TestCase): """AnotherFakeApi unit test stubs""" - def setUp(self) -> None: - self.api = AnotherFakeApi() + def setUp(self): + self.api = petstore_api.api.another_fake_api.AnotherFakeApi() # noqa: E501 - def tearDown(self) -> None: + def tearDown(self): pass - def test_call_123_test_special_tags(self) -> None: + def test_call_123_test_special_tags(self): """Test case for call_123_test_special_tags - To test special tags + To test special tags # noqa: E501 """ pass diff --git a/samples/openapi3/client/petstore/python/test/test_any_of_color.py b/samples/openapi3/client/petstore/python/test/test_any_of_color.py index f6092af623a7..2a97cfef7526 100644 --- a/samples/openapi3/client/petstore/python/test/test_any_of_color.py +++ b/samples/openapi3/client/petstore/python/test/test_any_of_color.py @@ -3,18 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +import datetime -from petstore_api.models.any_of_color import AnyOfColor +import petstore_api +from petstore_api.models.any_of_color import AnyOfColor # noqa: E501 +from petstore_api.rest import ApiException class TestAnyOfColor(unittest.TestCase): """AnyOfColor unit test stubs""" @@ -25,18 +28,18 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> AnyOfColor: + def make_instance(self, include_optional): """Test AnyOfColor - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `AnyOfColor` """ - model = AnyOfColor() - if include_optional: + model = petstore_api.models.any_of_color.AnyOfColor() # noqa: E501 + if include_optional : return AnyOfColor( ) - else: + else : return AnyOfColor( ) """ diff --git a/samples/openapi3/client/petstore/python/test/test_any_of_pig.py b/samples/openapi3/client/petstore/python/test/test_any_of_pig.py index e69d8f25900a..f041e5f9d6f7 100644 --- a/samples/openapi3/client/petstore/python/test/test_any_of_pig.py +++ b/samples/openapi3/client/petstore/python/test/test_any_of_pig.py @@ -3,18 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +import datetime -from petstore_api.models.any_of_pig import AnyOfPig +import petstore_api +from petstore_api.models.any_of_pig import AnyOfPig # noqa: E501 +from petstore_api.rest import ApiException class TestAnyOfPig(unittest.TestCase): """AnyOfPig unit test stubs""" @@ -25,28 +28,6 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> AnyOfPig: - """Test AnyOfPig - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AnyOfPig` - """ - model = AnyOfPig() - if include_optional: - return AnyOfPig( - class_name = '', - color = '', - size = 56 - ) - else: - return AnyOfPig( - class_name = '', - color = '', - size = 56, - ) - """ - def testAnyOfPig(self): """Test AnyOfPig""" # inst_req_only = self.make_instance(include_optional=False) diff --git a/samples/openapi3/client/petstore/python/test/test_array_of_array_of_model.py b/samples/openapi3/client/petstore/python/test/test_array_of_array_of_model.py index a96ea540171c..1072a19255de 100644 --- a/samples/openapi3/client/petstore/python/test/test_array_of_array_of_model.py +++ b/samples/openapi3/client/petstore/python/test/test_array_of_array_of_model.py @@ -3,18 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 +""" import unittest +import datetime -from petstore_api.models.array_of_array_of_model import ArrayOfArrayOfModel +import petstore_api +from petstore_api.models.array_of_array_of_model import ArrayOfArrayOfModel # noqa: E501 +from petstore_api.rest import ApiException class TestArrayOfArrayOfModel(unittest.TestCase): """ArrayOfArrayOfModel unit test stubs""" @@ -25,17 +28,17 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> ArrayOfArrayOfModel: + def make_instance(self, include_optional): """Test ArrayOfArrayOfModel - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `ArrayOfArrayOfModel` """ - model = ArrayOfArrayOfModel() - if include_optional: + model = petstore_api.models.array_of_array_of_model.ArrayOfArrayOfModel() # noqa: E501 + if include_optional : return ArrayOfArrayOfModel( - another_property = [ + shop_id_to_org_online_lip_map = [ [ petstore_api.models.tag.Tag( id = 56, @@ -43,7 +46,7 @@ def make_instance(self, include_optional) -> ArrayOfArrayOfModel: ] ] ) - else: + else : return ArrayOfArrayOfModel( ) """ diff --git a/samples/openapi3/client/petstore/python/test/test_array_of_array_of_number_only.py b/samples/openapi3/client/petstore/python/test/test_array_of_array_of_number_only.py index bd89ba2188dd..001b4e565737 100644 --- a/samples/openapi3/client/petstore/python/test/test_array_of_array_of_number_only.py +++ b/samples/openapi3/client/petstore/python/test/test_array_of_array_of_number_only.py @@ -3,18 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +import datetime -from petstore_api.models.array_of_array_of_number_only import ArrayOfArrayOfNumberOnly +import petstore_api +from petstore_api.models.array_of_array_of_number_only import ArrayOfArrayOfNumberOnly # noqa: E501 +from petstore_api.rest import ApiException class TestArrayOfArrayOfNumberOnly(unittest.TestCase): """ArrayOfArrayOfNumberOnly unit test stubs""" @@ -25,15 +28,13 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> ArrayOfArrayOfNumberOnly: + def make_instance(self, include_optional): """Test ArrayOfArrayOfNumberOnly - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `ArrayOfArrayOfNumberOnly` - """ - model = ArrayOfArrayOfNumberOnly() - if include_optional: + # model = petstore_api.models.array_of_array_of_number_only.ArrayOfArrayOfNumberOnly() # noqa: E501 + if include_optional : return ArrayOfArrayOfNumberOnly( array_array_number = [ [ @@ -41,15 +42,14 @@ def make_instance(self, include_optional) -> ArrayOfArrayOfNumberOnly: ] ] ) - else: + else : return ArrayOfArrayOfNumberOnly( ) - """ def testArrayOfArrayOfNumberOnly(self): """Test ArrayOfArrayOfNumberOnly""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_array_of_number_only.py b/samples/openapi3/client/petstore/python/test/test_array_of_number_only.py index f67af039fcef..a35703ae0dac 100644 --- a/samples/openapi3/client/petstore/python/test/test_array_of_number_only.py +++ b/samples/openapi3/client/petstore/python/test/test_array_of_number_only.py @@ -3,18 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +import datetime -from petstore_api.models.array_of_number_only import ArrayOfNumberOnly +import petstore_api +from petstore_api.models.array_of_number_only import ArrayOfNumberOnly # noqa: E501 +from petstore_api.rest import ApiException class TestArrayOfNumberOnly(unittest.TestCase): """ArrayOfNumberOnly unit test stubs""" @@ -25,29 +28,26 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> ArrayOfNumberOnly: + def make_instance(self, include_optional): """Test ArrayOfNumberOnly - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `ArrayOfNumberOnly` - """ - model = ArrayOfNumberOnly() - if include_optional: + # model = petstore_api.models.array_of_number_only.ArrayOfNumberOnly() # noqa: E501 + if include_optional : return ArrayOfNumberOnly( array_number = [ 1.337 ] ) - else: + else : return ArrayOfNumberOnly( ) - """ def testArrayOfNumberOnly(self): """Test ArrayOfNumberOnly""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_array_test.py b/samples/openapi3/client/petstore/python/test/test_array_test.py index 21ce90c4c2ca..8327e415adcd 100644 --- a/samples/openapi3/client/petstore/python/test/test_array_test.py +++ b/samples/openapi3/client/petstore/python/test/test_array_test.py @@ -3,18 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +import datetime -from petstore_api.models.array_test import ArrayTest +import petstore_api +from petstore_api.models.array_test import ArrayTest # noqa: E501 +from petstore_api.rest import ApiException class TestArrayTest(unittest.TestCase): """ArrayTest unit test stubs""" @@ -25,27 +28,22 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> ArrayTest: + def make_instance(self, include_optional): """Test ArrayTest - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `ArrayTest` - """ - model = ArrayTest() - if include_optional: + # model = petstore_api.models.array_test.ArrayTest() # noqa: E501 + if include_optional : return ArrayTest( array_of_string = [ '' - ], - array_of_nullable_float = [ - 1.337 - ], + ], array_array_of_integer = [ [ 56 ] - ], + ], array_array_of_model = [ [ petstore_api.models.read_only_first.ReadOnlyFirst( @@ -54,15 +52,14 @@ def make_instance(self, include_optional) -> ArrayTest: ] ] ) - else: + else : return ArrayTest( ) - """ def testArrayTest(self): """Test ArrayTest""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_base_discriminator.py b/samples/openapi3/client/petstore/python/test/test_base_discriminator.py index 05ed4b3d4da3..61c40f7f6809 100644 --- a/samples/openapi3/client/petstore/python/test/test_base_discriminator.py +++ b/samples/openapi3/client/petstore/python/test/test_base_discriminator.py @@ -27,7 +27,7 @@ def tearDown(self): def make_instance(self, include_optional) -> BaseDiscriminator: """Test BaseDiscriminator - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `BaseDiscriminator` diff --git a/samples/openapi3/client/petstore/python/test/test_basque_pig.py b/samples/openapi3/client/petstore/python/test/test_basque_pig.py index f79d16cd8585..26e2a845a95c 100644 --- a/samples/openapi3/client/petstore/python/test/test_basque_pig.py +++ b/samples/openapi3/client/petstore/python/test/test_basque_pig.py @@ -3,18 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +import datetime -from petstore_api.models.basque_pig import BasquePig +import petstore_api +from petstore_api.models.basque_pig import BasquePig # noqa: E501 +from petstore_api.rest import ApiException class TestBasquePig(unittest.TestCase): """BasquePig unit test stubs""" @@ -25,30 +28,27 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> BasquePig: + def make_instance(self, include_optional): """Test BasquePig - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `BasquePig` - """ - model = BasquePig() - if include_optional: + # model = petstore_api.models.basque_pig.BasquePig() # noqa: E501 + if include_optional : return BasquePig( - class_name = '', + class_name = '', color = '' ) - else: + else : return BasquePig( class_name = '', color = '', ) - """ def testBasquePig(self): """Test BasquePig""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) + #inst_req_only = self.make_instance(include_optional=False) + #inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_bathing.py b/samples/openapi3/client/petstore/python/test/test_bathing.py index f2b6a75a95a4..583bdcbb09ec 100644 --- a/samples/openapi3/client/petstore/python/test/test_bathing.py +++ b/samples/openapi3/client/petstore/python/test/test_bathing.py @@ -13,6 +13,7 @@ import unittest +import datetime from petstore_api.models.bathing import Bathing @@ -27,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> Bathing: """Test Bathing - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `Bathing` diff --git a/samples/openapi3/client/petstore/python/test/test_capitalization.py b/samples/openapi3/client/petstore/python/test/test_capitalization.py index 6e8f95b7acfd..c7a9721dbc00 100644 --- a/samples/openapi3/client/petstore/python/test/test_capitalization.py +++ b/samples/openapi3/client/petstore/python/test/test_capitalization.py @@ -3,18 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +import datetime -from petstore_api.models.capitalization import Capitalization +import petstore_api +from petstore_api.models.capitalization import Capitalization # noqa: E501 +from petstore_api.rest import ApiException class TestCapitalization(unittest.TestCase): """Capitalization unit test stubs""" @@ -25,32 +28,29 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> Capitalization: + def make_instance(self, include_optional): """Test Capitalization - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `Capitalization` - """ - model = Capitalization() - if include_optional: + # model = petstore_api.models.capitalization.Capitalization() # noqa: E501 + if include_optional : return Capitalization( - small_camel = '', - capital_camel = '', - small_snake = '', - capital_snake = '', - sca_eth_flow_points = '', + small_camel = '', + capital_camel = '', + small_snake = '', + capital_snake = '', + sca_eth_flow_points = '', att_name = '' ) - else: + else : return Capitalization( ) - """ def testCapitalization(self): """Test Capitalization""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_cat.py b/samples/openapi3/client/petstore/python/test/test_cat.py index 15034d82ed3b..e04566b1aafd 100644 --- a/samples/openapi3/client/petstore/python/test/test_cat.py +++ b/samples/openapi3/client/petstore/python/test/test_cat.py @@ -3,18 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +import datetime -from petstore_api.models.cat import Cat +import petstore_api +from petstore_api.models.cat import Cat # noqa: E501 +from petstore_api.rest import ApiException class TestCat(unittest.TestCase): """Cat unit test stubs""" @@ -25,23 +28,6 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> Cat: - """Test Cat - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Cat` - """ - model = Cat() - if include_optional: - return Cat( - declawed = True - ) - else: - return Cat( - ) - """ - def testCat(self): """Test Cat""" # inst_req_only = self.make_instance(include_optional=False) diff --git a/samples/openapi3/client/petstore/python/test/test_category.py b/samples/openapi3/client/petstore/python/test/test_category.py index 014917bf17f4..14848fcebcd2 100644 --- a/samples/openapi3/client/petstore/python/test/test_category.py +++ b/samples/openapi3/client/petstore/python/test/test_category.py @@ -3,18 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +import datetime -from petstore_api.models.category import Category +import petstore_api +from petstore_api.models.category import Category # noqa: E501 +from petstore_api.rest import ApiException class TestCategory(unittest.TestCase): """Category unit test stubs""" @@ -25,24 +28,21 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> Category: + def make_instance(self, include_optional): """Test Category - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `Category` - """ - model = Category() - if include_optional: + # model = petstore_api.models.category.Category() # noqa: E501 + if include_optional : return Category( - id = 56, + id = 56, name = 'default-name' ) - else: + else : return Category( name = 'default-name', ) - """ def testCategory(self): """Test Category""" diff --git a/samples/openapi3/client/petstore/python/test/test_circular_all_of_ref.py b/samples/openapi3/client/petstore/python/test/test_circular_all_of_ref.py index 9d81ff91b15a..767c758a733b 100644 --- a/samples/openapi3/client/petstore/python/test/test_circular_all_of_ref.py +++ b/samples/openapi3/client/petstore/python/test/test_circular_all_of_ref.py @@ -27,7 +27,7 @@ def tearDown(self): def make_instance(self, include_optional) -> CircularAllOfRef: """Test CircularAllOfRef - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `CircularAllOfRef` @@ -35,10 +35,16 @@ def make_instance(self, include_optional) -> CircularAllOfRef: model = CircularAllOfRef() if include_optional: return CircularAllOfRef( - name = '', second_circular_all_of_ref = [ - petstore_api.models.second_circular_all_of_ref.SecondCircularAllOfRef() - ] + petstore_api.models.second_circular_all_of_ref.SecondCircularAllOfRef( + circular_all_of_ref = [ + petstore_api.models.circular_all_of_ref.CircularAllOfRef( + second_circular_all_of_ref = [ + petstore_api.models.second_circular_all_of_ref.SecondCircularAllOfRef() + ], ) + ], ) + ], + name = '' ) else: return CircularAllOfRef( diff --git a/samples/openapi3/client/petstore/python/test/test_circular_reference_model.py b/samples/openapi3/client/petstore/python/test/test_circular_reference_model.py index 18148b2b7d1a..f734d3fc0ff6 100644 --- a/samples/openapi3/client/petstore/python/test/test_circular_reference_model.py +++ b/samples/openapi3/client/petstore/python/test/test_circular_reference_model.py @@ -3,18 +3,23 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 +""" + +from __future__ import absolute_import import unittest +import datetime -from petstore_api.models.circular_reference_model import CircularReferenceModel +import petstore_api +from petstore_api.models.circular_reference_model import CircularReferenceModel # noqa: E501 +from petstore_api.rest import ApiException class TestCircularReferenceModel(unittest.TestCase): """CircularReferenceModel unit test stubs""" @@ -25,17 +30,17 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> CircularReferenceModel: + def make_instance(self, include_optional): """Test CircularReferenceModel - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `CircularReferenceModel` """ - model = CircularReferenceModel() - if include_optional: + model = petstore_api.models.circular_reference_model.CircularReferenceModel() # noqa: E501 + if include_optional : return CircularReferenceModel( - size = 56, + size = 56, nested = petstore_api.models.first_ref.FirstRef( category = '', self_ref = petstore_api.models.second_ref.SecondRef( @@ -45,7 +50,7 @@ def make_instance(self, include_optional) -> CircularReferenceModel: nested = petstore_api.models.first_ref.FirstRef( category = '', ), ), ), ) ) - else: + else : return CircularReferenceModel( ) """ diff --git a/samples/openapi3/client/petstore/python/test/test_class_model.py b/samples/openapi3/client/petstore/python/test/test_class_model.py index 1826cbf53983..511843f2dcfd 100644 --- a/samples/openapi3/client/petstore/python/test/test_class_model.py +++ b/samples/openapi3/client/petstore/python/test/test_class_model.py @@ -3,18 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +import datetime -from petstore_api.models.class_model import ClassModel +import petstore_api +from petstore_api.models.class_model import ClassModel # noqa: E501 +from petstore_api.rest import ApiException class TestClassModel(unittest.TestCase): """ClassModel unit test stubs""" @@ -25,27 +28,24 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> ClassModel: + def make_instance(self, include_optional): """Test ClassModel - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `ClassModel` - """ - model = ClassModel() - if include_optional: + # model = petstore_api.models.class_model.ClassModel() # noqa: E501 + if include_optional : return ClassModel( - var_class = '' + _class = '' ) - else: + else : return ClassModel( ) - """ def testClassModel(self): """Test ClassModel""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_client.py b/samples/openapi3/client/petstore/python/test/test_client.py index 1586543c171c..9209bb2c3f03 100644 --- a/samples/openapi3/client/petstore/python/test/test_client.py +++ b/samples/openapi3/client/petstore/python/test/test_client.py @@ -3,18 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +import datetime -from petstore_api.models.client import Client +import petstore_api +from petstore_api.models.client import Client # noqa: E501 +from petstore_api.rest import ApiException class TestClient(unittest.TestCase): """Client unit test stubs""" @@ -25,27 +28,24 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> Client: + def make_instance(self, include_optional): """Test Client - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `Client` - """ - model = Client() - if include_optional: + # model = petstore_api.models.client.Client() # noqa: E501 + if include_optional : return Client( client = '' ) - else: + else : return Client( ) - """ def testClient(self): """Test Client""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_color.py b/samples/openapi3/client/petstore/python/test/test_color.py index 2ebb0ec04dee..9a7aabfea253 100644 --- a/samples/openapi3/client/petstore/python/test/test_color.py +++ b/samples/openapi3/client/petstore/python/test/test_color.py @@ -3,18 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +import datetime -from petstore_api.models.color import Color +import petstore_api +from petstore_api.models.color import Color # noqa: E501 +from petstore_api.rest import ApiException class TestColor(unittest.TestCase): """Color unit test stubs""" @@ -25,18 +28,18 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> Color: + def make_instance(self, include_optional): """Test Color - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `Color` """ - model = Color() - if include_optional: + model = petstore_api.models.color.Color() # noqa: E501 + if include_optional : return Color( ) - else: + else : return Color( ) """ diff --git a/samples/openapi3/client/petstore/python/test/test_creature.py b/samples/openapi3/client/petstore/python/test/test_creature.py index eab8f68f3a57..66b3e088cbbf 100644 --- a/samples/openapi3/client/petstore/python/test/test_creature.py +++ b/samples/openapi3/client/petstore/python/test/test_creature.py @@ -3,18 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 +""" import unittest +import datetime -from petstore_api.models.creature import Creature +import petstore_api +from petstore_api.models.creature import Creature # noqa: E501 +from petstore_api.rest import ApiException class TestCreature(unittest.TestCase): """Creature unit test stubs""" @@ -25,21 +28,21 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> Creature: + def make_instance(self, include_optional): """Test Creature - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `Creature` """ - model = Creature() - if include_optional: + model = petstore_api.models.creature.Creature() # noqa: E501 + if include_optional : return Creature( info = petstore_api.models.creature_info.CreatureInfo( - name = '', ), + name = '', ), type = '' ) - else: + else : return Creature( info = petstore_api.models.creature_info.CreatureInfo( name = '', ), diff --git a/samples/openapi3/client/petstore/python/test/test_creature_info.py b/samples/openapi3/client/petstore/python/test/test_creature_info.py index d645563a4791..0a85d5ffe7b2 100644 --- a/samples/openapi3/client/petstore/python/test/test_creature_info.py +++ b/samples/openapi3/client/petstore/python/test/test_creature_info.py @@ -3,18 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 +""" import unittest +import datetime -from petstore_api.models.creature_info import CreatureInfo +import petstore_api +from petstore_api.models.creature_info import CreatureInfo # noqa: E501 +from petstore_api.rest import ApiException class TestCreatureInfo(unittest.TestCase): """CreatureInfo unit test stubs""" @@ -25,19 +28,19 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> CreatureInfo: + def make_instance(self, include_optional): """Test CreatureInfo - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `CreatureInfo` """ - model = CreatureInfo() - if include_optional: + model = petstore_api.models.creature_info.CreatureInfo() # noqa: E501 + if include_optional : return CreatureInfo( name = '' ) - else: + else : return CreatureInfo( name = '', ) diff --git a/samples/openapi3/client/petstore/python/test/test_danish_pig.py b/samples/openapi3/client/petstore/python/test/test_danish_pig.py index 1dc992542c41..0d850ae94f41 100644 --- a/samples/openapi3/client/petstore/python/test/test_danish_pig.py +++ b/samples/openapi3/client/petstore/python/test/test_danish_pig.py @@ -3,18 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +import datetime -from petstore_api.models.danish_pig import DanishPig +import petstore_api +from petstore_api.models.danish_pig import DanishPig # noqa: E501 +from petstore_api.rest import ApiException class TestDanishPig(unittest.TestCase): """DanishPig unit test stubs""" @@ -25,30 +28,27 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> DanishPig: + def make_instance(self, include_optional): """Test DanishPig - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `DanishPig` - """ - model = DanishPig() - if include_optional: + # model = petstore_api.models.danish_pig.DanishPig() # noqa: E501 + if include_optional : return DanishPig( - class_name = '', + class_name = '', size = 56 ) - else: + else : return DanishPig( class_name = '', size = 56, ) - """ def testDanishPig(self): """Test DanishPig""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) + #inst_req_only = self.make_instance(include_optional=False) + #inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_default_api.py b/samples/openapi3/client/petstore/python/test/test_default_api.py index eb421a8edc1b..50e7c57bd0bf 100644 --- a/samples/openapi3/client/petstore/python/test/test_default_api.py +++ b/samples/openapi3/client/petstore/python/test/test_default_api.py @@ -3,30 +3,32 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest -from petstore_api.api.default_api import DefaultApi +import petstore_api +from petstore_api.api.default_api import DefaultApi # noqa: E501 +from petstore_api.rest import ApiException class TestDefaultApi(unittest.TestCase): """DefaultApi unit test stubs""" - def setUp(self) -> None: - self.api = DefaultApi() + def setUp(self): + self.api = petstore_api.api.default_api.DefaultApi() # noqa: E501 - def tearDown(self) -> None: + def tearDown(self): pass - def test_foo_get(self) -> None: + def test_foo_get(self): """Test case for foo_get """ diff --git a/samples/openapi3/client/petstore/python/test/test_deprecated_object.py b/samples/openapi3/client/petstore/python/test/test_deprecated_object.py index e63842997ae6..50257271cd72 100644 --- a/samples/openapi3/client/petstore/python/test/test_deprecated_object.py +++ b/samples/openapi3/client/petstore/python/test/test_deprecated_object.py @@ -3,18 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +import datetime -from petstore_api.models.deprecated_object import DeprecatedObject +import petstore_api +from petstore_api.models.deprecated_object import DeprecatedObject # noqa: E501 +from petstore_api.rest import ApiException class TestDeprecatedObject(unittest.TestCase): """DeprecatedObject unit test stubs""" @@ -25,27 +28,24 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> DeprecatedObject: + def make_instance(self, include_optional): """Test DeprecatedObject - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `DeprecatedObject` - """ - model = DeprecatedObject() - if include_optional: + # model = petstore_api.models.deprecated_object.DeprecatedObject() # noqa: E501 + if include_optional : return DeprecatedObject( name = '' ) - else: + else : return DeprecatedObject( ) - """ def testDeprecatedObject(self): """Test DeprecatedObject""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_discriminator_all_of_sub.py b/samples/openapi3/client/petstore/python/test/test_discriminator_all_of_sub.py index f52f3d33f13c..15941f4f854a 100644 --- a/samples/openapi3/client/petstore/python/test/test_discriminator_all_of_sub.py +++ b/samples/openapi3/client/petstore/python/test/test_discriminator_all_of_sub.py @@ -27,7 +27,7 @@ def tearDown(self): def make_instance(self, include_optional) -> DiscriminatorAllOfSub: """Test DiscriminatorAllOfSub - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `DiscriminatorAllOfSub` diff --git a/samples/openapi3/client/petstore/python/test/test_discriminator_all_of_super.py b/samples/openapi3/client/petstore/python/test/test_discriminator_all_of_super.py index 830fa0a829a1..503d6b3c558c 100644 --- a/samples/openapi3/client/petstore/python/test/test_discriminator_all_of_super.py +++ b/samples/openapi3/client/petstore/python/test/test_discriminator_all_of_super.py @@ -27,7 +27,7 @@ def tearDown(self): def make_instance(self, include_optional) -> DiscriminatorAllOfSuper: """Test DiscriminatorAllOfSuper - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `DiscriminatorAllOfSuper` diff --git a/samples/openapi3/client/petstore/python/test/test_dog.py b/samples/openapi3/client/petstore/python/test/test_dog.py index c11f61c99c04..af75161287e1 100644 --- a/samples/openapi3/client/petstore/python/test/test_dog.py +++ b/samples/openapi3/client/petstore/python/test/test_dog.py @@ -3,18 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +import datetime -from petstore_api.models.dog import Dog +import petstore_api +from petstore_api.models.dog import Dog # noqa: E501 +from petstore_api.rest import ApiException class TestDog(unittest.TestCase): """Dog unit test stubs""" @@ -25,23 +28,6 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> Dog: - """Test Dog - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Dog` - """ - model = Dog() - if include_optional: - return Dog( - breed = '' - ) - else: - return Dog( - ) - """ - def testDog(self): """Test Dog""" # inst_req_only = self.make_instance(include_optional=False) diff --git a/samples/openapi3/client/petstore/python/test/test_dummy_model.py b/samples/openapi3/client/petstore/python/test/test_dummy_model.py index 8b276ec140b0..d6562c58bc2d 100644 --- a/samples/openapi3/client/petstore/python/test/test_dummy_model.py +++ b/samples/openapi3/client/petstore/python/test/test_dummy_model.py @@ -3,18 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +import datetime -from petstore_api.models.dummy_model import DummyModel +import petstore_api +from petstore_api.models.dummy_model import DummyModel # noqa: E501 +from petstore_api.rest import ApiException class TestDummyModel(unittest.TestCase): """DummyModel unit test stubs""" @@ -25,23 +28,23 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> DummyModel: + def make_instance(self, include_optional): """Test DummyModel - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `DummyModel` """ - model = DummyModel() - if include_optional: + model = petstore_api.models.dummy_model.DummyModel() # noqa: E501 + if include_optional : return DummyModel( - category = '', + category = '', self_ref = petstore_api.models.self_reference_model.Self-Reference-Model( size = 56, nested = petstore_api.models.dummy_model.Dummy-Model( category = '', ), ) ) - else: + else : return DummyModel( ) """ diff --git a/samples/openapi3/client/petstore/python/test/test_enum_arrays.py b/samples/openapi3/client/petstore/python/test/test_enum_arrays.py index f3d731b3f59c..52cc98601bc0 100644 --- a/samples/openapi3/client/petstore/python/test/test_enum_arrays.py +++ b/samples/openapi3/client/petstore/python/test/test_enum_arrays.py @@ -3,18 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +import datetime -from petstore_api.models.enum_arrays import EnumArrays +import petstore_api +from petstore_api.models.enum_arrays import EnumArrays # noqa: E501 +from petstore_api.rest import ApiException class TestEnumArrays(unittest.TestCase): """EnumArrays unit test stubs""" @@ -25,25 +28,22 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> EnumArrays: + def make_instance(self, include_optional): """Test EnumArrays - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `EnumArrays` - """ - model = EnumArrays() - if include_optional: + # model = petstore_api.models.enum_arrays.EnumArrays() # noqa: E501 + if include_optional : return EnumArrays( - just_symbol = '>=', + just_symbol = '>=', array_enum = [ 'fish' ] ) - else: + else : return EnumArrays( ) - """ def testEnumArrays(self): """Test EnumArrays""" diff --git a/samples/openapi3/client/petstore/python/test/test_enum_class.py b/samples/openapi3/client/petstore/python/test/test_enum_class.py index 5730ded0ad30..9d7a81272cd2 100644 --- a/samples/openapi3/client/petstore/python/test/test_enum_class.py +++ b/samples/openapi3/client/petstore/python/test/test_enum_class.py @@ -3,18 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +import datetime -from petstore_api.models.enum_class import EnumClass +import petstore_api +from petstore_api.models.enum_class import EnumClass # noqa: E501 +from petstore_api.rest import ApiException class TestEnumClass(unittest.TestCase): """EnumClass unit test stubs""" diff --git a/samples/openapi3/client/petstore/python/test/test_enum_string1.py b/samples/openapi3/client/petstore/python/test/test_enum_string1.py index e6a858841203..9dbe9eb44fb8 100644 --- a/samples/openapi3/client/petstore/python/test/test_enum_string1.py +++ b/samples/openapi3/client/petstore/python/test/test_enum_string1.py @@ -3,18 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 +""" import unittest +import datetime -from petstore_api.models.enum_string1 import EnumString1 +import petstore_api +from petstore_api.models.enum_string1 import EnumString1 # noqa: E501 +from petstore_api.rest import ApiException class TestEnumString1(unittest.TestCase): """EnumString1 unit test stubs""" diff --git a/samples/openapi3/client/petstore/python/test/test_enum_string2.py b/samples/openapi3/client/petstore/python/test/test_enum_string2.py index 6a52c081d3ca..4ec0ffcd86c7 100644 --- a/samples/openapi3/client/petstore/python/test/test_enum_string2.py +++ b/samples/openapi3/client/petstore/python/test/test_enum_string2.py @@ -3,18 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 +""" import unittest +import datetime -from petstore_api.models.enum_string2 import EnumString2 +import petstore_api +from petstore_api.models.enum_string2 import EnumString2 # noqa: E501 +from petstore_api.rest import ApiException class TestEnumString2(unittest.TestCase): """EnumString2 unit test stubs""" diff --git a/samples/openapi3/client/petstore/python/test/test_enum_test.py b/samples/openapi3/client/petstore/python/test/test_enum_test.py index 5f2f59e6c62b..afb342ae9341 100644 --- a/samples/openapi3/client/petstore/python/test/test_enum_test.py +++ b/samples/openapi3/client/petstore/python/test/test_enum_test.py @@ -3,18 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +import datetime -from petstore_api.models.enum_test import EnumTest +import petstore_api +from petstore_api.models.enum_test import EnumTest # noqa: E501 +from petstore_api.rest import ApiException class TestEnumTest(unittest.TestCase): """EnumTest unit test stubs""" @@ -25,35 +28,27 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> EnumTest: + def make_instance(self, include_optional): """Test EnumTest - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `EnumTest` - """ - model = EnumTest() - if include_optional: + # model = petstore_api.models.enum_test.EnumTest() # noqa: E501 + if include_optional : return EnumTest( - enum_string = 'UPPER', - enum_string_required = 'UPPER', - enum_integer_default = 1, - enum_integer = 1, - enum_number = 1.1, - enum_number_vendor_ext = 42, - enum_string_vendor_ext = 'FOO', - enum_string_single_member = 'abc', - enum_integer_single_member = 100, - outer_enum = 'placed', - outer_enum_integer = 2, - outer_enum_default_value = 'placed', - outer_enum_integer_default_value = -1 + enum_string = 'UPPER', + enum_string_required = 'UPPER', + enum_integer = 1, + enum_number = 1.1, + outer_enum = 'placed', + outer_enum_integer = 2, + outer_enum_default_value = 'placed', + outer_enum_integer_default_value = 0 ) - else: + else : return EnumTest( enum_string_required = 'UPPER', ) - """ def testEnumTest(self): """Test EnumTest""" diff --git a/samples/openapi3/client/petstore/python/test/test_fake_api.py b/samples/openapi3/client/petstore/python/test/test_fake_api.py index 11920b00480e..9a7dfbb96439 100644 --- a/samples/openapi3/client/petstore/python/test/test_fake_api.py +++ b/samples/openapi3/client/petstore/python/test/test_fake_api.py @@ -3,277 +3,145 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +try: + from unittest.mock import patch +except ImportError: + from mock import patch -from petstore_api.api.fake_api import FakeApi +import petstore_api +from petstore_api.api.fake_api import FakeApi # noqa: E501 class TestFakeApi(unittest.TestCase): """FakeApi unit test stubs""" - def setUp(self) -> None: - self.api = FakeApi() - - def tearDown(self) -> None: - pass - - def test_fake_any_type_request_body(self) -> None: - """Test case for fake_any_type_request_body + def setUp(self): + self.api = petstore_api.api.fake_api.FakeApi() # noqa: E501 - test any type request body - """ + def tearDown(self): pass - def test_fake_enum_ref_query_parameter(self) -> None: - """Test case for fake_enum_ref_query_parameter - - test enum reference query parameter - """ - pass - - def test_fake_health_get(self) -> None: + def test_fake_health_get(self): """Test case for fake_health_get - Health check endpoint + Health check endpoint # noqa: E501 """ pass - def test_fake_http_signature_test(self) -> None: + def test_fake_http_signature_test(self): """Test case for fake_http_signature_test - test http signature authentication + test http signature authentication # noqa: E501 """ pass - def test_fake_outer_boolean_serialize(self) -> None: + def test_fake_outer_boolean_serialize(self): """Test case for fake_outer_boolean_serialize """ pass - def test_fake_outer_composite_serialize(self) -> None: + def test_fake_outer_composite_serialize(self): """Test case for fake_outer_composite_serialize """ pass - def test_fake_outer_number_serialize(self) -> None: + def test_fake_outer_number_serialize(self): """Test case for fake_outer_number_serialize """ pass - def test_fake_outer_string_serialize(self) -> None: + def test_fake_outer_string_serialize(self): """Test case for fake_outer_string_serialize """ pass - def test_fake_property_enum_integer_serialize(self) -> None: - """Test case for fake_property_enum_integer_serialize - - """ - pass - - def test_fake_ref_enum_string(self) -> None: - """Test case for fake_ref_enum_string - - test ref to enum string - """ - pass - - def test_fake_return_boolean(self) -> None: - """Test case for fake_return_boolean - - test returning boolean - """ - pass - - def test_fake_return_byte_like_json(self) -> None: - """Test case for fake_return_byte_like_json - - test byte like json - """ - pass - - def test_fake_return_enum(self) -> None: - """Test case for fake_return_enum - - test returning enum - """ - pass - - def test_fake_return_enum_like_json(self) -> None: - """Test case for fake_return_enum_like_json - - test enum like json - """ - pass - - def test_fake_return_float(self) -> None: - """Test case for fake_return_float - - test returning float - """ - pass - - def test_fake_return_int(self) -> None: - """Test case for fake_return_int - - test returning int - """ - pass - - def test_fake_return_list_of_objects(self) -> None: - """Test case for fake_return_list_of_objects - - test returning list of objects - """ - pass - - def test_fake_return_str_like_json(self) -> None: - """Test case for fake_return_str_like_json - - test str like json - """ - pass - - def test_fake_return_string(self) -> None: - """Test case for fake_return_string - - test returning string - """ - pass - - def test_fake_uuid_example(self) -> None: - """Test case for fake_uuid_example - - test uuid example - """ - pass - - def test_test_additional_properties_reference(self) -> None: - """Test case for test_additional_properties_reference - - test referenced additionalProperties - """ - pass - - def test_test_body_with_binary(self) -> None: - """Test case for test_body_with_binary - - """ - pass - - def test_test_body_with_file_schema(self) -> None: + def test_test_body_with_file_schema(self): """Test case for test_body_with_file_schema """ pass - def test_test_body_with_query_params(self) -> None: + def test_test_body_with_query_params(self): """Test case for test_body_with_query_params """ pass - def test_test_client_model(self) -> None: + def test_test_client_model(self): """Test case for test_client_model - To test \"client\" model + To test \"client\" model # noqa: E501 """ pass - def test_test_date_time_query_parameter(self) -> None: - """Test case for test_date_time_query_parameter - - """ - pass - - def test_test_empty_and_non_empty_responses(self) -> None: - """Test case for test_empty_and_non_empty_responses - - test empty and non-empty responses - """ - pass - - def test_test_endpoint_parameters(self) -> None: + def test_test_endpoint_parameters(self): """Test case for test_endpoint_parameters - Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 + Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 # noqa: E501 """ pass - def test_test_error_responses_with_model(self) -> None: - """Test case for test_error_responses_with_model + def test_test_enum_parameters(self): + """Test case for test_enum_parameters - test error responses with model + To test enum parameters # noqa: E501 """ pass - def test_test_group_parameters(self) -> None: + def test_test_group_parameters(self): """Test case for test_group_parameters - Fake endpoint to test group parameters (optional) + Fake endpoint to test group parameters (optional) # noqa: E501 """ pass - def test_test_inline_additional_properties(self) -> None: + def test_test_inline_additional_properties(self): """Test case for test_inline_additional_properties - test inline additionalProperties - """ - pass - - def test_test_inline_freeform_additional_properties(self) -> None: - """Test case for test_inline_freeform_additional_properties - - test inline free-form additionalProperties + test inline additionalProperties # noqa: E501 """ pass - def test_test_json_form_data(self) -> None: + def test_test_json_form_data(self): """Test case for test_json_form_data - test json serialization of form data + test json serialization of form data # noqa: E501 """ pass - def test_test_object_for_multipart_requests(self) -> None: - """Test case for test_object_for_multipart_requests - - """ - pass - - def test_test_query_parameter_collection_format(self) -> None: + def test_test_query_parameter_collection_format(self): """Test case for test_query_parameter_collection_format """ pass - def test_test_string_map_reference(self) -> None: - """Test case for test_string_map_reference - - test referenced string map - """ - pass - - def test_upload_file_with_additional_properties(self) -> None: - """Test case for upload_file_with_additional_properties + @unittest.skip("TODO: MagicMock error") + def test_headers_parameter(self): + """Test case for the _headers are passed by the user - uploads a file and additional properties using multipart/form-data + To test any optional parameter # noqa: E501 """ - pass - + api = petstore_api.api.PetApi() + with patch("petstore_api.api_client.ApiClient.call_api") as mock_method: + value_headers = {"Header1": "value1"} + api.find_pets_by_status(["available"], _headers=value_headers) + args, _ = mock_method.call_args + self.assertEqual(args, ('GET', '/pet/findByStatus', {}, [('status', ['available'])], {'Accept': 'application/json', 'Header1': 'value1'}) +) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_fake_classname_tags123_api.py b/samples/openapi3/client/petstore/python/test/test_fake_classname_tags123_api.py index 9282bf7150cb..881dcba0d25a 100644 --- a/samples/openapi3/client/petstore/python/test/test_fake_classname_tags123_api.py +++ b/samples/openapi3/client/petstore/python/test/test_fake_classname_tags123_api.py @@ -2,34 +2,33 @@ """ OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest -from petstore_api.api.fake_classname_tags123_api import FakeClassnameTags123Api +import petstore_api +from petstore_api.api.fake_classname_tags123_api import FakeClassnameTags123Api # noqa: E501 +from petstore_api.rest import ApiException class TestFakeClassnameTags123Api(unittest.TestCase): """FakeClassnameTags123Api unit test stubs""" - def setUp(self) -> None: - self.api = FakeClassnameTags123Api() + def setUp(self): + self.api = petstore_api.api.fake_classname_tags123_api.FakeClassnameTags123Api() # noqa: E501 - def tearDown(self) -> None: + def tearDown(self): pass - def test_test_classname(self) -> None: + def test_test_classname(self): """Test case for test_classname - - To test class name in snake case + To test class name in snake case # noqa: E501 """ pass diff --git a/samples/openapi3/client/petstore/python/test/test_feeding.py b/samples/openapi3/client/petstore/python/test/test_feeding.py index fc9d904716ee..a0cdfc8f3460 100644 --- a/samples/openapi3/client/petstore/python/test/test_feeding.py +++ b/samples/openapi3/client/petstore/python/test/test_feeding.py @@ -13,6 +13,7 @@ import unittest +import datetime from petstore_api.models.feeding import Feeding @@ -27,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> Feeding: """Test Feeding - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `Feeding` diff --git a/samples/openapi3/client/petstore/python/test/test_file.py b/samples/openapi3/client/petstore/python/test/test_file.py index d050f5982464..3c9b91972d91 100644 --- a/samples/openapi3/client/petstore/python/test/test_file.py +++ b/samples/openapi3/client/petstore/python/test/test_file.py @@ -3,18 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +import datetime -from petstore_api.models.file import File +import petstore_api +from petstore_api.models.file import File # noqa: E501 +from petstore_api.rest import ApiException class TestFile(unittest.TestCase): """File unit test stubs""" @@ -25,27 +28,24 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> File: + def make_instance(self, include_optional): """Test File - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `File` - """ - model = File() - if include_optional: + # model = petstore_api.models.file.File() # noqa: E501 + if include_optional : return File( source_uri = '' ) - else: + else : return File( ) - """ def testFile(self): """Test File""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_file_schema_test_class.py b/samples/openapi3/client/petstore/python/test/test_file_schema_test_class.py index ebbf1f587051..2834ddc05413 100644 --- a/samples/openapi3/client/petstore/python/test/test_file_schema_test_class.py +++ b/samples/openapi3/client/petstore/python/test/test_file_schema_test_class.py @@ -3,18 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +import datetime -from petstore_api.models.file_schema_test_class import FileSchemaTestClass +import petstore_api +from petstore_api.models.file_schema_test_class import FileSchemaTestClass # noqa: E501 +from petstore_api.rest import ApiException class TestFileSchemaTestClass(unittest.TestCase): """FileSchemaTestClass unit test stubs""" @@ -25,32 +28,29 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> FileSchemaTestClass: + def make_instance(self, include_optional): """Test FileSchemaTestClass - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `FileSchemaTestClass` - """ - model = FileSchemaTestClass() - if include_optional: + # model = petstore_api.models.file_schema_test_class.FileSchemaTestClass() # noqa: E501 + if include_optional : return FileSchemaTestClass( file = petstore_api.models.file.File( - source_uri = '', ), + source_uri = '', ), files = [ petstore_api.models.file.File( source_uri = '', ) ] ) - else: + else : return FileSchemaTestClass( ) - """ def testFileSchemaTestClass(self): """Test FileSchemaTestClass""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_first_ref.py b/samples/openapi3/client/petstore/python/test/test_first_ref.py index 38520ad2e63b..bcec1c0334bf 100644 --- a/samples/openapi3/client/petstore/python/test/test_first_ref.py +++ b/samples/openapi3/client/petstore/python/test/test_first_ref.py @@ -3,18 +3,23 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 +""" + +from __future__ import absolute_import import unittest +import datetime -from petstore_api.models.first_ref import FirstRef +import petstore_api +from petstore_api.models.first_ref import FirstRef # noqa: E501 +from petstore_api.rest import ApiException class TestFirstRef(unittest.TestCase): """FirstRef unit test stubs""" @@ -25,17 +30,17 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> FirstRef: + def make_instance(self, include_optional): """Test FirstRef - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `FirstRef` """ - model = FirstRef() - if include_optional: + model = petstore_api.models.first_ref.FirstRef() # noqa: E501 + if include_optional : return FirstRef( - category = '', + category = '', self_ref = petstore_api.models.second_ref.SecondRef( category = '', circular_ref = petstore_api.models.circular_reference_model.Circular-Reference-Model( @@ -43,7 +48,7 @@ def make_instance(self, include_optional) -> FirstRef: nested = petstore_api.models.first_ref.FirstRef( category = '', ), ), ) ) - else: + else : return FirstRef( ) """ diff --git a/samples/openapi3/client/petstore/python/test/test_foo.py b/samples/openapi3/client/petstore/python/test/test_foo.py index 430ee19bf695..f592b1c37018 100644 --- a/samples/openapi3/client/petstore/python/test/test_foo.py +++ b/samples/openapi3/client/petstore/python/test/test_foo.py @@ -3,18 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +import datetime -from petstore_api.models.foo import Foo +import petstore_api +from petstore_api.models.foo import Foo # noqa: E501 +from petstore_api.rest import ApiException class TestFoo(unittest.TestCase): """Foo unit test stubs""" @@ -25,27 +28,24 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> Foo: + def make_instance(self, include_optional): """Test Foo - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `Foo` - """ - model = Foo() - if include_optional: + # model = petstore_api.models.foo.Foo() # noqa: E501 + if include_optional : return Foo( bar = 'bar' ) - else: + else : return Foo( ) - """ def testFoo(self): """Test Foo""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_foo_get_default_response.py b/samples/openapi3/client/petstore/python/test/test_foo_get_default_response.py index c5524b88d2bb..d2cadc258d8e 100644 --- a/samples/openapi3/client/petstore/python/test/test_foo_get_default_response.py +++ b/samples/openapi3/client/petstore/python/test/test_foo_get_default_response.py @@ -3,18 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +import datetime -from petstore_api.models.foo_get_default_response import FooGetDefaultResponse +import petstore_api +from petstore_api.models.foo_get_default_response import FooGetDefaultResponse # noqa: E501 +from petstore_api.rest import ApiException class TestFooGetDefaultResponse(unittest.TestCase): """FooGetDefaultResponse unit test stubs""" @@ -25,28 +28,25 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> FooGetDefaultResponse: + def make_instance(self, include_optional): """Test FooGetDefaultResponse - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `FooGetDefaultResponse` - """ - model = FooGetDefaultResponse() - if include_optional: + # model = petstore_api.models.foo_get_default_response.FooGetDefaultResponse() # noqa: E501 + if include_optional : return FooGetDefaultResponse( string = petstore_api.models.foo.Foo( bar = 'bar', ) ) - else: + else : return FooGetDefaultResponse( ) - """ def testFooGetDefaultResponse(self): """Test FooGetDefaultResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_format_test.py b/samples/openapi3/client/petstore/python/test/test_format_test.py index 8cde3f67815c..e236e5b7e670 100644 --- a/samples/openapi3/client/petstore/python/test/test_format_test.py +++ b/samples/openapi3/client/petstore/python/test/test_format_test.py @@ -3,18 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +import datetime -from petstore_api.models.format_test import FormatTest +import petstore_api +from petstore_api.models.format_test import FormatTest # noqa: E501 +from petstore_api.rest import ApiException class TestFormatTest(unittest.TestCase): """FormatTest unit test stubs""" @@ -25,46 +28,44 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> FormatTest: + def make_instance(self, include_optional): """Test FormatTest - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `FormatTest` - """ - model = FormatTest() - if include_optional: + # model = petstore_api.models.format_test.FormatTest() # noqa: E501 + if include_optional : return FormatTest( - integer = 10, - int32 = 20, - int64 = 56, - number = 32.1, - var_float = 54.3, - double = 67.8, - decimal = 1, - string = 'a', - string_with_double_quote_pattern = 'this is \"something\"', - byte = 'YQ==', - binary = bytes(b'blah'), + integer = 10, + int32 = 20, + int64 = 56, + number = 132.1, + float = 54.3, + double = 67.8, + decimal = 1, + string = 'a', + byte = bytes("someting", 'utf-8'), + binary = bytes(b'blah'), var_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - uuid = '72f98069-206d-4f12-9f12-3d1e525a8e84', - password = '0123456789', - pattern_with_digits = '0480728880', + date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + uuid = '72f98069-206d-4f12-9f12-3d1e525a8e84', + password = '0123456789', + pattern_with_digits = '0480728880', pattern_with_digits_and_delimiter = 'image_480' ) - else: + else : return FormatTest( - number = 32.1, - var_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + number = 122.1, + byte = bytes("someting", 'utf-8'), + date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), password = '0123456789', ) - """ def testFormatTest(self): """Test FormatTest""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) + inst_req_only = self.make_instance(include_optional=False) + # TODO + #inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_has_only_read_only.py b/samples/openapi3/client/petstore/python/test/test_has_only_read_only.py index 59013015dc71..2a8d2df6a0f8 100644 --- a/samples/openapi3/client/petstore/python/test/test_has_only_read_only.py +++ b/samples/openapi3/client/petstore/python/test/test_has_only_read_only.py @@ -3,18 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +import datetime -from petstore_api.models.has_only_read_only import HasOnlyReadOnly +import petstore_api +from petstore_api.models.has_only_read_only import HasOnlyReadOnly # noqa: E501 +from petstore_api.rest import ApiException class TestHasOnlyReadOnly(unittest.TestCase): """HasOnlyReadOnly unit test stubs""" @@ -25,28 +28,25 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> HasOnlyReadOnly: + def make_instance(self, include_optional): """Test HasOnlyReadOnly - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `HasOnlyReadOnly` - """ - model = HasOnlyReadOnly() - if include_optional: + # model = petstore_api.models.has_only_read_only.HasOnlyReadOnly() # noqa: E501 + if include_optional : return HasOnlyReadOnly( - bar = '', + bar = '', foo = '' ) - else: + else : return HasOnlyReadOnly( ) - """ def testHasOnlyReadOnly(self): """Test HasOnlyReadOnly""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_health_check_result.py b/samples/openapi3/client/petstore/python/test/test_health_check_result.py index a50444e6d877..21c52053ea22 100644 --- a/samples/openapi3/client/petstore/python/test/test_health_check_result.py +++ b/samples/openapi3/client/petstore/python/test/test_health_check_result.py @@ -3,18 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +import datetime -from petstore_api.models.health_check_result import HealthCheckResult +import petstore_api +from petstore_api.models.health_check_result import HealthCheckResult # noqa: E501 +from petstore_api.rest import ApiException class TestHealthCheckResult(unittest.TestCase): """HealthCheckResult unit test stubs""" @@ -25,27 +28,24 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> HealthCheckResult: + def make_instance(self, include_optional): """Test HealthCheckResult - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `HealthCheckResult` - """ - model = HealthCheckResult() - if include_optional: + # model = petstore_api.models.health_check_result.HealthCheckResult() # noqa: E501 + if include_optional : return HealthCheckResult( nullable_message = '' ) - else: + else : return HealthCheckResult( ) - """ def testHealthCheckResult(self): """Test HealthCheckResult""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_info.py b/samples/openapi3/client/petstore/python/test/test_info.py index 47075061d9a9..e1fce9f9c1ec 100644 --- a/samples/openapi3/client/petstore/python/test/test_info.py +++ b/samples/openapi3/client/petstore/python/test/test_info.py @@ -27,7 +27,7 @@ def tearDown(self): def make_instance(self, include_optional) -> Info: """Test Info - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `Info` diff --git a/samples/openapi3/client/petstore/python/test/test_inner_dict_with_property.py b/samples/openapi3/client/petstore/python/test/test_inner_dict_with_property.py index 1f80e90e29dd..8a63b70d5524 100644 --- a/samples/openapi3/client/petstore/python/test/test_inner_dict_with_property.py +++ b/samples/openapi3/client/petstore/python/test/test_inner_dict_with_property.py @@ -3,18 +3,23 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 +""" + +from __future__ import absolute_import import unittest +import datetime -from petstore_api.models.inner_dict_with_property import InnerDictWithProperty +import petstore_api +from petstore_api.models.inner_dict_with_property import InnerDictWithProperty # noqa: E501 +from petstore_api.rest import ApiException class TestInnerDictWithProperty(unittest.TestCase): """InnerDictWithProperty unit test stubs""" @@ -25,19 +30,19 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> InnerDictWithProperty: + def make_instance(self, include_optional): """Test InnerDictWithProperty - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `InnerDictWithProperty` """ - model = InnerDictWithProperty() - if include_optional: + model = petstore_api.models.inner_dict_with_property.InnerDictWithProperty() # noqa: E501 + if include_optional : return InnerDictWithProperty( a_property = None ) - else: + else : return InnerDictWithProperty( ) """ diff --git a/samples/openapi3/client/petstore/python/test/test_input_all_of.py b/samples/openapi3/client/petstore/python/test/test_input_all_of.py index 212f59bea795..7ca8140d4d40 100644 --- a/samples/openapi3/client/petstore/python/test/test_input_all_of.py +++ b/samples/openapi3/client/petstore/python/test/test_input_all_of.py @@ -27,7 +27,7 @@ def tearDown(self): def make_instance(self, include_optional) -> InputAllOf: """Test InputAllOf - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `InputAllOf` diff --git a/samples/openapi3/client/petstore/python/test/test_int_or_string.py b/samples/openapi3/client/petstore/python/test/test_int_or_string.py index a649aac24694..0de76602cb69 100644 --- a/samples/openapi3/client/petstore/python/test/test_int_or_string.py +++ b/samples/openapi3/client/petstore/python/test/test_int_or_string.py @@ -3,18 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 +""" import unittest +import datetime -from petstore_api.models.int_or_string import IntOrString +import petstore_api +from petstore_api.models.int_or_string import IntOrString # noqa: E501 +from petstore_api.rest import ApiException class TestIntOrString(unittest.TestCase): """IntOrString unit test stubs""" @@ -25,18 +28,18 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> IntOrString: + def make_instance(self, include_optional): """Test IntOrString - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `IntOrString` """ - model = IntOrString() - if include_optional: + model = petstore_api.models.int_or_string.IntOrString() # noqa: E501 + if include_optional : return IntOrString( ) - else: + else : return IntOrString( ) """ diff --git a/samples/openapi3/client/petstore/python/test/test_list_class.py b/samples/openapi3/client/petstore/python/test/test_list_class.py index 7da7d021f776..ac14bf3b3986 100644 --- a/samples/openapi3/client/petstore/python/test/test_list_class.py +++ b/samples/openapi3/client/petstore/python/test/test_list_class.py @@ -13,8 +13,9 @@ import unittest +import datetime -from petstore_api.models.list_class import ListClass +from petstore_api.models.list_class import ListClass # noqa: E501 class TestListClass(unittest.TestCase): """ListClass unit test stubs""" @@ -27,12 +28,12 @@ def tearDown(self): def make_instance(self, include_optional) -> ListClass: """Test ListClass - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `ListClass` """ - model = ListClass() + model = ListClass() # noqa: E501 if include_optional: return ListClass( var_123_list = '' diff --git a/samples/openapi3/client/petstore/python/test/test_map_of_array_of_model.py b/samples/openapi3/client/petstore/python/test/test_map_of_array_of_model.py index 2d5637f8f34b..31ad486f5c03 100644 --- a/samples/openapi3/client/petstore/python/test/test_map_of_array_of_model.py +++ b/samples/openapi3/client/petstore/python/test/test_map_of_array_of_model.py @@ -3,18 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 +""" import unittest +import datetime -from petstore_api.models.map_of_array_of_model import MapOfArrayOfModel +import petstore_api +from petstore_api.models.map_of_array_of_model import MapOfArrayOfModel # noqa: E501 +from petstore_api.rest import ApiException class TestMapOfArrayOfModel(unittest.TestCase): """MapOfArrayOfModel unit test stubs""" @@ -25,15 +28,15 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> MapOfArrayOfModel: + def make_instance(self, include_optional): """Test MapOfArrayOfModel - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `MapOfArrayOfModel` """ - model = MapOfArrayOfModel() - if include_optional: + model = petstore_api.models.map_of_array_of_model.MapOfArrayOfModel() # noqa: E501 + if include_optional : return MapOfArrayOfModel( shop_id_to_org_online_lip_map = { 'key' : [ @@ -43,7 +46,7 @@ def make_instance(self, include_optional) -> MapOfArrayOfModel: ] } ) - else: + else : return MapOfArrayOfModel( ) """ diff --git a/samples/openapi3/client/petstore/python/test/test_map_test.py b/samples/openapi3/client/petstore/python/test/test_map_test.py index 6d15e3d0b344..5e11fed312ad 100644 --- a/samples/openapi3/client/petstore/python/test/test_map_test.py +++ b/samples/openapi3/client/petstore/python/test/test_map_test.py @@ -3,18 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +import datetime -from petstore_api.models.map_test import MapTest +import petstore_api +from petstore_api.models.map_test import MapTest # noqa: E501 +from petstore_api.rest import ApiException class TestMapTest(unittest.TestCase): """MapTest unit test stubs""" @@ -25,40 +28,38 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> MapTest: + def make_instance(self, include_optional): """Test MapTest - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `MapTest` - """ - model = MapTest() - if include_optional: + # model = petstore_api.models.map_test.MapTest() # noqa: E501 + if include_optional : return MapTest( map_map_of_string = { 'key' : { 'key' : '' } - }, + }, map_of_enum_string = { 'UPPER' : 'UPPER' - }, + }, direct_map = { 'key' : True - }, + }, indirect_map = { 'key' : True } ) - else: + else : return MapTest( ) - """ def testMapTest(self): """Test MapTest""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) + # TODO + #inst_req_only = self.make_instance(include_optional=False) + #inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_mixed_properties_and_additional_properties_class.py b/samples/openapi3/client/petstore/python/test/test_mixed_properties_and_additional_properties_class.py index 33d884c768ba..5e6437ad0585 100644 --- a/samples/openapi3/client/petstore/python/test/test_mixed_properties_and_additional_properties_class.py +++ b/samples/openapi3/client/petstore/python/test/test_mixed_properties_and_additional_properties_class.py @@ -3,18 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +import datetime -from petstore_api.models.mixed_properties_and_additional_properties_class import MixedPropertiesAndAdditionalPropertiesClass +import petstore_api +from petstore_api.models.mixed_properties_and_additional_properties_class import MixedPropertiesAndAdditionalPropertiesClass # noqa: E501 +from petstore_api.rest import ApiException class TestMixedPropertiesAndAdditionalPropertiesClass(unittest.TestCase): """MixedPropertiesAndAdditionalPropertiesClass unit test stubs""" @@ -25,33 +28,30 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> MixedPropertiesAndAdditionalPropertiesClass: + def make_instance(self, include_optional): """Test MixedPropertiesAndAdditionalPropertiesClass - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `MixedPropertiesAndAdditionalPropertiesClass` - """ - model = MixedPropertiesAndAdditionalPropertiesClass() - if include_optional: + # model = petstore_api.models.mixed_properties_and_additional_properties_class.MixedPropertiesAndAdditionalPropertiesClass() # noqa: E501 + if include_optional : return MixedPropertiesAndAdditionalPropertiesClass( - uuid = '', - date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + uuid = '', + date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), map = { 'key' : petstore_api.models.animal.Animal( - class_name = '', + className = '', color = 'red', ) } ) - else: + else : return MixedPropertiesAndAdditionalPropertiesClass( ) - """ def testMixedPropertiesAndAdditionalPropertiesClass(self): """Test MixedPropertiesAndAdditionalPropertiesClass""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_model200_response.py b/samples/openapi3/client/petstore/python/test/test_model200_response.py index 007f8a623959..f7e9677e0074 100644 --- a/samples/openapi3/client/petstore/python/test/test_model200_response.py +++ b/samples/openapi3/client/petstore/python/test/test_model200_response.py @@ -3,18 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +import datetime -from petstore_api.models.model200_response import Model200Response +import petstore_api +from petstore_api.models.model200_response import Model200Response # noqa: E501 +from petstore_api.rest import ApiException class TestModel200Response(unittest.TestCase): """Model200Response unit test stubs""" @@ -25,28 +28,25 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> Model200Response: + def make_instance(self, include_optional): """Test Model200Response - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `Model200Response` - """ - model = Model200Response() - if include_optional: + # model = petstore_api.models.model200_response.Model200Response() # noqa: E501 + if include_optional : return Model200Response( - name = 56, - var_class = '' + name = 56, + _class = '' ) - else: + else : return Model200Response( ) - """ def testModel200Response(self): """Test Model200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_model_api_response.py b/samples/openapi3/client/petstore/python/test/test_model_api_response.py index beca8e34434f..f37f34084401 100644 --- a/samples/openapi3/client/petstore/python/test/test_model_api_response.py +++ b/samples/openapi3/client/petstore/python/test/test_model_api_response.py @@ -13,6 +13,7 @@ import unittest +import datetime from petstore_api.models.model_api_response import ModelApiResponse @@ -27,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> ModelApiResponse: """Test ModelApiResponse - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `ModelApiResponse` diff --git a/samples/openapi3/client/petstore/python/test/test_model_field.py b/samples/openapi3/client/petstore/python/test/test_model_field.py index eb8dee7981c3..315823b80622 100644 --- a/samples/openapi3/client/petstore/python/test/test_model_field.py +++ b/samples/openapi3/client/petstore/python/test/test_model_field.py @@ -27,7 +27,7 @@ def tearDown(self): def make_instance(self, include_optional) -> ModelField: """Test ModelField - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `ModelField` @@ -35,7 +35,7 @@ def make_instance(self, include_optional) -> ModelField: model = ModelField() if include_optional: return ModelField( - var_field = '' + dummy = '' ) else: return ModelField( diff --git a/samples/openapi3/client/petstore/python/test/test_model_return.py b/samples/openapi3/client/petstore/python/test/test_model_return.py index 2c2afa1d43bb..b0f9d9c4f7f9 100644 --- a/samples/openapi3/client/petstore/python/test/test_model_return.py +++ b/samples/openapi3/client/petstore/python/test/test_model_return.py @@ -3,18 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +import datetime -from petstore_api.models.model_return import ModelReturn +import petstore_api +from petstore_api.models.model_return import ModelReturn # noqa: E501 +from petstore_api.rest import ApiException class TestModelReturn(unittest.TestCase): """ModelReturn unit test stubs""" @@ -25,27 +28,24 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> ModelReturn: + def make_instance(self, include_optional): """Test ModelReturn - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `ModelReturn` - """ - model = ModelReturn() - if include_optional: + # model = petstore_api.models.model_return.ModelReturn() # noqa: E501 + if include_optional : return ModelReturn( - var_return = 56 + _return = 56 ) - else: + else : return ModelReturn( ) - """ def testModelReturn(self): """Test ModelReturn""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_name.py b/samples/openapi3/client/petstore/python/test/test_name.py index db4e9cf37e94..bbf11fd231ea 100644 --- a/samples/openapi3/client/petstore/python/test/test_name.py +++ b/samples/openapi3/client/petstore/python/test/test_name.py @@ -3,18 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +import datetime -from petstore_api.models.name import Name +import petstore_api +from petstore_api.models.name import Name # noqa: E501 +from petstore_api.rest import ApiException class TestName(unittest.TestCase): """Name unit test stubs""" @@ -25,31 +28,28 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> Name: + def make_instance(self, include_optional): """Test Name - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `Name` - """ - model = Name() - if include_optional: + # model = petstore_api.models.name.Name() # noqa: E501 + if include_optional : return Name( - name = 56, - snake_case = 56, - var_property = '', - var_123_number = 56 + name = 56, + snake_case = 56, + _property = '', + _123_number = 56 ) - else: + else : return Name( name = 56, ) - """ def testName(self): """Test Name""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_nullable_class.py b/samples/openapi3/client/petstore/python/test/test_nullable_class.py index ecf5363b4ac7..7aa59f46bbd8 100644 --- a/samples/openapi3/client/petstore/python/test/test_nullable_class.py +++ b/samples/openapi3/client/petstore/python/test/test_nullable_class.py @@ -3,18 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +import datetime -from petstore_api.models.nullable_class import NullableClass +import petstore_api +from petstore_api.models.nullable_class import NullableClass # noqa: E501 +from petstore_api.rest import ApiException class TestNullableClass(unittest.TestCase): """NullableClass unit test stubs""" @@ -25,52 +28,50 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> NullableClass: + def make_instance(self, include_optional): """Test NullableClass - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `NullableClass` - """ - model = NullableClass() - if include_optional: + # model = petstore_api.models.nullable_class.NullableClass() # noqa: E501 + if include_optional : return NullableClass( required_integer_prop = 56, - integer_prop = 56, - number_prop = 1.337, - boolean_prop = True, - string_prop = '', - date_prop = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - datetime_prop = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + integer_prop = 56, + number_prop = 1.337, + boolean_prop = True, + string_prop = '', + date_prop = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + datetime_prop = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), array_nullable_prop = [ None - ], + ], array_and_items_nullable_prop = [ None - ], + ], array_items_nullable = [ None - ], + ], object_nullable_prop = { 'key' : None - }, + }, object_and_items_nullable_prop = { 'key' : None - }, + }, object_items_nullable = { 'key' : None } ) - else: + else : return NullableClass( - required_integer_prop = 56, + required_integer_prop = 56 ) - """ def testNullableClass(self): """Test NullableClass""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) + # TODO + #inst_req_only = self.make_instance(include_optional=False) + #inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_nullable_property.py b/samples/openapi3/client/petstore/python/test/test_nullable_property.py index 52bdc7874ed6..34129457b1d7 100644 --- a/samples/openapi3/client/petstore/python/test/test_nullable_property.py +++ b/samples/openapi3/client/petstore/python/test/test_nullable_property.py @@ -3,18 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 +""" import unittest +import datetime -from petstore_api.models.nullable_property import NullableProperty +import petstore_api +from petstore_api.models.nullable_property import NullableProperty # noqa: E501 +from petstore_api.rest import ApiException class TestNullableProperty(unittest.TestCase): """NullableProperty unit test stubs""" @@ -25,20 +28,20 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> NullableProperty: + def make_instance(self, include_optional): """Test NullableProperty - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `NullableProperty` """ - model = NullableProperty() - if include_optional: + model = petstore_api.models.nullable_property.NullableProperty() # noqa: E501 + if include_optional : return NullableProperty( - id = 56, + id = 56, name = 'AUR,rZ#UM/?R,Fp^l6$ARjbhJk C>' ) - else: + else : return NullableProperty( id = 56, name = 'AUR,rZ#UM/?R,Fp^l6$ARjbhJk C>', diff --git a/samples/openapi3/client/petstore/python/test/test_number_only.py b/samples/openapi3/client/petstore/python/test/test_number_only.py index 78d7c5cff926..776946c3d774 100644 --- a/samples/openapi3/client/petstore/python/test/test_number_only.py +++ b/samples/openapi3/client/petstore/python/test/test_number_only.py @@ -3,18 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +import datetime -from petstore_api.models.number_only import NumberOnly +import petstore_api +from petstore_api.models.number_only import NumberOnly # noqa: E501 +from petstore_api.rest import ApiException class TestNumberOnly(unittest.TestCase): """NumberOnly unit test stubs""" @@ -25,27 +28,24 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> NumberOnly: + def make_instance(self, include_optional): """Test NumberOnly - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `NumberOnly` - """ - model = NumberOnly() - if include_optional: + # model = petstore_api.models.number_only.NumberOnly() # noqa: E501 + if include_optional : return NumberOnly( just_number = 1.337 ) - else: + else : return NumberOnly( ) - """ def testNumberOnly(self): """Test NumberOnly""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_object_to_test_additional_properties.py b/samples/openapi3/client/petstore/python/test/test_object_to_test_additional_properties.py index 62c9c5058656..f1f354cad251 100644 --- a/samples/openapi3/client/petstore/python/test/test_object_to_test_additional_properties.py +++ b/samples/openapi3/client/petstore/python/test/test_object_to_test_additional_properties.py @@ -3,18 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 +""" import unittest +import datetime -from petstore_api.models.object_to_test_additional_properties import ObjectToTestAdditionalProperties +import petstore_api +from petstore_api.models.object_to_test_additional_properties import ObjectToTestAdditionalProperties # noqa: E501 +from petstore_api.rest import ApiException class TestObjectToTestAdditionalProperties(unittest.TestCase): """ObjectToTestAdditionalProperties unit test stubs""" @@ -25,19 +28,19 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> ObjectToTestAdditionalProperties: + def make_instance(self, include_optional): """Test ObjectToTestAdditionalProperties - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `ObjectToTestAdditionalProperties` """ - model = ObjectToTestAdditionalProperties() - if include_optional: + model = petstore_api.models.object_to_test_additional_properties.ObjectToTestAdditionalProperties() # noqa: E501 + if include_optional : return ObjectToTestAdditionalProperties( var_property = True ) - else: + else : return ObjectToTestAdditionalProperties( ) """ diff --git a/samples/openapi3/client/petstore/python/test/test_object_with_deprecated_fields.py b/samples/openapi3/client/petstore/python/test/test_object_with_deprecated_fields.py index bf6bf779339c..e0cbf3e98a51 100644 --- a/samples/openapi3/client/petstore/python/test/test_object_with_deprecated_fields.py +++ b/samples/openapi3/client/petstore/python/test/test_object_with_deprecated_fields.py @@ -3,18 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +import datetime -from petstore_api.models.object_with_deprecated_fields import ObjectWithDeprecatedFields +import petstore_api +from petstore_api.models.object_with_deprecated_fields import ObjectWithDeprecatedFields # noqa: E501 +from petstore_api.rest import ApiException class TestObjectWithDeprecatedFields(unittest.TestCase): """ObjectWithDeprecatedFields unit test stubs""" @@ -25,33 +28,30 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> ObjectWithDeprecatedFields: + def make_instance(self, include_optional): """Test ObjectWithDeprecatedFields - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `ObjectWithDeprecatedFields` - """ - model = ObjectWithDeprecatedFields() - if include_optional: + # model = petstore_api.models.object_with_deprecated_fields.ObjectWithDeprecatedFields() # noqa: E501 + if include_optional : return ObjectWithDeprecatedFields( - uuid = '', - id = 1.337, + uuid = '', + id = 1.337, deprecated_ref = petstore_api.models.deprecated_object.DeprecatedObject( - name = '', ), + name = '', ), bars = [ 'bar' ] ) - else: + else : return ObjectWithDeprecatedFields( ) - """ def testObjectWithDeprecatedFields(self): """Test ObjectWithDeprecatedFields""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_one_of_enum_string.py b/samples/openapi3/client/petstore/python/test/test_one_of_enum_string.py index 0434db164a7e..ed959c1479c2 100644 --- a/samples/openapi3/client/petstore/python/test/test_one_of_enum_string.py +++ b/samples/openapi3/client/petstore/python/test/test_one_of_enum_string.py @@ -3,18 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 +""" import unittest +import datetime -from petstore_api.models.one_of_enum_string import OneOfEnumString +import petstore_api +from petstore_api.models.one_of_enum_string import OneOfEnumString # noqa: E501 +from petstore_api.rest import ApiException class TestOneOfEnumString(unittest.TestCase): """OneOfEnumString unit test stubs""" @@ -25,18 +28,18 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> OneOfEnumString: + def make_instance(self, include_optional): """Test OneOfEnumString - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `OneOfEnumString` """ - model = OneOfEnumString() - if include_optional: + model = petstore_api.models.one_of_enum_string.OneOfEnumString() # noqa: E501 + if include_optional : return OneOfEnumString( ) - else: + else : return OneOfEnumString( ) """ diff --git a/samples/openapi3/client/petstore/python/test/test_order.py b/samples/openapi3/client/petstore/python/test/test_order.py index a9b4980702da..d6ec36f83a0d 100644 --- a/samples/openapi3/client/petstore/python/test/test_order.py +++ b/samples/openapi3/client/petstore/python/test/test_order.py @@ -3,18 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +import datetime -from petstore_api.models.order import Order +import petstore_api +from petstore_api.models.order import Order # noqa: E501 +from petstore_api.rest import ApiException class TestOrder(unittest.TestCase): """Order unit test stubs""" @@ -25,32 +28,29 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> Order: + def make_instance(self, include_optional): """Test Order - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `Order` - """ - model = Order() - if include_optional: + # model = petstore_api.models.order.Order() # noqa: E501 + if include_optional : return Order( - id = 56, - pet_id = 56, - quantity = 56, - ship_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - status = 'placed', + id = 56, + pet_id = 56, + quantity = 56, + ship_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + status = 'placed', complete = True ) - else: + else : return Order( ) - """ def testOrder(self): """Test Order""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_outer_composite.py b/samples/openapi3/client/petstore/python/test/test_outer_composite.py index 5024f1c483aa..c6fd58849377 100644 --- a/samples/openapi3/client/petstore/python/test/test_outer_composite.py +++ b/samples/openapi3/client/petstore/python/test/test_outer_composite.py @@ -3,18 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +import datetime -from petstore_api.models.outer_composite import OuterComposite +import petstore_api +from petstore_api.models.outer_composite import OuterComposite # noqa: E501 +from petstore_api.rest import ApiException class TestOuterComposite(unittest.TestCase): """OuterComposite unit test stubs""" @@ -25,29 +28,26 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> OuterComposite: + def make_instance(self, include_optional): """Test OuterComposite - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `OuterComposite` - """ - model = OuterComposite() - if include_optional: + # model = petstore_api.models.outer_composite.OuterComposite() # noqa: E501 + if include_optional : return OuterComposite( - my_number = 1.337, - my_string = '', + my_number = 1.337, + my_string = '', my_boolean = True ) - else: + else : return OuterComposite( ) - """ def testOuterComposite(self): """Test OuterComposite""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_outer_enum.py b/samples/openapi3/client/petstore/python/test/test_outer_enum.py index 2f82ecc94ba1..aa195260019e 100644 --- a/samples/openapi3/client/petstore/python/test/test_outer_enum.py +++ b/samples/openapi3/client/petstore/python/test/test_outer_enum.py @@ -3,18 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +import datetime -from petstore_api.models.outer_enum import OuterEnum +import petstore_api +from petstore_api.models.outer_enum import OuterEnum # noqa: E501 +from petstore_api.rest import ApiException class TestOuterEnum(unittest.TestCase): """OuterEnum unit test stubs""" @@ -27,7 +30,7 @@ def tearDown(self): def testOuterEnum(self): """Test OuterEnum""" - # inst = OuterEnum() + inst = OuterEnum("placed") if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_outer_enum_default_value.py b/samples/openapi3/client/petstore/python/test/test_outer_enum_default_value.py index 2a7ff27a8245..f8fba3bd79ad 100644 --- a/samples/openapi3/client/petstore/python/test/test_outer_enum_default_value.py +++ b/samples/openapi3/client/petstore/python/test/test_outer_enum_default_value.py @@ -3,18 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +import datetime -from petstore_api.models.outer_enum_default_value import OuterEnumDefaultValue +import petstore_api +from petstore_api.models.outer_enum_default_value import OuterEnumDefaultValue # noqa: E501 +from petstore_api.rest import ApiException class TestOuterEnumDefaultValue(unittest.TestCase): """OuterEnumDefaultValue unit test stubs""" diff --git a/samples/openapi3/client/petstore/python/test/test_outer_enum_integer.py b/samples/openapi3/client/petstore/python/test/test_outer_enum_integer.py index d74dcb0981a9..ce1e47c61b14 100644 --- a/samples/openapi3/client/petstore/python/test/test_outer_enum_integer.py +++ b/samples/openapi3/client/petstore/python/test/test_outer_enum_integer.py @@ -3,18 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +import datetime -from petstore_api.models.outer_enum_integer import OuterEnumInteger +import petstore_api +from petstore_api.models.outer_enum_integer import OuterEnumInteger # noqa: E501 +from petstore_api.rest import ApiException class TestOuterEnumInteger(unittest.TestCase): """OuterEnumInteger unit test stubs""" diff --git a/samples/openapi3/client/petstore/python/test/test_outer_enum_integer_default_value.py b/samples/openapi3/client/petstore/python/test/test_outer_enum_integer_default_value.py index 230db8cb8176..f0b707fca778 100644 --- a/samples/openapi3/client/petstore/python/test/test_outer_enum_integer_default_value.py +++ b/samples/openapi3/client/petstore/python/test/test_outer_enum_integer_default_value.py @@ -3,18 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +import datetime -from petstore_api.models.outer_enum_integer_default_value import OuterEnumIntegerDefaultValue +import petstore_api +from petstore_api.models.outer_enum_integer_default_value import OuterEnumIntegerDefaultValue # noqa: E501 +from petstore_api.rest import ApiException class TestOuterEnumIntegerDefaultValue(unittest.TestCase): """OuterEnumIntegerDefaultValue unit test stubs""" @@ -25,9 +28,23 @@ def setUp(self): def tearDown(self): pass + def make_instance(self, include_optional): + """Test OuterEnumIntegerDefaultValue + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = petstore_api.models.outer_enum_integer_default_value.OuterEnumIntegerDefaultValue() # noqa: E501 + if include_optional : + return OuterEnumIntegerDefaultValue( + ) + else : + return OuterEnumIntegerDefaultValue( + ) + def testOuterEnumIntegerDefaultValue(self): """Test OuterEnumIntegerDefaultValue""" - # inst = OuterEnumIntegerDefaultValue() + #inst_req_only = self.make_instance(include_optional=False) + #inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_outer_object_with_enum_property.py b/samples/openapi3/client/petstore/python/test/test_outer_object_with_enum_property.py index a1c896ae6610..35258d5d74ac 100644 --- a/samples/openapi3/client/petstore/python/test/test_outer_object_with_enum_property.py +++ b/samples/openapi3/client/petstore/python/test/test_outer_object_with_enum_property.py @@ -3,18 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +import datetime -from petstore_api.models.outer_object_with_enum_property import OuterObjectWithEnumProperty +import petstore_api +from petstore_api.models.outer_object_with_enum_property import OuterObjectWithEnumProperty # noqa: E501 +from petstore_api.rest import ApiException class TestOuterObjectWithEnumProperty(unittest.TestCase): """OuterObjectWithEnumProperty unit test stubs""" @@ -25,24 +28,20 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> OuterObjectWithEnumProperty: + def make_instance(self, include_optional): """Test OuterObjectWithEnumProperty - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `OuterObjectWithEnumProperty` - """ - model = OuterObjectWithEnumProperty() - if include_optional: + # model = petstore_api.models.outer_object_with_enum_property.OuterObjectWithEnumProperty() # noqa: E501 + if include_optional : return OuterObjectWithEnumProperty( - str_value = 'placed', value = 2 ) - else: + else : return OuterObjectWithEnumProperty( value = 2, ) - """ def testOuterObjectWithEnumProperty(self): """Test OuterObjectWithEnumProperty""" diff --git a/samples/openapi3/client/petstore/python/test/test_parent.py b/samples/openapi3/client/petstore/python/test/test_parent.py index ea1242c24f4e..2a74505f08a1 100644 --- a/samples/openapi3/client/petstore/python/test/test_parent.py +++ b/samples/openapi3/client/petstore/python/test/test_parent.py @@ -3,18 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 +""" import unittest +import datetime -from petstore_api.models.parent import Parent +import petstore_api +from petstore_api.models.parent import Parent # noqa: E501 +from petstore_api.rest import ApiException class TestParent(unittest.TestCase): """Parent unit test stubs""" @@ -25,22 +28,22 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> Parent: + def make_instance(self, include_optional): """Test Parent - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `Parent` """ - model = Parent() - if include_optional: + model = petstore_api.models.parent.Parent() # noqa: E501 + if include_optional : return Parent( optional_dict = { 'key' : petstore_api.models.inner_dict_with_property.InnerDictWithProperty( a_property = petstore_api.models.a_property.aProperty(), ) } ) - else: + else : return Parent( ) """ diff --git a/samples/openapi3/client/petstore/python/test/test_parent_with_optional_dict.py b/samples/openapi3/client/petstore/python/test/test_parent_with_optional_dict.py index 7cc74f9e98ec..25b769e3d390 100644 --- a/samples/openapi3/client/petstore/python/test/test_parent_with_optional_dict.py +++ b/samples/openapi3/client/petstore/python/test/test_parent_with_optional_dict.py @@ -3,18 +3,23 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 +""" + +from __future__ import absolute_import import unittest +import datetime -from petstore_api.models.parent_with_optional_dict import ParentWithOptionalDict +import petstore_api +from petstore_api.models.parent_with_optional_dict import ParentWithOptionalDict # noqa: E501 +from petstore_api.rest import ApiException class TestParentWithOptionalDict(unittest.TestCase): """ParentWithOptionalDict unit test stubs""" @@ -25,22 +30,22 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> ParentWithOptionalDict: + def make_instance(self, include_optional): """Test ParentWithOptionalDict - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `ParentWithOptionalDict` """ - model = ParentWithOptionalDict() - if include_optional: + model = petstore_api.models.parent_with_optional_dict.ParentWithOptionalDict() # noqa: E501 + if include_optional : return ParentWithOptionalDict( optional_dict = { 'key' : petstore_api.models.inner_dict_with_property.InnerDictWithProperty( a_property = petstore_api.models.a_property.aProperty(), ) } ) - else: + else : return ParentWithOptionalDict( ) """ diff --git a/samples/openapi3/client/petstore/python/test/test_pet.py b/samples/openapi3/client/petstore/python/test/test_pet.py index 3edc400fafcb..de97fcf848b5 100644 --- a/samples/openapi3/client/petstore/python/test/test_pet.py +++ b/samples/openapi3/client/petstore/python/test/test_pet.py @@ -3,18 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +import datetime -from petstore_api.models.pet import Pet +import petstore_api +from petstore_api.models.pet import Pet # noqa: E501 +from petstore_api.rest import ApiException class TestPet(unittest.TestCase): """Pet unit test stubs""" @@ -25,44 +28,41 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> Pet: + def make_instance(self, include_optional): """Test Pet - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `Pet` - """ - model = Pet() - if include_optional: + # model = petstore_api.models.pet.Pet() # noqa: E501 + if include_optional : return Pet( - id = 56, + id = 56, category = petstore_api.models.category.Category( id = 56, - name = 'default-name', ), - name = 'doggie', - photo_urls = [ + name = 'default-name', ), + name = 'doggie', + photoUrls = [ '' - ], + ], tags = [ petstore_api.models.tag.Tag( id = 56, name = '', ) - ], + ], status = 'available' ) - else: + else : return Pet( name = 'doggie', - photo_urls = [ + photoUrls = [ '' ], ) - """ def testPet(self): """Test Pet""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_pet_api.py b/samples/openapi3/client/petstore/python/test/test_pet_api.py index 4cf869d36a26..77665df879f1 100644 --- a/samples/openapi3/client/petstore/python/test/test_pet_api.py +++ b/samples/openapi3/client/petstore/python/test/test_pet_api.py @@ -3,89 +3,91 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest -from petstore_api.api.pet_api import PetApi +import petstore_api +from petstore_api.api.pet_api import PetApi # noqa: E501 +from petstore_api.rest import ApiException class TestPetApi(unittest.TestCase): """PetApi unit test stubs""" - def setUp(self) -> None: - self.api = PetApi() + def setUp(self): + self.api = petstore_api.api.pet_api.PetApi() # noqa: E501 - def tearDown(self) -> None: + def tearDown(self): pass - def test_add_pet(self) -> None: + def test_add_pet(self): """Test case for add_pet - Add a new pet to the store + Add a new pet to the store # noqa: E501 """ pass - def test_delete_pet(self) -> None: + def test_delete_pet(self): """Test case for delete_pet - Deletes a pet + Deletes a pet # noqa: E501 """ pass - def test_find_pets_by_status(self) -> None: + def test_find_pets_by_status(self): """Test case for find_pets_by_status - Finds Pets by status + Finds Pets by status # noqa: E501 """ pass - def test_find_pets_by_tags(self) -> None: + def test_find_pets_by_tags(self): """Test case for find_pets_by_tags - Finds Pets by tags + Finds Pets by tags # noqa: E501 """ pass - def test_get_pet_by_id(self) -> None: + def test_get_pet_by_id(self): """Test case for get_pet_by_id - Find pet by ID + Find pet by ID # noqa: E501 """ pass - def test_update_pet(self) -> None: + def test_update_pet(self): """Test case for update_pet - Update an existing pet + Update an existing pet # noqa: E501 """ pass - def test_update_pet_with_form(self) -> None: + def test_update_pet_with_form(self): """Test case for update_pet_with_form - Updates a pet in the store with form data + Updates a pet in the store with form data # noqa: E501 """ pass - def test_upload_file(self) -> None: + def test_upload_file(self): """Test case for upload_file - uploads an image + uploads an image # noqa: E501 """ pass - def test_upload_file_with_required_file(self) -> None: + def test_upload_file_with_required_file(self): """Test case for upload_file_with_required_file - uploads an image (required) + uploads an image (required) # noqa: E501 """ pass diff --git a/samples/openapi3/client/petstore/python/test/test_pig.py b/samples/openapi3/client/petstore/python/test/test_pig.py index c336579232b0..95e99f35a738 100644 --- a/samples/openapi3/client/petstore/python/test/test_pig.py +++ b/samples/openapi3/client/petstore/python/test/test_pig.py @@ -3,18 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +import datetime -from petstore_api.models.pig import Pig +import petstore_api +from petstore_api.models.pig import Pig # noqa: E501 +from petstore_api.rest import ApiException class TestPig(unittest.TestCase): """Pig unit test stubs""" @@ -25,28 +28,6 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> Pig: - """Test Pig - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Pig` - """ - model = Pig() - if include_optional: - return Pig( - class_name = '', - color = '', - size = 56 - ) - else: - return Pig( - class_name = '', - color = '', - size = 56, - ) - """ - def testPig(self): """Test Pig""" # inst_req_only = self.make_instance(include_optional=False) diff --git a/samples/openapi3/client/petstore/python/test/test_poop_cleaning.py b/samples/openapi3/client/petstore/python/test/test_poop_cleaning.py index 5a12f965aefe..4c94fddca97a 100644 --- a/samples/openapi3/client/petstore/python/test/test_poop_cleaning.py +++ b/samples/openapi3/client/petstore/python/test/test_poop_cleaning.py @@ -13,6 +13,7 @@ import unittest +import datetime from petstore_api.models.poop_cleaning import PoopCleaning @@ -27,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> PoopCleaning: """Test PoopCleaning - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `PoopCleaning` diff --git a/samples/openapi3/client/petstore/python/test/test_primitive_string.py b/samples/openapi3/client/petstore/python/test/test_primitive_string.py index 67ec90914d0f..8b9ccf59893b 100644 --- a/samples/openapi3/client/petstore/python/test/test_primitive_string.py +++ b/samples/openapi3/client/petstore/python/test/test_primitive_string.py @@ -27,7 +27,7 @@ def tearDown(self): def make_instance(self, include_optional) -> PrimitiveString: """Test PrimitiveString - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `PrimitiveString` diff --git a/samples/openapi3/client/petstore/python/test/test_property_map.py b/samples/openapi3/client/petstore/python/test/test_property_map.py index 2f2fed72a136..3934a29432ed 100644 --- a/samples/openapi3/client/petstore/python/test/test_property_map.py +++ b/samples/openapi3/client/petstore/python/test/test_property_map.py @@ -27,7 +27,7 @@ def tearDown(self): def make_instance(self, include_optional) -> PropertyMap: """Test PropertyMap - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `PropertyMap` diff --git a/samples/openapi3/client/petstore/python/test/test_property_name_collision.py b/samples/openapi3/client/petstore/python/test/test_property_name_collision.py index ab7919c7e6a9..04ab956f191d 100644 --- a/samples/openapi3/client/petstore/python/test/test_property_name_collision.py +++ b/samples/openapi3/client/petstore/python/test/test_property_name_collision.py @@ -3,18 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 +""" import unittest +import datetime -from petstore_api.models.property_name_collision import PropertyNameCollision +import petstore_api +from petstore_api.models.property_name_collision import PropertyNameCollision # noqa: E501 +from petstore_api.rest import ApiException class TestPropertyNameCollision(unittest.TestCase): """PropertyNameCollision unit test stubs""" @@ -25,21 +28,21 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> PropertyNameCollision: + def make_instance(self, include_optional): """Test PropertyNameCollision - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `PropertyNameCollision` """ - model = PropertyNameCollision() - if include_optional: + model = petstore_api.models.property_name_collision.PropertyNameCollision() # noqa: E501 + if include_optional : return PropertyNameCollision( - underscore_type = '', - type = '', - type_with_underscore = '' + underscoreType = '', + type = '', + typeWithUnderscore = '' ) - else: + else : return PropertyNameCollision( ) """ diff --git a/samples/openapi3/client/petstore/python/test/test_read_only_first.py b/samples/openapi3/client/petstore/python/test/test_read_only_first.py index ec7a1aa24140..310e4b1aebbe 100644 --- a/samples/openapi3/client/petstore/python/test/test_read_only_first.py +++ b/samples/openapi3/client/petstore/python/test/test_read_only_first.py @@ -3,18 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +import datetime -from petstore_api.models.read_only_first import ReadOnlyFirst +import petstore_api +from petstore_api.models.read_only_first import ReadOnlyFirst # noqa: E501 +from petstore_api.rest import ApiException class TestReadOnlyFirst(unittest.TestCase): """ReadOnlyFirst unit test stubs""" @@ -25,28 +28,25 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> ReadOnlyFirst: + def make_instance(self, include_optional): """Test ReadOnlyFirst - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `ReadOnlyFirst` - """ - model = ReadOnlyFirst() - if include_optional: + # model = petstore_api.models.read_only_first.ReadOnlyFirst() # noqa: E501 + if include_optional : return ReadOnlyFirst( - bar = '', + bar = '', baz = '' ) - else: + else : return ReadOnlyFirst( ) - """ def testReadOnlyFirst(self): """Test ReadOnlyFirst""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_second_circular_all_of_ref.py b/samples/openapi3/client/petstore/python/test/test_second_circular_all_of_ref.py index 21d9005a5e82..5e6d12f756bd 100644 --- a/samples/openapi3/client/petstore/python/test/test_second_circular_all_of_ref.py +++ b/samples/openapi3/client/petstore/python/test/test_second_circular_all_of_ref.py @@ -27,7 +27,7 @@ def tearDown(self): def make_instance(self, include_optional) -> SecondCircularAllOfRef: """Test SecondCircularAllOfRef - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `SecondCircularAllOfRef` @@ -35,10 +35,13 @@ def make_instance(self, include_optional) -> SecondCircularAllOfRef: model = SecondCircularAllOfRef() if include_optional: return SecondCircularAllOfRef( - name = '', circular_all_of_ref = [ - petstore_api.models.circular_all_of_ref.CircularAllOfRef() - ] + petstore_api.models.circular_all_of_ref.CircularAllOfRef( + second_circular_all_of_ref = [ + petstore_api.models.second_circular_all_of_ref.SecondCircularAllOfRef() + ], ) + ], + name = '' ) else: return SecondCircularAllOfRef( diff --git a/samples/openapi3/client/petstore/python/test/test_second_ref.py b/samples/openapi3/client/petstore/python/test/test_second_ref.py index f6117988c198..782892fd4e17 100644 --- a/samples/openapi3/client/petstore/python/test/test_second_ref.py +++ b/samples/openapi3/client/petstore/python/test/test_second_ref.py @@ -3,18 +3,23 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 +""" + +from __future__ import absolute_import import unittest +import datetime -from petstore_api.models.second_ref import SecondRef +import petstore_api +from petstore_api.models.second_ref import SecondRef # noqa: E501 +from petstore_api.rest import ApiException class TestSecondRef(unittest.TestCase): """SecondRef unit test stubs""" @@ -25,17 +30,17 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> SecondRef: + def make_instance(self, include_optional): """Test SecondRef - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `SecondRef` """ - model = SecondRef() - if include_optional: + model = petstore_api.models.second_ref.SecondRef() # noqa: E501 + if include_optional : return SecondRef( - category = '', + category = '', circular_ref = petstore_api.models.circular_reference_model.Circular-Reference-Model( size = 56, nested = petstore_api.models.first_ref.FirstRef( @@ -43,7 +48,7 @@ def make_instance(self, include_optional) -> SecondRef: self_ref = petstore_api.models.second_ref.SecondRef( category = '', ), ), ) ) - else: + else : return SecondRef( ) """ diff --git a/samples/openapi3/client/petstore/python/test/test_self_reference_model.py b/samples/openapi3/client/petstore/python/test/test_self_reference_model.py index 018bcd195b64..b3dd7ada2b2a 100644 --- a/samples/openapi3/client/petstore/python/test/test_self_reference_model.py +++ b/samples/openapi3/client/petstore/python/test/test_self_reference_model.py @@ -3,18 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +import datetime -from petstore_api.models.self_reference_model import SelfReferenceModel +import petstore_api +from petstore_api.models.self_reference_model import SelfReferenceModel # noqa: E501 +from petstore_api.rest import ApiException class TestSelfReferenceModel(unittest.TestCase): """SelfReferenceModel unit test stubs""" @@ -25,17 +28,17 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> SelfReferenceModel: + def make_instance(self, include_optional): """Test SelfReferenceModel - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `SelfReferenceModel` """ - model = SelfReferenceModel() - if include_optional: + model = petstore_api.models.self_reference_model.SelfReferenceModel() # noqa: E501 + if include_optional : return SelfReferenceModel( - size = 56, + size = 56, nested = petstore_api.models.dummy_model.Dummy-Model( category = '', self_ref = petstore_api.models.self_reference_model.Self-Reference-Model( @@ -43,7 +46,7 @@ def make_instance(self, include_optional) -> SelfReferenceModel: nested = petstore_api.models.dummy_model.Dummy-Model( category = '', ), ), ) ) - else: + else : return SelfReferenceModel( ) """ diff --git a/samples/openapi3/client/petstore/python/test/test_single_ref_type.py b/samples/openapi3/client/petstore/python/test/test_single_ref_type.py index 630b1c137087..888a1a7b6da3 100644 --- a/samples/openapi3/client/petstore/python/test/test_single_ref_type.py +++ b/samples/openapi3/client/petstore/python/test/test_single_ref_type.py @@ -3,18 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +import datetime -from petstore_api.models.single_ref_type import SingleRefType +import petstore_api +from petstore_api.models.single_ref_type import SingleRefType # noqa: E501 +from petstore_api.rest import ApiException class TestSingleRefType(unittest.TestCase): """SingleRefType unit test stubs""" @@ -25,9 +28,23 @@ def setUp(self): def tearDown(self): pass + def make_instance(self, include_optional): + """Test SingleRefType + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = petstore_api.models.single_ref_type.SingleRefType() # noqa: E501 + if include_optional : + return SingleRefType( + ) + else : + return SingleRefType( + ) + def testSingleRefType(self): """Test SingleRefType""" - # inst = SingleRefType() + #inst_req_only = self.make_instance(include_optional=False) + #inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_special_character_enum.py b/samples/openapi3/client/petstore/python/test/test_special_character_enum.py index 464808e61b09..028f55599e49 100644 --- a/samples/openapi3/client/petstore/python/test/test_special_character_enum.py +++ b/samples/openapi3/client/petstore/python/test/test_special_character_enum.py @@ -3,18 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +import datetime -from petstore_api.models.special_character_enum import SpecialCharacterEnum +import petstore_api +from petstore_api.models.special_character_enum import SpecialCharacterEnum # noqa: E501 +from petstore_api.rest import ApiException class TestSpecialCharacterEnum(unittest.TestCase): """SpecialCharacterEnum unit test stubs""" diff --git a/samples/openapi3/client/petstore/python/test/test_special_model_name.py b/samples/openapi3/client/petstore/python/test/test_special_model_name.py index e913fa28f51e..eb487cd42fc1 100644 --- a/samples/openapi3/client/petstore/python/test/test_special_model_name.py +++ b/samples/openapi3/client/petstore/python/test/test_special_model_name.py @@ -3,18 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +import datetime -from petstore_api.models.special_model_name import SpecialModelName +import petstore_api +from petstore_api.models.special_model_name import SpecialModelName # noqa: E501 +from petstore_api.rest import ApiException class TestSpecialModelName(unittest.TestCase): """SpecialModelName unit test stubs""" @@ -25,27 +28,24 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> SpecialModelName: + def make_instance(self, include_optional): """Test SpecialModelName - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `SpecialModelName` - """ - model = SpecialModelName() - if include_optional: + # model = petstore_api.models.special_model_name.SpecialModelName() # noqa: E501 + if include_optional : return SpecialModelName( special_property_name = 56 ) - else: + else : return SpecialModelName( ) - """ def testSpecialModelName(self): """Test SpecialModelName""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_special_name.py b/samples/openapi3/client/petstore/python/test/test_special_name.py index 153768c98984..1f4287871a8e 100644 --- a/samples/openapi3/client/petstore/python/test/test_special_name.py +++ b/samples/openapi3/client/petstore/python/test/test_special_name.py @@ -3,18 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +import datetime -from petstore_api.models.special_name import SpecialName +import petstore_api +from petstore_api.models.special_name import SpecialName # noqa: E501 +from petstore_api.rest import ApiException class TestSpecialName(unittest.TestCase): """SpecialName unit test stubs""" @@ -25,23 +28,23 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> SpecialName: + def make_instance(self, include_optional): """Test SpecialName - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `SpecialName` """ - model = SpecialName() - if include_optional: + model = petstore_api.models.special_name.SpecialName() # noqa: E501 + if include_optional : return SpecialName( - var_property = 56, + var_property = 56, var_async = petstore_api.models.category.Category( id = 56, - name = 'default-name', ), - var_schema = 'available' + name = 'default-name', ), + status = 'available' ) - else: + else : return SpecialName( ) """ diff --git a/samples/openapi3/client/petstore/python/test/test_store_api.py b/samples/openapi3/client/petstore/python/test/test_store_api.py index 603b0f7bc57c..81848d24a67e 100644 --- a/samples/openapi3/client/petstore/python/test/test_store_api.py +++ b/samples/openapi3/client/petstore/python/test/test_store_api.py @@ -3,54 +3,56 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest -from petstore_api.api.store_api import StoreApi +import petstore_api +from petstore_api.api.store_api import StoreApi # noqa: E501 +from petstore_api.rest import ApiException class TestStoreApi(unittest.TestCase): """StoreApi unit test stubs""" - def setUp(self) -> None: - self.api = StoreApi() + def setUp(self): + self.api = petstore_api.api.store_api.StoreApi() # noqa: E501 - def tearDown(self) -> None: + def tearDown(self): pass - def test_delete_order(self) -> None: + def test_delete_order(self): """Test case for delete_order - Delete purchase order by ID + Delete purchase order by ID # noqa: E501 """ pass - def test_get_inventory(self) -> None: + def test_get_inventory(self): """Test case for get_inventory - Returns pet inventories by status + Returns pet inventories by status # noqa: E501 """ pass - def test_get_order_by_id(self) -> None: + def test_get_order_by_id(self): """Test case for get_order_by_id - Find purchase order by ID + Find purchase order by ID # noqa: E501 """ pass - def test_place_order(self) -> None: + def test_place_order(self): """Test case for place_order - Place an order for a pet + Place an order for a pet # noqa: E501 """ pass diff --git a/samples/openapi3/client/petstore/python/test/test_tag.py b/samples/openapi3/client/petstore/python/test/test_tag.py index 92061e615e28..9680300032f1 100644 --- a/samples/openapi3/client/petstore/python/test/test_tag.py +++ b/samples/openapi3/client/petstore/python/test/test_tag.py @@ -3,18 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +import datetime -from petstore_api.models.tag import Tag +import petstore_api +from petstore_api.models.tag import Tag # noqa: E501 +from petstore_api.rest import ApiException class TestTag(unittest.TestCase): """Tag unit test stubs""" @@ -25,28 +28,25 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> Tag: + def make_instance(self, include_optional): """Test Tag - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `Tag` - """ - model = Tag() - if include_optional: + # model = petstore_api.models.tag.Tag() # noqa: E501 + if include_optional : return Tag( - id = 56, + id = 56, name = '' ) - else: + else : return Tag( ) - """ def testTag(self): """Test Tag""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_task.py b/samples/openapi3/client/petstore/python/test/test_task.py index 0044da80776b..bbbc14a39928 100644 --- a/samples/openapi3/client/petstore/python/test/test_task.py +++ b/samples/openapi3/client/petstore/python/test/test_task.py @@ -13,6 +13,7 @@ import unittest +import datetime from petstore_api.models.task import Task @@ -27,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> Task: """Test Task - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `Task` diff --git a/samples/openapi3/client/petstore/python/test/test_task_activity.py b/samples/openapi3/client/petstore/python/test/test_task_activity.py index bd25e5887ac4..2d56d9c5ad3e 100644 --- a/samples/openapi3/client/petstore/python/test/test_task_activity.py +++ b/samples/openapi3/client/petstore/python/test/test_task_activity.py @@ -13,6 +13,7 @@ import unittest +import datetime from petstore_api.models.task_activity import TaskActivity @@ -27,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> TaskActivity: """Test TaskActivity - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `TaskActivity` diff --git a/samples/openapi3/client/petstore/python/test/test_test_error_responses_with_model400_response.py b/samples/openapi3/client/petstore/python/test/test_test_error_responses_with_model400_response.py index 72d243b82fc4..35db7ba74fb7 100644 --- a/samples/openapi3/client/petstore/python/test/test_test_error_responses_with_model400_response.py +++ b/samples/openapi3/client/petstore/python/test/test_test_error_responses_with_model400_response.py @@ -13,6 +13,7 @@ import unittest +import datetime from petstore_api.models.test_error_responses_with_model400_response import TestErrorResponsesWithModel400Response @@ -27,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> TestErrorResponsesWithModel400Response: """Test TestErrorResponsesWithModel400Response - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `TestErrorResponsesWithModel400Response` diff --git a/samples/openapi3/client/petstore/python/test/test_test_error_responses_with_model404_response.py b/samples/openapi3/client/petstore/python/test/test_test_error_responses_with_model404_response.py index fff790172b14..e9c97c0f484b 100644 --- a/samples/openapi3/client/petstore/python/test/test_test_error_responses_with_model404_response.py +++ b/samples/openapi3/client/petstore/python/test/test_test_error_responses_with_model404_response.py @@ -13,6 +13,7 @@ import unittest +import datetime from petstore_api.models.test_error_responses_with_model404_response import TestErrorResponsesWithModel404Response @@ -27,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> TestErrorResponsesWithModel404Response: """Test TestErrorResponsesWithModel404Response - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `TestErrorResponsesWithModel404Response` diff --git a/samples/openapi3/client/petstore/python/test/test_test_inline_freeform_additional_properties_request.py b/samples/openapi3/client/petstore/python/test/test_test_inline_freeform_additional_properties_request.py index add42258580a..5c40397bc913 100644 --- a/samples/openapi3/client/petstore/python/test/test_test_inline_freeform_additional_properties_request.py +++ b/samples/openapi3/client/petstore/python/test/test_test_inline_freeform_additional_properties_request.py @@ -13,8 +13,9 @@ import unittest +import datetime -from petstore_api.models.test_inline_freeform_additional_properties_request import TestInlineFreeformAdditionalPropertiesRequest +from petstore_api.models.test_inline_freeform_additional_properties_request import TestInlineFreeformAdditionalPropertiesRequest # noqa: E501 class TestTestInlineFreeformAdditionalPropertiesRequest(unittest.TestCase): """TestInlineFreeformAdditionalPropertiesRequest unit test stubs""" @@ -27,12 +28,12 @@ def tearDown(self): def make_instance(self, include_optional) -> TestInlineFreeformAdditionalPropertiesRequest: """Test TestInlineFreeformAdditionalPropertiesRequest - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `TestInlineFreeformAdditionalPropertiesRequest` """ - model = TestInlineFreeformAdditionalPropertiesRequest() + model = TestInlineFreeformAdditionalPropertiesRequest() # noqa: E501 if include_optional: return TestInlineFreeformAdditionalPropertiesRequest( some_property = '' diff --git a/samples/openapi3/client/petstore/python/test/test_test_model_with_enum_default.py b/samples/openapi3/client/petstore/python/test/test_test_model_with_enum_default.py index e58802b59de7..7d2029d0af92 100644 --- a/samples/openapi3/client/petstore/python/test/test_test_model_with_enum_default.py +++ b/samples/openapi3/client/petstore/python/test/test_test_model_with_enum_default.py @@ -27,7 +27,7 @@ def tearDown(self): def make_instance(self, include_optional) -> TestModelWithEnumDefault: """Test TestModelWithEnumDefault - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `TestModelWithEnumDefault` diff --git a/samples/openapi3/client/petstore/python/test/test_test_object_for_multipart_requests_request_marker.py b/samples/openapi3/client/petstore/python/test/test_test_object_for_multipart_requests_request_marker.py index 585a39c8fe6b..3c831caad5a0 100644 --- a/samples/openapi3/client/petstore/python/test/test_test_object_for_multipart_requests_request_marker.py +++ b/samples/openapi3/client/petstore/python/test/test_test_object_for_multipart_requests_request_marker.py @@ -27,7 +27,7 @@ def tearDown(self): def make_instance(self, include_optional) -> TestObjectForMultipartRequestsRequestMarker: """Test TestObjectForMultipartRequestsRequestMarker - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `TestObjectForMultipartRequestsRequestMarker` diff --git a/samples/openapi3/client/petstore/python/test/test_tiger.py b/samples/openapi3/client/petstore/python/test/test_tiger.py index 2d153c1749c3..83c91cea1a0d 100644 --- a/samples/openapi3/client/petstore/python/test/test_tiger.py +++ b/samples/openapi3/client/petstore/python/test/test_tiger.py @@ -3,18 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 +""" import unittest +import datetime -from petstore_api.models.tiger import Tiger +import petstore_api +from petstore_api.models.tiger import Tiger # noqa: E501 +from petstore_api.rest import ApiException class TestTiger(unittest.TestCase): """Tiger unit test stubs""" @@ -25,19 +28,19 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> Tiger: + def make_instance(self, include_optional): """Test Tiger - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `Tiger` """ - model = Tiger() - if include_optional: + model = petstore_api.models.tiger.Tiger() # noqa: E501 + if include_optional : return Tiger( skill = '' ) - else: + else : return Tiger( ) """ diff --git a/samples/openapi3/client/petstore/python/test/test_unnamed_dict_with_additional_model_list_properties.py b/samples/openapi3/client/petstore/python/test/test_unnamed_dict_with_additional_model_list_properties.py index 874af4e78f8b..64854cb7ee97 100644 --- a/samples/openapi3/client/petstore/python/test/test_unnamed_dict_with_additional_model_list_properties.py +++ b/samples/openapi3/client/petstore/python/test/test_unnamed_dict_with_additional_model_list_properties.py @@ -13,8 +13,9 @@ import unittest +import datetime -from petstore_api.models.unnamed_dict_with_additional_model_list_properties import UnnamedDictWithAdditionalModelListProperties +from petstore_api.models.unnamed_dict_with_additional_model_list_properties import UnnamedDictWithAdditionalModelListProperties # noqa: E501 class TestUnnamedDictWithAdditionalModelListProperties(unittest.TestCase): """UnnamedDictWithAdditionalModelListProperties unit test stubs""" @@ -27,12 +28,12 @@ def tearDown(self): def make_instance(self, include_optional) -> UnnamedDictWithAdditionalModelListProperties: """Test UnnamedDictWithAdditionalModelListProperties - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `UnnamedDictWithAdditionalModelListProperties` """ - model = UnnamedDictWithAdditionalModelListProperties() + model = UnnamedDictWithAdditionalModelListProperties() # noqa: E501 if include_optional: return UnnamedDictWithAdditionalModelListProperties( dict_property = { diff --git a/samples/openapi3/client/petstore/python/test/test_unnamed_dict_with_additional_string_list_properties.py b/samples/openapi3/client/petstore/python/test/test_unnamed_dict_with_additional_string_list_properties.py index e0a94bc92dc1..832dc0c32d2a 100644 --- a/samples/openapi3/client/petstore/python/test/test_unnamed_dict_with_additional_string_list_properties.py +++ b/samples/openapi3/client/petstore/python/test/test_unnamed_dict_with_additional_string_list_properties.py @@ -13,8 +13,9 @@ import unittest +import datetime -from petstore_api.models.unnamed_dict_with_additional_string_list_properties import UnnamedDictWithAdditionalStringListProperties +from petstore_api.models.unnamed_dict_with_additional_string_list_properties import UnnamedDictWithAdditionalStringListProperties # noqa: E501 class TestUnnamedDictWithAdditionalStringListProperties(unittest.TestCase): """UnnamedDictWithAdditionalStringListProperties unit test stubs""" @@ -27,12 +28,12 @@ def tearDown(self): def make_instance(self, include_optional) -> UnnamedDictWithAdditionalStringListProperties: """Test UnnamedDictWithAdditionalStringListProperties - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `UnnamedDictWithAdditionalStringListProperties` """ - model = UnnamedDictWithAdditionalStringListProperties() + model = UnnamedDictWithAdditionalStringListProperties() # noqa: E501 if include_optional: return UnnamedDictWithAdditionalStringListProperties( dict_property = { diff --git a/samples/openapi3/client/petstore/python/test/test_user.py b/samples/openapi3/client/petstore/python/test/test_user.py index 19c320733220..174c8e06be5d 100644 --- a/samples/openapi3/client/petstore/python/test/test_user.py +++ b/samples/openapi3/client/petstore/python/test/test_user.py @@ -3,18 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +import datetime -from petstore_api.models.user import User +import petstore_api +from petstore_api.models.user import User # noqa: E501 +from petstore_api.rest import ApiException class TestUser(unittest.TestCase): """User unit test stubs""" @@ -25,34 +28,31 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> User: + def make_instance(self, include_optional): """Test User - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `User` - """ - model = User() - if include_optional: + # model = petstore_api.models.user.User() # noqa: E501 + if include_optional : return User( - id = 56, - username = '', - first_name = '', - last_name = '', - email = '', - password = '', - phone = '', + id = 56, + username = '', + first_name = '', + last_name = '', + email = '', + password = '', + phone = '', user_status = 56 ) - else: + else : return User( ) - """ def testUser(self): """Test User""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_user_api.py b/samples/openapi3/client/petstore/python/test/test_user_api.py index 6b17c42093e2..6df730fba2b1 100644 --- a/samples/openapi3/client/petstore/python/test/test_user_api.py +++ b/samples/openapi3/client/petstore/python/test/test_user_api.py @@ -3,82 +3,84 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest -from petstore_api.api.user_api import UserApi +import petstore_api +from petstore_api.api.user_api import UserApi # noqa: E501 +from petstore_api.rest import ApiException class TestUserApi(unittest.TestCase): """UserApi unit test stubs""" - def setUp(self) -> None: - self.api = UserApi() + def setUp(self): + self.api = petstore_api.api.user_api.UserApi() # noqa: E501 - def tearDown(self) -> None: + def tearDown(self): pass - def test_create_user(self) -> None: + def test_create_user(self): """Test case for create_user - Create user + Create user # noqa: E501 """ pass - def test_create_users_with_array_input(self) -> None: + def test_create_users_with_array_input(self): """Test case for create_users_with_array_input - Creates list of users with given input array + Creates list of users with given input array # noqa: E501 """ pass - def test_create_users_with_list_input(self) -> None: + def test_create_users_with_list_input(self): """Test case for create_users_with_list_input - Creates list of users with given input array + Creates list of users with given input array # noqa: E501 """ pass - def test_delete_user(self) -> None: + def test_delete_user(self): """Test case for delete_user - Delete user + Delete user # noqa: E501 """ pass - def test_get_user_by_name(self) -> None: + def test_get_user_by_name(self): """Test case for get_user_by_name - Get user by user name + Get user by user name # noqa: E501 """ pass - def test_login_user(self) -> None: + def test_login_user(self): """Test case for login_user - Logs user into the system + Logs user into the system # noqa: E501 """ pass - def test_logout_user(self) -> None: + def test_logout_user(self): """Test case for logout_user - Logs out current logged in user session + Logs out current logged in user session # noqa: E501 """ pass - def test_update_user(self) -> None: + def test_update_user(self): """Test case for update_user - Updated user + Updated user # noqa: E501 """ pass diff --git a/samples/openapi3/client/petstore/python/test/test_with_nested_one_of.py b/samples/openapi3/client/petstore/python/test/test_with_nested_one_of.py index 6d8fd35bfc08..994004dd7ab7 100644 --- a/samples/openapi3/client/petstore/python/test/test_with_nested_one_of.py +++ b/samples/openapi3/client/petstore/python/test/test_with_nested_one_of.py @@ -3,18 +3,21 @@ """ OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) + Generated by: https://openapi-generator.tech +""" - Do not edit the class manually. -""" # noqa: E501 +from __future__ import absolute_import import unittest +import datetime -from petstore_api.models.with_nested_one_of import WithNestedOneOf +import petstore_api +from petstore_api.models.with_nested_one_of import WithNestedOneOf # noqa: E501 +from petstore_api.rest import ApiException class TestWithNestedOneOf(unittest.TestCase): """WithNestedOneOf unit test stubs""" @@ -25,29 +28,25 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> WithNestedOneOf: + def make_instance(self, include_optional): """Test WithNestedOneOf - include_optional is a boolean, when False only required + include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `WithNestedOneOf` - """ - model = WithNestedOneOf() - if include_optional: + # model = petstore_api.models.with_nested_one_of.WithNestedOneOf() # noqa: E501 + if include_optional : return WithNestedOneOf( - size = 56, - nested_pig = None, - nested_oneof_enum_string = None + size = 56, + nested_pig = None ) - else: + else : return WithNestedOneOf( ) - """ def testWithNestedOneOf(self): """Test WithNestedOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) + #inst_req_only = self.make_instance(include_optional=False) + #inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/samples/server/petstore/go-gin-api-server-interface-only/go.mod b/samples/server/petstore/go-gin-api-server-interface-only/go.mod index 788908e508f4..bbdae40128c7 100644 --- a/samples/server/petstore/go-gin-api-server-interface-only/go.mod +++ b/samples/server/petstore/go-gin-api-server-interface-only/go.mod @@ -23,10 +23,10 @@ require ( github.com/twitchyliquid64/golang-asm v0.15.1 // indirect github.com/ugorji/go/codec v1.2.11 // indirect golang.org/x/arch v0.3.0 // indirect - golang.org/x/crypto v0.21.0 // indirect + golang.org/x/crypto v0.9.0 // indirect golang.org/x/net v0.23.0 // indirect - golang.org/x/sys v0.18.0 // indirect - golang.org/x/text v0.14.0 // indirect + golang.org/x/sys v0.8.0 // indirect + golang.org/x/text v0.9.0 // indirect google.golang.org/protobuf v1.33.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/samples/server/petstore/go-gin-api-server/go.mod b/samples/server/petstore/go-gin-api-server/go.mod index 788908e508f4..bbdae40128c7 100644 --- a/samples/server/petstore/go-gin-api-server/go.mod +++ b/samples/server/petstore/go-gin-api-server/go.mod @@ -23,10 +23,10 @@ require ( github.com/twitchyliquid64/golang-asm v0.15.1 // indirect github.com/ugorji/go/codec v1.2.11 // indirect golang.org/x/arch v0.3.0 // indirect - golang.org/x/crypto v0.21.0 // indirect + golang.org/x/crypto v0.9.0 // indirect golang.org/x/net v0.23.0 // indirect - golang.org/x/sys v0.18.0 // indirect - golang.org/x/text v0.14.0 // indirect + golang.org/x/sys v0.8.0 // indirect + golang.org/x/text v0.9.0 // indirect google.golang.org/protobuf v1.33.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/samples/server/petstore/java-micronaut-server/src/test/groovy/org/openapitools/controller/PetControllerSpec.groovy b/samples/server/petstore/java-micronaut-server/src/test/groovy/org/openapitools/controller/PetControllerSpec.groovy index 219e954a3795..1a42ac43aa21 100644 --- a/samples/server/petstore/java-micronaut-server/src/test/groovy/org/openapitools/controller/PetControllerSpec.groovy +++ b/samples/server/petstore/java-micronaut-server/src/test/groovy/org/openapitools/controller/PetControllerSpec.groovy @@ -34,7 +34,7 @@ class PetControllerSpec extends Specification { EmbeddedServer server @Inject - @Client + @Client('${context-path}') HttpClient client @Inject @@ -45,8 +45,6 @@ class PetControllerSpec extends Specification { * * The method should: Add a new pet to the store * - * - * * TODO fill in the parameters and test return value. */ @Ignore("Not Implemented") @@ -74,8 +72,7 @@ class PetControllerSpec extends Specification { var uri = UriTemplate.of('/pet').expand([:]) MutableHttpRequest request = HttpRequest.POST(uri, body) .contentType('application/json') - .accept('[Ljava.lang.String;@7d1a6b4e') - .accept('[Ljava.lang.String;@7d1a6b4e') + .accept('application/json') when: HttpResponse response = client.toBlocking().exchange(request, Pet.class); @@ -89,8 +86,6 @@ class PetControllerSpec extends Specification { * * The method should: Deletes a pet * - * - * * TODO fill in the parameters and test return value. */ @Ignore("Not Implemented") @@ -120,7 +115,7 @@ class PetControllerSpec extends Specification { 'petId': 56L ]) MutableHttpRequest request = HttpRequest.DELETE(uri) - .accept('[Ljava.lang.String;@1235a3a2') + .accept('application/json') .header('api_key', 'example') when: @@ -162,8 +157,7 @@ class PetControllerSpec extends Specification { given: var uri = UriTemplate.of('/pet/findByStatus').expand([:]) MutableHttpRequest request = HttpRequest.GET(uri) - .accept('[Ljava.lang.String;@1efed651') - .accept('[Ljava.lang.String;@1efed651') + .accept('application/json') request.getParameters() .add('status', ['available'].toString()) // The query parameter format should be csv @@ -206,8 +200,7 @@ class PetControllerSpec extends Specification { given: var uri = UriTemplate.of('/pet/findByTags').expand([:]) MutableHttpRequest request = HttpRequest.GET(uri) - .accept('[Ljava.lang.String;@1def47a3') - .accept('[Ljava.lang.String;@1def47a3') + .accept('application/json') request.getParameters() .add('tags', ['example'].toString()) // The query parameter format should be csv @@ -253,8 +246,7 @@ class PetControllerSpec extends Specification { 'petId': 56L ]) MutableHttpRequest request = HttpRequest.GET(uri) - .accept('[Ljava.lang.String;@33011f4b') - .accept('[Ljava.lang.String;@33011f4b') + .accept('application/json') when: HttpResponse response = client.toBlocking().exchange(request, Pet.class); @@ -268,8 +260,6 @@ class PetControllerSpec extends Specification { * * The method should: Update an existing pet * - * - * * TODO fill in the parameters and test return value. */ @Ignore("Not Implemented") @@ -297,8 +287,7 @@ class PetControllerSpec extends Specification { var uri = UriTemplate.of('/pet').expand([:]) MutableHttpRequest request = HttpRequest.PUT(uri, body) .contentType('application/json') - .accept('[Ljava.lang.String;@c96923a') - .accept('[Ljava.lang.String;@c96923a') + .accept('application/json') when: HttpResponse response = client.toBlocking().exchange(request, Pet.class); @@ -312,8 +301,6 @@ class PetControllerSpec extends Specification { * * The method should: Updates a pet in the store with form data * - * - * * TODO fill in the parameters and test return value. */ @Ignore("Not Implemented") @@ -350,7 +337,7 @@ class PetControllerSpec extends Specification { ]) MutableHttpRequest request = HttpRequest.POST(uri, form) .contentType('application/x-www-form-urlencoded') - .accept('[Ljava.lang.String;@64b281a7') + .accept('application/json') when: HttpResponse response = client.toBlocking().exchange(request); // To retrieve body you must specify required type (e.g. Map.class) as second argument @@ -364,8 +351,6 @@ class PetControllerSpec extends Specification { * * The method should: uploads an image * - * - * * TODO fill in the parameters and test return value. */ @Ignore("Not Implemented") @@ -373,10 +358,10 @@ class PetControllerSpec extends Specification { given: Long petId = 56L String additionalMetadata = 'example' - CompletedFileUpload _file = null + CompletedFileUpload file = null when: - ModelApiResponse result = controller.uploadFile(petId, additionalMetadata, _file).block() + ModelApiResponse result = controller.uploadFile(petId, additionalMetadata, file).block() then: true @@ -391,18 +376,17 @@ class PetControllerSpec extends Specification { @Ignore("Not Implemented") def 'uploadFile() test with client through path /pet/{petId}/uploadImage'() { given: - var form = [ - // Fill in the body form parameters - 'additionalMetadata': 'example', - 'file': new FileReader(File.createTempFile('test', '.tmp')) - ] + var body = MultipartBody.builder() // Create multipart body + .addPart('additionalMetadata', 'example') + .addPart('file', 'filename', File.createTempFile('test', '.tmp')) + .build() var uri = UriTemplate.of('/pet/{petId}/uploadImage').expand([ // Fill in the path variables 'petId': 56L ]) - MutableHttpRequest request = HttpRequest.POST(uri, form) + MutableHttpRequest request = HttpRequest.POST(uri, body) .contentType('multipart/form-data') - .accept('[Ljava.lang.String;@30700cd') + .accept('application/json') when: HttpResponse response = client.toBlocking().exchange(request, ModelApiResponse.class); diff --git a/samples/server/petstore/java-micronaut-server/src/test/groovy/org/openapitools/controller/StoreControllerSpec.groovy b/samples/server/petstore/java-micronaut-server/src/test/groovy/org/openapitools/controller/StoreControllerSpec.groovy index bdd93dcacd47..98a808ccb171 100644 --- a/samples/server/petstore/java-micronaut-server/src/test/groovy/org/openapitools/controller/StoreControllerSpec.groovy +++ b/samples/server/petstore/java-micronaut-server/src/test/groovy/org/openapitools/controller/StoreControllerSpec.groovy @@ -32,7 +32,7 @@ class StoreControllerSpec extends Specification { EmbeddedServer server @Inject - @Client + @Client('${context-path}') HttpClient client @Inject @@ -73,7 +73,7 @@ class StoreControllerSpec extends Specification { 'orderId': 'example' ]) MutableHttpRequest request = HttpRequest.DELETE(uri) - .accept('[Ljava.lang.String;@3847bca1') + .accept('application/json') when: HttpResponse response = client.toBlocking().exchange(request); // To retrieve body you must specify required type (e.g. Map.class) as second argument @@ -113,7 +113,7 @@ class StoreControllerSpec extends Specification { given: var uri = UriTemplate.of('/store/inventory').expand([:]) MutableHttpRequest request = HttpRequest.GET(uri) - .accept('[Ljava.lang.String;@f8eed1') + .accept('application/json') when: HttpResponse response = client.toBlocking().exchange(request, Argument.of(Map.class, String.class, Integer.class)); @@ -157,8 +157,7 @@ class StoreControllerSpec extends Specification { 'orderId': 56L ]) MutableHttpRequest request = HttpRequest.GET(uri) - .accept('[Ljava.lang.String;@70b7e8d0') - .accept('[Ljava.lang.String;@70b7e8d0') + .accept('application/json') when: HttpResponse response = client.toBlocking().exchange(request, Order.class); @@ -172,8 +171,6 @@ class StoreControllerSpec extends Specification { * * The method should: Place an order for a pet * - * - * * TODO fill in the parameters and test return value. */ @Ignore("Not Implemented") @@ -201,8 +198,7 @@ class StoreControllerSpec extends Specification { var uri = UriTemplate.of('/store/order').expand([:]) MutableHttpRequest request = HttpRequest.POST(uri, body) .contentType('application/json') - .accept('[Ljava.lang.String;@4b8d9f63') - .accept('[Ljava.lang.String;@4b8d9f63') + .accept('application/json') when: HttpResponse response = client.toBlocking().exchange(request, Order.class); diff --git a/samples/server/petstore/java-micronaut-server/src/test/groovy/org/openapitools/controller/UserControllerSpec.groovy b/samples/server/petstore/java-micronaut-server/src/test/groovy/org/openapitools/controller/UserControllerSpec.groovy index 9e9680899739..59940a3b5a50 100644 --- a/samples/server/petstore/java-micronaut-server/src/test/groovy/org/openapitools/controller/UserControllerSpec.groovy +++ b/samples/server/petstore/java-micronaut-server/src/test/groovy/org/openapitools/controller/UserControllerSpec.groovy @@ -1,6 +1,6 @@ package org.openapitools.controller -import java.time.OffsetDateTime +import java.time.LocalDateTime import org.openapitools.model.User import io.micronaut.test.extensions.spock.annotation.MicronautTest import io.micronaut.http.client.HttpClient @@ -33,7 +33,7 @@ class UserControllerSpec extends Specification { EmbeddedServer server @Inject - @Client + @Client('${context-path}') HttpClient client @Inject @@ -73,7 +73,7 @@ class UserControllerSpec extends Specification { var uri = UriTemplate.of('/user').expand([:]) MutableHttpRequest request = HttpRequest.POST(uri, body) .contentType('application/json') - .accept('[Ljava.lang.String;@4eaa9007') + .accept('application/json') when: HttpResponse response = client.toBlocking().exchange(request); // To retrieve body you must specify required type (e.g. Map.class) as second argument @@ -87,14 +87,12 @@ class UserControllerSpec extends Specification { * * The method should: Creates list of users with given input array * - * - * * TODO fill in the parameters and test return value. */ @Ignore("Not Implemented") def 'createUsersWithArrayInput() method test'() { given: - List<@Valid User> user = [] + List user = [] when: controller.createUsersWithArrayInput(user).block() @@ -112,11 +110,11 @@ class UserControllerSpec extends Specification { @Ignore("Not Implemented") def 'createUsersWithArrayInput() test with client through path /user/createWithArray'() { given: - List<@Valid User> body = [] + List body = [] var uri = UriTemplate.of('/user/createWithArray').expand([:]) MutableHttpRequest request = HttpRequest.POST(uri, body) .contentType('application/json') - .accept('[Ljava.lang.String;@9e37165') + .accept('application/json') when: HttpResponse response = client.toBlocking().exchange(request); // To retrieve body you must specify required type (e.g. Map.class) as second argument @@ -130,14 +128,12 @@ class UserControllerSpec extends Specification { * * The method should: Creates list of users with given input array * - * - * * TODO fill in the parameters and test return value. */ @Ignore("Not Implemented") def 'createUsersWithListInput() method test'() { given: - List<@Valid User> user = [] + List user = [] when: controller.createUsersWithListInput(user).block() @@ -155,11 +151,11 @@ class UserControllerSpec extends Specification { @Ignore("Not Implemented") def 'createUsersWithListInput() test with client through path /user/createWithList'() { given: - List<@Valid User> body = [] + List body = [] var uri = UriTemplate.of('/user/createWithList').expand([:]) MutableHttpRequest request = HttpRequest.POST(uri, body) .contentType('application/json') - .accept('[Ljava.lang.String;@465df9e1') + .accept('application/json') when: HttpResponse response = client.toBlocking().exchange(request); // To retrieve body you must specify required type (e.g. Map.class) as second argument @@ -203,7 +199,7 @@ class UserControllerSpec extends Specification { 'username': 'example' ]) MutableHttpRequest request = HttpRequest.DELETE(uri) - .accept('[Ljava.lang.String;@618c10ce') + .accept('application/json') when: HttpResponse response = client.toBlocking().exchange(request); // To retrieve body you must specify required type (e.g. Map.class) as second argument @@ -217,8 +213,6 @@ class UserControllerSpec extends Specification { * * The method should: Get user by user name * - * - * * TODO fill in the parameters and test return value. */ @Ignore("Not Implemented") @@ -247,8 +241,7 @@ class UserControllerSpec extends Specification { 'username': 'example' ]) MutableHttpRequest request = HttpRequest.GET(uri) - .accept('[Ljava.lang.String;@7bbc9e50') - .accept('[Ljava.lang.String;@7bbc9e50') + .accept('application/json') when: HttpResponse response = client.toBlocking().exchange(request, User.class); @@ -262,8 +255,6 @@ class UserControllerSpec extends Specification { * * The method should: Logs user into the system * - * - * * TODO fill in the parameters and test return value. */ @Ignore("Not Implemented") @@ -290,8 +281,7 @@ class UserControllerSpec extends Specification { given: var uri = UriTemplate.of('/user/login').expand([:]) MutableHttpRequest request = HttpRequest.GET(uri) - .accept('[Ljava.lang.String;@6946a01b') - .accept('[Ljava.lang.String;@6946a01b') + .accept('application/json') request.getParameters() .add('username', 'example') .add('password', 'example') @@ -308,8 +298,6 @@ class UserControllerSpec extends Specification { * * The method should: Logs out current logged in user session * - * - * * TODO fill in the parameters and test return value. */ @Ignore("Not Implemented") @@ -334,7 +322,7 @@ class UserControllerSpec extends Specification { given: var uri = UriTemplate.of('/user/logout').expand([:]) MutableHttpRequest request = HttpRequest.GET(uri) - .accept('[Ljava.lang.String;@40fdde23') + .accept('application/json') when: HttpResponse response = client.toBlocking().exchange(request); // To retrieve body you must specify required type (e.g. Map.class) as second argument @@ -381,7 +369,7 @@ class UserControllerSpec extends Specification { ]) MutableHttpRequest request = HttpRequest.PUT(uri, body) .contentType('application/json') - .accept('[Ljava.lang.String;@41f6ac92') + .accept('application/json') when: HttpResponse response = client.toBlocking().exchange(request); // To retrieve body you must specify required type (e.g. Map.class) as second argument diff --git a/samples/server/petstore/python-aiohttp-srclayout/tests/test_pet_controller.py b/samples/server/petstore/python-aiohttp-srclayout/tests/test_pet_controller.py index 5714015e7559..898181839f42 100644 --- a/samples/server/petstore/python-aiohttp-srclayout/tests/test_pet_controller.py +++ b/samples/server/petstore/python-aiohttp-srclayout/tests/test_pet_controller.py @@ -8,7 +8,6 @@ from openapi_server.models.api_response import ApiResponse from openapi_server.models.pet import Pet - pytestmark = pytest.mark.asyncio @pytest.mark.skip("Connexion does not support multiple consumes. See https://github.com/zalando/connexion/pull/760") @@ -17,7 +16,23 @@ async def test_add_pet(client): Add a new pet to the store """ - body = {"photoUrls":["photoUrls","photoUrls"],"name":"doggie","id":0,"category":{"name":"name","id":6},"tags":[{"name":"name","id":1},{"name":"name","id":1}],"status":"available"} + body = { + "photoUrls" : [ "photoUrls", "photoUrls" ], + "name" : "doggie", + "id" : 0, + "category" : { + "name" : "name", + "id" : 6 + }, + "tags" : [ { + "name" : "name", + "id" : 1 + }, { + "name" : "name", + "id" : 1 + } ], + "status" : "available" +} headers = { 'Content-Type': 'application/json', 'Authorization': 'Bearer special-key', @@ -31,8 +46,6 @@ async def test_add_pet(client): assert response.status == 200, 'Response body is : ' + (await response.read()).decode('utf-8') -pytestmark = pytest.mark.asyncio - async def test_delete_pet(client): """Test case for delete_pet @@ -50,14 +63,12 @@ async def test_delete_pet(client): assert response.status == 200, 'Response body is : ' + (await response.read()).decode('utf-8') -pytestmark = pytest.mark.asyncio - async def test_find_pets_by_status(client): """Test case for find_pets_by_status Finds Pets by status """ - params = [('status', ['status_example'])] + params = [('status', 'available')] headers = { 'Accept': 'application/json', 'Authorization': 'Bearer special-key', @@ -71,14 +82,12 @@ async def test_find_pets_by_status(client): assert response.status == 200, 'Response body is : ' + (await response.read()).decode('utf-8') -pytestmark = pytest.mark.asyncio - async def test_find_pets_by_tags(client): """Test case for find_pets_by_tags Finds Pets by tags """ - params = [('tags', ['tags_example'])] + params = [('tags', 'tags_example')] headers = { 'Accept': 'application/json', 'Authorization': 'Bearer special-key', @@ -92,8 +101,6 @@ async def test_find_pets_by_tags(client): assert response.status == 200, 'Response body is : ' + (await response.read()).decode('utf-8') -pytestmark = pytest.mark.asyncio - async def test_get_pet_by_id(client): """Test case for get_pet_by_id @@ -111,15 +118,29 @@ async def test_get_pet_by_id(client): assert response.status == 200, 'Response body is : ' + (await response.read()).decode('utf-8') -pytestmark = pytest.mark.asyncio - @pytest.mark.skip("Connexion does not support multiple consumes. See https://github.com/zalando/connexion/pull/760") async def test_update_pet(client): """Test case for update_pet Update an existing pet """ - body = {"photoUrls":["photoUrls","photoUrls"],"name":"doggie","id":0,"category":{"name":"name","id":6},"tags":[{"name":"name","id":1},{"name":"name","id":1}],"status":"available"} + body = { + "photoUrls" : [ "photoUrls", "photoUrls" ], + "name" : "doggie", + "id" : 0, + "category" : { + "name" : "name", + "id" : 6 + }, + "tags" : [ { + "name" : "name", + "id" : 1 + }, { + "name" : "name", + "id" : 1 + } ], + "status" : "available" +} headers = { 'Content-Type': 'application/json', 'Authorization': 'Bearer special-key', @@ -133,8 +154,6 @@ async def test_update_pet(client): assert response.status == 200, 'Response body is : ' + (await response.read()).decode('utf-8') -pytestmark = pytest.mark.asyncio - @pytest.mark.skip("application/x-www-form-urlencoded not supported by Connexion") async def test_update_pet_with_form(client): """Test case for update_pet_with_form @@ -158,8 +177,6 @@ async def test_update_pet_with_form(client): assert response.status == 200, 'Response body is : ' + (await response.read()).decode('utf-8') -pytestmark = pytest.mark.asyncio - @pytest.mark.skip("multipart/form-data not supported by Connexion") async def test_upload_file(client): """Test case for upload_file @@ -173,7 +190,7 @@ async def test_upload_file(client): } data = FormData() data.add_field('additional_metadata', 'additional_metadata_example') - data.add_field('file', '/path/to/file') + data.add_field('file', (BytesIO(b'some file data'), 'file.txt')) response = await client.request( method='POST', path='/v2/pet/{pet_id}/uploadImage'.format(pet_id=56), diff --git a/samples/server/petstore/python-aiohttp-srclayout/tests/test_store_controller.py b/samples/server/petstore/python-aiohttp-srclayout/tests/test_store_controller.py index 24deb57016b5..9cbe796815f9 100644 --- a/samples/server/petstore/python-aiohttp-srclayout/tests/test_store_controller.py +++ b/samples/server/petstore/python-aiohttp-srclayout/tests/test_store_controller.py @@ -6,7 +6,6 @@ from openapi_server.models.order import Order - pytestmark = pytest.mark.asyncio async def test_delete_order(client): @@ -24,8 +23,6 @@ async def test_delete_order(client): assert response.status == 200, 'Response body is : ' + (await response.read()).decode('utf-8') -pytestmark = pytest.mark.asyncio - async def test_get_inventory(client): """Test case for get_inventory @@ -43,8 +40,6 @@ async def test_get_inventory(client): assert response.status == 200, 'Response body is : ' + (await response.read()).decode('utf-8') -pytestmark = pytest.mark.asyncio - async def test_get_order_by_id(client): """Test case for get_order_by_id @@ -55,21 +50,19 @@ async def test_get_order_by_id(client): } response = await client.request( method='GET', - path='/v2/store/order/{order_id}'.format(order_id=56), + path='/v2/store/order/{order_id}'.format(order_id=5), headers=headers, ) assert response.status == 200, 'Response body is : ' + (await response.read()).decode('utf-8') -pytestmark = pytest.mark.asyncio - @pytest.mark.skip("*/* not supported by Connexion. Use application/json instead. See https://github.com/zalando/connexion/pull/760") async def test_place_order(client): """Test case for place_order Place an order for a pet """ - body = openapi_server.Order() + body = {} headers = { 'Accept': 'application/json', 'Content-Type': 'application/json', diff --git a/samples/server/petstore/python-aiohttp-srclayout/tests/test_user_controller.py b/samples/server/petstore/python-aiohttp-srclayout/tests/test_user_controller.py index be6f29e595c2..ae97db8ea413 100644 --- a/samples/server/petstore/python-aiohttp-srclayout/tests/test_user_controller.py +++ b/samples/server/petstore/python-aiohttp-srclayout/tests/test_user_controller.py @@ -6,7 +6,6 @@ from openapi_server.models.user import User - pytestmark = pytest.mark.asyncio @pytest.mark.skip("*/* not supported by Connexion. Use application/json instead. See https://github.com/zalando/connexion/pull/760") @@ -15,7 +14,7 @@ async def test_create_user(client): Create user """ - body = openapi_server.User() + body = {} headers = { 'Content-Type': 'application/json', } @@ -28,15 +27,13 @@ async def test_create_user(client): assert response.status == 200, 'Response body is : ' + (await response.read()).decode('utf-8') -pytestmark = pytest.mark.asyncio - @pytest.mark.skip("*/* not supported by Connexion. Use application/json instead. See https://github.com/zalando/connexion/pull/760") async def test_create_users_with_array_input(client): """Test case for create_users_with_array_input Creates list of users with given input array """ - body = [openapi_server.User()] + body = [{}] headers = { 'Content-Type': 'application/json', } @@ -49,15 +46,13 @@ async def test_create_users_with_array_input(client): assert response.status == 200, 'Response body is : ' + (await response.read()).decode('utf-8') -pytestmark = pytest.mark.asyncio - @pytest.mark.skip("*/* not supported by Connexion. Use application/json instead. See https://github.com/zalando/connexion/pull/760") async def test_create_users_with_list_input(client): """Test case for create_users_with_list_input Creates list of users with given input array """ - body = [openapi_server.User()] + body = [{}] headers = { 'Content-Type': 'application/json', } @@ -70,8 +65,6 @@ async def test_create_users_with_list_input(client): assert response.status == 200, 'Response body is : ' + (await response.read()).decode('utf-8') -pytestmark = pytest.mark.asyncio - async def test_delete_user(client): """Test case for delete_user @@ -87,8 +80,6 @@ async def test_delete_user(client): assert response.status == 200, 'Response body is : ' + (await response.read()).decode('utf-8') -pytestmark = pytest.mark.asyncio - async def test_get_user_by_name(client): """Test case for get_user_by_name @@ -105,8 +96,6 @@ async def test_get_user_by_name(client): assert response.status == 200, 'Response body is : ' + (await response.read()).decode('utf-8') -pytestmark = pytest.mark.asyncio - async def test_login_user(client): """Test case for login_user @@ -126,8 +115,6 @@ async def test_login_user(client): assert response.status == 200, 'Response body is : ' + (await response.read()).decode('utf-8') -pytestmark = pytest.mark.asyncio - async def test_logout_user(client): """Test case for logout_user @@ -143,15 +130,13 @@ async def test_logout_user(client): assert response.status == 200, 'Response body is : ' + (await response.read()).decode('utf-8') -pytestmark = pytest.mark.asyncio - @pytest.mark.skip("*/* not supported by Connexion. Use application/json instead. See https://github.com/zalando/connexion/pull/760") async def test_update_user(client): """Test case for update_user Updated user """ - body = openapi_server.User() + body = {} headers = { 'Content-Type': 'application/json', } diff --git a/samples/server/petstore/python-blueplanet/app/openapi_server/test/test_pet_controller.py b/samples/server/petstore/python-blueplanet/app/openapi_server/test/test_pet_controller.py index 142ede3d0582..397a1edcc446 100644 --- a/samples/server/petstore/python-blueplanet/app/openapi_server/test/test_pet_controller.py +++ b/samples/server/petstore/python-blueplanet/app/openapi_server/test/test_pet_controller.py @@ -18,7 +18,23 @@ def test_add_pet(self): Add a new pet to the store """ - body = {"photoUrls":["photoUrls","photoUrls"],"name":"doggie","id":0,"category":{"name":"name","id":6},"tags":[{"name":"name","id":1},{"name":"name","id":1}],"status":"available"} + body = { + "photoUrls" : [ "photoUrls", "photoUrls" ], + "name" : "doggie", + "id" : 0, + "category" : { + "name" : "name", + "id" : 6 + }, + "tags" : [ { + "name" : "name", + "id" : 1 + }, { + "name" : "name", + "id" : 1 + } ], + "status" : "available" +} response = self.client.open( '/v2/pet', method='POST', @@ -45,7 +61,7 @@ def test_find_pets_by_status(self): Finds Pets by status """ - query_string = [('status', ['status_example'])] + query_string = [('status', ['available'])] response = self.client.open( '/v2/pet/findByStatus', method='GET', @@ -82,7 +98,23 @@ def test_update_pet(self): Update an existing pet """ - body = {"photoUrls":["photoUrls","photoUrls"],"name":"doggie","id":0,"category":{"name":"name","id":6},"tags":[{"name":"name","id":1},{"name":"name","id":1}],"status":"available"} + body = { + "photoUrls" : [ "photoUrls", "photoUrls" ], + "name" : "doggie", + "id" : 0, + "category" : { + "name" : "name", + "id" : 6 + }, + "tags" : [ { + "name" : "name", + "id" : 1 + }, { + "name" : "name", + "id" : 1 + } ], + "status" : "available" +} response = self.client.open( '/v2/pet', method='PUT', diff --git a/samples/server/petstore/python-blueplanet/app/openapi_server/test/test_store_controller.py b/samples/server/petstore/python-blueplanet/app/openapi_server/test/test_store_controller.py index c3f5795bd078..4523c069b0cb 100644 --- a/samples/server/petstore/python-blueplanet/app/openapi_server/test/test_store_controller.py +++ b/samples/server/petstore/python-blueplanet/app/openapi_server/test/test_store_controller.py @@ -40,7 +40,7 @@ def test_get_order_by_id(self): Find purchase order by ID """ response = self.client.open( - '/v2/store/order/{order_id}'.format(order_id=56), + '/v2/store/order/{order_id}'.format(order_id=1), method='GET') self.assert200(response, 'Response body is : ' + response.data.decode('utf-8')) diff --git a/samples/server/petstore/python-fastapi/tests/test_fake_api.py b/samples/server/petstore/python-fastapi/tests/test_fake_api.py index 4f1fcf322e2f..e9921dc88004 100644 --- a/samples/server/petstore/python-fastapi/tests/test_fake_api.py +++ b/samples/server/petstore/python-fastapi/tests/test_fake_api.py @@ -3,9 +3,6 @@ from fastapi.testclient import TestClient -from pydantic import Field, StrictStr # noqa: F401 -from typing import Any, Optional # noqa: F401 -from typing_extensions import Annotated # noqa: F401 def test_fake_query_param_default(client: TestClient): diff --git a/samples/server/petstore/python-fastapi/tests/test_pet_api.py b/samples/server/petstore/python-fastapi/tests/test_pet_api.py index 5b2ce40c798b..ccfc88a2caa3 100644 --- a/samples/server/petstore/python-fastapi/tests/test_pet_api.py +++ b/samples/server/petstore/python-fastapi/tests/test_pet_api.py @@ -3,9 +3,6 @@ from fastapi.testclient import TestClient -from pydantic import Field, StrictBytes, StrictInt, StrictStr, field_validator # noqa: F401 -from typing import Any, List, Optional, Tuple, Union # noqa: F401 -from typing_extensions import Annotated # noqa: F401 from openapi_server.models.api_response import ApiResponse # noqa: F401 from openapi_server.models.pet import Pet # noqa: F401 diff --git a/samples/server/petstore/python-fastapi/tests/test_store_api.py b/samples/server/petstore/python-fastapi/tests/test_store_api.py index 05bc4ae6a614..fd27a05e70ee 100644 --- a/samples/server/petstore/python-fastapi/tests/test_store_api.py +++ b/samples/server/petstore/python-fastapi/tests/test_store_api.py @@ -3,9 +3,6 @@ from fastapi.testclient import TestClient -from pydantic import Field, StrictInt, StrictStr # noqa: F401 -from typing import Any, Dict # noqa: F401 -from typing_extensions import Annotated # noqa: F401 from openapi_server.models.order import Order # noqa: F401 diff --git a/samples/server/petstore/python-fastapi/tests/test_user_api.py b/samples/server/petstore/python-fastapi/tests/test_user_api.py index 532f04c9b591..29e4a073a630 100644 --- a/samples/server/petstore/python-fastapi/tests/test_user_api.py +++ b/samples/server/petstore/python-fastapi/tests/test_user_api.py @@ -3,9 +3,6 @@ from fastapi.testclient import TestClient -from pydantic import Field, StrictStr, field_validator # noqa: F401 -from typing import Any, List # noqa: F401 -from typing_extensions import Annotated # noqa: F401 from openapi_server.models.user import User # noqa: F401 diff --git a/samples/server/petstore/python-flask/openapi_server/test/test_pet_controller.py b/samples/server/petstore/python-flask/openapi_server/test/test_pet_controller.py index 060787f5f777..a62cb03709c8 100644 --- a/samples/server/petstore/python-flask/openapi_server/test/test_pet_controller.py +++ b/samples/server/petstore/python-flask/openapi_server/test/test_pet_controller.py @@ -16,9 +16,8 @@ def test_add_pet(self): Add a new pet to the store """ - pet = {"photoUrls":["photoUrls","photoUrls"],"name":"doggie","id":0,"category":{"name":"name","id":6},"tags":[{"name":"name","id":1},{"name":"name","id":1}],"status":"available"} + body = {"photoUrls":["photoUrls","photoUrls"],"name":"doggie","id":0,"category":{"name":"name","id":6},"tags":[{"name":"name","id":1},{"name":"name","id":1}],"status":"available"} headers = { - 'Accept': 'application/json', 'Content-Type': 'application/json', 'Authorization': 'Bearer special-key', } @@ -26,7 +25,7 @@ def test_add_pet(self): '/v2/pet', method='POST', headers=headers, - data=json.dumps(pet), + data=json.dumps(body), content_type='application/json') self.assert200(response, 'Response body is : ' + response.data.decode('utf-8')) @@ -105,9 +104,8 @@ def test_update_pet(self): Update an existing pet """ - pet = {"photoUrls":["photoUrls","photoUrls"],"name":"doggie","id":0,"category":{"name":"name","id":6},"tags":[{"name":"name","id":1},{"name":"name","id":1}],"status":"available"} + body = {"photoUrls":["photoUrls","photoUrls"],"name":"doggie","id":0,"category":{"name":"name","id":6},"tags":[{"name":"name","id":1},{"name":"name","id":1}],"status":"available"} headers = { - 'Accept': 'application/json', 'Content-Type': 'application/json', 'Authorization': 'Bearer special-key', } @@ -115,7 +113,7 @@ def test_update_pet(self): '/v2/pet', method='PUT', headers=headers, - data=json.dumps(pet), + data=json.dumps(body), content_type='application/json') self.assert200(response, 'Response body is : ' + response.data.decode('utf-8')) diff --git a/samples/server/petstore/python-flask/openapi_server/test/test_store_controller.py b/samples/server/petstore/python-flask/openapi_server/test/test_store_controller.py index e57c7a515c93..36b656cd827d 100644 --- a/samples/server/petstore/python-flask/openapi_server/test/test_store_controller.py +++ b/samples/server/petstore/python-flask/openapi_server/test/test_store_controller.py @@ -54,12 +54,13 @@ def test_get_order_by_id(self): self.assert200(response, 'Response body is : ' + response.data.decode('utf-8')) + @unittest.skip("*/* not supported by Connexion. Use application/json instead. See https://github.com/zalando/connexion/pull/760") def test_place_order(self): """Test case for place_order Place an order for a pet """ - order = {"petId":6,"quantity":1,"id":0,"shipDate":"2000-01-23T04:56:07.000+00:00","complete":False,"status":"placed"} + body = openapi_server.Order() headers = { 'Accept': 'application/json', 'Content-Type': 'application/json', @@ -68,7 +69,7 @@ def test_place_order(self): '/v2/store/order', method='POST', headers=headers, - data=json.dumps(order), + data=json.dumps(body), content_type='application/json') self.assert200(response, 'Response body is : ' + response.data.decode('utf-8')) diff --git a/samples/server/petstore/python-flask/openapi_server/test/test_user_controller.py b/samples/server/petstore/python-flask/openapi_server/test/test_user_controller.py index 5b651c1bc0d6..a991011b3166 100644 --- a/samples/server/petstore/python-flask/openapi_server/test/test_user_controller.py +++ b/samples/server/petstore/python-flask/openapi_server/test/test_user_controller.py @@ -9,59 +9,59 @@ class TestUserController(BaseTestCase): """UserController integration test stubs""" + @unittest.skip("*/* not supported by Connexion. Use application/json instead. See https://github.com/zalando/connexion/pull/760") def test_create_user(self): """Test case for create_user Create user """ - user = {"firstName":"firstName","lastName":"lastName","password":"password","userStatus":6,"phone":"phone","id":0,"email":"email","username":"username"} + body = openapi_server.User() headers = { 'Content-Type': 'application/json', - 'api_key': 'special-key', } response = self.client.open( '/v2/user', method='POST', headers=headers, - data=json.dumps(user), + data=json.dumps(body), content_type='application/json') self.assert200(response, 'Response body is : ' + response.data.decode('utf-8')) + @unittest.skip("*/* not supported by Connexion. Use application/json instead. See https://github.com/zalando/connexion/pull/760") def test_create_users_with_array_input(self): """Test case for create_users_with_array_input Creates list of users with given input array """ - user = {"firstName":"firstName","lastName":"lastName","password":"password","userStatus":6,"phone":"phone","id":0,"email":"email","username":"username"} + body = [openapi_server.User()] headers = { 'Content-Type': 'application/json', - 'api_key': 'special-key', } response = self.client.open( '/v2/user/createWithArray', method='POST', headers=headers, - data=json.dumps(user), + data=json.dumps(body), content_type='application/json') self.assert200(response, 'Response body is : ' + response.data.decode('utf-8')) + @unittest.skip("*/* not supported by Connexion. Use application/json instead. See https://github.com/zalando/connexion/pull/760") def test_create_users_with_list_input(self): """Test case for create_users_with_list_input Creates list of users with given input array """ - user = {"firstName":"firstName","lastName":"lastName","password":"password","userStatus":6,"phone":"phone","id":0,"email":"email","username":"username"} + body = [openapi_server.User()] headers = { 'Content-Type': 'application/json', - 'api_key': 'special-key', } response = self.client.open( '/v2/user/createWithList', method='POST', headers=headers, - data=json.dumps(user), + data=json.dumps(body), content_type='application/json') self.assert200(response, 'Response body is : ' + response.data.decode('utf-8')) @@ -72,7 +72,6 @@ def test_delete_user(self): Delete user """ headers = { - 'api_key': 'special-key', } response = self.client.open( '/v2/user/{username}'.format(username='username_example'), @@ -120,7 +119,6 @@ def test_logout_user(self): Logs out current logged in user session """ headers = { - 'api_key': 'special-key', } response = self.client.open( '/v2/user/logout', @@ -129,21 +127,21 @@ def test_logout_user(self): self.assert200(response, 'Response body is : ' + response.data.decode('utf-8')) + @unittest.skip("*/* not supported by Connexion. Use application/json instead. See https://github.com/zalando/connexion/pull/760") def test_update_user(self): """Test case for update_user Updated user """ - user = {"firstName":"firstName","lastName":"lastName","password":"password","userStatus":6,"phone":"phone","id":0,"email":"email","username":"username"} + body = openapi_server.User() headers = { 'Content-Type': 'application/json', - 'api_key': 'special-key', } response = self.client.open( '/v2/user/{username}'.format(username='username_example'), method='PUT', headers=headers, - data=json.dumps(user), + data=json.dumps(body), content_type='application/json') self.assert200(response, 'Response body is : ' + response.data.decode('utf-8')) From 4f0e8a0845299e9ebca7fd0b0610f0d070b9d7ed Mon Sep 17 00:00:00 2001 From: Martin <2026226+martin-mfg@users.noreply.github.com> Date: Sun, 8 Dec 2024 21:23:58 +0100 Subject: [PATCH 5/5] add one sample to CircleCI, fix various Java tests --- CI/circle_parallel.sh | 1 + bin/utils/test_file_list.yaml | 6 ++--- .../org/openapitools/client/CustomTest.java | 22 +++++++--------- .../openapitools/client/api/AuthApiTest.java | 5 ++-- .../openapitools/client/ApiClientTest.java | 10 ++++--- .../org/openapitools/client/JSONTest.java | 9 ++++--- .../openapitools/client/api/PetApiTest.java | 5 ++-- .../client/auth/ApiKeyAuthTest.java | 26 +++++++++---------- .../client/auth/HttpBasicAuthTest.java | 11 ++++---- .../model/ArrayOfArrayOfNumberOnlyTest.java | 5 ++-- 10 files changed, 53 insertions(+), 47 deletions(-) diff --git a/CI/circle_parallel.sh b/CI/circle_parallel.sh index 9d54203ba031..cc7e015f4c34 100755 --- a/CI/circle_parallel.sh +++ b/CI/circle_parallel.sh @@ -121,6 +121,7 @@ else (cd samples/client/others/java/okhttp-gson-streaming && mvn integration-test) (cd samples/client/petstore/java/okhttp-gson && mvn integration-test) (cd samples/client/petstore/java/okhttp-gson-3.1 && mvn integration-test) + (cd samples/client/petstore/java/okhttp-gson-dynamicOperations && mvn integration-test) (cd samples/client/petstore/java/resteasy && mvn integration-test) (cd samples/client/petstore/java-micronaut-client && mvn integration-test) (cd samples/client/petstore/java/apache-httpclient && mvn integration-test) diff --git a/bin/utils/test_file_list.yaml b/bin/utils/test_file_list.yaml index 77c439b0efe8..5c63f356e280 100644 --- a/bin/utils/test_file_list.yaml +++ b/bin/utils/test_file_list.yaml @@ -24,7 +24,7 @@ - filename: "samples/client/echo_api/java/resteasy/src/test/java/org/openapitools/client/api/BodyApiTest.java" sha256: 04715cabbe9bd27ff98dd56e3db489ebc9ffbf98d9af104a6707b0a40ab4f8fe - filename: "samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/api/AuthApiTest.java" - sha256: fa45f446111823f02b9c8e8d010e3c1a28fc0f00a325e674da14d0e12296ea96 + sha256: 38193bbad7f3eef087bc1474352e484178b14a2b8c0e0ba0cd4e4960516a14f9 - filename: "samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/api/PetApiTest.java" sha256: 24c6a39a9d7327d397dc038c368a19c84f14ed96a69fe28d53719b3eaf0a725c - filename: "samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/api/PetApiTest.java" @@ -36,9 +36,9 @@ - filename: "samples/client/petstore/java/okhttp-gson-3.1/src/test/java/org/openapitools/client/api/PetApiTest.java" sha256: d8f7fff724f81e666daf115cc25f8347e1fda4e861aa30df0dae3fa50c91404c - filename: "samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/api/PetApiTest.java" - sha256: 711a242b6257b87363c59b20dcaed45f9b146e2be246339a039a5d0338ad280c + sha256: 0cc079be64fe261b46f89976be2cbfad4fe5173dbe0d4b45303570299b0b5ecc - filename: "samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnlyTest.java" - sha256: 3a1add6f05f057c45b2ea489f619c3b455bf75e8e748fabd5487972b330ae2e6 + sha256: 3c41eb12d126f90392d97e3250b53ea9dce1663fb714a19339445b9da734d634 - filename: "samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/api/PetApiTest.java" sha256: 68ed9228c99ecf2ff3842074242d3be7565da3b702b7f46008a5e119ef15c167 - filename: "samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/test/java/org/openapitools/client/model/MySchemaNameCharactersTest.java" diff --git a/samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/CustomTest.java b/samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/CustomTest.java index fc98c24a1286..e23b3707c502 100644 --- a/samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/CustomTest.java +++ b/samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/CustomTest.java @@ -13,8 +13,8 @@ package org.openapitools.client; -import org.junit.Assert; -import org.junit.Test; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; import org.openapitools.client.api.BodyApi; import org.openapitools.client.api.QueryApi; import org.openapitools.client.model.Category; @@ -22,13 +22,11 @@ import java.util.Arrays; -import static org.junit.Assert.assertNotNull; - /** * API tests */ -public class CustomTest { +class CustomTest { private final QueryApi api = new QueryApi(); private final BodyApi bodyApi = new BodyApi(); @@ -40,22 +38,22 @@ public class CustomTest { * */ @Test - public void testEchoBodyPet() { + void testEchoBodyPet() { Pet pet = new Pet().id(12345L).name("Hello World"). photoUrls(Arrays.asList(new String[]{"http://a.com", "http://b.com"})).category(new Category().id(987L).name("new category")); Pet p = bodyApi.testEchoBodyPet(pet); - assertNotNull(p); - Assert.assertEquals("Hello World", p.getName()); - Assert.assertEquals(Long.valueOf(12345L), p.getId()); + Assertions.assertNotNull(p); + Assertions.assertEquals("Hello World", p.getName()); + Assertions.assertEquals(Long.valueOf(12345L), p.getId()); // response is empty body Pet p2 = bodyApi.testEchoBodyPet(null); - Assert.assertNull(p2); + Assertions.assertNull(p2); } @Test - public void testQueryParamsExploded_whenQueryParamIsNull() { - assertNotNull(api.testQueryStyleFormExplodeTrueObject(null)); + void testQueryParamsExploded_whenQueryParamIsNull() { + Assertions.assertNotNull(api.testQueryStyleFormExplodeTrueObject(null)); } } diff --git a/samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/api/AuthApiTest.java b/samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/api/AuthApiTest.java index cafc848c0a8c..ae4127e0b696 100644 --- a/samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/api/AuthApiTest.java +++ b/samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/api/AuthApiTest.java @@ -13,6 +13,7 @@ package org.openapitools.client.api; +import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; import org.springframework.web.client.RestClientException; @@ -61,11 +62,11 @@ void testAuthHttpBearerTest() { String response; api.getApiClient().setBearerToken("fixed token"); response = api.testAuthHttpBearer(); - Assert.assertTrue(response.contains("Authorization: Bearer fixed token")); + Assertions.assertTrue(response.contains("Authorization: Bearer fixed token")); api.getApiClient().setBearerToken(() -> "dynamic token"); response = api.testAuthHttpBearer(); - Assert.assertTrue(response.contains("Authorization: Bearer dynamic token")); + Assertions.assertTrue(response.contains("Authorization: Bearer dynamic token")); } } diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/ApiClientTest.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/ApiClientTest.java index cee7d2db8d57..1cee2c7f930e 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/ApiClientTest.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/ApiClientTest.java @@ -17,7 +17,7 @@ public class ApiClientTest { ApiClient apiClient; JSON json; - @Before + @BeforeEach public void setup() { apiClient = new ApiClient(); json = apiClient.getJSON(); @@ -82,7 +82,7 @@ public void testSelectHeaderContentType() { assertEquals("text/plain", apiClient.selectHeaderContentType(contentTypes)); contentTypes = new String[]{}; - assertEquals("application/json", apiClient.selectHeaderContentType(contentTypes)); + assertNull(apiClient.selectHeaderContentType(contentTypes)); } @Test @@ -342,8 +342,10 @@ public void testNewHttpClient() { /** * Tests the invariant that the HttpClient for the ApiClient must never be null */ - @Test(expected = NullPointerException.class) + @Test public void testNullHttpClient() { - apiClient.setHttpClient(null); + assertThrows(NullPointerException.class, () -> { + apiClient.setHttpClient(null); + }); } } diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/JSONTest.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/JSONTest.java index 192c7e2b132d..af3a1c746984 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/JSONTest.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/JSONTest.java @@ -9,6 +9,9 @@ import java.nio.charset.StandardCharsets; import java.text.DateFormat; import java.text.SimpleDateFormat; +import java.time.ZoneId; +import java.time.ZoneOffset; +import java.time.format.DateTimeFormatter; import java.util.Calendar; import java.util.Date; import java.util.GregorianCalendar; @@ -27,7 +30,7 @@ public class JSONTest { private JSON json = null; private Order order = null; - @Before + @BeforeEach public void setup() { apiClient = new ApiClient(); json = apiClient.getJSON(); @@ -127,7 +130,7 @@ public void testLocalDateTypeAdapter() { public void testDefaultDate() throws Exception { final DateTimeFormatter datetimeFormat = DateTimeFormatter.ISO_OFFSET_DATE_TIME; final String dateStr = "2015-11-07T14:11:05.267Z"; - order.setShipDate(datetimeFormat.parse(dateStr, OffsetDateTime.FROM)); + order.setShipDate(datetimeFormat.parse(dateStr, OffsetDateTime::from)); String str = json.serialize(order); Type type = new TypeToken() { }.getType(); @@ -139,7 +142,7 @@ public void testDefaultDate() throws Exception { public void testCustomDate() throws Exception { final DateTimeFormatter datetimeFormat = DateTimeFormatter.ISO_OFFSET_DATE_TIME.withZone(ZoneId.of("Etc/GMT+2")); final String dateStr = "2015-11-07T14:11:05-02:00"; - order.setShipDate(datetimeFormat.parse(dateStr, OffsetDateTime.FROM)); + order.setShipDate(datetimeFormat.parse(dateStr, OffsetDateTime::from)); String str = json.serialize(order); Type type = new TypeToken() { }.getType(); diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/api/PetApiTest.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/api/PetApiTest.java index 2aa8a1881336..6590a3d91bfd 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/api/PetApiTest.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/api/PetApiTest.java @@ -50,7 +50,7 @@ public class PetApiTest { // In the circle.yml file, /etc/host is configured with an entry to resolve petstore.swagger.io to 127.0.0.1 private static String basePath = "http://petstore.swagger.io:80/v2"; - @Before + @BeforeEach public void setup() { // setup authentication ApiKeyAuth apiKeyAuth = (ApiKeyAuth) api.getApiClient().getAuthentication("api_key"); @@ -206,7 +206,8 @@ public void onDownloadProgress(long bytesRead, long contentLength, boolean done) } while (result.isEmpty()); assertNotNull(exception); assertEquals(404, exception.getCode()); - assertEquals("Not Found", exception.getMessage()); + String pattern = "^Message: Not Found\\RHTTP response code: 404\\RHTTP response body: .*\\RHTTP response headers: .*$"; + assertTrue(exception.getMessage().matches(pattern)); assertEquals("application/json", exception.getResponseHeaders().get("Content-Type").get(0)); api.deletePet(pet.getId(), null); } diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/auth/ApiKeyAuthTest.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/auth/ApiKeyAuthTest.java index ed669e94797b..6975dcc92ecc 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/auth/ApiKeyAuthTest.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/auth/ApiKeyAuthTest.java @@ -5,21 +5,21 @@ import java.util.Map; import java.util.List; +import org.openapitools.client.ApiException; import org.openapitools.client.Pair; import org.junit.jupiter.api.*; -import static org.junit.Assert.*; import static org.junit.jupiter.api.Assertions.*; public class ApiKeyAuthTest { @Test - public void testApplyToParamsInQuery() { + public void testApplyToParamsInQuery() throws ApiException { List queryParams = new ArrayList(); Map headerParams = new HashMap(); Map cookieParams = new HashMap(); ApiKeyAuth auth = new ApiKeyAuth("query", "api_key"); auth.setApiKey("my-api-key"); - auth.applyToParams(queryParams, headerParams, cookieParams); + auth.applyToParams(queryParams, headerParams, cookieParams, null, null, null); assertEquals(1, queryParams.size()); for (Pair queryParam : queryParams) { @@ -32,14 +32,14 @@ public void testApplyToParamsInQuery() { } @Test - public void testApplyToParamsInQueryWithNullValue() { + public void testApplyToParamsInQueryWithNullValue() throws ApiException { List queryParams = new ArrayList(); Map headerParams = new HashMap(); Map cookieParams = new HashMap(); ApiKeyAuth auth = new ApiKeyAuth("query", "api_key"); auth.setApiKey(null); - auth.applyToParams(queryParams, headerParams, cookieParams); + auth.applyToParams(queryParams, headerParams, cookieParams, null, null, null); // no changes to parameters assertEquals(0, queryParams.size()); @@ -48,7 +48,7 @@ public void testApplyToParamsInQueryWithNullValue() { } @Test - public void testApplyToParamsInHeaderWithPrefix() { + public void testApplyToParamsInHeaderWithPrefix() throws ApiException { List queryParams = new ArrayList(); Map headerParams = new HashMap(); Map cookieParams = new HashMap(); @@ -56,7 +56,7 @@ public void testApplyToParamsInHeaderWithPrefix() { ApiKeyAuth auth = new ApiKeyAuth("header", "X-API-TOKEN"); auth.setApiKey("my-api-token"); auth.setApiKeyPrefix("Token"); - auth.applyToParams(queryParams, headerParams, cookieParams); + auth.applyToParams(queryParams, headerParams, cookieParams, null, null, null); // no changes to query or cookie parameters assertEquals(0, queryParams.size()); @@ -66,7 +66,7 @@ public void testApplyToParamsInHeaderWithPrefix() { } @Test - public void testApplyToParamsInHeaderWithNullValue() { + public void testApplyToParamsInHeaderWithNullValue() throws ApiException { List queryParams = new ArrayList(); Map headerParams = new HashMap(); Map cookieParams = new HashMap(); @@ -74,7 +74,7 @@ public void testApplyToParamsInHeaderWithNullValue() { ApiKeyAuth auth = new ApiKeyAuth("header", "X-API-TOKEN"); auth.setApiKey(null); auth.setApiKeyPrefix("Token"); - auth.applyToParams(queryParams, headerParams, cookieParams); + auth.applyToParams(queryParams, headerParams, cookieParams, null, null, null); // no changes to parameters assertEquals(0, queryParams.size()); @@ -83,7 +83,7 @@ public void testApplyToParamsInHeaderWithNullValue() { } @Test - public void testApplyToParamsInCookieWithPrefix() { + public void testApplyToParamsInCookieWithPrefix() throws ApiException { List queryParams = new ArrayList(); Map headerParams = new HashMap(); Map cookieParams = new HashMap(); @@ -91,7 +91,7 @@ public void testApplyToParamsInCookieWithPrefix() { ApiKeyAuth auth = new ApiKeyAuth("cookie", "X-API-TOKEN"); auth.setApiKey("my-api-token"); auth.setApiKeyPrefix("Token"); - auth.applyToParams(queryParams, headerParams, cookieParams); + auth.applyToParams(queryParams, headerParams, cookieParams, null, null, null); // no changes to query or header parameters assertEquals(0, queryParams.size()); @@ -101,7 +101,7 @@ public void testApplyToParamsInCookieWithPrefix() { } @Test - public void testApplyToParamsInCookieWithNullValue() { + public void testApplyToParamsInCookieWithNullValue() throws ApiException { List queryParams = new ArrayList(); Map headerParams = new HashMap(); Map cookieParams = new HashMap(); @@ -109,7 +109,7 @@ public void testApplyToParamsInCookieWithNullValue() { ApiKeyAuth auth = new ApiKeyAuth("cookie", "X-API-TOKEN"); auth.setApiKey(null); auth.setApiKeyPrefix("Token"); - auth.applyToParams(queryParams, headerParams, cookieParams); + auth.applyToParams(queryParams, headerParams, cookieParams, null, null, null); // no changes to parameters assertEquals(0, queryParams.size()); diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/auth/HttpBasicAuthTest.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/auth/HttpBasicAuthTest.java index 154dc61b352c..a09d0b869584 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/auth/HttpBasicAuthTest.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/auth/HttpBasicAuthTest.java @@ -5,6 +5,7 @@ import java.util.Map; import java.util.List; +import org.openapitools.client.ApiException; import org.openapitools.client.Pair; import org.junit.jupiter.api.*; @@ -19,14 +20,14 @@ public void setup() { } @Test - public void testApplyToParams() { + public void testApplyToParams() throws ApiException { List queryParams = new ArrayList(); Map headerParams = new HashMap(); Map cookieParams = new HashMap(); auth.setUsername("my-username"); auth.setPassword("my-password"); - auth.applyToParams(queryParams, headerParams, cookieParams); + auth.applyToParams(queryParams, headerParams, cookieParams, null, null, null); // no changes to query or cookie parameters assertEquals(0, queryParams.size()); @@ -38,7 +39,7 @@ public void testApplyToParams() { // null username should be treated as empty string auth.setUsername(null); - auth.applyToParams(queryParams, headerParams, cookieParams); + auth.applyToParams(queryParams, headerParams, cookieParams, null, null, null); // the string below is base64-encoded result of ":my-password" with the "Basic " prefix expected = "Basic Om15LXBhc3N3b3Jk"; assertEquals(expected, headerParams.get("Authorization")); @@ -46,7 +47,7 @@ public void testApplyToParams() { // null password should be treated as empty string auth.setUsername("my-username"); auth.setPassword(null); - auth.applyToParams(queryParams, headerParams, cookieParams); + auth.applyToParams(queryParams, headerParams, cookieParams, null, null, null); // the string below is base64-encoded result of "my-username:" with the "Basic " prefix expected = "Basic bXktdXNlcm5hbWU6"; assertEquals(expected, headerParams.get("Authorization")); @@ -56,7 +57,7 @@ public void testApplyToParams() { headerParams = new HashMap(); auth.setUsername(null); auth.setPassword(null); - auth.applyToParams(queryParams, headerParams, cookieParams); + auth.applyToParams(queryParams, headerParams, cookieParams, null, null, null); // no changes to parameters assertEquals(0, queryParams.size()); assertEquals(0, headerParams.size()); diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnlyTest.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnlyTest.java index dc2a20f163d4..df7aa2de613e 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnlyTest.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnlyTest.java @@ -19,13 +19,12 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.math.BigDecimal; import java.util.ArrayList; import java.util.List; +import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Assertions.*; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; @@ -67,7 +66,7 @@ public void arrayArrayNumberTest() { model2.setArrayArrayNumber(new ArrayList>()); model2.getArrayArrayNumber().add(arrayArrayNumber2); - Assert.assertTrue(model2.equals(model)); + Assertions.assertTrue(model2.equals(model)); } }