[Java][Client] Fix Gradle and SBT builds for REST Assured generator (#5990)

* Fix Gradle and SBT builds for Java REST Assured generator

* Add missing jackson-databind-nullable dependency to SBT build

* Update rest-assured sample

* Add sample for Java client with REST Assured and Jackson

* Add new REST Assured sample as Maven sub-module
This commit is contained in:
Jochen Schalanda
2020-04-22 05:19:17 +02:00
committed by GitHub
parent 12512cf720
commit 40be1c311e
240 changed files with 23146 additions and 125 deletions

View File

@@ -107,7 +107,7 @@ ext {
dependencies {
compile "io.swagger:swagger-annotations:$swagger_annotations_version"
compile "com.google.code.findbugs:jsr305:3.0.2"
compile "io.rest-assured:scala-support:$rest_assured_version"
compile "io.rest-assured:rest-assured:$rest_assured_version"
compile "io.gsonfire:gson-fire:$gson_fire_version"
compile 'com.google.code.gson:gson:$gson_version'
compile "org.threeten:threetenbp:$threetenbp_version"

View File

@@ -10,13 +10,15 @@ lazy val root = (project in file(".")).
resolvers += Resolver.mavenLocal,
libraryDependencies ++= Seq(
"io.swagger" % "swagger-annotations" % "1.5.21",
"io.rest-assured" % "rest-assured" % "4.3.0",
"io.rest-assured" % "scala-support" % "4.3.0",
"com.google.code.findbugs" % "jsr305" % "3.0.2",
"com.google.code.gson" % "gson" % "2.8.6",
"io.gsonfire" % "gson-fire" % "1.8.4" % "compile",
"org.threeten" % "threetenbp" % "1.4.3" % "compile",
"com.squareup.okio" % "okio" % "1.17.5" % "compile",
"javax.validation" % "validation-api" % "2.0.1.Final" % "compile",
"org.hibernate" % "hibernate-validator" "6.0.19.Final" % "compile",
"org.hibernate" % "hibernate-validator" % "6.0.19.Final" % "compile",
"junit" % "junit" % "4.13" % "test",
"com.novocode" % "junit-interface" % "0.10" % "test"
)

View File

@@ -1,9 +0,0 @@
# AnimalFarm
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------

View File

@@ -1,9 +0,0 @@
# StringBooleanMap
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------

View File

@@ -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).
@@ -41,7 +41,8 @@ public class AnotherFakeApiTest {
@Before
public void createApi() {
api = ApiClient.api(ApiClient.Config.apiConfig().reqSpecSupplier(
() -> new RequestSpecBuilder().setConfig(config().objectMapperConfig(objectMapperConfig().defaultObjectMapper(gson())))
() -> new RequestSpecBuilder()
.setConfig(config().objectMapperConfig(objectMapperConfig().defaultObjectMapper(gson())))
.addFilter(new ErrorLoggingFilter())
.setBaseUri("http://petstore.swagger.io:80/v2"))).anotherFake();
}
@@ -51,9 +52,9 @@ public class AnotherFakeApiTest {
*/
@Test
public void shouldSee200AfterCall123testSpecialTags() {
Client client = null;
Client body = null;
api.call123testSpecialTags()
.body(client).execute(r -> r.prettyPeek());
.body(body).execute(r -> r.prettyPeek());
// TODO: test validations
}

View File

@@ -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).
@@ -21,6 +21,7 @@ import org.threeten.bp.LocalDate;
import org.threeten.bp.OffsetDateTime;
import org.openapitools.client.model.OuterComposite;
import org.openapitools.client.model.User;
import org.openapitools.client.model.XmlItem;
import org.openapitools.client.ApiClient;
import org.openapitools.client.api.FakeApi;
import io.restassured.builder.RequestSpecBuilder;
@@ -48,11 +49,24 @@ public class FakeApiTest {
@Before
public void createApi() {
api = ApiClient.api(ApiClient.Config.apiConfig().reqSpecSupplier(
() -> new RequestSpecBuilder().setConfig(config().objectMapperConfig(objectMapperConfig().defaultObjectMapper(gson())))
() -> new RequestSpecBuilder()
.setConfig(config().objectMapperConfig(objectMapperConfig().defaultObjectMapper(gson())))
.addFilter(new ErrorLoggingFilter())
.setBaseUri("http://petstore.swagger.io:80/v2"))).fake();
}
/**
* successful operation
*/
@Test
public void shouldSee200AfterCreateXmlItem() {
XmlItem xmlItem = null;
api.createXmlItem()
.body(xmlItem).execute(r -> r.prettyPeek());
// TODO: test validations
}
/**
* Output boolean
*/
@@ -69,7 +83,7 @@ public class FakeApiTest {
*/
@Test
public void shouldSee200AfterFakeOuterCompositeSerialize() {
OuterComposite outerComposite = null;
OuterComposite body = null;
api.fakeOuterCompositeSerialize().execute(r -> r.prettyPeek());
// TODO: test validations
}
@@ -102,9 +116,9 @@ public class FakeApiTest {
*/
@Test
public void shouldSee200AfterTestBodyWithFileSchema() {
FileSchemaTestClass fileSchemaTestClass = null;
FileSchemaTestClass body = null;
api.testBodyWithFileSchema()
.body(fileSchemaTestClass).execute(r -> r.prettyPeek());
.body(body).execute(r -> r.prettyPeek());
// TODO: test validations
}
@@ -115,10 +129,10 @@ public class FakeApiTest {
@Test
public void shouldSee200AfterTestBodyWithQueryParams() {
String query = null;
User user = null;
User body = null;
api.testBodyWithQueryParams()
.queryQuery(query)
.body(user).execute(r -> r.prettyPeek());
.body(body).execute(r -> r.prettyPeek());
// TODO: test validations
}
@@ -128,9 +142,9 @@ public class FakeApiTest {
*/
@Test
public void shouldSee200AfterTestClientModel() {
Client client = null;
Client body = null;
api.testClientModel()
.body(client).execute(r -> r.prettyPeek());
.body(body).execute(r -> r.prettyPeek());
// TODO: test validations
}
@@ -249,9 +263,9 @@ public class FakeApiTest {
*/
@Test
public void shouldSee200AfterTestInlineAdditionalProperties() {
Map<String, String> requestBody = null;
Map<String, String> param = null;
api.testInlineAdditionalProperties()
.body(requestBody).execute(r -> r.prettyPeek());
.body(param).execute(r -> r.prettyPeek());
// TODO: test validations
}
@@ -269,4 +283,24 @@ public class FakeApiTest {
// TODO: test validations
}
/**
* Success
*/
@Test
public void shouldSee200AfterTestQueryParameterCollectionFormat() {
List<String> pipe = null;
List<String> ioutil = null;
List<String> http = null;
List<String> url = null;
List<String> context = null;
api.testQueryParameterCollectionFormat()
.pipeQuery(pipe)
.ioutilQuery(ioutil)
.httpQuery(http)
.urlQuery(url)
.contextQuery(context).execute(r -> r.prettyPeek());
// TODO: test validations
}
}

View File

@@ -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).
@@ -41,7 +41,8 @@ public class FakeClassnameTags123ApiTest {
@Before
public void createApi() {
api = ApiClient.api(ApiClient.Config.apiConfig().reqSpecSupplier(
() -> new RequestSpecBuilder().setConfig(config().objectMapperConfig(objectMapperConfig().defaultObjectMapper(gson())))
() -> new RequestSpecBuilder()
.setConfig(config().objectMapperConfig(objectMapperConfig().defaultObjectMapper(gson())))
.addFilter(new ErrorLoggingFilter())
.setBaseUri("http://petstore.swagger.io:80/v2"))).fakeClassnameTags123();
}
@@ -51,9 +52,9 @@ public class FakeClassnameTags123ApiTest {
*/
@Test
public void shouldSee200AfterTestClassname() {
Client client = null;
Client body = null;
api.testClassname()
.body(client).execute(r -> r.prettyPeek());
.body(body).execute(r -> r.prettyPeek());
// TODO: test validations
}

View File

@@ -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,8 +14,6 @@
package org.openapitools.client.api;
import java.io.File;
import io.restassured.response.ResponseBody;
import org.openapitools.client.model.ModelApiResponse;
import org.openapitools.client.model.Pet;
import org.openapitools.client.ApiClient;
@@ -45,23 +43,47 @@ public class PetApiTest {
@Before
public void createApi() {
api = ApiClient.api(ApiClient.Config.apiConfig().reqSpecSupplier(
() -> new RequestSpecBuilder().setConfig(config().objectMapperConfig(objectMapperConfig().defaultObjectMapper(gson())))
() -> new RequestSpecBuilder()
.setConfig(config().objectMapperConfig(objectMapperConfig().defaultObjectMapper(gson())))
.addFilter(new ErrorLoggingFilter())
.setBaseUri("http://petstore.swagger.io:80/v2"))).pet();
}
/**
* successful operation
*/
@Test
public void shouldSee200AfterAddPet() {
Pet body = null;
api.addPet()
.body(body).execute(r -> r.prettyPeek());
// TODO: test validations
}
/**
* Invalid input
*/
@Test
public void shouldSee405AfterAddPet() {
Pet pet = null;
Pet body = null;
api.addPet()
.body(pet).execute(r -> r.prettyPeek());
.body(body).execute(r -> r.prettyPeek());
// TODO: test validations
}
/**
* successful operation
*/
@Test
public void shouldSee200AfterDeletePet() {
Long petId = null;
String apiKey = null;
api.deletePet()
.petIdPath(petId).execute(r -> r.prettyPeek());
// TODO: test validations
}
/**
* Invalid pet value
*/
@@ -155,14 +177,25 @@ public class PetApiTest {
}
/**
* successful operation
*/
@Test
public void shouldSee200AfterUpdatePet() {
Pet body = null;
api.updatePet()
.body(body).execute(r -> r.prettyPeek());
// TODO: test validations
}
/**
* Invalid ID supplied
*/
@Test
public void shouldSee400AfterUpdatePet() {
Pet pet = null;
Pet body = null;
api.updatePet()
.body(pet).execute(r -> r.prettyPeek());
.body(body).execute(r -> r.prettyPeek());
// TODO: test validations
}
@@ -171,9 +204,9 @@ public class PetApiTest {
*/
@Test
public void shouldSee404AfterUpdatePet() {
Pet pet = null;
Pet body = null;
api.updatePet()
.body(pet).execute(r -> r.prettyPeek());
.body(body).execute(r -> r.prettyPeek());
// TODO: test validations
}
@@ -182,9 +215,9 @@ public class PetApiTest {
*/
@Test
public void shouldSee405AfterUpdatePet() {
Pet pet = null;
Pet body = null;
api.updatePet()
.body(pet).execute(r -> r.prettyPeek());
.body(body).execute(r -> r.prettyPeek());
// TODO: test validations
}
@@ -216,4 +249,19 @@ public class PetApiTest {
// TODO: test validations
}
/**
* successful operation
*/
@Test
public void shouldSee200AfterUploadFileWithRequiredFile() {
Long petId = null;
File requiredFile = null;
String additionalMetadata = null;
api.uploadFileWithRequiredFile()
.petIdPath(petId)
.requiredFileMultiPart(requiredFile).execute(r -> r.prettyPeek());
// TODO: test validations
}
}

View File

@@ -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).
@@ -41,7 +41,8 @@ public class StoreApiTest {
@Before
public void createApi() {
api = ApiClient.api(ApiClient.Config.apiConfig().reqSpecSupplier(
() -> new RequestSpecBuilder().setConfig(config().objectMapperConfig(objectMapperConfig().defaultObjectMapper(gson())))
() -> new RequestSpecBuilder()
.setConfig(config().objectMapperConfig(objectMapperConfig().defaultObjectMapper(gson())))
.addFilter(new ErrorLoggingFilter())
.setBaseUri("http://petstore.swagger.io:80/v2"))).store();
}
@@ -118,9 +119,9 @@ public class StoreApiTest {
*/
@Test
public void shouldSee200AfterPlaceOrder() {
Order order = null;
Order body = null;
api.placeOrder()
.body(order).execute(r -> r.prettyPeek());
.body(body).execute(r -> r.prettyPeek());
// TODO: test validations
}
@@ -129,9 +130,9 @@ public class StoreApiTest {
*/
@Test
public void shouldSee400AfterPlaceOrder() {
Order order = null;
Order body = null;
api.placeOrder()
.body(order).execute(r -> r.prettyPeek());
.body(body).execute(r -> r.prettyPeek());
// TODO: test validations
}

View File

@@ -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).
@@ -41,7 +41,8 @@ public class UserApiTest {
@Before
public void createApi() {
api = ApiClient.api(ApiClient.Config.apiConfig().reqSpecSupplier(
() -> new RequestSpecBuilder().setConfig(config().objectMapperConfig(objectMapperConfig().defaultObjectMapper(gson())))
() -> new RequestSpecBuilder()
.setConfig(config().objectMapperConfig(objectMapperConfig().defaultObjectMapper(gson())))
.addFilter(new ErrorLoggingFilter())
.setBaseUri("http://petstore.swagger.io:80/v2"))).user();
}
@@ -51,9 +52,9 @@ public class UserApiTest {
*/
@Test
public void shouldSee0AfterCreateUser() {
User user = null;
User body = null;
api.createUser()
.body(user).execute(r -> r.prettyPeek());
.body(body).execute(r -> r.prettyPeek());
// TODO: test validations
}
@@ -63,9 +64,9 @@ public class UserApiTest {
*/
@Test
public void shouldSee0AfterCreateUsersWithArrayInput() {
List<User> user = null;
List<User> body = null;
api.createUsersWithArrayInput()
.body(user).execute(r -> r.prettyPeek());
.body(body).execute(r -> r.prettyPeek());
// TODO: test validations
}
@@ -75,9 +76,9 @@ public class UserApiTest {
*/
@Test
public void shouldSee0AfterCreateUsersWithListInput() {
List<User> user = null;
List<User> body = null;
api.createUsersWithListInput()
.body(user).execute(r -> r.prettyPeek());
.body(body).execute(r -> r.prettyPeek());
// TODO: test validations
}
@@ -182,10 +183,10 @@ public class UserApiTest {
@Test
public void shouldSee400AfterUpdateUser() {
String username = null;
User user = null;
User body = null;
api.updateUser()
.usernamePath(username)
.body(user).execute(r -> r.prettyPeek());
.body(body).execute(r -> r.prettyPeek());
// TODO: test validations
}
@@ -195,10 +196,10 @@ public class UserApiTest {
@Test
public void shouldSee404AfterUpdateUser() {
String username = null;
User user = null;
User body = null;
api.updateUser()
.usernamePath(username)
.body(user).execute(r -> r.prettyPeek());
.body(body).execute(r -> r.prettyPeek());
// TODO: test validations
}

View File

@@ -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).

View File

@@ -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).

View File

@@ -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).

View File

@@ -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).
@@ -21,6 +21,7 @@ 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.List;
import java.util.Map;
@@ -44,19 +45,91 @@ public class AdditionalPropertiesClassTest {
}
/**
* Test the property 'mapProperty'
* Test the property 'mapString'
*/
@Test
public void mapPropertyTest() {
// TODO: test mapProperty
public void mapStringTest() {
// TODO: test mapString
}
/**
* Test the property 'mapOfMapProperty'
* Test the property 'mapNumber'
*/
@Test
public void mapOfMapPropertyTest() {
// TODO: test mapOfMapProperty
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
public void anytype2Test() {
// TODO: test anytype2
}
/**
* Test the property 'anytype3'
*/
@Test
public void anytype3Test() {
// TODO: test anytype3
}
}

View File

@@ -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).

View File

@@ -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).

View File

@@ -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).

View File

@@ -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).

View File

@@ -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).

View File

@@ -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).

View File

@@ -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).

View File

@@ -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).

View File

@@ -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).

View File

@@ -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).
@@ -22,6 +22,7 @@ import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import org.openapitools.client.model.Animal;
import org.openapitools.client.model.CatAllOf;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;

View File

@@ -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).

View File

@@ -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).

View File

@@ -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).

View File

@@ -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).
@@ -22,6 +22,7 @@ import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import org.openapitools.client.model.Animal;
import org.openapitools.client.model.DogAllOf;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;

View File

@@ -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).

View File

@@ -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).

View File

@@ -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).

View File

@@ -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).

View File

@@ -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).
@@ -149,4 +149,12 @@ public class FormatTestTest {
// TODO: test password
}
/**
* Test the property 'bigDecimal'
*/
@Test
public void bigDecimalTest() {
// TODO: test bigDecimal
}
}

View File

@@ -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).

View File

@@ -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).

View File

@@ -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).

View File

@@ -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).

View File

@@ -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).

View File

@@ -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).

View File

@@ -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).

View File

@@ -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).

View File

@@ -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).

View File

@@ -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).

View File

@@ -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).

View File

@@ -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).

View File

@@ -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).

View File

@@ -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).

View File

@@ -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).

View File

@@ -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).

View File

@@ -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).
@@ -59,6 +59,14 @@ public class TypeHolderExampleTest {
// TODO: test numberItem
}
/**
* Test the property 'floatItem'
*/
@Test
public void floatItemTest() {
// TODO: test floatItem
}
/**
* Test the property 'integerItem'
*/

View File

@@ -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).

View File

@@ -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).
@@ -228,51 +228,51 @@ public class XmlItemTest {
}
/**
* Test the property 'prefixNamespaceString'
* Test the property 'prefixNsString'
*/
@Test
public void prefixNamespaceStringTest() {
// TODO: test prefixNamespaceString
public void prefixNsStringTest() {
// TODO: test prefixNsString
}
/**
* Test the property 'prefixNamespaceNumber'
* Test the property 'prefixNsNumber'
*/
@Test
public void prefixNamespaceNumberTest() {
// TODO: test prefixNamespaceNumber
public void prefixNsNumberTest() {
// TODO: test prefixNsNumber
}
/**
* Test the property 'prefixNamespaceInteger'
* Test the property 'prefixNsInteger'
*/
@Test
public void prefixNamespaceIntegerTest() {
// TODO: test prefixNamespaceInteger
public void prefixNsIntegerTest() {
// TODO: test prefixNsInteger
}
/**
* Test the property 'prefixNamespaceBoolean'
* Test the property 'prefixNsBoolean'
*/
@Test
public void prefixNamespaceBooleanTest() {
// TODO: test prefixNamespaceBoolean
public void prefixNsBooleanTest() {
// TODO: test prefixNsBoolean
}
/**
* Test the property 'prefixNamespaceArray'
* Test the property 'prefixNsArray'
*/
@Test
public void prefixNamespaceArrayTest() {
// TODO: test prefixNamespaceArray
public void prefixNsArrayTest() {
// TODO: test prefixNsArray
}
/**
* Test the property 'prefixNamespaceWrappedArray'
* Test the property 'prefixNsWrappedArray'
*/
@Test
public void prefixNamespaceWrappedArrayTest() {
// TODO: test prefixNamespaceWrappedArray
public void prefixNsWrappedArrayTest() {
// TODO: test prefixNsWrappedArray
}
}