update sample tests, fix Java tests (#20300)

* replace removed forkMode

* remove junit runner where it's not needed

* update samples without skipping test files, but skip files named "FILES"

* revert overwriting custom tests, add custom java tests to list

* add one sample to CircleCI, fix various Java tests
This commit is contained in:
martin-mfg
2024-12-15 10:09:58 +01:00
committed by GitHub
parent 4e5a828c12
commit d87a70dd93
2192 changed files with 12623 additions and 9212 deletions

View File

@@ -2,23 +2,31 @@
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package org.openapitools.client.api;
import org.openapitools.client.ApiException;
import java.math.BigDecimal;
import org.openapitools.client.model.Client;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.openapitools.client.ApiException;
import org.openapitools.client.model.Client;
/** API tests for AnotherFakeApi */
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* API tests for AnotherFakeApi
*/
@Disabled
public class AnotherFakeApiTest {
@@ -27,15 +35,51 @@ public class AnotherFakeApiTest {
/**
* To test special tags
*
* <p>To test special tags and operation ID starting with number
* To test special tags and operation ID starting with number
*
* @throws ApiException if the Api call fails
*/
@Test
public void call123testSpecialTagsTest() throws ApiException {
Client body = null;
Client response = api.call123testSpecialTags(body);
Client client = null;
Client response = api.call123testSpecialTags(client);
// TODO: test validations
}
/**
* parameter array number default value
*
* @throws ApiException if the Api call fails
*/
@Test
public void getParameterArrayNumberTest() throws ApiException {
List<Integer> array = null;
api.getParameterArrayNumber(array);
// TODO: test validations
}
/**
* parameter string number
*
* @throws ApiException if the Api call fails
*/
@Test
public void getParameterStringNumberTest() throws ApiException {
BigDecimal stringNumber = null;
api.getParameterStringNumber(stringNumber);
// TODO: test validations
}
/**
* null request body
*
* @throws ApiException if the Api call fails
*/
@Test
public void nullRequestBodyTest() throws ApiException {
String acceptLanguage = null;
api.nullRequestBody(acceptLanguage);
// TODO: test validations
}
}

View File

@@ -14,6 +14,8 @@
package org.openapitools.client.api;
import org.openapitools.client.ApiException;
import org.openapitools.client.model.FakeAnyOfWIthSameErasureGet200Response;
import org.openapitools.client.model.FakeOneOfWIthSameErasureGet200Response;
import org.openapitools.client.model.FooGetDefaultResponse;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
@@ -31,6 +33,39 @@ public class DefaultApiTest {
private final DefaultApi api = new DefaultApi();
/**
* Test route, this shouldn&#39;t cause a compiler error
*
* @throws ApiException if the Api call fails
*/
@Test
public void fakeAnyOfWIthSameErasureGetTest() throws ApiException {
FakeAnyOfWIthSameErasureGet200Response response = api.fakeAnyOfWIthSameErasureGet();
// TODO: test validations
}
/**
* @throws ApiException if the Api call fails
*/
@Test
public void fakeFreeFormQueryParametersGetTest() throws ApiException {
String fixed = null;
Object freeForm = null;
api.fakeFreeFormQueryParametersGet(fixed, freeForm);
// TODO: test validations
}
/**
* Test route, this shouldn&#39;t cause a compiler error
*
* @throws ApiException if the Api call fails
*/
@Test
public void fakeOneOfWIthSameErasureGetTest() throws ApiException {
FakeOneOfWIthSameErasureGet200Response response = api.fakeOneOfWIthSameErasureGet();
// TODO: test validations
}
/**
* @throws ApiException if the Api call fails
*/

View File

@@ -16,10 +16,13 @@ package org.openapitools.client.api;
import org.openapitools.client.ApiException;
import java.math.BigDecimal;
import org.openapitools.client.model.Client;
import org.openapitools.client.model.FakeRefParameterPetIdParameter;
import java.io.File;
import org.openapitools.client.model.FileSchemaTestClass;
import org.openapitools.client.model.FreeFormObjectTestClass;
import org.openapitools.client.model.HealthCheckResult;
import java.time.LocalDate;
import org.openapitools.client.model.ModelApiResponse;
import java.time.OffsetDateTime;
import org.openapitools.client.model.OuterComposite;
import org.openapitools.client.model.OuterEnum;
@@ -41,6 +44,17 @@ public class FakeApiTest {
private final FakeApi api = new FakeApi();
/**
* Get a free form object or Json string
*
* @throws ApiException if the Api call fails
*/
@Test
public void fakeGetFreeFormObjectGetTest() throws ApiException {
FreeFormObjectTestClass response = api.fakeGetFreeFormObjectGet();
// TODO: test validations
}
/**
* Test serialization of outer boolean types
*
@@ -89,6 +103,36 @@ public class FakeApiTest {
// TODO: test validations
}
/**
* fake reference parameter
*
*
*
* @throws ApiException if the Api call fails
*/
@Test
public void fakeRefParameterTest() throws ApiException {
FakeRefParameterPetIdParameter petId = null;
api.fakeRefParameter(petId);
// TODO: test validations
}
/**
* fake reference parameter
*
*
*
* @throws ApiException if the Api call fails
*/
@Test
public void fakeUploadRefRequestBodiesTest() throws ApiException {
Long petId = null;
String additionalMetadata = null;
File _file = null;
ModelApiResponse response = api.fakeUploadRefRequestBodies(petId, additionalMetadata, _file);
// TODO: test validations
}
/**
* Array of Enums
*

View File

@@ -2,23 +2,30 @@
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package org.openapitools.client.api;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.openapitools.client.ApiException;
import org.openapitools.client.model.Client;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
/** API tests for FakeClassnameTags123Api */
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* API tests for FakeClassnameTags123Api
*/
@Disabled
public class FakeClassnameTags123ApiTest {
@@ -27,15 +34,15 @@ public class FakeClassnameTags123ApiTest {
/**
* To test class name in snake case
*
* <p>To test class name in snake case
* To test class name in snake case
*
* @throws ApiException if the Api call fails
*/
@Test
public void testClassnameTest() throws ApiException {
Client body = null;
Client response = api.testClassname(body);
Client client = null;
Client response = api.testClassname(client);
// TODO: test validations
}
}

View File

@@ -2,24 +2,30 @@
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package org.openapitools.client.api;
import java.util.Map;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.openapitools.client.ApiException;
import org.openapitools.client.model.Order;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
/** API tests for StoreApi */
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* API tests for StoreApi
*/
@Disabled
public class StoreApiTest {
@@ -28,8 +34,7 @@ public class StoreApiTest {
/**
* Delete purchase order by ID
*
* <p>For valid response try integer IDs with value &lt; 1000. Anything above 1000 or
* nonintegers will generate API errors
* For valid response try integer IDs with value &lt; 1000. Anything above 1000 or nonintegers will generate API errors
*
* @throws ApiException if the Api call fails
*/
@@ -37,29 +42,26 @@ public class StoreApiTest {
public void deleteOrderTest() throws ApiException {
String orderId = null;
api.deleteOrder(orderId);
// TODO: test validations
}
/**
* Returns pet inventories by status
*
* <p>Returns a map of status codes to quantities
* Returns a map of status codes to quantities
*
* @throws ApiException if the Api call fails
*/
@Test
public void getInventoryTest() throws ApiException {
Map<String, Integer> response = api.getInventory();
// TODO: test validations
}
/**
* Find purchase order by ID
*
* <p>For valid response try integer IDs with value &lt;&#x3D; 5 or &gt; 10. Other values will
* generated exceptions
* For valid response try integer IDs with value &lt;&#x3D; 5 or &gt; 10. Other values will generate exceptions
*
* @throws ApiException if the Api call fails
*/
@@ -67,20 +69,21 @@ public class StoreApiTest {
public void getOrderByIdTest() throws ApiException {
Long orderId = null;
Order response = api.getOrderById(orderId);
// TODO: test validations
}
/**
* Place an order for a pet
*
*
*
* @throws ApiException if the Api call fails
*/
@Test
public void placeOrderTest() throws ApiException {
Order body = null;
Order response = api.placeOrder(body);
Order order = null;
Order response = api.placeOrder(order);
// TODO: test validations
}
}

View File

@@ -2,24 +2,31 @@
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package org.openapitools.client.api;
import java.util.List;
import org.openapitools.client.ApiException;
import java.time.OffsetDateTime;
import org.openapitools.client.model.User;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.openapitools.client.ApiException;
import org.openapitools.client.model.User;
/** API tests for UserApi */
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* API tests for UserApi
*/
@Disabled
public class UserApiTest {
@@ -28,48 +35,49 @@ public class UserApiTest {
/**
* Create user
*
* <p>This can only be done by the logged in user.
* This can only be done by the logged in user.
*
* @throws ApiException if the Api call fails
*/
@Test
public void createUserTest() throws ApiException {
User body = null;
api.createUser(body);
User user = null;
api.createUser(user);
// TODO: test validations
}
/**
* Creates list of users with given input array
*
*
*
* @throws ApiException if the Api call fails
*/
@Test
public void createUsersWithArrayInputTest() throws ApiException {
List<User> body = null;
api.createUsersWithArrayInput(body);
List<User> user = null;
api.createUsersWithArrayInput(user);
// TODO: test validations
}
/**
* Creates list of users with given input array
*
*
*
* @throws ApiException if the Api call fails
*/
@Test
public void createUsersWithListInputTest() throws ApiException {
List<User> body = null;
api.createUsersWithListInput(body);
List<User> user = null;
api.createUsersWithListInput(user);
// TODO: test validations
}
/**
* Delete user
*
* <p>This can only be done by the logged in user.
* This can only be done by the logged in user.
*
* @throws ApiException if the Api call fails
*/
@@ -77,26 +85,28 @@ public class UserApiTest {
public void deleteUserTest() throws ApiException {
String username = null;
api.deleteUser(username);
// TODO: test validations
}
/**
* Get user by user name
*
*
*
* @throws ApiException if the Api call fails
*/
@Test
public void getUserByNameTest() throws ApiException {
String username = null;
User response = api.getUserByName(username);
// TODO: test validations
}
/**
* Logs user into the system
*
*
*
* @throws ApiException if the Api call fails
*/
@Test
@@ -104,35 +114,35 @@ public class UserApiTest {
String username = null;
String password = null;
String response = api.loginUser(username, password);
// TODO: test validations
}
/**
* Logs out current logged in user session
*
*
*
* @throws ApiException if the Api call fails
*/
@Test
public void logoutUserTest() throws ApiException {
api.logoutUser();
// TODO: test validations
}
/**
* Updated user
*
* <p>This can only be done by the logged in user.
* This can only be done by the logged in user.
*
* @throws ApiException if the Api call fails
*/
@Test
public void updateUserTest() throws ApiException {
String username = null;
User body = null;
api.updateUser(username, body);
User user = null;
api.updateUser(username, user);
// TODO: test validations
}
}

View File

@@ -19,13 +19,13 @@ import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
import org.openapitools.jackson.nullable.JsonNullable;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
/**
* Model tests for AdditionalPropertiesClass
*/

View File

@@ -20,6 +20,7 @@ import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.util.Arrays;
import org.openapitools.client.model.AllOfModelArrayAnyOfAllOfAttributes;
import org.openapitools.client.model.AllOfModelArrayAnyOfAllOfLinkListColumn1;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
@@ -62,4 +63,12 @@ public class AllOfModelArrayAnyOfTest {
// TODO: test linkListColumn1
}
/**
* Test the property 'attributes'
*/
@Test
public void attributesTest() {
// TODO: test attributes
}
}

View File

@@ -19,12 +19,10 @@ import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import org.openapitools.client.model.Cat;
import org.openapitools.client.model.Dog;
import java.util.Arrays;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
/**
* Model tests for Animal
*/

View File

@@ -19,10 +19,10 @@ import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.util.Arrays;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
/**
* Model tests for AppleReq
*/

View File

@@ -19,10 +19,10 @@ import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.util.Arrays;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
/**
* Model tests for Apple
*/

View File

@@ -19,10 +19,10 @@ import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.util.Arrays;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
/**
* Model tests for ArrayOfInlineAllOfArrayAllofDogPropertyInner
*/

View File

@@ -20,12 +20,12 @@ import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.openapitools.client.model.ArrayOfInlineAllOfArrayAllofDogPropertyInner;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
/**
* Model tests for ArrayOfInlineAllOf
*/

View File

@@ -21,11 +21,11 @@ import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
/**
* Model tests for ArrayOfNumberOnly
*/

View File

@@ -20,12 +20,12 @@ import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.openapitools.client.model.ReadOnlyFirst;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
/**
* Model tests for ArrayTest
*/

View File

@@ -20,10 +20,10 @@ import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.math.BigDecimal;
import java.util.Arrays;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
/**
* Model tests for BananaReq
*/

View File

@@ -20,10 +20,10 @@ import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.math.BigDecimal;
import java.util.Arrays;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
/**
* Model tests for Banana
*/

View File

@@ -19,10 +19,10 @@ import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.util.Arrays;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
/**
* Model tests for BasquePig
*/

View File

@@ -19,10 +19,10 @@ import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.util.Arrays;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
/**
* Model tests for Capitalization
*/

View File

@@ -19,11 +19,12 @@ import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.util.Arrays;
import java.util.Map;
import org.openapitools.client.model.Animal;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
/**
* Model tests for Cat
*/

View File

@@ -19,10 +19,10 @@ import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.util.Arrays;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
/**
* Model tests for Category
*/

View File

@@ -19,10 +19,10 @@ import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.util.Arrays;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
/**
* Model tests for ClassModel
*/

View File

@@ -19,10 +19,10 @@ import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.util.Arrays;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
/**
* Model tests for Client
*/

View File

@@ -19,10 +19,10 @@ import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.util.Arrays;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
/**
* Model tests for ComplexQuadrilateral
*/

View File

@@ -19,10 +19,10 @@ import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.util.Arrays;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
/**
* Model tests for DanishPig
*/

View File

@@ -19,10 +19,10 @@ import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.util.Arrays;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
/**
* Model tests for DeprecatedObject
*/

View File

@@ -19,11 +19,11 @@ import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.util.Arrays;
import org.openapitools.client.model.Animal;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
/**
* Model tests for Dog
*/

View File

@@ -20,6 +20,7 @@ import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.openapitools.client.model.Fruit;
import org.openapitools.client.model.NullableShape;
@@ -29,7 +30,6 @@ import org.openapitools.jackson.nullable.JsonNullable;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
/**
* Model tests for Drawing
*/

View File

@@ -20,11 +20,11 @@ import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
/**
* Model tests for EnumArrays
*/

View File

@@ -17,7 +17,6 @@ import com.google.gson.annotations.SerializedName;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
/**
* Model tests for EnumClass
*/

View File

@@ -19,10 +19,10 @@ import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.util.Arrays;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
/**
* Model tests for EnumStringDiscriminator
*/

View File

@@ -19,6 +19,7 @@ import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.util.Arrays;
import org.openapitools.client.model.OuterEnum;
import org.openapitools.client.model.OuterEnumDefaultValue;
import org.openapitools.client.model.OuterEnumInteger;
@@ -27,7 +28,6 @@ import org.openapitools.jackson.nullable.JsonNullable;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
/**
* Model tests for EnumTest
*/

View File

@@ -19,10 +19,10 @@ import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.util.Arrays;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
/**
* Model tests for EquilateralTriangle
*/

View File

@@ -20,12 +20,12 @@ import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.openapitools.client.model.ModelFile;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
/**
* Model tests for FileSchemaTestClass
*/

View File

@@ -19,11 +19,11 @@ import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.util.Arrays;
import org.openapitools.client.model.Foo;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
/**
* Model tests for FooGetDefaultResponse
*/

View File

@@ -19,10 +19,10 @@ import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.util.Arrays;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
/**
* Model tests for Foo
*/

View File

@@ -23,11 +23,11 @@ import java.io.IOException;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.OffsetDateTime;
import java.util.Arrays;
import java.util.UUID;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
/**
* Model tests for FormatTest
*/

View File

@@ -20,12 +20,12 @@ import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.math.BigDecimal;
import java.util.Arrays;
import org.openapitools.client.model.AppleReq;
import org.openapitools.client.model.BananaReq;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
/**
* Model tests for FruitReq
*/

View File

@@ -20,12 +20,12 @@ import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.math.BigDecimal;
import java.util.Arrays;
import org.openapitools.client.model.Apple;
import org.openapitools.client.model.Banana;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
/**
* Model tests for Fruit
*/

View File

@@ -20,12 +20,12 @@ import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.math.BigDecimal;
import java.util.Arrays;
import org.openapitools.client.model.Apple;
import org.openapitools.client.model.Banana;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
/**
* Model tests for GmFruit
*/

View File

@@ -19,11 +19,10 @@ import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import org.openapitools.client.model.ParentPet;
import java.util.Arrays;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
/**
* Model tests for GrandparentAnimal
*/

View File

@@ -19,10 +19,10 @@ import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.util.Arrays;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
/**
* Model tests for HasOnlyReadOnly
*/

View File

@@ -19,11 +19,11 @@ import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.util.Arrays;
import org.openapitools.jackson.nullable.JsonNullable;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
/**
* Model tests for HealthCheckResult
*/

View File

@@ -19,10 +19,10 @@ import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.util.Arrays;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
/**
* Model tests for IsoscelesTriangle
*/

View File

@@ -19,13 +19,13 @@ import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.util.Arrays;
import org.openapitools.client.model.Pig;
import org.openapitools.client.model.Whale;
import org.openapitools.client.model.Zebra;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
/**
* Model tests for Mammal
*/

View File

@@ -19,12 +19,12 @@ import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
/**
* Model tests for MapTest
*/

View File

@@ -20,6 +20,7 @@ import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.time.OffsetDateTime;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
import java.util.UUID;
@@ -27,7 +28,6 @@ import org.openapitools.client.model.Animal;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
/**
* Model tests for MixedPropertiesAndAdditionalPropertiesClass
*/

View File

@@ -19,10 +19,10 @@ import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.util.Arrays;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
/**
* Model tests for Model200Response
*/

View File

@@ -19,10 +19,10 @@ import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.util.Arrays;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
/**
* Model tests for ModelApiResponse
*/

View File

@@ -19,10 +19,10 @@ import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.util.Arrays;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
/**
* Model tests for ModelFile
*/

View File

@@ -19,10 +19,10 @@ import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.util.Arrays;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
/**
* Model tests for ModelList
*/

View File

@@ -19,10 +19,10 @@ import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.util.Arrays;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
/**
* Model tests for ModelReturn
*/

View File

@@ -19,10 +19,10 @@ import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.util.Arrays;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
/**
* Model tests for Name
*/

View File

@@ -50,6 +50,22 @@ public class NewPetTest {
// TODO: test id
}
/**
* Test the property 'categoryRefToInlineAllofString'
*/
@Test
public void categoryRefToInlineAllofStringTest() {
// TODO: test categoryRefToInlineAllofString
}
/**
* Test the property 'categoryInlineAllofString'
*/
@Test
public void categoryInlineAllofStringTest() {
// TODO: test categoryInlineAllofString
}
/**
* Test the property 'categoryInlineAllof'
*/
@@ -66,6 +82,22 @@ public class NewPetTest {
// TODO: test categoryAllOfRef
}
/**
* Test the property 'categoryAllOfRefDescription'
*/
@Test
public void categoryAllOfRefDescriptionTest() {
// TODO: test categoryAllOfRefDescription
}
/**
* Test the property 'categoryAllOfRefDescriptionReadonly'
*/
@Test
public void categoryAllOfRefDescriptionReadonlyTest() {
// TODO: test categoryAllOfRefDescriptionReadonly
}
/**
* Test the property 'name'
*/

View File

@@ -23,6 +23,7 @@ import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.OffsetDateTime;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@@ -30,7 +31,6 @@ import org.openapitools.jackson.nullable.JsonNullable;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
/**
* Model tests for NullableClass
*/

View File

@@ -19,12 +19,12 @@ import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.util.Arrays;
import org.openapitools.client.model.Quadrilateral;
import org.openapitools.client.model.Triangle;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
/**
* Model tests for NullableShape
*/

View File

@@ -20,10 +20,10 @@ import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.math.BigDecimal;
import java.util.Arrays;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
/**
* Model tests for NumberOnly
*/

View File

@@ -21,12 +21,12 @@ import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.openapitools.client.model.DeprecatedObject;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
/**
* Model tests for ObjectWithDeprecatedFields
*/

View File

@@ -20,10 +20,10 @@ import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.time.OffsetDateTime;
import java.util.Arrays;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
/**
* Model tests for Order
*/

View File

@@ -20,10 +20,10 @@ import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.math.BigDecimal;
import java.util.Arrays;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
/**
* Model tests for OuterComposite
*/

View File

@@ -17,7 +17,6 @@ import com.google.gson.annotations.SerializedName;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
/**
* Model tests for OuterEnumDefaultValue
*/

View File

@@ -17,7 +17,6 @@ import com.google.gson.annotations.SerializedName;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
/**
* Model tests for OuterEnumIntegerDefaultValue
*/

View File

@@ -17,7 +17,6 @@ import com.google.gson.annotations.SerializedName;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
/**
* Model tests for OuterEnumInteger
*/

View File

@@ -17,7 +17,6 @@ import com.google.gson.annotations.SerializedName;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
/**
* Model tests for OuterEnum
*/

View File

@@ -19,11 +19,11 @@ import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.util.Arrays;
import org.openapitools.client.model.GrandparentAnimal;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
/**
* Model tests for ParentPet
*/

View File

@@ -19,7 +19,11 @@ import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.openapitools.client.model.Category;
import org.openapitools.client.model.Tag;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
@@ -37,6 +41,46 @@ public class PetRefTest {
// TODO: test PetRef
}
/**
* Test the property 'id'
*/
@Test
public void idTest() {
// TODO: test id
}
/**
* Test the property 'category'
*/
@Test
public void categoryTest() {
// TODO: test category
}
/**
* Test the property 'name'
*/
@Test
public void nameTest() {
// TODO: test name
}
/**
* Test the property 'photoUrls'
*/
@Test
public void photoUrlsTest() {
// TODO: test photoUrls
}
/**
* Test the property 'tags'
*/
@Test
public void tagsTest() {
// TODO: test tags
}
/**
* Test the property 'status'
*/

View File

@@ -20,13 +20,13 @@ import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.openapitools.client.model.Category;
import org.openapitools.client.model.Tag;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
/**
* Model tests for PetWithRequiredTags
*/

View File

@@ -19,12 +19,12 @@ import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.util.Arrays;
import org.openapitools.client.model.BasquePig;
import org.openapitools.client.model.DanishPig;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
/**
* Model tests for Pig
*/

View File

@@ -19,10 +19,10 @@ import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.util.Arrays;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
/**
* Model tests for QuadrilateralInterface
*/

View File

@@ -19,12 +19,12 @@ import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.util.Arrays;
import org.openapitools.client.model.ComplexQuadrilateral;
import org.openapitools.client.model.SimpleQuadrilateral;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
/**
* Model tests for Quadrilateral
*/

View File

@@ -19,10 +19,10 @@ import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.util.Arrays;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
/**
* Model tests for ReadOnlyFirst
*/

View File

@@ -19,10 +19,10 @@ import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.util.Arrays;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
/**
* Model tests for ScaleneTriangle
*/

View File

@@ -19,10 +19,10 @@ import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.util.Arrays;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
/**
* Model tests for ShapeInterface
*/

View File

@@ -19,12 +19,12 @@ import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.util.Arrays;
import org.openapitools.client.model.Quadrilateral;
import org.openapitools.client.model.Triangle;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
/**
* Model tests for ShapeOrNull
*/

View File

@@ -19,12 +19,12 @@ import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.util.Arrays;
import org.openapitools.client.model.Quadrilateral;
import org.openapitools.client.model.Triangle;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
/**
* Model tests for Shape
*/

View File

@@ -19,10 +19,10 @@ import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.util.Arrays;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
/**
* Model tests for SimpleQuadrilateral
*/

View File

@@ -19,10 +19,10 @@ import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.util.Arrays;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
/**
* Model tests for SpecialModelName
*/

View File

@@ -19,10 +19,10 @@ import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.util.Arrays;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
/**
* Model tests for Tag
*/

View File

@@ -19,10 +19,10 @@ import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.util.Arrays;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
/**
* Model tests for TriangleInterface
*/

View File

@@ -19,13 +19,13 @@ import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.util.Arrays;
import org.openapitools.client.model.EquilateralTriangle;
import org.openapitools.client.model.IsoscelesTriangle;
import org.openapitools.client.model.ScaleneTriangle;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
/**
* Model tests for Triangle
*/

View File

@@ -19,11 +19,11 @@ import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.util.Arrays;
import org.openapitools.jackson.nullable.JsonNullable;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
/**
* Model tests for User
*/

View File

@@ -13,6 +13,7 @@
package org.openapitools.client.model;
import java.util.List;
import org.openapitools.client.model.Scalar;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;

View File

@@ -19,10 +19,10 @@ import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.util.Arrays;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
/**
* Model tests for Whale
*/

View File

@@ -19,10 +19,10 @@ import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.util.Arrays;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
/**
* Model tests for Zebra
*/