forked from loafle/openapi-generator-original
[Java][client][native][Gradle] Add missing jackson-databind-nullable (#6802)
* Add missing jackson-databind-nullable to java-native Gradle build Closes #6801 * Regenerate java-native samples * update samples Co-authored-by: William Cheng <wing328hk@gmail.com>
This commit is contained in:
@@ -62,6 +62,7 @@ dependencies {
|
||||
compile "com.fasterxml.jackson.core:jackson-annotations:$jackson_version"
|
||||
compile "com.fasterxml.jackson.core:jackson-databind:$jackson_version"
|
||||
compile "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:$jackson_version"
|
||||
compile "org.openapitools:jackson-databind-nullable:0.2.1"
|
||||
compile 'javax.annotation:javax.annotation-api:1.3.2'
|
||||
testCompile "junit:junit:$junit_version"
|
||||
}
|
||||
|
||||
@@ -62,6 +62,7 @@ dependencies {
|
||||
compile "com.fasterxml.jackson.core:jackson-annotations:$jackson_version"
|
||||
compile "com.fasterxml.jackson.core:jackson-databind:$jackson_version"
|
||||
compile "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:$jackson_version"
|
||||
compile "org.openapitools:jackson-databind-nullable:0.2.1"
|
||||
compile 'javax.annotation:javax.annotation-api:1.3.2'
|
||||
testCompile "junit:junit:$junit_version"
|
||||
}
|
||||
|
||||
@@ -17,20 +17,23 @@ import org.openapitools.client.ApiException;
|
||||
import org.openapitools.client.model.Client;
|
||||
import org.junit.Test;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Assert;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import java.util.concurrent.CompletableFuture;
|
||||
|
||||
/**
|
||||
* API tests for AnotherFakeApi
|
||||
*/
|
||||
@Ignore
|
||||
public class AnotherFakeApiTest {
|
||||
|
||||
private final AnotherFakeApi api = new AnotherFakeApi();
|
||||
|
||||
|
||||
/**
|
||||
* To test special tags
|
||||
*
|
||||
@@ -41,11 +44,11 @@ public class AnotherFakeApiTest {
|
||||
*/
|
||||
@Test
|
||||
public void call123testSpecialTagsTest() throws ApiException {
|
||||
//
|
||||
//Client body = null;
|
||||
//
|
||||
//Client response = api.call123testSpecialTags(body);
|
||||
|
||||
Client body = null;
|
||||
CompletableFuture<Client> response =
|
||||
api.call123testSpecialTags(body);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -25,20 +25,23 @@ import org.openapitools.client.model.User;
|
||||
import org.openapitools.client.model.XmlItem;
|
||||
import org.junit.Test;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Assert;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import java.util.concurrent.CompletableFuture;
|
||||
|
||||
/**
|
||||
* API tests for FakeApi
|
||||
*/
|
||||
@Ignore
|
||||
public class FakeApiTest {
|
||||
|
||||
private final FakeApi api = new FakeApi();
|
||||
|
||||
|
||||
/**
|
||||
* creates an XmlItem
|
||||
*
|
||||
@@ -49,14 +52,16 @@ public class FakeApiTest {
|
||||
*/
|
||||
@Test
|
||||
public void createXmlItemTest() throws ApiException {
|
||||
//
|
||||
//XmlItem xmlItem = null;
|
||||
//
|
||||
//api.createXmlItem(xmlItem);
|
||||
|
||||
XmlItem xmlItem = null;
|
||||
|
||||
CompletableFuture<Void> response = api.createXmlItem(xmlItem);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* Test serialization of outer boolean types
|
||||
*
|
||||
* @throws ApiException
|
||||
@@ -64,14 +69,16 @@ public class FakeApiTest {
|
||||
*/
|
||||
@Test
|
||||
public void fakeOuterBooleanSerializeTest() throws ApiException {
|
||||
//
|
||||
//Boolean body = null;
|
||||
//
|
||||
//Boolean response = api.fakeOuterBooleanSerialize(body);
|
||||
|
||||
Boolean body = null;
|
||||
CompletableFuture<Boolean> response =
|
||||
api.fakeOuterBooleanSerialize(body);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* Test serialization of object with outer number type
|
||||
*
|
||||
* @throws ApiException
|
||||
@@ -79,14 +86,16 @@ public class FakeApiTest {
|
||||
*/
|
||||
@Test
|
||||
public void fakeOuterCompositeSerializeTest() throws ApiException {
|
||||
//
|
||||
//OuterComposite body = null;
|
||||
//
|
||||
//OuterComposite response = api.fakeOuterCompositeSerialize(body);
|
||||
|
||||
OuterComposite body = null;
|
||||
CompletableFuture<OuterComposite> response =
|
||||
api.fakeOuterCompositeSerialize(body);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* Test serialization of outer number types
|
||||
*
|
||||
* @throws ApiException
|
||||
@@ -94,14 +103,16 @@ public class FakeApiTest {
|
||||
*/
|
||||
@Test
|
||||
public void fakeOuterNumberSerializeTest() throws ApiException {
|
||||
//
|
||||
//BigDecimal body = null;
|
||||
//
|
||||
//BigDecimal response = api.fakeOuterNumberSerialize(body);
|
||||
|
||||
BigDecimal body = null;
|
||||
CompletableFuture<BigDecimal> response =
|
||||
api.fakeOuterNumberSerialize(body);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* Test serialization of outer string types
|
||||
*
|
||||
* @throws ApiException
|
||||
@@ -109,14 +120,16 @@ public class FakeApiTest {
|
||||
*/
|
||||
@Test
|
||||
public void fakeOuterStringSerializeTest() throws ApiException {
|
||||
//
|
||||
//String body = null;
|
||||
//
|
||||
//String response = api.fakeOuterStringSerialize(body);
|
||||
|
||||
String body = null;
|
||||
CompletableFuture<String> response =
|
||||
api.fakeOuterStringSerialize(body);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* For this test, the body for this request much reference a schema named `File`.
|
||||
*
|
||||
* @throws ApiException
|
||||
@@ -124,28 +137,31 @@ public class FakeApiTest {
|
||||
*/
|
||||
@Test
|
||||
public void testBodyWithFileSchemaTest() throws ApiException {
|
||||
//
|
||||
//FileSchemaTestClass body = null;
|
||||
//
|
||||
//api.testBodyWithFileSchema(body);
|
||||
|
||||
FileSchemaTestClass body = null;
|
||||
|
||||
CompletableFuture<Void> response = api.testBodyWithFileSchema(body);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* @throws ApiException
|
||||
* if the Api call fails
|
||||
*/
|
||||
@Test
|
||||
public void testBodyWithQueryParamsTest() throws ApiException {
|
||||
//
|
||||
//String query = null;
|
||||
//
|
||||
//User body = null;
|
||||
//
|
||||
//api.testBodyWithQueryParams(query, body);
|
||||
|
||||
String query = null;
|
||||
User body = null;
|
||||
|
||||
CompletableFuture<Void> response = api.testBodyWithQueryParams(query, body);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
/**
|
||||
* To test \"client\" model
|
||||
*
|
||||
@@ -156,13 +172,13 @@ public class FakeApiTest {
|
||||
*/
|
||||
@Test
|
||||
public void testClientModelTest() throws ApiException {
|
||||
//
|
||||
//Client body = null;
|
||||
//
|
||||
//Client response = api.testClientModel(body);
|
||||
|
||||
Client body = null;
|
||||
CompletableFuture<Client> response =
|
||||
api.testClientModel(body);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
/**
|
||||
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||
*
|
||||
@@ -173,39 +189,26 @@ public class FakeApiTest {
|
||||
*/
|
||||
@Test
|
||||
public void testEndpointParametersTest() throws ApiException {
|
||||
//
|
||||
//BigDecimal number = null;
|
||||
//
|
||||
//Double _double = null;
|
||||
//
|
||||
//String patternWithoutDelimiter = null;
|
||||
//
|
||||
//byte[] _byte = null;
|
||||
//
|
||||
//Integer integer = null;
|
||||
//
|
||||
//Integer int32 = null;
|
||||
//
|
||||
//Long int64 = null;
|
||||
//
|
||||
//Float _float = null;
|
||||
//
|
||||
//String string = null;
|
||||
//
|
||||
//File binary = null;
|
||||
//
|
||||
//LocalDate date = null;
|
||||
//
|
||||
//OffsetDateTime dateTime = null;
|
||||
//
|
||||
//String password = null;
|
||||
//
|
||||
//String paramCallback = null;
|
||||
//
|
||||
//api.testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback);
|
||||
|
||||
BigDecimal number = null;
|
||||
Double _double = null;
|
||||
String patternWithoutDelimiter = null;
|
||||
byte[] _byte = null;
|
||||
Integer integer = null;
|
||||
Integer int32 = null;
|
||||
Long int64 = null;
|
||||
Float _float = null;
|
||||
String string = null;
|
||||
File binary = null;
|
||||
LocalDate date = null;
|
||||
OffsetDateTime dateTime = null;
|
||||
String password = null;
|
||||
String paramCallback = null;
|
||||
|
||||
CompletableFuture<Void> response = api.testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
/**
|
||||
* To test enum parameters
|
||||
*
|
||||
@@ -216,27 +219,20 @@ public class FakeApiTest {
|
||||
*/
|
||||
@Test
|
||||
public void testEnumParametersTest() throws ApiException {
|
||||
//
|
||||
//List<String> enumHeaderStringArray = null;
|
||||
//
|
||||
//String enumHeaderString = null;
|
||||
//
|
||||
//List<String> enumQueryStringArray = null;
|
||||
//
|
||||
//String enumQueryString = null;
|
||||
//
|
||||
//Integer enumQueryInteger = null;
|
||||
//
|
||||
//Double enumQueryDouble = null;
|
||||
//
|
||||
//List<String> enumFormStringArray = null;
|
||||
//
|
||||
//String enumFormString = null;
|
||||
//
|
||||
//api.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString);
|
||||
|
||||
List<String> enumHeaderStringArray = null;
|
||||
String enumHeaderString = null;
|
||||
List<String> enumQueryStringArray = null;
|
||||
String enumQueryString = null;
|
||||
Integer enumQueryInteger = null;
|
||||
Double enumQueryDouble = null;
|
||||
List<String> enumFormStringArray = null;
|
||||
String enumFormString = null;
|
||||
|
||||
CompletableFuture<Void> response = api.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
/**
|
||||
* Fake endpoint to test group parameters (optional)
|
||||
*
|
||||
@@ -247,56 +243,65 @@ public class FakeApiTest {
|
||||
*/
|
||||
@Test
|
||||
public void testGroupParametersTest() throws ApiException {
|
||||
//
|
||||
//Integer requiredStringGroup = null;
|
||||
//
|
||||
//Boolean requiredBooleanGroup = null;
|
||||
//
|
||||
//Long requiredInt64Group = null;
|
||||
//
|
||||
//Integer stringGroup = null;
|
||||
//
|
||||
//Boolean booleanGroup = null;
|
||||
//
|
||||
//Long int64Group = null;
|
||||
//
|
||||
//api.testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group);
|
||||
Integer requiredStringGroup = null;
|
||||
Boolean requiredBooleanGroup = null;
|
||||
Long requiredInt64Group = null;
|
||||
Integer stringGroup = null;
|
||||
Boolean booleanGroup = null;
|
||||
Long int64Group = null;
|
||||
|
||||
FakeApi.APItestGroupParametersRequest request = FakeApi.APItestGroupParametersRequest.newBuilder()
|
||||
.requiredStringGroup(requiredStringGroup)
|
||||
.requiredBooleanGroup(requiredBooleanGroup)
|
||||
.requiredInt64Group(requiredInt64Group)
|
||||
.stringGroup(stringGroup)
|
||||
.booleanGroup(booleanGroup)
|
||||
.int64Group(int64Group)
|
||||
.build();
|
||||
|
||||
CompletableFuture<Void> response = api.testGroupParameters(request);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
/**
|
||||
* test inline additionalProperties
|
||||
*
|
||||
*
|
||||
*
|
||||
* @throws ApiException
|
||||
* if the Api call fails
|
||||
*/
|
||||
@Test
|
||||
public void testInlineAdditionalPropertiesTest() throws ApiException {
|
||||
//
|
||||
//Map<String, String> param = null;
|
||||
//
|
||||
//api.testInlineAdditionalProperties(param);
|
||||
|
||||
Map<String, String> param = null;
|
||||
|
||||
CompletableFuture<Void> response = api.testInlineAdditionalProperties(param);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
/**
|
||||
* test json serialization of form data
|
||||
*
|
||||
*
|
||||
*
|
||||
* @throws ApiException
|
||||
* if the Api call fails
|
||||
*/
|
||||
@Test
|
||||
public void testJsonFormDataTest() throws ApiException {
|
||||
//
|
||||
//String param = null;
|
||||
//
|
||||
//String param2 = null;
|
||||
//
|
||||
//api.testJsonFormData(param, param2);
|
||||
|
||||
String param = null;
|
||||
String param2 = null;
|
||||
|
||||
CompletableFuture<Void> response = api.testJsonFormData(param, param2);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* To test the collection format in query parameters
|
||||
*
|
||||
* @throws ApiException
|
||||
@@ -304,19 +309,15 @@ public class FakeApiTest {
|
||||
*/
|
||||
@Test
|
||||
public void testQueryParameterCollectionFormatTest() throws ApiException {
|
||||
//
|
||||
//List<String> pipe = null;
|
||||
//
|
||||
//List<String> ioutil = null;
|
||||
//
|
||||
//List<String> http = null;
|
||||
//
|
||||
//List<String> url = null;
|
||||
//
|
||||
//List<String> context = null;
|
||||
//
|
||||
//api.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context);
|
||||
|
||||
List<String> pipe = null;
|
||||
List<String> ioutil = null;
|
||||
List<String> http = null;
|
||||
List<String> url = null;
|
||||
List<String> context = null;
|
||||
|
||||
CompletableFuture<Void> response = api.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -17,20 +17,23 @@ import org.openapitools.client.ApiException;
|
||||
import org.openapitools.client.model.Client;
|
||||
import org.junit.Test;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Assert;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import java.util.concurrent.CompletableFuture;
|
||||
|
||||
/**
|
||||
* API tests for FakeClassnameTags123Api
|
||||
*/
|
||||
@Ignore
|
||||
public class FakeClassnameTags123ApiTest {
|
||||
|
||||
private final FakeClassnameTags123Api api = new FakeClassnameTags123Api();
|
||||
|
||||
|
||||
/**
|
||||
* To test class name in snake case
|
||||
*
|
||||
@@ -41,11 +44,11 @@ public class FakeClassnameTags123ApiTest {
|
||||
*/
|
||||
@Test
|
||||
public void testClassnameTest() throws ApiException {
|
||||
//
|
||||
//Client body = null;
|
||||
//
|
||||
//Client response = api.testClassname(body);
|
||||
|
||||
Client body = null;
|
||||
CompletableFuture<Client> response =
|
||||
api.testClassname(body);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -17,54 +17,61 @@ import org.openapitools.client.ApiException;
|
||||
import java.io.File;
|
||||
import org.openapitools.client.model.ModelApiResponse;
|
||||
import org.openapitools.client.model.Pet;
|
||||
import java.util.Set;
|
||||
import org.junit.Test;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Assert;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import java.util.concurrent.CompletableFuture;
|
||||
|
||||
/**
|
||||
* API tests for PetApi
|
||||
*/
|
||||
@Ignore
|
||||
public class PetApiTest {
|
||||
|
||||
private final PetApi api = new PetApi();
|
||||
|
||||
|
||||
/**
|
||||
* Add a new pet to the store
|
||||
*
|
||||
*
|
||||
*
|
||||
* @throws ApiException
|
||||
* if the Api call fails
|
||||
*/
|
||||
@Test
|
||||
public void addPetTest() throws ApiException {
|
||||
//
|
||||
//Pet body = null;
|
||||
//
|
||||
//api.addPet(body);
|
||||
|
||||
Pet body = null;
|
||||
|
||||
CompletableFuture<Void> response = api.addPet(body);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
/**
|
||||
* Deletes a pet
|
||||
*
|
||||
*
|
||||
*
|
||||
* @throws ApiException
|
||||
* if the Api call fails
|
||||
*/
|
||||
@Test
|
||||
public void deletePetTest() throws ApiException {
|
||||
//
|
||||
//Long petId = null;
|
||||
//
|
||||
//String apiKey = null;
|
||||
//
|
||||
//api.deletePet(petId, apiKey);
|
||||
|
||||
Long petId = null;
|
||||
String apiKey = null;
|
||||
|
||||
CompletableFuture<Void> response = api.deletePet(petId, apiKey);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
/**
|
||||
* Finds Pets by status
|
||||
*
|
||||
@@ -75,13 +82,13 @@ public class PetApiTest {
|
||||
*/
|
||||
@Test
|
||||
public void findPetsByStatusTest() throws ApiException {
|
||||
//
|
||||
//List<String> status = null;
|
||||
//
|
||||
//List<Pet> response = api.findPetsByStatus(status);
|
||||
|
||||
List<String> status = null;
|
||||
CompletableFuture<List<Pet>> response =
|
||||
api.findPetsByStatus(status);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
/**
|
||||
* Finds Pets by tags
|
||||
*
|
||||
@@ -92,13 +99,13 @@ public class PetApiTest {
|
||||
*/
|
||||
@Test
|
||||
public void findPetsByTagsTest() throws ApiException {
|
||||
//
|
||||
//List<String> tags = null;
|
||||
//
|
||||
//List<Pet> response = api.findPetsByTags(tags);
|
||||
|
||||
Set<String> tags = null;
|
||||
CompletableFuture<Set<Pet>> response =
|
||||
api.findPetsByTags(tags);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
/**
|
||||
* Find pet by ID
|
||||
*
|
||||
@@ -109,83 +116,85 @@ public class PetApiTest {
|
||||
*/
|
||||
@Test
|
||||
public void getPetByIdTest() throws ApiException {
|
||||
//
|
||||
//Long petId = null;
|
||||
//
|
||||
//Pet response = api.getPetById(petId);
|
||||
|
||||
Long petId = null;
|
||||
CompletableFuture<Pet> response =
|
||||
api.getPetById(petId);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
/**
|
||||
* Update an existing pet
|
||||
*
|
||||
*
|
||||
*
|
||||
* @throws ApiException
|
||||
* if the Api call fails
|
||||
*/
|
||||
@Test
|
||||
public void updatePetTest() throws ApiException {
|
||||
//
|
||||
//Pet body = null;
|
||||
//
|
||||
//api.updatePet(body);
|
||||
|
||||
Pet body = null;
|
||||
|
||||
CompletableFuture<Void> response = api.updatePet(body);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
/**
|
||||
* Updates a pet in the store with form data
|
||||
*
|
||||
*
|
||||
*
|
||||
* @throws ApiException
|
||||
* if the Api call fails
|
||||
*/
|
||||
@Test
|
||||
public void updatePetWithFormTest() throws ApiException {
|
||||
//
|
||||
//Long petId = null;
|
||||
//
|
||||
//String name = null;
|
||||
//
|
||||
//String status = null;
|
||||
//
|
||||
//api.updatePetWithForm(petId, name, status);
|
||||
|
||||
Long petId = null;
|
||||
String name = null;
|
||||
String status = null;
|
||||
|
||||
CompletableFuture<Void> response = api.updatePetWithForm(petId, name, status);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
/**
|
||||
* uploads an image
|
||||
*
|
||||
*
|
||||
*
|
||||
* @throws ApiException
|
||||
* if the Api call fails
|
||||
*/
|
||||
@Test
|
||||
public void uploadFileTest() throws ApiException {
|
||||
//
|
||||
//Long petId = null;
|
||||
//
|
||||
//String additionalMetadata = null;
|
||||
//
|
||||
//File file = null;
|
||||
//
|
||||
//ModelApiResponse response = api.uploadFile(petId, additionalMetadata, file);
|
||||
|
||||
Long petId = null;
|
||||
String additionalMetadata = null;
|
||||
File file = null;
|
||||
CompletableFuture<ModelApiResponse> response =
|
||||
api.uploadFile(petId, additionalMetadata, file);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
/**
|
||||
* uploads an image (required)
|
||||
*
|
||||
*
|
||||
*
|
||||
* @throws ApiException
|
||||
* if the Api call fails
|
||||
*/
|
||||
@Test
|
||||
public void uploadFileWithRequiredFileTest() throws ApiException {
|
||||
//
|
||||
//Long petId = null;
|
||||
//
|
||||
//File requiredFile = null;
|
||||
//
|
||||
//String additionalMetadata = null;
|
||||
//
|
||||
//ModelApiResponse response = api.uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata);
|
||||
|
||||
Long petId = null;
|
||||
File requiredFile = null;
|
||||
String additionalMetadata = null;
|
||||
CompletableFuture<ModelApiResponse> response =
|
||||
api.uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -17,20 +17,23 @@ import org.openapitools.client.ApiException;
|
||||
import org.openapitools.client.model.Order;
|
||||
import org.junit.Test;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Assert;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import java.util.concurrent.CompletableFuture;
|
||||
|
||||
/**
|
||||
* API tests for StoreApi
|
||||
*/
|
||||
@Ignore
|
||||
public class StoreApiTest {
|
||||
|
||||
private final StoreApi api = new StoreApi();
|
||||
|
||||
|
||||
/**
|
||||
* Delete purchase order by ID
|
||||
*
|
||||
@@ -41,13 +44,13 @@ public class StoreApiTest {
|
||||
*/
|
||||
@Test
|
||||
public void deleteOrderTest() throws ApiException {
|
||||
//
|
||||
//String orderId = null;
|
||||
//
|
||||
//api.deleteOrder(orderId);
|
||||
|
||||
String orderId = null;
|
||||
|
||||
CompletableFuture<Void> response = api.deleteOrder(orderId);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns pet inventories by status
|
||||
*
|
||||
@@ -58,11 +61,12 @@ public class StoreApiTest {
|
||||
*/
|
||||
@Test
|
||||
public void getInventoryTest() throws ApiException {
|
||||
//
|
||||
//Map<String, Integer> response = api.getInventory();
|
||||
|
||||
CompletableFuture<Map<String, Integer>> response =
|
||||
api.getInventory();
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
/**
|
||||
* Find purchase order by ID
|
||||
*
|
||||
@@ -73,26 +77,28 @@ public class StoreApiTest {
|
||||
*/
|
||||
@Test
|
||||
public void getOrderByIdTest() throws ApiException {
|
||||
//
|
||||
//Long orderId = null;
|
||||
//
|
||||
//Order response = api.getOrderById(orderId);
|
||||
|
||||
Long orderId = null;
|
||||
CompletableFuture<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 body = null;
|
||||
CompletableFuture<Order> response =
|
||||
api.placeOrder(body);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -17,20 +17,23 @@ import org.openapitools.client.ApiException;
|
||||
import org.openapitools.client.model.User;
|
||||
import org.junit.Test;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Assert;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import java.util.concurrent.CompletableFuture;
|
||||
|
||||
/**
|
||||
* API tests for UserApi
|
||||
*/
|
||||
@Ignore
|
||||
public class UserApiTest {
|
||||
|
||||
private final UserApi api = new UserApi();
|
||||
|
||||
|
||||
/**
|
||||
* Create user
|
||||
*
|
||||
@@ -41,43 +44,47 @@ public class UserApiTest {
|
||||
*/
|
||||
@Test
|
||||
public void createUserTest() throws ApiException {
|
||||
//
|
||||
//User body = null;
|
||||
//
|
||||
//api.createUser(body);
|
||||
|
||||
User body = null;
|
||||
|
||||
CompletableFuture<Void> response = api.createUser(body);
|
||||
|
||||
// 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> body = null;
|
||||
|
||||
CompletableFuture<Void> response = api.createUsersWithArrayInput(body);
|
||||
|
||||
// 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> body = null;
|
||||
|
||||
CompletableFuture<Void> response = api.createUsersWithListInput(body);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
/**
|
||||
* Delete user
|
||||
*
|
||||
@@ -88,58 +95,64 @@ public class UserApiTest {
|
||||
*/
|
||||
@Test
|
||||
public void deleteUserTest() throws ApiException {
|
||||
//
|
||||
//String username = null;
|
||||
//
|
||||
//api.deleteUser(username);
|
||||
|
||||
String username = null;
|
||||
|
||||
CompletableFuture<Void> response = 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);
|
||||
|
||||
String username = null;
|
||||
CompletableFuture<User> response =
|
||||
api.getUserByName(username);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
/**
|
||||
* Logs user into the system
|
||||
*
|
||||
*
|
||||
*
|
||||
* @throws ApiException
|
||||
* if the Api call fails
|
||||
*/
|
||||
@Test
|
||||
public void loginUserTest() throws ApiException {
|
||||
//
|
||||
//String username = null;
|
||||
//
|
||||
//String password = null;
|
||||
//
|
||||
//String response = api.loginUser(username, password);
|
||||
|
||||
String username = null;
|
||||
String password = null;
|
||||
CompletableFuture<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();
|
||||
|
||||
|
||||
CompletableFuture<Void> response = api.logoutUser();
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
/**
|
||||
* Updated user
|
||||
*
|
||||
@@ -150,13 +163,12 @@ public class UserApiTest {
|
||||
*/
|
||||
@Test
|
||||
public void updateUserTest() throws ApiException {
|
||||
//
|
||||
//String username = null;
|
||||
//
|
||||
//User body = null;
|
||||
//
|
||||
//api.updateUser(username, body);
|
||||
|
||||
String username = null;
|
||||
User body = null;
|
||||
|
||||
CompletableFuture<Void> response = api.updateUser(username, body);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -21,6 +21,9 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import org.openapitools.client.model.BigCat;
|
||||
import org.openapitools.client.model.Cat;
|
||||
import org.openapitools.client.model.Dog;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
|
||||
@@ -16,6 +16,8 @@ package org.openapitools.client.model;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonSubTypes;
|
||||
import com.fasterxml.jackson.annotation.JsonTypeInfo;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
@@ -16,10 +16,13 @@ package org.openapitools.client.model;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonSubTypes;
|
||||
import com.fasterxml.jackson.annotation.JsonTypeInfo;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import org.openapitools.client.model.Animal;
|
||||
import org.openapitools.client.model.BigCat;
|
||||
import org.openapitools.client.model.CatAllOf;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Ignore;
|
||||
|
||||
@@ -16,6 +16,8 @@ package org.openapitools.client.model;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonSubTypes;
|
||||
import com.fasterxml.jackson.annotation.JsonTypeInfo;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
@@ -20,7 +20,9 @@ import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import java.util.ArrayList;
|
||||
import java.util.LinkedHashSet;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
import org.openapitools.client.model.Category;
|
||||
import org.openapitools.client.model.Tag;
|
||||
import org.junit.Assert;
|
||||
|
||||
@@ -62,6 +62,7 @@ dependencies {
|
||||
compile "com.fasterxml.jackson.core:jackson-annotations:$jackson_version"
|
||||
compile "com.fasterxml.jackson.core:jackson-databind:$jackson_version"
|
||||
compile "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:$jackson_version"
|
||||
compile "org.openapitools:jackson-databind-nullable:0.2.1"
|
||||
compile 'javax.annotation:javax.annotation-api:1.3.2'
|
||||
testCompile "junit:junit:$junit_version"
|
||||
}
|
||||
|
||||
@@ -1,85 +0,0 @@
|
||||
package org.openapitools.client;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import java.net.http.HttpClient;
|
||||
import java.time.Duration;
|
||||
import java.util.List;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
|
||||
public class ApiClientTest {
|
||||
|
||||
@Test
|
||||
public void urlEncodeTest() {
|
||||
String encoded = ApiClient.urlEncode("/&= $");
|
||||
assertEquals("%2F%26%3D+%24", encoded);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void parameterToPairsTest() {
|
||||
List<Pair> l = ApiClient.parameterToPairs("$name", "some value");
|
||||
assertEquals(1, l.size());
|
||||
Pair p = l.get(0);
|
||||
assertEquals("%24name", p.getName());
|
||||
assertEquals("some+value", p.getValue());
|
||||
|
||||
l = ApiClient.parameterToPairs("$name", null);
|
||||
assertTrue(l.isEmpty());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void parameterToPairsCollectionTest() {
|
||||
List<Pair> l = ApiClient.parameterToPairs(
|
||||
"csv",
|
||||
"$name",
|
||||
List.of("value 1", "value 2"));
|
||||
assertEquals(1, l.size());
|
||||
Pair p = l.get(0);
|
||||
assertEquals("%24name", p.getName());
|
||||
assertEquals("value+1%2Cvalue+2", p.getValue());
|
||||
|
||||
l = ApiClient.parameterToPairs(
|
||||
"multi",
|
||||
"$name",
|
||||
List.of("value 1", "value 2"));
|
||||
assertEquals(2, l.size());
|
||||
p = l.get(0);
|
||||
assertEquals("%24name", p.getName());
|
||||
assertEquals("value+1", p.getValue());
|
||||
p = l.get(1);
|
||||
assertEquals("%24name", p.getName());
|
||||
assertEquals("value+2", p.getValue());
|
||||
|
||||
l = ApiClient.parameterToPairs(
|
||||
"multi",
|
||||
"$name",
|
||||
List.of());
|
||||
assertTrue(l.isEmpty());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void uriOverrideTest() {
|
||||
ApiClient apiClient = new ApiClient();
|
||||
apiClient.setHost("test.swagger.io");
|
||||
apiClient.setPort(9999);
|
||||
apiClient.setBasePath("/testing");
|
||||
String baseUri = apiClient.getBaseUri();
|
||||
assertTrue(baseUri.endsWith("://test.swagger.io:9999/testing"));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void clientConnectTimeoutTest() {
|
||||
ApiClient apiClient = new ApiClient();
|
||||
HttpClient client = apiClient.getHttpClient();
|
||||
assertTrue(client.connectTimeout().isEmpty());
|
||||
|
||||
HttpClient.Builder builder = HttpClient.newBuilder()
|
||||
.connectTimeout(Duration.ofSeconds(10));
|
||||
apiClient.setHttpClientBuilder(builder);
|
||||
client = apiClient.getHttpClient();
|
||||
assertTrue(client.connectTimeout().isPresent());
|
||||
assertEquals(Duration.ofSeconds(10), client.connectTimeout().get());
|
||||
}
|
||||
}
|
||||
@@ -23,6 +23,7 @@ import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
/**
|
||||
* API tests for AnotherFakeApi
|
||||
*/
|
||||
@@ -43,8 +44,9 @@ public class AnotherFakeApiTest {
|
||||
@Test
|
||||
public void call123testSpecialTagsTest() throws ApiException {
|
||||
Client body = null;
|
||||
Client response = api.call123testSpecialTags(body);
|
||||
|
||||
Client response =
|
||||
api.call123testSpecialTags(body);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
|
||||
@@ -31,6 +31,7 @@ import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
/**
|
||||
* API tests for FakeApi
|
||||
*/
|
||||
@@ -51,8 +52,9 @@ public class FakeApiTest {
|
||||
@Test
|
||||
public void createXmlItemTest() throws ApiException {
|
||||
XmlItem xmlItem = null;
|
||||
|
||||
api.createXmlItem(xmlItem);
|
||||
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
@@ -67,8 +69,9 @@ public class FakeApiTest {
|
||||
@Test
|
||||
public void fakeOuterBooleanSerializeTest() throws ApiException {
|
||||
Boolean body = null;
|
||||
Boolean response = api.fakeOuterBooleanSerialize(body);
|
||||
|
||||
Boolean response =
|
||||
api.fakeOuterBooleanSerialize(body);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
@@ -83,8 +86,9 @@ public class FakeApiTest {
|
||||
@Test
|
||||
public void fakeOuterCompositeSerializeTest() throws ApiException {
|
||||
OuterComposite body = null;
|
||||
OuterComposite response = api.fakeOuterCompositeSerialize(body);
|
||||
|
||||
OuterComposite response =
|
||||
api.fakeOuterCompositeSerialize(body);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
@@ -99,8 +103,9 @@ public class FakeApiTest {
|
||||
@Test
|
||||
public void fakeOuterNumberSerializeTest() throws ApiException {
|
||||
BigDecimal body = null;
|
||||
BigDecimal response = api.fakeOuterNumberSerialize(body);
|
||||
|
||||
BigDecimal response =
|
||||
api.fakeOuterNumberSerialize(body);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
@@ -115,8 +120,9 @@ public class FakeApiTest {
|
||||
@Test
|
||||
public void fakeOuterStringSerializeTest() throws ApiException {
|
||||
String body = null;
|
||||
String response = api.fakeOuterStringSerialize(body);
|
||||
|
||||
String response =
|
||||
api.fakeOuterStringSerialize(body);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
@@ -131,8 +137,9 @@ public class FakeApiTest {
|
||||
@Test
|
||||
public void testBodyWithFileSchemaTest() throws ApiException {
|
||||
FileSchemaTestClass body = null;
|
||||
|
||||
api.testBodyWithFileSchema(body);
|
||||
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
@@ -148,8 +155,9 @@ public class FakeApiTest {
|
||||
public void testBodyWithQueryParamsTest() throws ApiException {
|
||||
String query = null;
|
||||
User body = null;
|
||||
|
||||
api.testBodyWithQueryParams(query, body);
|
||||
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
@@ -164,8 +172,9 @@ public class FakeApiTest {
|
||||
@Test
|
||||
public void testClientModelTest() throws ApiException {
|
||||
Client body = null;
|
||||
Client response = api.testClientModel(body);
|
||||
|
||||
Client response =
|
||||
api.testClientModel(body);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
@@ -193,8 +202,9 @@ public class FakeApiTest {
|
||||
OffsetDateTime dateTime = null;
|
||||
String password = null;
|
||||
String paramCallback = null;
|
||||
|
||||
api.testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback);
|
||||
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
@@ -216,8 +226,9 @@ public class FakeApiTest {
|
||||
Double enumQueryDouble = null;
|
||||
List<String> enumFormStringArray = null;
|
||||
String enumFormString = null;
|
||||
|
||||
api.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString);
|
||||
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
@@ -237,7 +248,7 @@ public class FakeApiTest {
|
||||
Integer stringGroup = null;
|
||||
Boolean booleanGroup = null;
|
||||
Long int64Group = null;
|
||||
|
||||
|
||||
FakeApi.APItestGroupParametersRequest request = FakeApi.APItestGroupParametersRequest.newBuilder()
|
||||
.requiredStringGroup(requiredStringGroup)
|
||||
.requiredBooleanGroup(requiredBooleanGroup)
|
||||
@@ -246,6 +257,7 @@ public class FakeApiTest {
|
||||
.booleanGroup(booleanGroup)
|
||||
.int64Group(int64Group)
|
||||
.build();
|
||||
|
||||
api.testGroupParameters(request);
|
||||
|
||||
// TODO: test validations
|
||||
@@ -262,8 +274,9 @@ public class FakeApiTest {
|
||||
@Test
|
||||
public void testInlineAdditionalPropertiesTest() throws ApiException {
|
||||
Map<String, String> param = null;
|
||||
|
||||
api.testInlineAdditionalProperties(param);
|
||||
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
@@ -279,8 +292,9 @@ public class FakeApiTest {
|
||||
public void testJsonFormDataTest() throws ApiException {
|
||||
String param = null;
|
||||
String param2 = null;
|
||||
|
||||
api.testJsonFormData(param, param2);
|
||||
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
@@ -299,8 +313,9 @@ public class FakeApiTest {
|
||||
List<String> http = null;
|
||||
List<String> url = null;
|
||||
List<String> context = null;
|
||||
|
||||
api.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context);
|
||||
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
|
||||
@@ -23,6 +23,7 @@ import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
/**
|
||||
* API tests for FakeClassnameTags123Api
|
||||
*/
|
||||
@@ -43,8 +44,9 @@ public class FakeClassnameTags123ApiTest {
|
||||
@Test
|
||||
public void testClassnameTest() throws ApiException {
|
||||
Client body = null;
|
||||
Client response = api.testClassname(body);
|
||||
|
||||
Client response =
|
||||
api.testClassname(body);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
|
||||
@@ -17,6 +17,7 @@ import org.openapitools.client.ApiException;
|
||||
import java.io.File;
|
||||
import org.openapitools.client.model.ModelApiResponse;
|
||||
import org.openapitools.client.model.Pet;
|
||||
import java.util.Set;
|
||||
import org.junit.Test;
|
||||
import org.junit.Ignore;
|
||||
|
||||
@@ -24,7 +25,7 @@ import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
|
||||
/**
|
||||
* API tests for PetApi
|
||||
@@ -46,8 +47,9 @@ public class PetApiTest {
|
||||
@Test
|
||||
public void addPetTest() throws ApiException {
|
||||
Pet body = null;
|
||||
|
||||
api.addPet(body);
|
||||
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
@@ -63,8 +65,9 @@ public class PetApiTest {
|
||||
public void deletePetTest() throws ApiException {
|
||||
Long petId = null;
|
||||
String apiKey = null;
|
||||
|
||||
api.deletePet(petId, apiKey);
|
||||
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
@@ -79,8 +82,9 @@ public class PetApiTest {
|
||||
@Test
|
||||
public void findPetsByStatusTest() throws ApiException {
|
||||
List<String> status = null;
|
||||
List<Pet> response = api.findPetsByStatus(status);
|
||||
|
||||
List<Pet> response =
|
||||
api.findPetsByStatus(status);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
@@ -95,8 +99,9 @@ public class PetApiTest {
|
||||
@Test
|
||||
public void findPetsByTagsTest() throws ApiException {
|
||||
Set<String> tags = null;
|
||||
Set<Pet> response = api.findPetsByTags(tags);
|
||||
|
||||
Set<Pet> response =
|
||||
api.findPetsByTags(tags);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
@@ -111,8 +116,9 @@ public class PetApiTest {
|
||||
@Test
|
||||
public void getPetByIdTest() throws ApiException {
|
||||
Long petId = null;
|
||||
Pet response = api.getPetById(petId);
|
||||
|
||||
Pet response =
|
||||
api.getPetById(petId);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
@@ -127,8 +133,9 @@ public class PetApiTest {
|
||||
@Test
|
||||
public void updatePetTest() throws ApiException {
|
||||
Pet body = null;
|
||||
|
||||
api.updatePet(body);
|
||||
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
@@ -145,8 +152,9 @@ public class PetApiTest {
|
||||
Long petId = null;
|
||||
String name = null;
|
||||
String status = null;
|
||||
|
||||
api.updatePetWithForm(petId, name, status);
|
||||
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
@@ -163,8 +171,9 @@ public class PetApiTest {
|
||||
Long petId = null;
|
||||
String additionalMetadata = null;
|
||||
File file = null;
|
||||
ModelApiResponse response = api.uploadFile(petId, additionalMetadata, file);
|
||||
|
||||
ModelApiResponse response =
|
||||
api.uploadFile(petId, additionalMetadata, file);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
@@ -181,8 +190,9 @@ public class PetApiTest {
|
||||
Long petId = null;
|
||||
File requiredFile = null;
|
||||
String additionalMetadata = null;
|
||||
ModelApiResponse response = api.uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata);
|
||||
|
||||
ModelApiResponse response =
|
||||
api.uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
|
||||
@@ -23,6 +23,7 @@ import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
/**
|
||||
* API tests for StoreApi
|
||||
*/
|
||||
@@ -43,8 +44,9 @@ public class StoreApiTest {
|
||||
@Test
|
||||
public void deleteOrderTest() throws ApiException {
|
||||
String orderId = null;
|
||||
|
||||
api.deleteOrder(orderId);
|
||||
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
@@ -58,8 +60,9 @@ public class StoreApiTest {
|
||||
*/
|
||||
@Test
|
||||
public void getInventoryTest() throws ApiException {
|
||||
Map<String, Integer> response = api.getInventory();
|
||||
|
||||
Map<String, Integer> response =
|
||||
api.getInventory();
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
@@ -74,8 +77,9 @@ public class StoreApiTest {
|
||||
@Test
|
||||
public void getOrderByIdTest() throws ApiException {
|
||||
Long orderId = null;
|
||||
Order response = api.getOrderById(orderId);
|
||||
|
||||
Order response =
|
||||
api.getOrderById(orderId);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
@@ -90,8 +94,9 @@ public class StoreApiTest {
|
||||
@Test
|
||||
public void placeOrderTest() throws ApiException {
|
||||
Order body = null;
|
||||
Order response = api.placeOrder(body);
|
||||
|
||||
Order response =
|
||||
api.placeOrder(body);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
|
||||
@@ -23,6 +23,7 @@ import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
/**
|
||||
* API tests for UserApi
|
||||
*/
|
||||
@@ -43,8 +44,9 @@ public class UserApiTest {
|
||||
@Test
|
||||
public void createUserTest() throws ApiException {
|
||||
User body = null;
|
||||
|
||||
api.createUser(body);
|
||||
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
@@ -59,8 +61,9 @@ public class UserApiTest {
|
||||
@Test
|
||||
public void createUsersWithArrayInputTest() throws ApiException {
|
||||
List<User> body = null;
|
||||
|
||||
api.createUsersWithArrayInput(body);
|
||||
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
@@ -75,8 +78,9 @@ public class UserApiTest {
|
||||
@Test
|
||||
public void createUsersWithListInputTest() throws ApiException {
|
||||
List<User> body = null;
|
||||
|
||||
api.createUsersWithListInput(body);
|
||||
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
@@ -91,8 +95,9 @@ public class UserApiTest {
|
||||
@Test
|
||||
public void deleteUserTest() throws ApiException {
|
||||
String username = null;
|
||||
|
||||
api.deleteUser(username);
|
||||
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
@@ -107,8 +112,9 @@ public class UserApiTest {
|
||||
@Test
|
||||
public void getUserByNameTest() throws ApiException {
|
||||
String username = null;
|
||||
User response = api.getUserByName(username);
|
||||
|
||||
User response =
|
||||
api.getUserByName(username);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
@@ -124,8 +130,9 @@ public class UserApiTest {
|
||||
public void loginUserTest() throws ApiException {
|
||||
String username = null;
|
||||
String password = null;
|
||||
String response = api.loginUser(username, password);
|
||||
|
||||
String response =
|
||||
api.loginUser(username, password);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
@@ -139,8 +146,9 @@ public class UserApiTest {
|
||||
*/
|
||||
@Test
|
||||
public void logoutUserTest() throws ApiException {
|
||||
|
||||
api.logoutUser();
|
||||
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
@@ -156,8 +164,9 @@ public class UserApiTest {
|
||||
public void updateUserTest() throws ApiException {
|
||||
String username = null;
|
||||
User body = null;
|
||||
|
||||
api.updateUser(username, body);
|
||||
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
|
||||
package org.openapitools.client.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
|
||||
package org.openapitools.client.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
|
||||
package org.openapitools.client.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
|
||||
package org.openapitools.client.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
|
||||
package org.openapitools.client.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
|
||||
package org.openapitools.client.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
|
||||
package org.openapitools.client.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
|
||||
package org.openapitools.client.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
|
||||
package org.openapitools.client.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonSubTypes;
|
||||
@@ -20,6 +21,9 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import org.openapitools.client.model.BigCat;
|
||||
import org.openapitools.client.model.Cat;
|
||||
import org.openapitools.client.model.Dog;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
|
||||
package org.openapitools.client.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
|
||||
package org.openapitools.client.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
|
||||
package org.openapitools.client.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
|
||||
@@ -16,6 +16,8 @@ package org.openapitools.client.model;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonSubTypes;
|
||||
import com.fasterxml.jackson.annotation.JsonTypeInfo;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
|
||||
package org.openapitools.client.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
|
||||
package org.openapitools.client.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
|
||||
@@ -13,12 +13,16 @@
|
||||
|
||||
package org.openapitools.client.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonSubTypes;
|
||||
import com.fasterxml.jackson.annotation.JsonTypeInfo;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import org.openapitools.client.model.Animal;
|
||||
import org.openapitools.client.model.BigCat;
|
||||
import org.openapitools.client.model.CatAllOf;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Ignore;
|
||||
@@ -55,4 +59,12 @@ public class CatTest {
|
||||
// TODO: test color
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the property 'declawed'
|
||||
*/
|
||||
@Test
|
||||
public void declawedTest() {
|
||||
// TODO: test declawed
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
|
||||
package org.openapitools.client.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
|
||||
package org.openapitools.client.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
|
||||
package org.openapitools.client.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
|
||||
package org.openapitools.client.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
|
||||
@@ -13,8 +13,11 @@
|
||||
|
||||
package org.openapitools.client.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonSubTypes;
|
||||
import com.fasterxml.jackson.annotation.JsonTypeInfo;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
@@ -55,4 +58,12 @@ public class DogTest {
|
||||
// TODO: test color
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the property 'breed'
|
||||
*/
|
||||
@Test
|
||||
public void breedTest() {
|
||||
// TODO: test breed
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
|
||||
package org.openapitools.client.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
|
||||
package org.openapitools.client.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
|
||||
package org.openapitools.client.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
|
||||
package org.openapitools.client.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
@@ -146,4 +147,12 @@ public class FormatTestTest {
|
||||
// TODO: test password
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the property 'bigDecimal'
|
||||
*/
|
||||
@Test
|
||||
public void bigDecimalTest() {
|
||||
// TODO: test bigDecimal
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
|
||||
package org.openapitools.client.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
|
||||
package org.openapitools.client.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
|
||||
package org.openapitools.client.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
|
||||
package org.openapitools.client.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
|
||||
package org.openapitools.client.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
|
||||
package org.openapitools.client.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
|
||||
package org.openapitools.client.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
|
||||
package org.openapitools.client.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
|
||||
package org.openapitools.client.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
|
||||
package org.openapitools.client.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
|
||||
@@ -13,13 +13,16 @@
|
||||
|
||||
package org.openapitools.client.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import java.util.ArrayList;
|
||||
import java.util.LinkedHashSet;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
import org.openapitools.client.model.Category;
|
||||
import org.openapitools.client.model.Tag;
|
||||
import org.junit.Assert;
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
|
||||
package org.openapitools.client.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
|
||||
package org.openapitools.client.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
|
||||
package org.openapitools.client.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
|
||||
package org.openapitools.client.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
|
||||
package org.openapitools.client.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
@@ -56,6 +57,14 @@ public class TypeHolderExampleTest {
|
||||
// TODO: test numberItem
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the property 'floatItem'
|
||||
*/
|
||||
@Test
|
||||
public void floatItemTest() {
|
||||
// TODO: test floatItem
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the property 'integerItem'
|
||||
*/
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
|
||||
package org.openapitools.client.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
|
||||
package org.openapitools.client.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
|
||||
Reference in New Issue
Block a user