From f10bc04e5cb36f7d3aba72796594a6249c1c4e30 Mon Sep 17 00:00:00 2001 From: William Cheng Date: Thu, 23 May 2024 15:36:39 +0800 Subject: [PATCH] update tests --- .../libraries/webclient/api_test.mustache | 5 +- .../client/api/ResourceApiTest.java | 3 +- .../client/api/AnotherFakeApiTest.java | 5 +- .../client/api/DefaultApiTest.java | 3 +- .../openapitools/client/api/FakeApiTest.java | 178 ++++++++++-------- .../api/FakeClassnameTags123ApiTest.java | 5 +- .../openapitools/client/api/PetApiTest.java | 59 +++--- .../openapitools/client/api/StoreApiTest.java | 18 +- .../openapitools/client/api/UserApiTest.java | 42 +++-- .../client/api/DefaultApiTest.java | 3 +- .../.openapi-generator-ignore | 1 - .../client/api/AnotherFakeApiTest.java | 5 +- .../client/api/DefaultApiTest.java | 3 +- .../openapitools/client/api/FakeApiTest.java | 178 ++++++++++-------- .../api/FakeClassnameTags123ApiTest.java | 5 +- .../openapitools/client/api/PetApiTest.java | 59 +++--- .../openapitools/client/api/StoreApiTest.java | 18 +- .../openapitools/client/api/UserApiTest.java | 42 +++-- .../webclient/docs/InlineResponseDefault.md | 13 -- .../client/api/AnotherFakeApiTest.java | 5 +- .../client/api/DefaultApiTest.java | 3 +- .../openapitools/client/api/FakeApiTest.java | 178 ++++++++++-------- .../api/FakeClassnameTags123ApiTest.java | 5 +- .../openapitools/client/api/PetApiTest.java | 59 +++--- .../openapitools/client/api/StoreApiTest.java | 18 +- .../openapitools/client/api/UserApiTest.java | 42 +++-- 26 files changed, 541 insertions(+), 414 deletions(-) delete mode 100644 samples/client/petstore/java/webclient/docs/InlineResponseDefault.md diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/webclient/api_test.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/webclient/api_test.mustache index 4814042ab204..c5d568617fc6 100644 --- a/modules/openapi-generator/src/main/resources/Java/libraries/webclient/api_test.mustache +++ b/modules/openapi-generator/src/main/resources/Java/libraries/webclient/api_test.mustache @@ -35,10 +35,11 @@ public class {{classname}}Test { */ @Test public void {{operationId}}Test() { + // uncomment below to test the function {{#allParams}} - {{#isFile}}{{#useAbstractionForFiles}}{{#collectionFormat}}java.util.Collection{{/collectionFormat}}{{^collectionFormat}}org.springframework.core.io.AbstractResource{{/collectionFormat}}{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{dataType}}}{{/useAbstractionForFiles}}{{/isFile}}{{^isFile}}{{{dataType}}}{{/isFile}} {{paramName}} = null; + //{{#isFile}}{{#useAbstractionForFiles}}{{#collectionFormat}}java.util.Collection{{/collectionFormat}}{{^collectionFormat}}org.springframework.core.io.AbstractResource{{/collectionFormat}}{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{dataType}}}{{/useAbstractionForFiles}}{{/isFile}}{{^isFile}}{{{dataType}}}{{/isFile}} {{paramName}} = null; {{/allParams}} - {{#returnType}}{{#isResponseFile}}{{#useAbstractionForFiles}}org.springframework.core.io.Resource{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{.}}}{{/useAbstractionForFiles}}{{/isResponseFile}}{{^isResponseFile}}{{{.}}}{{/isResponseFile}} response = {{/returnType}}api.{{operationId}}({{#allParams}}{{paramName}}{{^-last}}, {{/-last}}{{/allParams}}){{^vendorExtensions.x-webclient-blocking}}{{#vendorExtensions.x-webclient-return-except-list-of-string}}{{#uniqueItems}}.collect(Collectors.toSet()){{/uniqueItems}}{{^uniqueItems}}.collectList(){{/uniqueItems}}.block(){{/vendorExtensions.x-webclient-return-except-list-of-string}}{{^vendorExtensions.x-webclient-return-except-list-of-string}}.block(){{/vendorExtensions.x-webclient-return-except-list-of-string}}{{/vendorExtensions.x-webclient-blocking}}; + //{{#returnType}}{{#isResponseFile}}{{#useAbstractionForFiles}}org.springframework.core.io.Resource{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{.}}}{{/useAbstractionForFiles}}{{/isResponseFile}}{{^isResponseFile}}{{{.}}}{{/isResponseFile}} response = {{/returnType}}api.{{operationId}}({{#allParams}}{{paramName}}{{^-last}}, {{/-last}}{{/allParams}}){{^vendorExtensions.x-webclient-blocking}}{{#vendorExtensions.x-webclient-return-except-list-of-string}}{{#uniqueItems}}.collect(Collectors.toSet()){{/uniqueItems}}{{^uniqueItems}}.collectList(){{/uniqueItems}}.block(){{/vendorExtensions.x-webclient-return-except-list-of-string}}{{^vendorExtensions.x-webclient-return-except-list-of-string}}.block(){{/vendorExtensions.x-webclient-return-except-list-of-string}}{{/vendorExtensions.x-webclient-blocking}}; // TODO: test validations } diff --git a/samples/client/others/java/webclient-useAbstractionForFiles/src/test/java/org/openapitools/client/api/ResourceApiTest.java b/samples/client/others/java/webclient-useAbstractionForFiles/src/test/java/org/openapitools/client/api/ResourceApiTest.java index 57887ab87564..d55f03028677 100644 --- a/samples/client/others/java/webclient-useAbstractionForFiles/src/test/java/org/openapitools/client/api/ResourceApiTest.java +++ b/samples/client/others/java/webclient-useAbstractionForFiles/src/test/java/org/openapitools/client/api/ResourceApiTest.java @@ -40,7 +40,8 @@ public class ResourceApiTest { */ @Test public void resourceInResponseTest() { - org.springframework.core.io.Resource response = api.resourceInResponse().block(); + // uncomment below to test the function + //org.springframework.core.io.Resource response = api.resourceInResponse().block(); // TODO: test validations } diff --git a/samples/client/petstore/java/webclient-jakarta/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java b/samples/client/petstore/java/webclient-jakarta/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java index 7304eaed38a2..84aa307bcf36 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java +++ b/samples/client/petstore/java/webclient-jakarta/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java @@ -40,8 +40,9 @@ public class AnotherFakeApiTest { */ @Test public void call123testSpecialTagsTest() { - Client client = null; - Client response = api.call123testSpecialTags(client).block(); + // uncomment below to test the function + //Client client = null; + //Client response = api.call123testSpecialTags(client).block(); // TODO: test validations } diff --git a/samples/client/petstore/java/webclient-jakarta/src/test/java/org/openapitools/client/api/DefaultApiTest.java b/samples/client/petstore/java/webclient-jakarta/src/test/java/org/openapitools/client/api/DefaultApiTest.java index b51395ac065a..2b366bb36a0c 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/test/java/org/openapitools/client/api/DefaultApiTest.java +++ b/samples/client/petstore/java/webclient-jakarta/src/test/java/org/openapitools/client/api/DefaultApiTest.java @@ -40,7 +40,8 @@ public class DefaultApiTest { */ @Test public void fooGetTest() { - FooGetDefaultResponse response = api.fooGet().block(); + // uncomment below to test the function + //FooGetDefaultResponse response = api.fooGet().block(); // TODO: test validations } diff --git a/samples/client/petstore/java/webclient-jakarta/src/test/java/org/openapitools/client/api/FakeApiTest.java b/samples/client/petstore/java/webclient-jakarta/src/test/java/org/openapitools/client/api/FakeApiTest.java index c9a022f3b106..a80ad43c5c36 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/test/java/org/openapitools/client/api/FakeApiTest.java +++ b/samples/client/petstore/java/webclient-jakarta/src/test/java/org/openapitools/client/api/FakeApiTest.java @@ -54,7 +54,8 @@ public class FakeApiTest { */ @Test public void fakeBigDecimalMapTest() { - FakeBigDecimalMap200Response response = api.fakeBigDecimalMap().block(); + // uncomment below to test the function + //FakeBigDecimalMap200Response response = api.fakeBigDecimalMap().block(); // TODO: test validations } @@ -66,7 +67,8 @@ public void fakeBigDecimalMapTest() { */ @Test public void fakeHealthGetTest() { - HealthCheckResult response = api.fakeHealthGet().block(); + // uncomment below to test the function + //HealthCheckResult response = api.fakeHealthGet().block(); // TODO: test validations } @@ -78,10 +80,11 @@ public void fakeHealthGetTest() { */ @Test public void fakeHttpSignatureTestTest() { - Pet pet = null; - String query1 = null; - String header1 = null; - api.fakeHttpSignatureTest(pet, query1, header1).block(); + // uncomment below to test the function + //Pet pet = null; + //String query1 = null; + //String header1 = null; + //api.fakeHttpSignatureTest(pet, query1, header1).block(); // TODO: test validations } @@ -93,8 +96,9 @@ public void fakeHttpSignatureTestTest() { */ @Test public void fakeOuterBooleanSerializeTest() { - Boolean body = null; - Boolean response = api.fakeOuterBooleanSerialize(body).block(); + // uncomment below to test the function + //Boolean body = null; + //Boolean response = api.fakeOuterBooleanSerialize(body).block(); // TODO: test validations } @@ -106,8 +110,9 @@ public void fakeOuterBooleanSerializeTest() { */ @Test public void fakeOuterCompositeSerializeTest() { - OuterComposite outerComposite = null; - OuterComposite response = api.fakeOuterCompositeSerialize(outerComposite).block(); + // uncomment below to test the function + //OuterComposite outerComposite = null; + //OuterComposite response = api.fakeOuterCompositeSerialize(outerComposite).block(); // TODO: test validations } @@ -119,8 +124,9 @@ public void fakeOuterCompositeSerializeTest() { */ @Test public void fakeOuterNumberSerializeTest() { - BigDecimal body = null; - BigDecimal response = api.fakeOuterNumberSerialize(body).block(); + // uncomment below to test the function + //BigDecimal body = null; + //BigDecimal response = api.fakeOuterNumberSerialize(body).block(); // TODO: test validations } @@ -132,8 +138,9 @@ public void fakeOuterNumberSerializeTest() { */ @Test public void fakeOuterStringSerializeTest() { - String body = null; - String response = api.fakeOuterStringSerialize(body).block(); + // uncomment below to test the function + //String body = null; + //String response = api.fakeOuterStringSerialize(body).block(); // TODO: test validations } @@ -145,8 +152,9 @@ public void fakeOuterStringSerializeTest() { */ @Test public void fakePropertyEnumIntegerSerializeTest() { - OuterObjectWithEnumProperty outerObjectWithEnumProperty = null; - OuterObjectWithEnumProperty response = api.fakePropertyEnumIntegerSerialize(outerObjectWithEnumProperty).block(); + // uncomment below to test the function + //OuterObjectWithEnumProperty outerObjectWithEnumProperty = null; + //OuterObjectWithEnumProperty response = api.fakePropertyEnumIntegerSerialize(outerObjectWithEnumProperty).block(); // TODO: test validations } @@ -158,8 +166,9 @@ public void fakePropertyEnumIntegerSerializeTest() { */ @Test public void testAdditionalPropertiesReferenceTest() { - Map requestBody = null; - api.testAdditionalPropertiesReference(requestBody).block(); + // uncomment below to test the function + //Map requestBody = null; + //api.testAdditionalPropertiesReference(requestBody).block(); // TODO: test validations } @@ -171,8 +180,9 @@ public void testAdditionalPropertiesReferenceTest() { */ @Test public void testBodyWithBinaryTest() { - File body = null; - api.testBodyWithBinary(body).block(); + // uncomment below to test the function + //File body = null; + //api.testBodyWithBinary(body).block(); // TODO: test validations } @@ -184,8 +194,9 @@ public void testBodyWithBinaryTest() { */ @Test public void testBodyWithFileSchemaTest() { - FileSchemaTestClass fileSchemaTestClass = null; - api.testBodyWithFileSchema(fileSchemaTestClass).block(); + // uncomment below to test the function + //FileSchemaTestClass fileSchemaTestClass = null; + //api.testBodyWithFileSchema(fileSchemaTestClass).block(); // TODO: test validations } @@ -197,9 +208,10 @@ public void testBodyWithFileSchemaTest() { */ @Test public void testBodyWithQueryParamsTest() { - String query = null; - User user = null; - api.testBodyWithQueryParams(query, user).block(); + // uncomment below to test the function + //String query = null; + //User user = null; + //api.testBodyWithQueryParams(query, user).block(); // TODO: test validations } @@ -211,8 +223,9 @@ public void testBodyWithQueryParamsTest() { */ @Test public void testClientModelTest() { - Client client = null; - Client response = api.testClientModel(client).block(); + // uncomment below to test the function + //Client client = null; + //Client response = api.testClientModel(client).block(); // TODO: test validations } @@ -224,21 +237,22 @@ public void testClientModelTest() { */ @Test public void testEndpointParametersTest() { - 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).block(); + // uncomment below to test the function + //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).block(); // TODO: test validations } @@ -250,16 +264,17 @@ public void testEndpointParametersTest() { */ @Test public void testEnumParametersTest() { - List enumHeaderStringArray = null; - String enumHeaderString = null; - List enumQueryStringArray = null; - String enumQueryString = null; - Integer enumQueryInteger = null; - Double enumQueryDouble = null; - List enumQueryModelArray = null; - List enumFormStringArray = null; - String enumFormString = null; - api.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumQueryModelArray, enumFormStringArray, enumFormString).block(); + // uncomment below to test the function + //List enumHeaderStringArray = null; + //String enumHeaderString = null; + //List enumQueryStringArray = null; + //String enumQueryString = null; + //Integer enumQueryInteger = null; + //Double enumQueryDouble = null; + //List enumQueryModelArray = null; + //List enumFormStringArray = null; + //String enumFormString = null; + //api.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumQueryModelArray, enumFormStringArray, enumFormString).block(); // TODO: test validations } @@ -271,13 +286,14 @@ public void testEnumParametersTest() { */ @Test public void testGroupParametersTest() { - 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(); + // uncomment below to test the function + //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(); // TODO: test validations } @@ -289,8 +305,9 @@ public void testGroupParametersTest() { */ @Test public void testInlineAdditionalPropertiesTest() { - Map requestBody = null; - api.testInlineAdditionalProperties(requestBody).block(); + // uncomment below to test the function + //Map requestBody = null; + //api.testInlineAdditionalProperties(requestBody).block(); // TODO: test validations } @@ -302,8 +319,9 @@ public void testInlineAdditionalPropertiesTest() { */ @Test public void testInlineFreeformAdditionalPropertiesTest() { - TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest = null; - api.testInlineFreeformAdditionalProperties(testInlineFreeformAdditionalPropertiesRequest).block(); + // uncomment below to test the function + //TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest = null; + //api.testInlineFreeformAdditionalProperties(testInlineFreeformAdditionalPropertiesRequest).block(); // TODO: test validations } @@ -315,9 +333,10 @@ public void testInlineFreeformAdditionalPropertiesTest() { */ @Test public void testJsonFormDataTest() { - String param = null; - String param2 = null; - api.testJsonFormData(param, param2).block(); + // uncomment below to test the function + //String param = null; + //String param2 = null; + //api.testJsonFormData(param, param2).block(); // TODO: test validations } @@ -329,8 +348,9 @@ public void testJsonFormDataTest() { */ @Test public void testNullableTest() { - ChildWithNullable childWithNullable = null; - api.testNullable(childWithNullable).block(); + // uncomment below to test the function + //ChildWithNullable childWithNullable = null; + //api.testNullable(childWithNullable).block(); // TODO: test validations } @@ -342,14 +362,15 @@ public void testNullableTest() { */ @Test public void testQueryParameterCollectionFormatTest() { - List pipe = null; - List ioutil = null; - List http = null; - List url = null; - List context = null; - String allowEmpty = null; - Map language = null; - api.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, allowEmpty, language).block(); + // uncomment below to test the function + //List pipe = null; + //List ioutil = null; + //List http = null; + //List url = null; + //List context = null; + //String allowEmpty = null; + //Map language = null; + //api.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, allowEmpty, language).block(); // TODO: test validations } @@ -361,8 +382,9 @@ public void testQueryParameterCollectionFormatTest() { */ @Test public void testStringMapReferenceTest() { - Map requestBody = null; - api.testStringMapReference(requestBody).block(); + // uncomment below to test the function + //Map requestBody = null; + //api.testStringMapReference(requestBody).block(); // TODO: test validations } diff --git a/samples/client/petstore/java/webclient-jakarta/src/test/java/org/openapitools/client/api/FakeClassnameTags123ApiTest.java b/samples/client/petstore/java/webclient-jakarta/src/test/java/org/openapitools/client/api/FakeClassnameTags123ApiTest.java index 60b2fcaee762..a3654c1f1d0e 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/test/java/org/openapitools/client/api/FakeClassnameTags123ApiTest.java +++ b/samples/client/petstore/java/webclient-jakarta/src/test/java/org/openapitools/client/api/FakeClassnameTags123ApiTest.java @@ -40,8 +40,9 @@ public class FakeClassnameTags123ApiTest { */ @Test public void testClassnameTest() { - Client client = null; - Client response = api.testClassname(client).block(); + // uncomment below to test the function + //Client client = null; + //Client response = api.testClassname(client).block(); // TODO: test validations } diff --git a/samples/client/petstore/java/webclient-jakarta/src/test/java/org/openapitools/client/api/PetApiTest.java b/samples/client/petstore/java/webclient-jakarta/src/test/java/org/openapitools/client/api/PetApiTest.java index 173dc5293a40..d79731eb9434 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/test/java/org/openapitools/client/api/PetApiTest.java +++ b/samples/client/petstore/java/webclient-jakarta/src/test/java/org/openapitools/client/api/PetApiTest.java @@ -43,8 +43,9 @@ public class PetApiTest { */ @Test public void addPetTest() { - Pet pet = null; - api.addPet(pet).block(); + // uncomment below to test the function + //Pet pet = null; + //api.addPet(pet).block(); // TODO: test validations } @@ -56,9 +57,10 @@ public void addPetTest() { */ @Test public void deletePetTest() { - Long petId = null; - String apiKey = null; - api.deletePet(petId, apiKey).block(); + // uncomment below to test the function + //Long petId = null; + //String apiKey = null; + //api.deletePet(petId, apiKey).block(); // TODO: test validations } @@ -70,8 +72,9 @@ public void deletePetTest() { */ @Test public void findPetsByStatusTest() { - List status = null; - List response = api.findPetsByStatus(status); + // uncomment below to test the function + //List status = null; + //List response = api.findPetsByStatus(status); // TODO: test validations } @@ -83,8 +86,9 @@ public void findPetsByStatusTest() { */ @Test public void findPetsByTagsTest() { - Set tags = null; - Set response = api.findPetsByTags(tags); + // uncomment below to test the function + //Set tags = null; + //Set response = api.findPetsByTags(tags); // TODO: test validations } @@ -96,8 +100,9 @@ public void findPetsByTagsTest() { */ @Test public void getPetByIdTest() { - Long petId = null; - Pet response = api.getPetById(petId); + // uncomment below to test the function + //Long petId = null; + //Pet response = api.getPetById(petId); // TODO: test validations } @@ -109,8 +114,9 @@ public void getPetByIdTest() { */ @Test public void updatePetTest() { - Pet pet = null; - api.updatePet(pet); + // uncomment below to test the function + //Pet pet = null; + //api.updatePet(pet); // TODO: test validations } @@ -122,10 +128,11 @@ public void updatePetTest() { */ @Test public void updatePetWithFormTest() { - Long petId = null; - String name = null; - String status = null; - api.updatePetWithForm(petId, name, status).block(); + // uncomment below to test the function + //Long petId = null; + //String name = null; + //String status = null; + //api.updatePetWithForm(petId, name, status).block(); // TODO: test validations } @@ -137,10 +144,11 @@ public void updatePetWithFormTest() { */ @Test public void uploadFileTest() { - Long petId = null; - String additionalMetadata = null; - File _file = null; - ModelApiResponse response = api.uploadFile(petId, additionalMetadata, _file).block(); + // uncomment below to test the function + //Long petId = null; + //String additionalMetadata = null; + //File _file = null; + //ModelApiResponse response = api.uploadFile(petId, additionalMetadata, _file).block(); // TODO: test validations } @@ -152,10 +160,11 @@ public void uploadFileTest() { */ @Test public void uploadFileWithRequiredFileTest() { - Long petId = null; - File requiredFile = null; - String additionalMetadata = null; - ModelApiResponse response = api.uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata).block(); + // uncomment below to test the function + //Long petId = null; + //File requiredFile = null; + //String additionalMetadata = null; + //ModelApiResponse response = api.uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata).block(); // TODO: test validations } diff --git a/samples/client/petstore/java/webclient-jakarta/src/test/java/org/openapitools/client/api/StoreApiTest.java b/samples/client/petstore/java/webclient-jakarta/src/test/java/org/openapitools/client/api/StoreApiTest.java index 572e317b9222..30645d018556 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/test/java/org/openapitools/client/api/StoreApiTest.java +++ b/samples/client/petstore/java/webclient-jakarta/src/test/java/org/openapitools/client/api/StoreApiTest.java @@ -40,8 +40,9 @@ public class StoreApiTest { */ @Test public void deleteOrderTest() { - String orderId = null; - api.deleteOrder(orderId).block(); + // uncomment below to test the function + //String orderId = null; + //api.deleteOrder(orderId).block(); // TODO: test validations } @@ -53,7 +54,8 @@ public void deleteOrderTest() { */ @Test public void getInventoryTest() { - Map response = api.getInventory().block(); + // uncomment below to test the function + //Map response = api.getInventory().block(); // TODO: test validations } @@ -65,8 +67,9 @@ public void getInventoryTest() { */ @Test public void getOrderByIdTest() { - Long orderId = null; - Order response = api.getOrderById(orderId).block(); + // uncomment below to test the function + //Long orderId = null; + //Order response = api.getOrderById(orderId).block(); // TODO: test validations } @@ -78,8 +81,9 @@ public void getOrderByIdTest() { */ @Test public void placeOrderTest() { - Order order = null; - Order response = api.placeOrder(order).block(); + // uncomment below to test the function + //Order order = null; + //Order response = api.placeOrder(order).block(); // TODO: test validations } diff --git a/samples/client/petstore/java/webclient-jakarta/src/test/java/org/openapitools/client/api/UserApiTest.java b/samples/client/petstore/java/webclient-jakarta/src/test/java/org/openapitools/client/api/UserApiTest.java index f16bb0815dfc..3f8d134b97c4 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/test/java/org/openapitools/client/api/UserApiTest.java +++ b/samples/client/petstore/java/webclient-jakarta/src/test/java/org/openapitools/client/api/UserApiTest.java @@ -41,8 +41,9 @@ public class UserApiTest { */ @Test public void createUserTest() { - User user = null; - api.createUser(user).block(); + // uncomment below to test the function + //User user = null; + //api.createUser(user).block(); // TODO: test validations } @@ -54,8 +55,9 @@ public void createUserTest() { */ @Test public void createUsersWithArrayInputTest() { - List user = null; - api.createUsersWithArrayInput(user).block(); + // uncomment below to test the function + //List user = null; + //api.createUsersWithArrayInput(user).block(); // TODO: test validations } @@ -67,8 +69,9 @@ public void createUsersWithArrayInputTest() { */ @Test public void createUsersWithListInputTest() { - List user = null; - api.createUsersWithListInput(user).block(); + // uncomment below to test the function + //List user = null; + //api.createUsersWithListInput(user).block(); // TODO: test validations } @@ -80,8 +83,9 @@ public void createUsersWithListInputTest() { */ @Test public void deleteUserTest() { - String username = null; - api.deleteUser(username).block(); + // uncomment below to test the function + //String username = null; + //api.deleteUser(username).block(); // TODO: test validations } @@ -93,8 +97,9 @@ public void deleteUserTest() { */ @Test public void getUserByNameTest() { - String username = null; - User response = api.getUserByName(username).block(); + // uncomment below to test the function + //String username = null; + //User response = api.getUserByName(username).block(); // TODO: test validations } @@ -106,9 +111,10 @@ public void getUserByNameTest() { */ @Test public void loginUserTest() { - String username = null; - String password = null; - String response = api.loginUser(username, password).block(); + // uncomment below to test the function + //String username = null; + //String password = null; + //String response = api.loginUser(username, password).block(); // TODO: test validations } @@ -120,7 +126,8 @@ public void loginUserTest() { */ @Test public void logoutUserTest() { - api.logoutUser().block(); + // uncomment below to test the function + //api.logoutUser().block(); // TODO: test validations } @@ -132,9 +139,10 @@ public void logoutUserTest() { */ @Test public void updateUserTest() { - String username = null; - User user = null; - api.updateUser(username, user).block(); + // uncomment below to test the function + //String username = null; + //User user = null; + //api.updateUser(username, user).block(); // TODO: test validations } diff --git a/samples/client/petstore/java/webclient-nullable-arrays/src/test/java/org/openapitools/client/api/DefaultApiTest.java b/samples/client/petstore/java/webclient-nullable-arrays/src/test/java/org/openapitools/client/api/DefaultApiTest.java index d2be49999fd3..ce72b2d96b3d 100644 --- a/samples/client/petstore/java/webclient-nullable-arrays/src/test/java/org/openapitools/client/api/DefaultApiTest.java +++ b/samples/client/petstore/java/webclient-nullable-arrays/src/test/java/org/openapitools/client/api/DefaultApiTest.java @@ -40,7 +40,8 @@ public class DefaultApiTest { */ @Test public void nullableArrayTestGetTest() { - List response = api.nullableArrayTestGet().collectList().block(); + // uncomment below to test the function + //List response = api.nullableArrayTestGet().collectList().block(); // TODO: test validations } diff --git a/samples/client/petstore/java/webclient-swagger2/.openapi-generator-ignore b/samples/client/petstore/java/webclient-swagger2/.openapi-generator-ignore index daed634bb4b7..7484ee590a38 100644 --- a/samples/client/petstore/java/webclient-swagger2/.openapi-generator-ignore +++ b/samples/client/petstore/java/webclient-swagger2/.openapi-generator-ignore @@ -21,4 +21,3 @@ #docs/*.md # Then explicitly reverse the ignore rule for a single file: #!docs/README.md -# diff --git a/samples/client/petstore/java/webclient-swagger2/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java b/samples/client/petstore/java/webclient-swagger2/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java index 7304eaed38a2..84aa307bcf36 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java +++ b/samples/client/petstore/java/webclient-swagger2/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java @@ -40,8 +40,9 @@ public class AnotherFakeApiTest { */ @Test public void call123testSpecialTagsTest() { - Client client = null; - Client response = api.call123testSpecialTags(client).block(); + // uncomment below to test the function + //Client client = null; + //Client response = api.call123testSpecialTags(client).block(); // TODO: test validations } diff --git a/samples/client/petstore/java/webclient-swagger2/src/test/java/org/openapitools/client/api/DefaultApiTest.java b/samples/client/petstore/java/webclient-swagger2/src/test/java/org/openapitools/client/api/DefaultApiTest.java index b51395ac065a..2b366bb36a0c 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/test/java/org/openapitools/client/api/DefaultApiTest.java +++ b/samples/client/petstore/java/webclient-swagger2/src/test/java/org/openapitools/client/api/DefaultApiTest.java @@ -40,7 +40,8 @@ public class DefaultApiTest { */ @Test public void fooGetTest() { - FooGetDefaultResponse response = api.fooGet().block(); + // uncomment below to test the function + //FooGetDefaultResponse response = api.fooGet().block(); // TODO: test validations } diff --git a/samples/client/petstore/java/webclient-swagger2/src/test/java/org/openapitools/client/api/FakeApiTest.java b/samples/client/petstore/java/webclient-swagger2/src/test/java/org/openapitools/client/api/FakeApiTest.java index c9a022f3b106..a80ad43c5c36 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/test/java/org/openapitools/client/api/FakeApiTest.java +++ b/samples/client/petstore/java/webclient-swagger2/src/test/java/org/openapitools/client/api/FakeApiTest.java @@ -54,7 +54,8 @@ public class FakeApiTest { */ @Test public void fakeBigDecimalMapTest() { - FakeBigDecimalMap200Response response = api.fakeBigDecimalMap().block(); + // uncomment below to test the function + //FakeBigDecimalMap200Response response = api.fakeBigDecimalMap().block(); // TODO: test validations } @@ -66,7 +67,8 @@ public void fakeBigDecimalMapTest() { */ @Test public void fakeHealthGetTest() { - HealthCheckResult response = api.fakeHealthGet().block(); + // uncomment below to test the function + //HealthCheckResult response = api.fakeHealthGet().block(); // TODO: test validations } @@ -78,10 +80,11 @@ public void fakeHealthGetTest() { */ @Test public void fakeHttpSignatureTestTest() { - Pet pet = null; - String query1 = null; - String header1 = null; - api.fakeHttpSignatureTest(pet, query1, header1).block(); + // uncomment below to test the function + //Pet pet = null; + //String query1 = null; + //String header1 = null; + //api.fakeHttpSignatureTest(pet, query1, header1).block(); // TODO: test validations } @@ -93,8 +96,9 @@ public void fakeHttpSignatureTestTest() { */ @Test public void fakeOuterBooleanSerializeTest() { - Boolean body = null; - Boolean response = api.fakeOuterBooleanSerialize(body).block(); + // uncomment below to test the function + //Boolean body = null; + //Boolean response = api.fakeOuterBooleanSerialize(body).block(); // TODO: test validations } @@ -106,8 +110,9 @@ public void fakeOuterBooleanSerializeTest() { */ @Test public void fakeOuterCompositeSerializeTest() { - OuterComposite outerComposite = null; - OuterComposite response = api.fakeOuterCompositeSerialize(outerComposite).block(); + // uncomment below to test the function + //OuterComposite outerComposite = null; + //OuterComposite response = api.fakeOuterCompositeSerialize(outerComposite).block(); // TODO: test validations } @@ -119,8 +124,9 @@ public void fakeOuterCompositeSerializeTest() { */ @Test public void fakeOuterNumberSerializeTest() { - BigDecimal body = null; - BigDecimal response = api.fakeOuterNumberSerialize(body).block(); + // uncomment below to test the function + //BigDecimal body = null; + //BigDecimal response = api.fakeOuterNumberSerialize(body).block(); // TODO: test validations } @@ -132,8 +138,9 @@ public void fakeOuterNumberSerializeTest() { */ @Test public void fakeOuterStringSerializeTest() { - String body = null; - String response = api.fakeOuterStringSerialize(body).block(); + // uncomment below to test the function + //String body = null; + //String response = api.fakeOuterStringSerialize(body).block(); // TODO: test validations } @@ -145,8 +152,9 @@ public void fakeOuterStringSerializeTest() { */ @Test public void fakePropertyEnumIntegerSerializeTest() { - OuterObjectWithEnumProperty outerObjectWithEnumProperty = null; - OuterObjectWithEnumProperty response = api.fakePropertyEnumIntegerSerialize(outerObjectWithEnumProperty).block(); + // uncomment below to test the function + //OuterObjectWithEnumProperty outerObjectWithEnumProperty = null; + //OuterObjectWithEnumProperty response = api.fakePropertyEnumIntegerSerialize(outerObjectWithEnumProperty).block(); // TODO: test validations } @@ -158,8 +166,9 @@ public void fakePropertyEnumIntegerSerializeTest() { */ @Test public void testAdditionalPropertiesReferenceTest() { - Map requestBody = null; - api.testAdditionalPropertiesReference(requestBody).block(); + // uncomment below to test the function + //Map requestBody = null; + //api.testAdditionalPropertiesReference(requestBody).block(); // TODO: test validations } @@ -171,8 +180,9 @@ public void testAdditionalPropertiesReferenceTest() { */ @Test public void testBodyWithBinaryTest() { - File body = null; - api.testBodyWithBinary(body).block(); + // uncomment below to test the function + //File body = null; + //api.testBodyWithBinary(body).block(); // TODO: test validations } @@ -184,8 +194,9 @@ public void testBodyWithBinaryTest() { */ @Test public void testBodyWithFileSchemaTest() { - FileSchemaTestClass fileSchemaTestClass = null; - api.testBodyWithFileSchema(fileSchemaTestClass).block(); + // uncomment below to test the function + //FileSchemaTestClass fileSchemaTestClass = null; + //api.testBodyWithFileSchema(fileSchemaTestClass).block(); // TODO: test validations } @@ -197,9 +208,10 @@ public void testBodyWithFileSchemaTest() { */ @Test public void testBodyWithQueryParamsTest() { - String query = null; - User user = null; - api.testBodyWithQueryParams(query, user).block(); + // uncomment below to test the function + //String query = null; + //User user = null; + //api.testBodyWithQueryParams(query, user).block(); // TODO: test validations } @@ -211,8 +223,9 @@ public void testBodyWithQueryParamsTest() { */ @Test public void testClientModelTest() { - Client client = null; - Client response = api.testClientModel(client).block(); + // uncomment below to test the function + //Client client = null; + //Client response = api.testClientModel(client).block(); // TODO: test validations } @@ -224,21 +237,22 @@ public void testClientModelTest() { */ @Test public void testEndpointParametersTest() { - 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).block(); + // uncomment below to test the function + //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).block(); // TODO: test validations } @@ -250,16 +264,17 @@ public void testEndpointParametersTest() { */ @Test public void testEnumParametersTest() { - List enumHeaderStringArray = null; - String enumHeaderString = null; - List enumQueryStringArray = null; - String enumQueryString = null; - Integer enumQueryInteger = null; - Double enumQueryDouble = null; - List enumQueryModelArray = null; - List enumFormStringArray = null; - String enumFormString = null; - api.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumQueryModelArray, enumFormStringArray, enumFormString).block(); + // uncomment below to test the function + //List enumHeaderStringArray = null; + //String enumHeaderString = null; + //List enumQueryStringArray = null; + //String enumQueryString = null; + //Integer enumQueryInteger = null; + //Double enumQueryDouble = null; + //List enumQueryModelArray = null; + //List enumFormStringArray = null; + //String enumFormString = null; + //api.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumQueryModelArray, enumFormStringArray, enumFormString).block(); // TODO: test validations } @@ -271,13 +286,14 @@ public void testEnumParametersTest() { */ @Test public void testGroupParametersTest() { - 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(); + // uncomment below to test the function + //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(); // TODO: test validations } @@ -289,8 +305,9 @@ public void testGroupParametersTest() { */ @Test public void testInlineAdditionalPropertiesTest() { - Map requestBody = null; - api.testInlineAdditionalProperties(requestBody).block(); + // uncomment below to test the function + //Map requestBody = null; + //api.testInlineAdditionalProperties(requestBody).block(); // TODO: test validations } @@ -302,8 +319,9 @@ public void testInlineAdditionalPropertiesTest() { */ @Test public void testInlineFreeformAdditionalPropertiesTest() { - TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest = null; - api.testInlineFreeformAdditionalProperties(testInlineFreeformAdditionalPropertiesRequest).block(); + // uncomment below to test the function + //TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest = null; + //api.testInlineFreeformAdditionalProperties(testInlineFreeformAdditionalPropertiesRequest).block(); // TODO: test validations } @@ -315,9 +333,10 @@ public void testInlineFreeformAdditionalPropertiesTest() { */ @Test public void testJsonFormDataTest() { - String param = null; - String param2 = null; - api.testJsonFormData(param, param2).block(); + // uncomment below to test the function + //String param = null; + //String param2 = null; + //api.testJsonFormData(param, param2).block(); // TODO: test validations } @@ -329,8 +348,9 @@ public void testJsonFormDataTest() { */ @Test public void testNullableTest() { - ChildWithNullable childWithNullable = null; - api.testNullable(childWithNullable).block(); + // uncomment below to test the function + //ChildWithNullable childWithNullable = null; + //api.testNullable(childWithNullable).block(); // TODO: test validations } @@ -342,14 +362,15 @@ public void testNullableTest() { */ @Test public void testQueryParameterCollectionFormatTest() { - List pipe = null; - List ioutil = null; - List http = null; - List url = null; - List context = null; - String allowEmpty = null; - Map language = null; - api.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, allowEmpty, language).block(); + // uncomment below to test the function + //List pipe = null; + //List ioutil = null; + //List http = null; + //List url = null; + //List context = null; + //String allowEmpty = null; + //Map language = null; + //api.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, allowEmpty, language).block(); // TODO: test validations } @@ -361,8 +382,9 @@ public void testQueryParameterCollectionFormatTest() { */ @Test public void testStringMapReferenceTest() { - Map requestBody = null; - api.testStringMapReference(requestBody).block(); + // uncomment below to test the function + //Map requestBody = null; + //api.testStringMapReference(requestBody).block(); // TODO: test validations } diff --git a/samples/client/petstore/java/webclient-swagger2/src/test/java/org/openapitools/client/api/FakeClassnameTags123ApiTest.java b/samples/client/petstore/java/webclient-swagger2/src/test/java/org/openapitools/client/api/FakeClassnameTags123ApiTest.java index 60b2fcaee762..a3654c1f1d0e 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/test/java/org/openapitools/client/api/FakeClassnameTags123ApiTest.java +++ b/samples/client/petstore/java/webclient-swagger2/src/test/java/org/openapitools/client/api/FakeClassnameTags123ApiTest.java @@ -40,8 +40,9 @@ public class FakeClassnameTags123ApiTest { */ @Test public void testClassnameTest() { - Client client = null; - Client response = api.testClassname(client).block(); + // uncomment below to test the function + //Client client = null; + //Client response = api.testClassname(client).block(); // TODO: test validations } diff --git a/samples/client/petstore/java/webclient-swagger2/src/test/java/org/openapitools/client/api/PetApiTest.java b/samples/client/petstore/java/webclient-swagger2/src/test/java/org/openapitools/client/api/PetApiTest.java index 173dc5293a40..d79731eb9434 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/test/java/org/openapitools/client/api/PetApiTest.java +++ b/samples/client/petstore/java/webclient-swagger2/src/test/java/org/openapitools/client/api/PetApiTest.java @@ -43,8 +43,9 @@ public class PetApiTest { */ @Test public void addPetTest() { - Pet pet = null; - api.addPet(pet).block(); + // uncomment below to test the function + //Pet pet = null; + //api.addPet(pet).block(); // TODO: test validations } @@ -56,9 +57,10 @@ public void addPetTest() { */ @Test public void deletePetTest() { - Long petId = null; - String apiKey = null; - api.deletePet(petId, apiKey).block(); + // uncomment below to test the function + //Long petId = null; + //String apiKey = null; + //api.deletePet(petId, apiKey).block(); // TODO: test validations } @@ -70,8 +72,9 @@ public void deletePetTest() { */ @Test public void findPetsByStatusTest() { - List status = null; - List response = api.findPetsByStatus(status); + // uncomment below to test the function + //List status = null; + //List response = api.findPetsByStatus(status); // TODO: test validations } @@ -83,8 +86,9 @@ public void findPetsByStatusTest() { */ @Test public void findPetsByTagsTest() { - Set tags = null; - Set response = api.findPetsByTags(tags); + // uncomment below to test the function + //Set tags = null; + //Set response = api.findPetsByTags(tags); // TODO: test validations } @@ -96,8 +100,9 @@ public void findPetsByTagsTest() { */ @Test public void getPetByIdTest() { - Long petId = null; - Pet response = api.getPetById(petId); + // uncomment below to test the function + //Long petId = null; + //Pet response = api.getPetById(petId); // TODO: test validations } @@ -109,8 +114,9 @@ public void getPetByIdTest() { */ @Test public void updatePetTest() { - Pet pet = null; - api.updatePet(pet); + // uncomment below to test the function + //Pet pet = null; + //api.updatePet(pet); // TODO: test validations } @@ -122,10 +128,11 @@ public void updatePetTest() { */ @Test public void updatePetWithFormTest() { - Long petId = null; - String name = null; - String status = null; - api.updatePetWithForm(petId, name, status).block(); + // uncomment below to test the function + //Long petId = null; + //String name = null; + //String status = null; + //api.updatePetWithForm(petId, name, status).block(); // TODO: test validations } @@ -137,10 +144,11 @@ public void updatePetWithFormTest() { */ @Test public void uploadFileTest() { - Long petId = null; - String additionalMetadata = null; - File _file = null; - ModelApiResponse response = api.uploadFile(petId, additionalMetadata, _file).block(); + // uncomment below to test the function + //Long petId = null; + //String additionalMetadata = null; + //File _file = null; + //ModelApiResponse response = api.uploadFile(petId, additionalMetadata, _file).block(); // TODO: test validations } @@ -152,10 +160,11 @@ public void uploadFileTest() { */ @Test public void uploadFileWithRequiredFileTest() { - Long petId = null; - File requiredFile = null; - String additionalMetadata = null; - ModelApiResponse response = api.uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata).block(); + // uncomment below to test the function + //Long petId = null; + //File requiredFile = null; + //String additionalMetadata = null; + //ModelApiResponse response = api.uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata).block(); // TODO: test validations } diff --git a/samples/client/petstore/java/webclient-swagger2/src/test/java/org/openapitools/client/api/StoreApiTest.java b/samples/client/petstore/java/webclient-swagger2/src/test/java/org/openapitools/client/api/StoreApiTest.java index 572e317b9222..30645d018556 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/test/java/org/openapitools/client/api/StoreApiTest.java +++ b/samples/client/petstore/java/webclient-swagger2/src/test/java/org/openapitools/client/api/StoreApiTest.java @@ -40,8 +40,9 @@ public class StoreApiTest { */ @Test public void deleteOrderTest() { - String orderId = null; - api.deleteOrder(orderId).block(); + // uncomment below to test the function + //String orderId = null; + //api.deleteOrder(orderId).block(); // TODO: test validations } @@ -53,7 +54,8 @@ public void deleteOrderTest() { */ @Test public void getInventoryTest() { - Map response = api.getInventory().block(); + // uncomment below to test the function + //Map response = api.getInventory().block(); // TODO: test validations } @@ -65,8 +67,9 @@ public void getInventoryTest() { */ @Test public void getOrderByIdTest() { - Long orderId = null; - Order response = api.getOrderById(orderId).block(); + // uncomment below to test the function + //Long orderId = null; + //Order response = api.getOrderById(orderId).block(); // TODO: test validations } @@ -78,8 +81,9 @@ public void getOrderByIdTest() { */ @Test public void placeOrderTest() { - Order order = null; - Order response = api.placeOrder(order).block(); + // uncomment below to test the function + //Order order = null; + //Order response = api.placeOrder(order).block(); // TODO: test validations } diff --git a/samples/client/petstore/java/webclient-swagger2/src/test/java/org/openapitools/client/api/UserApiTest.java b/samples/client/petstore/java/webclient-swagger2/src/test/java/org/openapitools/client/api/UserApiTest.java index f16bb0815dfc..3f8d134b97c4 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/test/java/org/openapitools/client/api/UserApiTest.java +++ b/samples/client/petstore/java/webclient-swagger2/src/test/java/org/openapitools/client/api/UserApiTest.java @@ -41,8 +41,9 @@ public class UserApiTest { */ @Test public void createUserTest() { - User user = null; - api.createUser(user).block(); + // uncomment below to test the function + //User user = null; + //api.createUser(user).block(); // TODO: test validations } @@ -54,8 +55,9 @@ public void createUserTest() { */ @Test public void createUsersWithArrayInputTest() { - List user = null; - api.createUsersWithArrayInput(user).block(); + // uncomment below to test the function + //List user = null; + //api.createUsersWithArrayInput(user).block(); // TODO: test validations } @@ -67,8 +69,9 @@ public void createUsersWithArrayInputTest() { */ @Test public void createUsersWithListInputTest() { - List user = null; - api.createUsersWithListInput(user).block(); + // uncomment below to test the function + //List user = null; + //api.createUsersWithListInput(user).block(); // TODO: test validations } @@ -80,8 +83,9 @@ public void createUsersWithListInputTest() { */ @Test public void deleteUserTest() { - String username = null; - api.deleteUser(username).block(); + // uncomment below to test the function + //String username = null; + //api.deleteUser(username).block(); // TODO: test validations } @@ -93,8 +97,9 @@ public void deleteUserTest() { */ @Test public void getUserByNameTest() { - String username = null; - User response = api.getUserByName(username).block(); + // uncomment below to test the function + //String username = null; + //User response = api.getUserByName(username).block(); // TODO: test validations } @@ -106,9 +111,10 @@ public void getUserByNameTest() { */ @Test public void loginUserTest() { - String username = null; - String password = null; - String response = api.loginUser(username, password).block(); + // uncomment below to test the function + //String username = null; + //String password = null; + //String response = api.loginUser(username, password).block(); // TODO: test validations } @@ -120,7 +126,8 @@ public void loginUserTest() { */ @Test public void logoutUserTest() { - api.logoutUser().block(); + // uncomment below to test the function + //api.logoutUser().block(); // TODO: test validations } @@ -132,9 +139,10 @@ public void logoutUserTest() { */ @Test public void updateUserTest() { - String username = null; - User user = null; - api.updateUser(username, user).block(); + // uncomment below to test the function + //String username = null; + //User user = null; + //api.updateUser(username, user).block(); // TODO: test validations } diff --git a/samples/client/petstore/java/webclient/docs/InlineResponseDefault.md b/samples/client/petstore/java/webclient/docs/InlineResponseDefault.md deleted file mode 100644 index 41cadb0373c2..000000000000 --- a/samples/client/petstore/java/webclient/docs/InlineResponseDefault.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# InlineResponseDefault - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**string** | [**Foo**](Foo.md) | | [optional] | - - - diff --git a/samples/client/petstore/java/webclient/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java b/samples/client/petstore/java/webclient/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java index 7304eaed38a2..84aa307bcf36 100644 --- a/samples/client/petstore/java/webclient/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java +++ b/samples/client/petstore/java/webclient/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java @@ -40,8 +40,9 @@ public class AnotherFakeApiTest { */ @Test public void call123testSpecialTagsTest() { - Client client = null; - Client response = api.call123testSpecialTags(client).block(); + // uncomment below to test the function + //Client client = null; + //Client response = api.call123testSpecialTags(client).block(); // TODO: test validations } diff --git a/samples/client/petstore/java/webclient/src/test/java/org/openapitools/client/api/DefaultApiTest.java b/samples/client/petstore/java/webclient/src/test/java/org/openapitools/client/api/DefaultApiTest.java index b51395ac065a..2b366bb36a0c 100644 --- a/samples/client/petstore/java/webclient/src/test/java/org/openapitools/client/api/DefaultApiTest.java +++ b/samples/client/petstore/java/webclient/src/test/java/org/openapitools/client/api/DefaultApiTest.java @@ -40,7 +40,8 @@ public class DefaultApiTest { */ @Test public void fooGetTest() { - FooGetDefaultResponse response = api.fooGet().block(); + // uncomment below to test the function + //FooGetDefaultResponse response = api.fooGet().block(); // TODO: test validations } diff --git a/samples/client/petstore/java/webclient/src/test/java/org/openapitools/client/api/FakeApiTest.java b/samples/client/petstore/java/webclient/src/test/java/org/openapitools/client/api/FakeApiTest.java index c9a022f3b106..a80ad43c5c36 100644 --- a/samples/client/petstore/java/webclient/src/test/java/org/openapitools/client/api/FakeApiTest.java +++ b/samples/client/petstore/java/webclient/src/test/java/org/openapitools/client/api/FakeApiTest.java @@ -54,7 +54,8 @@ public class FakeApiTest { */ @Test public void fakeBigDecimalMapTest() { - FakeBigDecimalMap200Response response = api.fakeBigDecimalMap().block(); + // uncomment below to test the function + //FakeBigDecimalMap200Response response = api.fakeBigDecimalMap().block(); // TODO: test validations } @@ -66,7 +67,8 @@ public void fakeBigDecimalMapTest() { */ @Test public void fakeHealthGetTest() { - HealthCheckResult response = api.fakeHealthGet().block(); + // uncomment below to test the function + //HealthCheckResult response = api.fakeHealthGet().block(); // TODO: test validations } @@ -78,10 +80,11 @@ public void fakeHealthGetTest() { */ @Test public void fakeHttpSignatureTestTest() { - Pet pet = null; - String query1 = null; - String header1 = null; - api.fakeHttpSignatureTest(pet, query1, header1).block(); + // uncomment below to test the function + //Pet pet = null; + //String query1 = null; + //String header1 = null; + //api.fakeHttpSignatureTest(pet, query1, header1).block(); // TODO: test validations } @@ -93,8 +96,9 @@ public void fakeHttpSignatureTestTest() { */ @Test public void fakeOuterBooleanSerializeTest() { - Boolean body = null; - Boolean response = api.fakeOuterBooleanSerialize(body).block(); + // uncomment below to test the function + //Boolean body = null; + //Boolean response = api.fakeOuterBooleanSerialize(body).block(); // TODO: test validations } @@ -106,8 +110,9 @@ public void fakeOuterBooleanSerializeTest() { */ @Test public void fakeOuterCompositeSerializeTest() { - OuterComposite outerComposite = null; - OuterComposite response = api.fakeOuterCompositeSerialize(outerComposite).block(); + // uncomment below to test the function + //OuterComposite outerComposite = null; + //OuterComposite response = api.fakeOuterCompositeSerialize(outerComposite).block(); // TODO: test validations } @@ -119,8 +124,9 @@ public void fakeOuterCompositeSerializeTest() { */ @Test public void fakeOuterNumberSerializeTest() { - BigDecimal body = null; - BigDecimal response = api.fakeOuterNumberSerialize(body).block(); + // uncomment below to test the function + //BigDecimal body = null; + //BigDecimal response = api.fakeOuterNumberSerialize(body).block(); // TODO: test validations } @@ -132,8 +138,9 @@ public void fakeOuterNumberSerializeTest() { */ @Test public void fakeOuterStringSerializeTest() { - String body = null; - String response = api.fakeOuterStringSerialize(body).block(); + // uncomment below to test the function + //String body = null; + //String response = api.fakeOuterStringSerialize(body).block(); // TODO: test validations } @@ -145,8 +152,9 @@ public void fakeOuterStringSerializeTest() { */ @Test public void fakePropertyEnumIntegerSerializeTest() { - OuterObjectWithEnumProperty outerObjectWithEnumProperty = null; - OuterObjectWithEnumProperty response = api.fakePropertyEnumIntegerSerialize(outerObjectWithEnumProperty).block(); + // uncomment below to test the function + //OuterObjectWithEnumProperty outerObjectWithEnumProperty = null; + //OuterObjectWithEnumProperty response = api.fakePropertyEnumIntegerSerialize(outerObjectWithEnumProperty).block(); // TODO: test validations } @@ -158,8 +166,9 @@ public void fakePropertyEnumIntegerSerializeTest() { */ @Test public void testAdditionalPropertiesReferenceTest() { - Map requestBody = null; - api.testAdditionalPropertiesReference(requestBody).block(); + // uncomment below to test the function + //Map requestBody = null; + //api.testAdditionalPropertiesReference(requestBody).block(); // TODO: test validations } @@ -171,8 +180,9 @@ public void testAdditionalPropertiesReferenceTest() { */ @Test public void testBodyWithBinaryTest() { - File body = null; - api.testBodyWithBinary(body).block(); + // uncomment below to test the function + //File body = null; + //api.testBodyWithBinary(body).block(); // TODO: test validations } @@ -184,8 +194,9 @@ public void testBodyWithBinaryTest() { */ @Test public void testBodyWithFileSchemaTest() { - FileSchemaTestClass fileSchemaTestClass = null; - api.testBodyWithFileSchema(fileSchemaTestClass).block(); + // uncomment below to test the function + //FileSchemaTestClass fileSchemaTestClass = null; + //api.testBodyWithFileSchema(fileSchemaTestClass).block(); // TODO: test validations } @@ -197,9 +208,10 @@ public void testBodyWithFileSchemaTest() { */ @Test public void testBodyWithQueryParamsTest() { - String query = null; - User user = null; - api.testBodyWithQueryParams(query, user).block(); + // uncomment below to test the function + //String query = null; + //User user = null; + //api.testBodyWithQueryParams(query, user).block(); // TODO: test validations } @@ -211,8 +223,9 @@ public void testBodyWithQueryParamsTest() { */ @Test public void testClientModelTest() { - Client client = null; - Client response = api.testClientModel(client).block(); + // uncomment below to test the function + //Client client = null; + //Client response = api.testClientModel(client).block(); // TODO: test validations } @@ -224,21 +237,22 @@ public void testClientModelTest() { */ @Test public void testEndpointParametersTest() { - 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).block(); + // uncomment below to test the function + //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).block(); // TODO: test validations } @@ -250,16 +264,17 @@ public void testEndpointParametersTest() { */ @Test public void testEnumParametersTest() { - List enumHeaderStringArray = null; - String enumHeaderString = null; - List enumQueryStringArray = null; - String enumQueryString = null; - Integer enumQueryInteger = null; - Double enumQueryDouble = null; - List enumQueryModelArray = null; - List enumFormStringArray = null; - String enumFormString = null; - api.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumQueryModelArray, enumFormStringArray, enumFormString).block(); + // uncomment below to test the function + //List enumHeaderStringArray = null; + //String enumHeaderString = null; + //List enumQueryStringArray = null; + //String enumQueryString = null; + //Integer enumQueryInteger = null; + //Double enumQueryDouble = null; + //List enumQueryModelArray = null; + //List enumFormStringArray = null; + //String enumFormString = null; + //api.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumQueryModelArray, enumFormStringArray, enumFormString).block(); // TODO: test validations } @@ -271,13 +286,14 @@ public void testEnumParametersTest() { */ @Test public void testGroupParametersTest() { - 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(); + // uncomment below to test the function + //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(); // TODO: test validations } @@ -289,8 +305,9 @@ public void testGroupParametersTest() { */ @Test public void testInlineAdditionalPropertiesTest() { - Map requestBody = null; - api.testInlineAdditionalProperties(requestBody).block(); + // uncomment below to test the function + //Map requestBody = null; + //api.testInlineAdditionalProperties(requestBody).block(); // TODO: test validations } @@ -302,8 +319,9 @@ public void testInlineAdditionalPropertiesTest() { */ @Test public void testInlineFreeformAdditionalPropertiesTest() { - TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest = null; - api.testInlineFreeformAdditionalProperties(testInlineFreeformAdditionalPropertiesRequest).block(); + // uncomment below to test the function + //TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest = null; + //api.testInlineFreeformAdditionalProperties(testInlineFreeformAdditionalPropertiesRequest).block(); // TODO: test validations } @@ -315,9 +333,10 @@ public void testInlineFreeformAdditionalPropertiesTest() { */ @Test public void testJsonFormDataTest() { - String param = null; - String param2 = null; - api.testJsonFormData(param, param2).block(); + // uncomment below to test the function + //String param = null; + //String param2 = null; + //api.testJsonFormData(param, param2).block(); // TODO: test validations } @@ -329,8 +348,9 @@ public void testJsonFormDataTest() { */ @Test public void testNullableTest() { - ChildWithNullable childWithNullable = null; - api.testNullable(childWithNullable).block(); + // uncomment below to test the function + //ChildWithNullable childWithNullable = null; + //api.testNullable(childWithNullable).block(); // TODO: test validations } @@ -342,14 +362,15 @@ public void testNullableTest() { */ @Test public void testQueryParameterCollectionFormatTest() { - List pipe = null; - List ioutil = null; - List http = null; - List url = null; - List context = null; - String allowEmpty = null; - Map language = null; - api.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, allowEmpty, language).block(); + // uncomment below to test the function + //List pipe = null; + //List ioutil = null; + //List http = null; + //List url = null; + //List context = null; + //String allowEmpty = null; + //Map language = null; + //api.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, allowEmpty, language).block(); // TODO: test validations } @@ -361,8 +382,9 @@ public void testQueryParameterCollectionFormatTest() { */ @Test public void testStringMapReferenceTest() { - Map requestBody = null; - api.testStringMapReference(requestBody).block(); + // uncomment below to test the function + //Map requestBody = null; + //api.testStringMapReference(requestBody).block(); // TODO: test validations } diff --git a/samples/client/petstore/java/webclient/src/test/java/org/openapitools/client/api/FakeClassnameTags123ApiTest.java b/samples/client/petstore/java/webclient/src/test/java/org/openapitools/client/api/FakeClassnameTags123ApiTest.java index 60b2fcaee762..a3654c1f1d0e 100644 --- a/samples/client/petstore/java/webclient/src/test/java/org/openapitools/client/api/FakeClassnameTags123ApiTest.java +++ b/samples/client/petstore/java/webclient/src/test/java/org/openapitools/client/api/FakeClassnameTags123ApiTest.java @@ -40,8 +40,9 @@ public class FakeClassnameTags123ApiTest { */ @Test public void testClassnameTest() { - Client client = null; - Client response = api.testClassname(client).block(); + // uncomment below to test the function + //Client client = null; + //Client response = api.testClassname(client).block(); // TODO: test validations } diff --git a/samples/client/petstore/java/webclient/src/test/java/org/openapitools/client/api/PetApiTest.java b/samples/client/petstore/java/webclient/src/test/java/org/openapitools/client/api/PetApiTest.java index 173dc5293a40..d79731eb9434 100644 --- a/samples/client/petstore/java/webclient/src/test/java/org/openapitools/client/api/PetApiTest.java +++ b/samples/client/petstore/java/webclient/src/test/java/org/openapitools/client/api/PetApiTest.java @@ -43,8 +43,9 @@ public class PetApiTest { */ @Test public void addPetTest() { - Pet pet = null; - api.addPet(pet).block(); + // uncomment below to test the function + //Pet pet = null; + //api.addPet(pet).block(); // TODO: test validations } @@ -56,9 +57,10 @@ public void addPetTest() { */ @Test public void deletePetTest() { - Long petId = null; - String apiKey = null; - api.deletePet(petId, apiKey).block(); + // uncomment below to test the function + //Long petId = null; + //String apiKey = null; + //api.deletePet(petId, apiKey).block(); // TODO: test validations } @@ -70,8 +72,9 @@ public void deletePetTest() { */ @Test public void findPetsByStatusTest() { - List status = null; - List response = api.findPetsByStatus(status); + // uncomment below to test the function + //List status = null; + //List response = api.findPetsByStatus(status); // TODO: test validations } @@ -83,8 +86,9 @@ public void findPetsByStatusTest() { */ @Test public void findPetsByTagsTest() { - Set tags = null; - Set response = api.findPetsByTags(tags); + // uncomment below to test the function + //Set tags = null; + //Set response = api.findPetsByTags(tags); // TODO: test validations } @@ -96,8 +100,9 @@ public void findPetsByTagsTest() { */ @Test public void getPetByIdTest() { - Long petId = null; - Pet response = api.getPetById(petId); + // uncomment below to test the function + //Long petId = null; + //Pet response = api.getPetById(petId); // TODO: test validations } @@ -109,8 +114,9 @@ public void getPetByIdTest() { */ @Test public void updatePetTest() { - Pet pet = null; - api.updatePet(pet); + // uncomment below to test the function + //Pet pet = null; + //api.updatePet(pet); // TODO: test validations } @@ -122,10 +128,11 @@ public void updatePetTest() { */ @Test public void updatePetWithFormTest() { - Long petId = null; - String name = null; - String status = null; - api.updatePetWithForm(petId, name, status).block(); + // uncomment below to test the function + //Long petId = null; + //String name = null; + //String status = null; + //api.updatePetWithForm(petId, name, status).block(); // TODO: test validations } @@ -137,10 +144,11 @@ public void updatePetWithFormTest() { */ @Test public void uploadFileTest() { - Long petId = null; - String additionalMetadata = null; - File _file = null; - ModelApiResponse response = api.uploadFile(petId, additionalMetadata, _file).block(); + // uncomment below to test the function + //Long petId = null; + //String additionalMetadata = null; + //File _file = null; + //ModelApiResponse response = api.uploadFile(petId, additionalMetadata, _file).block(); // TODO: test validations } @@ -152,10 +160,11 @@ public void uploadFileTest() { */ @Test public void uploadFileWithRequiredFileTest() { - Long petId = null; - File requiredFile = null; - String additionalMetadata = null; - ModelApiResponse response = api.uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata).block(); + // uncomment below to test the function + //Long petId = null; + //File requiredFile = null; + //String additionalMetadata = null; + //ModelApiResponse response = api.uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata).block(); // TODO: test validations } diff --git a/samples/client/petstore/java/webclient/src/test/java/org/openapitools/client/api/StoreApiTest.java b/samples/client/petstore/java/webclient/src/test/java/org/openapitools/client/api/StoreApiTest.java index 572e317b9222..30645d018556 100644 --- a/samples/client/petstore/java/webclient/src/test/java/org/openapitools/client/api/StoreApiTest.java +++ b/samples/client/petstore/java/webclient/src/test/java/org/openapitools/client/api/StoreApiTest.java @@ -40,8 +40,9 @@ public class StoreApiTest { */ @Test public void deleteOrderTest() { - String orderId = null; - api.deleteOrder(orderId).block(); + // uncomment below to test the function + //String orderId = null; + //api.deleteOrder(orderId).block(); // TODO: test validations } @@ -53,7 +54,8 @@ public void deleteOrderTest() { */ @Test public void getInventoryTest() { - Map response = api.getInventory().block(); + // uncomment below to test the function + //Map response = api.getInventory().block(); // TODO: test validations } @@ -65,8 +67,9 @@ public void getInventoryTest() { */ @Test public void getOrderByIdTest() { - Long orderId = null; - Order response = api.getOrderById(orderId).block(); + // uncomment below to test the function + //Long orderId = null; + //Order response = api.getOrderById(orderId).block(); // TODO: test validations } @@ -78,8 +81,9 @@ public void getOrderByIdTest() { */ @Test public void placeOrderTest() { - Order order = null; - Order response = api.placeOrder(order).block(); + // uncomment below to test the function + //Order order = null; + //Order response = api.placeOrder(order).block(); // TODO: test validations } diff --git a/samples/client/petstore/java/webclient/src/test/java/org/openapitools/client/api/UserApiTest.java b/samples/client/petstore/java/webclient/src/test/java/org/openapitools/client/api/UserApiTest.java index f16bb0815dfc..3f8d134b97c4 100644 --- a/samples/client/petstore/java/webclient/src/test/java/org/openapitools/client/api/UserApiTest.java +++ b/samples/client/petstore/java/webclient/src/test/java/org/openapitools/client/api/UserApiTest.java @@ -41,8 +41,9 @@ public class UserApiTest { */ @Test public void createUserTest() { - User user = null; - api.createUser(user).block(); + // uncomment below to test the function + //User user = null; + //api.createUser(user).block(); // TODO: test validations } @@ -54,8 +55,9 @@ public void createUserTest() { */ @Test public void createUsersWithArrayInputTest() { - List user = null; - api.createUsersWithArrayInput(user).block(); + // uncomment below to test the function + //List user = null; + //api.createUsersWithArrayInput(user).block(); // TODO: test validations } @@ -67,8 +69,9 @@ public void createUsersWithArrayInputTest() { */ @Test public void createUsersWithListInputTest() { - List user = null; - api.createUsersWithListInput(user).block(); + // uncomment below to test the function + //List user = null; + //api.createUsersWithListInput(user).block(); // TODO: test validations } @@ -80,8 +83,9 @@ public void createUsersWithListInputTest() { */ @Test public void deleteUserTest() { - String username = null; - api.deleteUser(username).block(); + // uncomment below to test the function + //String username = null; + //api.deleteUser(username).block(); // TODO: test validations } @@ -93,8 +97,9 @@ public void deleteUserTest() { */ @Test public void getUserByNameTest() { - String username = null; - User response = api.getUserByName(username).block(); + // uncomment below to test the function + //String username = null; + //User response = api.getUserByName(username).block(); // TODO: test validations } @@ -106,9 +111,10 @@ public void getUserByNameTest() { */ @Test public void loginUserTest() { - String username = null; - String password = null; - String response = api.loginUser(username, password).block(); + // uncomment below to test the function + //String username = null; + //String password = null; + //String response = api.loginUser(username, password).block(); // TODO: test validations } @@ -120,7 +126,8 @@ public void loginUserTest() { */ @Test public void logoutUserTest() { - api.logoutUser().block(); + // uncomment below to test the function + //api.logoutUser().block(); // TODO: test validations } @@ -132,9 +139,10 @@ public void logoutUserTest() { */ @Test public void updateUserTest() { - String username = null; - User user = null; - api.updateUser(username, user).block(); + // uncomment below to test the function + //String username = null; + //User user = null; + //api.updateUser(username, user).block(); // TODO: test validations }