[JAVA][FEIGN]Implement unit tests for java-feign client (#8484)

* Implement unit tests for feign client

Implement tests
Migrate to junit 5

* Default feign client does not support PATCH verb

Default feign client does not support PATCH verb

* Remove test for GET endpoint with request body

* Configure junit in gradle build

* Configure logback for unit tests

* Add missing dependencies to sbt

* Fix gradle dependency

* Add logback to gradle unit test

* Regenerate samples

* Make junit test classes package private

* Make junit test classes package private

* Update samples

* Organize imports

* Organize imports
This commit is contained in:
Hugo Alves
2021-01-23 02:33:16 +00:00
committed by GitHub
parent 90ed1290fa
commit a7a5937813
69 changed files with 1277 additions and 1000 deletions

View File

@@ -6,6 +6,7 @@ import java.util.logging.Level;
import java.util.logging.Logger;
import org.threeten.bp.*;
import feign.okhttp.OkHttpClient;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.ObjectMapper;
@@ -37,6 +38,7 @@ public class ApiClient {
objectMapper = createObjectMapper();
apiAuthorizations = new LinkedHashMap<String, RequestInterceptor>();
feignBuilder = Feign.builder()
.client(new OkHttpClient())
.encoder(new FormEncoder(new JacksonEncoder(objectMapper)))
.decoder(new JacksonDecoder(objectMapper))
.logger(new Slf4jLogger());

View File

@@ -1,24 +1,19 @@
package org.openapitools.client.api;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.openapitools.client.ApiClient;
import org.openapitools.client.model.Client;
import org.junit.Before;
import org.junit.Test;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* API tests for AnotherFakeApi
*/
public class AnotherFakeApiTest {
class AnotherFakeApiTest {
private AnotherFakeApi api;
@Before
public void setup() {
@BeforeEach
void setup() {
api = new ApiClient().buildClient(AnotherFakeApi.class);
}
@@ -29,7 +24,7 @@ public class AnotherFakeApiTest {
* To test special tags and operation ID starting with number
*/
@Test
public void call123testSpecialTagsTest() {
void call123testSpecialTagsTest() {
Client body = null;
// Client response = api.call123testSpecialTags(body);

View File

@@ -1,342 +1,321 @@
package org.openapitools.client.api;
import com.github.tomakehurst.wiremock.WireMockServer;
import com.github.tomakehurst.wiremock.common.Slf4jNotifier;
import feign.FeignException;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.ValueSource;
import org.openapitools.client.ApiClient;
import java.math.BigDecimal;
import org.openapitools.client.model.Client;
import java.io.File;
import org.openapitools.client.model.FileSchemaTestClass;
import org.threeten.bp.LocalDate;
import org.threeten.bp.OffsetDateTime;
import org.openapitools.client.model.OuterComposite;
import org.openapitools.client.model.User;
import org.openapitools.client.model.XmlItem;
import org.junit.Before;
import org.junit.Test;
import org.threeten.bp.LocalDate;
import org.threeten.bp.OffsetDateTime;
import java.util.ArrayList;
import java.io.File;
import java.io.IOException;
import java.math.BigDecimal;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* API tests for FakeApi
*/
public class FakeApiTest {
import static com.github.tomakehurst.wiremock.client.WireMock.*;
import static com.github.tomakehurst.wiremock.core.WireMockConfiguration.options;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.junit.jupiter.api.Assertions.assertThrows;
private FakeApi api;
class FakeApiTest {
@Before
public void setup() {
api = new ApiClient().buildClient(FakeApi.class);
}
private static WireMockServer wm = new WireMockServer(options().dynamicPort().notifier(new Slf4jNotifier(true)));
/**
* creates an XmlItem
*
* this route creates an XmlItem
*/
@Test
public void createXmlItemTest() {
XmlItem xmlItem = null;
// api.createXmlItem(xmlItem);
private FakeApi api;
// TODO: test validations
}
@BeforeAll
static void startWireMock() {
wm.start();
}
/**
*
*
* Test serialization of outer boolean types
*/
@Test
public void fakeOuterBooleanSerializeTest() {
Boolean body = null;
// Boolean response = api.fakeOuterBooleanSerialize(body);
@AfterAll
static void stopWireMock() {
wm.shutdown();
}
// TODO: test validations
}
@BeforeEach
void setUp() {
ApiClient apiClient = new ApiClient();
apiClient.setBasePath(wm.baseUrl());
api = apiClient.buildClient(FakeApi.class);
}
/**
*
*
* Test serialization of object with outer number type
*/
@Test
public void fakeOuterCompositeSerializeTest() {
OuterComposite body = null;
// OuterComposite response = api.fakeOuterCompositeSerialize(body);
@Test
void createXmlItem() {
wm.stubFor(post(urlEqualTo("/fake/create_xml_item"))
.withHeader("Content-Type", equalTo("application/xml"))
.withHeader("Accept", equalTo("application/json"))
.willReturn(ok()));
// TODO: test validations
}
XmlItem xmlItem = new XmlItem();
api.createXmlItem(xmlItem);
}
/**
*
*
* Test serialization of outer number types
*/
@Test
public void fakeOuterNumberSerializeTest() {
BigDecimal body = null;
// BigDecimal response = api.fakeOuterNumberSerialize(body);
@ParameterizedTest
@ValueSource(strings = {"true", "false"})
void fakeOuterBooleanSerialize(String returnBoolean) {
wm.stubFor(post(urlEqualTo("/fake/outer/boolean"))
.withHeader("Content-Type", equalTo("*/*"))
.withHeader("Accept", equalTo("*/*"))
.willReturn(ok(returnBoolean)));
// TODO: test validations
}
boolean expectedBoolean = Boolean.parseBoolean(returnBoolean);
Boolean aBoolean = api.fakeOuterBooleanSerialize(expectedBoolean);
/**
*
*
* Test serialization of outer string types
*/
@Test
public void fakeOuterStringSerializeTest() {
String body = null;
// String response = api.fakeOuterStringSerialize(body);
assertThat(aBoolean, is(expectedBoolean));
}
// TODO: test validations
}
@Test
void fakeOuterCompositeSerialize() {
String body = "{\n" +
" \"my_number\": 123.45,\n" +
" \"my_string\":\"Hello\",\n" +
" \"my_boolean\": true\n" +
"}";
wm.stubFor(post(urlEqualTo("/fake/outer/composite"))
.withHeader("Content-Type", equalTo("*/*"))
.withHeader("Accept", equalTo("*/*"))
.withRequestBody(equalToJson(body, true, false))
.willReturn(ok(body)));
/**
*
*
* For this test, the body for this request much reference a schema named &#x60;File&#x60;.
*/
@Test
public void testBodyWithFileSchemaTest() {
FileSchemaTestClass body = null;
// api.testBodyWithFileSchema(body);
OuterComposite outerComposite = new OuterComposite();
outerComposite.setMyBoolean(Boolean.TRUE);
outerComposite.setMyNumber(BigDecimal.valueOf(123.45));
outerComposite.setMyString("Hello");
// TODO: test validations
}
OuterComposite result = api.fakeOuterCompositeSerialize(outerComposite);
/**
*
*
*
*/
@Test
public void testBodyWithQueryParamsTest() {
String query = null;
User body = null;
// api.testBodyWithQueryParams(query, body);
assertThat(result, is(outerComposite));
}
// TODO: test validations
}
@Test
void fakeOuterNumberSerialize() {
String body = "123.45";
wm.stubFor(post(urlEqualTo("/fake/outer/number"))
.withHeader("Content-Type", equalTo("*/*"))
.withHeader("Accept", equalTo("*/*"))
.withRequestBody(equalTo(body))
.willReturn(ok(body)));
/**
*
*
*
*
* This tests the overload of the method that uses a Map for query parameters instead of
* listing them out individually.
*/
@Test
public void testBodyWithQueryParamsTestQueryMap() {
User body = null;
FakeApi.TestBodyWithQueryParamsQueryParams queryParams = new FakeApi.TestBodyWithQueryParamsQueryParams()
.query(null);
// api.testBodyWithQueryParams(body, queryParams);
BigDecimal result = api.fakeOuterNumberSerialize(BigDecimal.valueOf(123.45));
// TODO: test validations
}
/**
* To test \&quot;client\&quot; model
*
* To test \&quot;client\&quot; model
*/
@Test
public void testClientModelTest() {
Client body = null;
// Client response = api.testClientModel(body);
assertThat(result, is(result));
}
// TODO: test validations
}
@Test
void fakeOuterStringSerialize() {
String body = "Hello world";
wm.stubFor(post(urlEqualTo("/fake/outer/string"))
.withHeader("Content-Type", equalTo("*/*"))
.withHeader("Accept", equalTo("*/*"))
.withRequestBody(equalTo("\"" + body + "\""))
.willReturn(ok("\"" + body + "\"")));
/**
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
*
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
*/
@Test
public void testEndpointParametersTest() {
BigDecimal number = null;
Double _double = null;
String patternWithoutDelimiter = null;
byte[] _byte = null;
Integer integer = null;
Integer int32 = null;
Long int64 = null;
Float _float = null;
String string = null;
File binary = null;
LocalDate date = null;
OffsetDateTime dateTime = null;
String password = null;
String paramCallback = null;
// api.testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback);
String result = api.fakeOuterStringSerialize(body);
// TODO: test validations
}
assertThat(result, is(body));
}
/**
* To test enum parameters
*
* To test enum parameters
*/
@Test
public void testEnumParametersTest() {
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);
@Test
void testBodyWithFileSchema() throws IOException {
//TODO
}
// TODO: test validations
}
@Test
void testBodyWithQueryParams() {
String body = "{\n" +
" \"id\":123456,\n" +
" \"username\":null,\n" +
" \"firstName\":\"Bruce\",\n" +
" \"lastName\":\"Wayne\",\n" +
" \"email\":\"mail@email.com\",\n" +
" \"password\":\"password\",\n" +
" \"phone\":\"+123 3313131\",\n" +
" \"userStatus\":1\n" +
"}";
/**
* To test enum parameters
*
* To test enum parameters
*
* This tests the overload of the method that uses a Map for query parameters instead of
* listing them out individually.
*/
@Test
public void testEnumParametersTestQueryMap() {
List<String> enumHeaderStringArray = null;
String enumHeaderString = null;
List<String> enumFormStringArray = null;
String enumFormString = null;
FakeApi.TestEnumParametersQueryParams queryParams = new FakeApi.TestEnumParametersQueryParams()
.enumQueryStringArray(null)
.enumQueryString(null)
.enumQueryInteger(null)
.enumQueryDouble(null);
// api.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumFormStringArray, enumFormString, queryParams);
wm.stubFor(put(urlEqualTo("/fake/body-with-query-params?query=tags"))
.withHeader("Content-Type", equalTo("application/json"))
.withHeader("Accept", equalTo("application/json"))
.withRequestBody(equalToJson(body))
.willReturn(ok()));
// TODO: test validations
}
/**
* Fake endpoint to test group parameters (optional)
*
* Fake endpoint to test group parameters (optional)
*/
@Test
public void testGroupParametersTest() {
Integer requiredStringGroup = null;
Boolean requiredBooleanGroup = null;
Long requiredInt64Group = null;
Integer stringGroup = null;
Boolean booleanGroup = null;
Long int64Group = null;
// api.testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group);
User user = new User();
user.setEmail("mail@email.com");
user.setFirstName("Bruce");
user.setLastName("Wayne");
user.setId(123456L);
user.setUserStatus(1);
user.setPassword("password");
user.setPhone("+123 3313131");
// TODO: test validations
}
api.testBodyWithQueryParams("tags", user);
}
/**
* Fake endpoint to test group parameters (optional)
*
* Fake endpoint to test group parameters (optional)
*
* This tests the overload of the method that uses a Map for query parameters instead of
* listing them out individually.
*/
@Test
public void testGroupParametersTestQueryMap() {
Boolean requiredBooleanGroup = null;
Boolean booleanGroup = null;
FakeApi.TestGroupParametersQueryParams queryParams = new FakeApi.TestGroupParametersQueryParams()
.requiredStringGroup(null)
.requiredInt64Group(null)
.stringGroup(null)
.int64Group(null);
// api.testGroupParameters(requiredBooleanGroup, booleanGroup, queryParams);
@Test
void testBodyWithQueryParamsMap() {
String body = "{\n" +
" \"id\":123456,\n" +
" \"username\":null,\n" +
" \"firstName\":\"Bruce\",\n" +
" \"lastName\":\"Wayne\",\n" +
" \"email\":\"mail@email.com\",\n" +
" \"password\":\"password\",\n" +
" \"phone\":\"+123 3313131\",\n" +
" \"userStatus\":1\n" +
"}";
// TODO: test validations
}
/**
* test inline additionalProperties
*
*
*/
@Test
public void testInlineAdditionalPropertiesTest() {
Map<String, String> param = null;
// api.testInlineAdditionalProperties(param);
wm.stubFor(put(urlEqualTo("/fake/body-with-query-params?query=value1"))
.withHeader("Content-Type", equalTo("application/json"))
.withHeader("Accept", equalTo("application/json"))
.withRequestBody(equalToJson(body))
.willReturn(ok()));
// TODO: test validations
}
User user = new User();
user.setEmail("mail@email.com");
user.setFirstName("Bruce");
user.setLastName("Wayne");
user.setId(123456L);
user.setUserStatus(1);
user.setPassword("password");
user.setPhone("+123 3313131");
/**
* test json serialization of form data
*
*
*/
@Test
public void testJsonFormDataTest() {
String param = null;
String param2 = null;
// api.testJsonFormData(param, param2);
FakeApi.TestBodyWithQueryParamsQueryParams queryParams = new FakeApi.TestBodyWithQueryParamsQueryParams();
queryParams.query("value1");
// TODO: test validations
}
api.testBodyWithQueryParams(user, queryParams);
}
/**
*
*
* To test the collection format in query parameters
*/
@Test
public void testQueryParameterCollectionFormatTest() {
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);
@Test
void testClientModel() {
String body = "{\n" +
" \"client\":\"Mr Wayne\"\n" +
"}";
// TODO: test validations
}
wm.stubFor(patch(urlEqualTo("/fake"))
.withHeader("Content-Type", equalTo("application/json"))
.withHeader("Accept", equalTo("application/json"))
.withRequestBody(equalToJson(body))
.willReturn(ok(body)));
/**
*
*
* To test the collection format in query parameters
*
* This tests the overload of the method that uses a Map for query parameters instead of
* listing them out individually.
*/
@Test
public void testQueryParameterCollectionFormatTestQueryMap() {
FakeApi.TestQueryParameterCollectionFormatQueryParams queryParams = new FakeApi.TestQueryParameterCollectionFormatQueryParams()
.pipe(null)
.ioutil(null)
.http(null)
.url(null)
.context(null);
// api.testQueryParameterCollectionFormat(queryParams);
Client client = new Client();
client.setClient("Mr Wayne");
// TODO: test validations
}
}
Client result = api.testClientModel(client);
assertThat(result.getClient(), is("Mr Wayne"));
}
@Test
void testEndpointParameters() throws IOException {
wm.stubFor(post(urlEqualTo("/fake"))
.withHeader("Content-Type", containing("application/x-www-form-urlencoded"))
.withHeader("Accept", equalTo("application/json"))
.willReturn(ok()));
//TODO Cannot serialize bytearray to x-www-form-urlencoded, must use multipart
api.testEndpointParameters(BigDecimal.ONE, 1.0, "abc", null, 123,
1234, 123L, 1.0f, "string", File.createTempFile("testEndpointParameters", "tmp"), LocalDate.now(), OffsetDateTime.now(),
"password", "callback");
}
@Test
void testEnumParameters() {
//TODO GET method does not allow request body
}
@Test
void testGroupParameters() {
wm.stubFor(delete(urlEqualTo("/fake?required_string_group=123&required_int64_group=123&string_group=123&int64_group=123"))
.withHeader("Accept", equalTo("application/json"))
.withHeader("required_boolean_group", equalTo("true"))
.withHeader("boolean_group", equalTo("true"))
.willReturn(ok()));
api.testGroupParameters(123, true, 123L, 123, true, 123L);
}
@Test
void testInlineAdditionalProperties() {
wm.stubFor(post(urlEqualTo("/fake/inline-additionalProperties"))
.withHeader("Content-Type", equalTo("application/json"))
.withHeader("Accept", equalTo("application/json"))
.willReturn(ok()));
api.testInlineAdditionalProperties(new HashMap<>());
}
@Test
void testQueryParameterCollectionFormat() {
wm.stubFor(put(urlEqualTo("/fake/test-query-paramters?pipe=pipe1&pipe=pipe2&ioutil=io&http=http&url=url&context=context"))
.withHeader("Accept", equalTo("application/json"))
.willReturn(ok()));
api.testQueryParameterCollectionFormat(Arrays.asList("pipe1", "pipe2"), Arrays.asList("io"), Arrays.asList("http"), Arrays.asList("url"), Arrays.asList("context"));
}
@Test
void testQueryParameterCollectionFormatQueryParams() {
wm.stubFor(put(urlEqualTo("/fake/test-query-paramters?ioutil=io&context=context&http=http&pipe=pipe1&pipe=pipe2&url=url"))
.withHeader("Accept", equalTo("application/json"))
.willReturn(ok()));
HashMap<String, Object> params = new HashMap<>();
params.put("context", Arrays.asList("context"));
params.put("pipe", Arrays.asList("pipe1", "pipe2"));
params.put("ioutil", Arrays.asList("io"));
params.put("http", Arrays.asList("http"));
params.put("url", Arrays.asList("url"));
api.testQueryParameterCollectionFormat(params);
}
@Test
void test404() {
wm.stubFor(post(urlEqualTo("/fake/create_xml_item"))
.withHeader("Content-Type", equalTo("application/xml"))
.withHeader("Accept", equalTo("application/json"))
.willReturn(notFound()));
XmlItem xmlItem = new XmlItem();
assertThrows(FeignException.NotFound.class, () -> api.createXmlItem(xmlItem));
}
@Test
void test500() {
wm.stubFor(post(urlEqualTo("/fake/create_xml_item"))
.withHeader("Content-Type", equalTo("application/xml"))
.withHeader("Accept", equalTo("application/json"))
.willReturn(serverError()));
XmlItem xmlItem = new XmlItem();
assertThrows(FeignException.InternalServerError.class, () -> api.createXmlItem(xmlItem));
}
@Test
void test400() {
wm.stubFor(post(urlEqualTo("/fake/create_xml_item"))
.withHeader("Content-Type", equalTo("application/xml"))
.withHeader("Accept", equalTo("application/json"))
.willReturn(badRequest()));
XmlItem xmlItem = new XmlItem();
assertThrows(FeignException.BadRequest.class, () -> api.createXmlItem(xmlItem));
}
}

View File

@@ -1,40 +1,66 @@
package org.openapitools.client.api;
import com.github.tomakehurst.wiremock.WireMockServer;
import com.github.tomakehurst.wiremock.common.Slf4jNotifier;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.openapitools.client.ApiClient;
import org.openapitools.client.model.Client;
import org.junit.Before;
import org.junit.Test;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import static com.github.tomakehurst.wiremock.client.WireMock.*;
import static com.github.tomakehurst.wiremock.core.WireMockConfiguration.options;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.MatcherAssert.assertThat;
/**
* API tests for FakeClassnameTags123Api
*/
public class FakeClassnameTags123ApiTest {
class FakeClassnameTags123ApiTest {
private FakeClassnameTags123Api api;
private static WireMockServer wm = new WireMockServer(options().dynamicPort().notifier(new Slf4jNotifier(true)));
@Before
public void setup() {
api = new ApiClient().buildClient(FakeClassnameTags123Api.class);
}
private FakeClassnameTags123Api api;
/**
* To test class name in snake case
*
* To test class name in snake case
*/
@Test
public void testClassnameTest() {
Client body = null;
// Client response = api.testClassname(body);
@BeforeAll
static void startWireMock() {
wm.start();
}
@AfterAll
static void stopWireMock() {
wm.shutdown();
}
@BeforeEach
void setUp() {
ApiClient apiClient = new ApiClient();
apiClient.setBasePath(wm.baseUrl());
api = apiClient.buildClient(FakeClassnameTags123Api.class);
}
/**
* To test class name in snake case
* <p>
* To test class name in snake case
*/
@Test
void testClassnameTest() {
String responseBody = "{\n" +
" \"client\":\"Bruce\"\n" +
"}";
wm.stubFor(patch(urlEqualTo("/fake_classname_test"))
.withHeader("Content-Type", equalTo("application/json"))
.withHeader("Accept", equalTo("application/json"))
.willReturn(ok(responseBody)));
Client client = new Client();
client.setClient("Bruce");
Client response = api.testClassname(client);
assertThat(response, is(client));
}
// TODO: test validations
}
}

View File

@@ -1,194 +1,210 @@
package org.openapitools.client.api;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.github.tomakehurst.wiremock.WireMockServer;
import com.github.tomakehurst.wiremock.matching.MultipartValuePatternBuilder;
import com.google.common.collect.Sets;
import org.apache.commons.io.IOUtils;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
import org.openapitools.client.ApiClient;
import java.io.File;
import org.openapitools.client.model.ModelApiResponse;
import org.openapitools.client.model.Pet;
import java.util.Set;
import org.junit.Before;
import org.junit.Test;
import java.util.ArrayList;
import java.util.HashMap;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.Set;
import static com.github.tomakehurst.wiremock.client.WireMock.*;
import static com.github.tomakehurst.wiremock.core.WireMockConfiguration.options;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.MatcherAssert.assertThat;
/**
* API tests for PetApi
* API tests for PetAp
*/
public class PetApiTest {
class PetApiTest {
private PetApi api;
private static PetApi api;
@Before
public void setup() {
api = new ApiClient().buildClient(PetApi.class);
}
private static WireMockServer wm = new WireMockServer(options().dynamicPort());
private static String petJson;
private static String petListJson;
/**
* Add a new pet to the store
*
*
*/
@Test
public void addPetTest() {
Pet body = null;
// api.addPet(body);
private ObjectMapper objectMapper = new ObjectMapper();
// TODO: test validations
}
@BeforeAll
static void setup() throws IOException {
wm.start();
/**
* Deletes a pet
*
*
*/
@Test
public void deletePetTest() {
Long petId = null;
String apiKey = null;
// api.deletePet(petId, apiKey);
ApiClient apiClient = new ApiClient();
apiClient.setBasePath(wm.baseUrl());
api = apiClient.buildClient(PetApi.class);
// TODO: test validations
}
petJson = IOUtils.toString(PetApiTest.class.getResourceAsStream("/pet.json"), "UTF-8");
petListJson = IOUtils.toString(PetApiTest.class.getResourceAsStream("/pet_list.json"), "UTF-8");
}
/**
* Finds Pets by status
*
* Multiple status values can be provided with comma separated strings
*/
@Test
public void findPetsByStatusTest() {
List<String> status = null;
// List<Pet> response = api.findPetsByStatus(status);
@AfterAll
static void shutdown() {
wm.shutdown();
}
// TODO: test validations
}
@Test
void addPet() throws JsonProcessingException {
wm.stubFor(post(urlEqualTo("/pet"))
.willReturn(aResponse().withBody(petJson)));
/**
* Finds Pets by status
*
* Multiple status values can be provided with comma separated strings
*
* This tests the overload of the method that uses a Map for query parameters instead of
* listing them out individually.
*/
@Test
public void findPetsByStatusTestQueryMap() {
PetApi.FindPetsByStatusQueryParams queryParams = new PetApi.FindPetsByStatusQueryParams()
.status(null);
// List<Pet> response = api.findPetsByStatus(queryParams);
Pet pet = objectMapper.readValue(petJson, Pet.class);
// TODO: test validations
}
/**
* Finds Pets by tags
*
* Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
*/
@Test
public void findPetsByTagsTest() {
Set<String> tags = null;
// Set<Pet> response = api.findPetsByTags(tags);
api.addPet(pet);
// TODO: test validations
}
wm.verify(postRequestedFor(urlEqualTo("/pet"))
.withHeader("Content-Type", equalTo("application/json"))
.withHeader("Accept", equalTo("application/json"))
.withRequestBody(equalToJson(petJson)));
}
/**
* Finds Pets by tags
*
* Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
*
* This tests the overload of the method that uses a Map for query parameters instead of
* listing them out individually.
*/
@Test
public void findPetsByTagsTestQueryMap() {
PetApi.FindPetsByTagsQueryParams queryParams = new PetApi.FindPetsByTagsQueryParams()
.tags(null);
// Set<Pet> response = api.findPetsByTags(queryParams);
@Test
void deletedPet() {
wm.stubFor(delete(urlEqualTo("/pet/85"))
.willReturn(aResponse()));
// TODO: test validations
}
/**
* Find pet by ID
*
* Returns a single pet
*/
@Test
public void getPetByIdTest() {
Long petId = null;
// Pet response = api.getPetById(petId);
api.deletePet(85L, "API_KEY");
// TODO: test validations
}
wm.verify(deleteRequestedFor(urlEqualTo("/pet/85"))
.withHeader("api_key", equalTo("API_KEY"))
.withHeader("Accept", equalTo("application/json")));
}
/**
* Update an existing pet
*
*
*/
@Test
public void updatePetTest() {
Pet body = null;
// api.updatePet(body);
@Test
void findPetsByStatus() {
wm.stubFor(get(urlEqualTo("/pet/findByStatus?status=available&status=sold"))
.willReturn(aResponse()
.withHeader("Content-Type", "application/json")
.withBody(petListJson)));
// TODO: test validations
}
List<Pet> petList = api.findPetsByStatus(Arrays.asList("available", "sold"));
assertThat(petList.size(), is(2));
/**
* Updates a pet in the store with form data
*
*
*/
@Test
public void updatePetWithFormTest() {
Long petId = null;
String name = null;
String status = null;
// api.updatePetWithForm(petId, name, status);
validatePet1(petList.get(0));
validatePet2(petList.get(1));
}
// TODO: test validations
}
@Test
void findPetsByStatusQueryMap() {
wm.stubFor(get(urlEqualTo("/pet/findByStatus?status=available,sold"))
.willReturn(aResponse()
.withHeader("Content-Type", "application/json")
.withBody(petListJson)));
/**
* uploads an image
*
*
*/
@Test
public void uploadFileTest() {
Long petId = null;
String additionalMetadata = null;
File file = null;
// ModelApiResponse response = api.uploadFile(petId, additionalMetadata, file);
PetApi.FindPetsByStatusQueryParams findPetsByStatusQueryParams = new PetApi.FindPetsByStatusQueryParams();
findPetsByStatusQueryParams.status(Arrays.asList("available", "sold"));
// TODO: test validations
}
List<Pet> petList = api.findPetsByStatus(findPetsByStatusQueryParams);
assertThat(petList.size(), is(2));
/**
* uploads an image (required)
*
*
*/
@Test
public void uploadFileWithRequiredFileTest() {
Long petId = null;
File requiredFile = null;
String additionalMetadata = null;
// ModelApiResponse response = api.uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata);
validatePet1(petList.get(0));
validatePet2(petList.get(1));
}
// TODO: test validations
}
@Test
void findPetsByTags() {
wm.stubFor(get(urlEqualTo("/pet/findByTags?tags=tag1&tags=tag2"))
.willReturn(aResponse()
.withHeader("Content-Type", "application/json")
.withBody(petListJson)));
Set<Pet> petList = api.findPetsByTags(Sets.newHashSet("tag1", "tag2"));
assertThat(petList.size(), is(2));
}
@Test
void getPetById() {
wm.stubFor(get(urlEqualTo("/pet/85"))
.willReturn(aResponse()
.withHeader("Content-Type", "application/json")
.withBody(petJson)));
Pet pet = api.getPetById(85L);
validatePet1(pet);
}
@Test
void updatePet() throws JsonProcessingException {
wm.stubFor(put(urlEqualTo("/pet"))
.willReturn(aResponse()
.withHeader("Content-Type", "application/json")
.withBody(petJson)));
Pet pet = objectMapper.readValue(petJson, Pet.class);
api.updatePet(pet);
wm.verify(putRequestedFor(urlEqualTo("/pet"))
.withHeader("Accept", equalTo("application/json"))
.withHeader("Content-Type", equalTo("application/json"))
.withRequestBody(equalToJson(petJson)));
}
@Test
void updatePetWithForm() {
wm.stubFor(post(anyUrl()).willReturn(aResponse()));
api.updatePetWithForm(85L, "Rex", "sold");
wm.verify(postRequestedFor(urlEqualTo("/pet/85"))
.withHeader("Accept", equalTo("application/json"))
.withHeader("Content-Type", containing("application/x-www-form-urlencoded"))
.withRequestBody(containing("name=Rex"))
.withRequestBody(containing("status=sold")));
}
@Test
void uploadFile() throws IOException {
wm.stubFor(post("/pet/85/uploadImage").willReturn(aResponse()));
File file = File.createTempFile("test", ".tmp");
IOUtils.write("ABCD".getBytes(), new FileOutputStream(file));
api.uploadFile(85L, "metadata", file);
wm.verify(postRequestedFor(urlEqualTo("/pet/85/uploadImage"))
.withHeader("Content-Type", containing("multipart/form-data"))
.withHeader("Accept", containing("application/json"))
.withRequestBodyPart(new MultipartValuePatternBuilder()
.withName("additionalMetadata").build())
.withRequestBodyPart(new MultipartValuePatternBuilder()
.withName("file").withBody(binaryEqualTo("ABCD".getBytes())).build())
);
}
private void validatePet1(Pet pet) {
assertThat(pet.getId(), is(85L));
assertThat(pet.getCategory().getName(), is("Dogs"));
assertThat(pet.getCategory().getId(), is(1L));
assertThat(pet.getName(), is("LvRcat"));
assertThat(pet.getPhotoUrls().size(), is(1));
assertThat(pet.getPhotoUrls().stream().findAny().get(), is("string"));
assertThat(pet.getTags().size(), is(1));
assertThat(pet.getTags().get(0).getId(), is(10L));
assertThat(pet.getTags().get(0).getName(), is("tag"));
assertThat(pet.getStatus(), is(Pet.StatusEnum.AVAILABLE));
}
private void validatePet2(Pet pet) {
assertThat(pet.getId(), is(42L));
assertThat(pet.getCategory().getName(), is("Dogs"));
assertThat(pet.getCategory().getId(), is(1L));
assertThat(pet.getName(), is("Louise"));
assertThat(pet.getPhotoUrls().size(), is(1));
assertThat(pet.getPhotoUrls().stream().findAny().get(), is("photo"));
assertThat(pet.getTags().size(), is(1));
assertThat(pet.getTags().get(0).getId(), is(0L));
assertThat(pet.getTags().get(0).getName(), is("obedient"));
assertThat(pet.getStatus(), is(Pet.StatusEnum.SOLD));
}
}

View File

@@ -1,81 +1,153 @@
package org.openapitools.client.api;
import com.github.tomakehurst.wiremock.WireMockServer;
import feign.FeignException;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
import org.openapitools.client.ApiClient;
import org.openapitools.client.model.Order;
import org.junit.Before;
import org.junit.Test;
import org.threeten.bp.OffsetDateTime;
import org.threeten.bp.ZoneOffset;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import static com.github.tomakehurst.wiremock.client.WireMock.*;
import static com.github.tomakehurst.wiremock.core.WireMockConfiguration.options;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.junit.jupiter.api.Assertions.assertThrows;
/**
* API tests for StoreApi
*/
public class StoreApiTest {
private StoreApi api;
private static StoreApi api;
@Before
public void setup() {
api = new ApiClient().buildClient(StoreApi.class);
}
private static WireMockServer wm = new WireMockServer(options().dynamicPort());
/**
* Delete purchase order by ID
*
* For valid response try integer IDs with value &lt; 1000. Anything above 1000 or nonintegers will generate API errors
*/
@Test
public void deleteOrderTest() {
String orderId = null;
// api.deleteOrder(orderId);
@BeforeAll
static void setup() {
wm.start();
// TODO: test validations
}
ApiClient apiClient = new ApiClient();
apiClient.setBasePath(wm.baseUrl());
api = apiClient.buildClient(StoreApi.class);
/**
* Returns pet inventories by status
*
* Returns a map of status codes to quantities
*/
@Test
public void getInventoryTest() {
// Map<String, Integer> response = api.getInventory();
}
// TODO: test validations
}
@AfterAll
static void shutdown() {
wm.shutdown();
}
/**
* Find purchase order by ID
*
* For valid response try integer IDs with value &lt;&#x3D; 5 or &gt; 10. Other values will generated exceptions
*/
@Test
public void getOrderByIdTest() {
Long orderId = null;
// Order response = api.getOrderById(orderId);
// TODO: test validations
}
/**
* 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
*/
@Test
void deleteOrderTest() {
wm.stubFor(delete(urlEqualTo("/store/order/1234"))
.withHeader("Accept", equalTo("application/json"))
.willReturn(ok()));
/**
* Place an order for a pet
*
*
*/
@Test
public void placeOrderTest() {
Order body = null;
// Order response = api.placeOrder(body);
api.deleteOrder("1234");
}
// TODO: test validations
}
@Test
void deleteOrderTestInvalid() {
wm.stubFor(delete(urlEqualTo("/store/order/abc"))
.withHeader("Accept", equalTo("application/json"))
.willReturn(aResponse().withStatus(400)));
assertThrows(FeignException.BadRequest.class, () -> api.deleteOrder("abc"));
}
/**
* Returns pet inventories by status
* <p>
* Returns a map of status codes to quantities
*/
@Test
void getInventoryTest() {
wm.stubFor(get(urlEqualTo("/store/inventory"))
.withHeader("Accept", equalTo("application/json"))
.willReturn(ok("{\n" +
" \"prop1\": 1,\n" +
" \"prop2\": 2\n" +
"}")));
Map<String, Integer> inventory = api.getInventory();
assertThat(inventory.keySet().size(), is(2));
assertThat(inventory.get("prop1"), is(1));
assertThat(inventory.get("prop2"), is(2));
}
/**
* 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
*/
@Test
void getOrderByIdTest() {
String responseBody = "{\n" +
" \"id\": 1,\n" +
" \"petId\": 1,\n" +
" \"quantity\": 10,\n" +
" \"shipDate\": \"2120-03-23T01:23:44.000000009+0000\",\n" +
" \"status\": \"placed\",\n" +
" \"complete\": true\n" +
"}";
wm.stubFor(get(urlEqualTo("/store/order/123"))
.withHeader("Accept", equalTo("application/json"))
.willReturn(ok(responseBody)));
Order order = api.getOrderById(123L);
assertThat(order.getId(), is(1L));
assertThat(order.getPetId(), is(1L));
assertThat(order.getQuantity(), is(10));
assertThat(order.getShipDate(), is(OffsetDateTime.of(2120, 03, 23, 01, 23, 44, 9, ZoneOffset.UTC)));
assertThat(order.getStatus(), is(Order.StatusEnum.PLACED));
assertThat(order.isComplete(), is(true));
}
/**
* Place an order for a pet
*/
@Test
void placeOrderTest() {
String responseBody = "{\n" +
" \"id\": 1,\n" +
" \"petId\": 1,\n" +
" \"quantity\": 10,\n" +
" \"shipDate\": \"2120-03-23T01:23:44.000000009+0000\",\n" +
" \"status\": \"placed\",\n" +
" \"complete\": true\n" +
"}";
Order newOrder = new Order();
newOrder.setId(1L);
newOrder.setPetId(1L);
newOrder.setQuantity(10);
newOrder.shipDate(OffsetDateTime.of(2120, 03, 23, 01, 23, 44, 9, ZoneOffset.UTC));
newOrder.setStatus(Order.StatusEnum.PLACED);
newOrder.setComplete(Boolean.TRUE);
wm.stubFor(post(urlEqualTo("/store/order"))
.withHeader("Accept", equalTo("application/json"))
.willReturn(ok(responseBody)));
Order order = api.placeOrder(newOrder);
assertThat(order, is(newOrder));
}
}

View File

@@ -1,24 +1,21 @@
package org.openapitools.client.api;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.openapitools.client.ApiClient;
import org.openapitools.client.model.User;
import org.junit.Before;
import org.junit.Test;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* API tests for UserApi
*/
public class UserApiTest {
class UserApiTest {
private UserApi api;
@Before
public void setup() {
@BeforeEach
void setup() {
api = new ApiClient().buildClient(UserApi.class);
}
@@ -29,7 +26,7 @@ public class UserApiTest {
* This can only be done by the logged in user.
*/
@Test
public void createUserTest() {
void createUserTest() {
User body = null;
// api.createUser(body);
@@ -43,7 +40,7 @@ public class UserApiTest {
*
*/
@Test
public void createUsersWithArrayInputTest() {
void createUsersWithArrayInputTest() {
List<User> body = null;
// api.createUsersWithArrayInput(body);
@@ -57,7 +54,7 @@ public class UserApiTest {
*
*/
@Test
public void createUsersWithListInputTest() {
void createUsersWithListInputTest() {
List<User> body = null;
// api.createUsersWithListInput(body);
@@ -71,7 +68,7 @@ public class UserApiTest {
* This can only be done by the logged in user.
*/
@Test
public void deleteUserTest() {
void deleteUserTest() {
String username = null;
// api.deleteUser(username);
@@ -85,7 +82,7 @@ public class UserApiTest {
*
*/
@Test
public void getUserByNameTest() {
void getUserByNameTest() {
String username = null;
// User response = api.getUserByName(username);
@@ -99,7 +96,7 @@ public class UserApiTest {
*
*/
@Test
public void loginUserTest() {
void loginUserTest() {
String username = null;
String password = null;
// String response = api.loginUser(username, password);
@@ -116,7 +113,7 @@ public class UserApiTest {
* listing them out individually.
*/
@Test
public void loginUserTestQueryMap() {
void loginUserTestQueryMap() {
UserApi.LoginUserQueryParams queryParams = new UserApi.LoginUserQueryParams()
.username(null)
.password(null);
@@ -131,7 +128,7 @@ public class UserApiTest {
*
*/
@Test
public void logoutUserTest() {
void logoutUserTest() {
// api.logoutUser();
// TODO: test validations
@@ -144,7 +141,7 @@ public class UserApiTest {
* This can only be done by the logged in user.
*/
@Test
public void updateUserTest() {
void updateUserTest() {
String username = null;
User body = null;
// api.updateUser(username, body);

View File

@@ -16,27 +16,26 @@ package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.HashMap;
import java.util.Map;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.jupiter.api.Test;
/**
* Model tests for AdditionalPropertiesAnyType
*/
public class AdditionalPropertiesAnyTypeTest {
class AdditionalPropertiesAnyTypeTest {
private final AdditionalPropertiesAnyType model = new AdditionalPropertiesAnyType();
/**
* Model tests for AdditionalPropertiesAnyType
*/
@Test
public void testAdditionalPropertiesAnyType() {
void testAdditionalPropertiesAnyType() {
// TODO: test AdditionalPropertiesAnyType
}
@@ -44,7 +43,7 @@ public class AdditionalPropertiesAnyTypeTest {
* Test the property 'name'
*/
@Test
public void nameTest() {
void nameTest() {
// TODO: test name
}

View File

@@ -16,28 +16,27 @@ package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.jupiter.api.Test;
/**
* Model tests for AdditionalPropertiesArray
*/
public class AdditionalPropertiesArrayTest {
class AdditionalPropertiesArrayTest {
private final AdditionalPropertiesArray model = new AdditionalPropertiesArray();
/**
* Model tests for AdditionalPropertiesArray
*/
@Test
public void testAdditionalPropertiesArray() {
void testAdditionalPropertiesArray() {
// TODO: test AdditionalPropertiesArray
}
@@ -45,7 +44,7 @@ public class AdditionalPropertiesArrayTest {
* Test the property 'name'
*/
@Test
public void nameTest() {
void nameTest() {
// TODO: test name
}

View File

@@ -16,27 +16,26 @@ package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.HashMap;
import java.util.Map;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.jupiter.api.Test;
/**
* Model tests for AdditionalPropertiesBoolean
*/
public class AdditionalPropertiesBooleanTest {
class AdditionalPropertiesBooleanTest {
private final AdditionalPropertiesBoolean model = new AdditionalPropertiesBoolean();
/**
* Model tests for AdditionalPropertiesBoolean
*/
@Test
public void testAdditionalPropertiesBoolean() {
void testAdditionalPropertiesBoolean() {
// TODO: test AdditionalPropertiesBoolean
}
@@ -44,7 +43,7 @@ public class AdditionalPropertiesBooleanTest {
* Test the property 'name'
*/
@Test
public void nameTest() {
void nameTest() {
// TODO: test name
}

View File

@@ -16,6 +16,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.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
@@ -23,22 +24,20 @@ import java.math.BigDecimal;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.jupiter.api.Test;
/**
* Model tests for AdditionalPropertiesClass
*/
public class AdditionalPropertiesClassTest {
class AdditionalPropertiesClassTest {
private final AdditionalPropertiesClass model = new AdditionalPropertiesClass();
/**
* Model tests for AdditionalPropertiesClass
*/
@Test
public void testAdditionalPropertiesClass() {
void testAdditionalPropertiesClass() {
// TODO: test AdditionalPropertiesClass
}
@@ -46,7 +45,7 @@ public class AdditionalPropertiesClassTest {
* Test the property 'mapString'
*/
@Test
public void mapStringTest() {
void mapStringTest() {
// TODO: test mapString
}
@@ -54,7 +53,7 @@ public class AdditionalPropertiesClassTest {
* Test the property 'mapNumber'
*/
@Test
public void mapNumberTest() {
void mapNumberTest() {
// TODO: test mapNumber
}
@@ -62,7 +61,7 @@ public class AdditionalPropertiesClassTest {
* Test the property 'mapInteger'
*/
@Test
public void mapIntegerTest() {
void mapIntegerTest() {
// TODO: test mapInteger
}
@@ -70,7 +69,7 @@ public class AdditionalPropertiesClassTest {
* Test the property 'mapBoolean'
*/
@Test
public void mapBooleanTest() {
void mapBooleanTest() {
// TODO: test mapBoolean
}
@@ -78,7 +77,7 @@ public class AdditionalPropertiesClassTest {
* Test the property 'mapArrayInteger'
*/
@Test
public void mapArrayIntegerTest() {
void mapArrayIntegerTest() {
// TODO: test mapArrayInteger
}
@@ -86,7 +85,7 @@ public class AdditionalPropertiesClassTest {
* Test the property 'mapArrayAnytype'
*/
@Test
public void mapArrayAnytypeTest() {
void mapArrayAnytypeTest() {
// TODO: test mapArrayAnytype
}
@@ -94,7 +93,7 @@ public class AdditionalPropertiesClassTest {
* Test the property 'mapMapString'
*/
@Test
public void mapMapStringTest() {
void mapMapStringTest() {
// TODO: test mapMapString
}
@@ -102,7 +101,7 @@ public class AdditionalPropertiesClassTest {
* Test the property 'mapMapAnytype'
*/
@Test
public void mapMapAnytypeTest() {
void mapMapAnytypeTest() {
// TODO: test mapMapAnytype
}
@@ -110,7 +109,7 @@ public class AdditionalPropertiesClassTest {
* Test the property 'anytype1'
*/
@Test
public void anytype1Test() {
void anytype1Test() {
// TODO: test anytype1
}
@@ -118,7 +117,7 @@ public class AdditionalPropertiesClassTest {
* Test the property 'anytype2'
*/
@Test
public void anytype2Test() {
void anytype2Test() {
// TODO: test anytype2
}
@@ -126,7 +125,7 @@ public class AdditionalPropertiesClassTest {
* Test the property 'anytype3'
*/
@Test
public void anytype3Test() {
void anytype3Test() {
// TODO: test anytype3
}

View File

@@ -16,27 +16,26 @@ package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.HashMap;
import java.util.Map;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.jupiter.api.Test;
/**
* Model tests for AdditionalPropertiesInteger
*/
public class AdditionalPropertiesIntegerTest {
class AdditionalPropertiesIntegerTest {
private final AdditionalPropertiesInteger model = new AdditionalPropertiesInteger();
/**
* Model tests for AdditionalPropertiesInteger
*/
@Test
public void testAdditionalPropertiesInteger() {
void testAdditionalPropertiesInteger() {
// TODO: test AdditionalPropertiesInteger
}
@@ -44,7 +43,7 @@ public class AdditionalPropertiesIntegerTest {
* Test the property 'name'
*/
@Test
public void nameTest() {
void nameTest() {
// TODO: test name
}

View File

@@ -16,28 +16,27 @@ package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import java.util.HashMap;
import java.util.Map;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.jupiter.api.Test;
/**
* Model tests for AdditionalPropertiesNumber
*/
public class AdditionalPropertiesNumberTest {
class AdditionalPropertiesNumberTest {
private final AdditionalPropertiesNumber model = new AdditionalPropertiesNumber();
/**
* Model tests for AdditionalPropertiesNumber
*/
@Test
public void testAdditionalPropertiesNumber() {
void testAdditionalPropertiesNumber() {
// TODO: test AdditionalPropertiesNumber
}
@@ -45,7 +44,7 @@ public class AdditionalPropertiesNumberTest {
* Test the property 'name'
*/
@Test
public void nameTest() {
void nameTest() {
// TODO: test name
}

View File

@@ -16,27 +16,26 @@ package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.HashMap;
import java.util.Map;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.jupiter.api.Test;
/**
* Model tests for AdditionalPropertiesObject
*/
public class AdditionalPropertiesObjectTest {
class AdditionalPropertiesObjectTest {
private final AdditionalPropertiesObject model = new AdditionalPropertiesObject();
/**
* Model tests for AdditionalPropertiesObject
*/
@Test
public void testAdditionalPropertiesObject() {
void testAdditionalPropertiesObject() {
// TODO: test AdditionalPropertiesObject
}
@@ -44,7 +43,7 @@ public class AdditionalPropertiesObjectTest {
* Test the property 'name'
*/
@Test
public void nameTest() {
void nameTest() {
// TODO: test name
}

View File

@@ -16,27 +16,26 @@ package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.HashMap;
import java.util.Map;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.jupiter.api.Test;
/**
* Model tests for AdditionalPropertiesString
*/
public class AdditionalPropertiesStringTest {
class AdditionalPropertiesStringTest {
private final AdditionalPropertiesString model = new AdditionalPropertiesString();
/**
* Model tests for AdditionalPropertiesString
*/
@Test
public void testAdditionalPropertiesString() {
void testAdditionalPropertiesString() {
// TODO: test AdditionalPropertiesString
}
@@ -44,7 +43,7 @@ public class AdditionalPropertiesStringTest {
* Test the property 'name'
*/
@Test
public void nameTest() {
void nameTest() {
// TODO: test name
}

View File

@@ -18,28 +18,27 @@ 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.JsonTypeName;
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;
import org.junit.jupiter.api.Test;
/**
* Model tests for Animal
*/
public class AnimalTest {
class AnimalTest {
private final Animal model = new Animal();
/**
* Model tests for Animal
*/
@Test
public void testAnimal() {
void testAnimal() {
// TODO: test Animal
}
@@ -47,7 +46,7 @@ public class AnimalTest {
* Test the property 'className'
*/
@Test
public void classNameTest() {
void classNameTest() {
// TODO: test className
}
@@ -55,7 +54,7 @@ public class AnimalTest {
* Test the property 'color'
*/
@Test
public void colorTest() {
void colorTest() {
// TODO: test color
}

View File

@@ -16,28 +16,27 @@ package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.jupiter.api.Test;
/**
* Model tests for ArrayOfArrayOfNumberOnly
*/
public class ArrayOfArrayOfNumberOnlyTest {
class ArrayOfArrayOfNumberOnlyTest {
private final ArrayOfArrayOfNumberOnly model = new ArrayOfArrayOfNumberOnly();
/**
* Model tests for ArrayOfArrayOfNumberOnly
*/
@Test
public void testArrayOfArrayOfNumberOnly() {
void testArrayOfArrayOfNumberOnly() {
// TODO: test ArrayOfArrayOfNumberOnly
}
@@ -45,7 +44,7 @@ public class ArrayOfArrayOfNumberOnlyTest {
* Test the property 'arrayArrayNumber'
*/
@Test
public void arrayArrayNumberTest() {
void arrayArrayNumberTest() {
// TODO: test arrayArrayNumber
}

View File

@@ -16,28 +16,27 @@ package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.jupiter.api.Test;
/**
* Model tests for ArrayOfNumberOnly
*/
public class ArrayOfNumberOnlyTest {
class ArrayOfNumberOnlyTest {
private final ArrayOfNumberOnly model = new ArrayOfNumberOnly();
/**
* Model tests for ArrayOfNumberOnly
*/
@Test
public void testArrayOfNumberOnly() {
void testArrayOfNumberOnly() {
// TODO: test ArrayOfNumberOnly
}
@@ -45,7 +44,7 @@ public class ArrayOfNumberOnlyTest {
* Test the property 'arrayNumber'
*/
@Test
public void arrayNumberTest() {
void arrayNumberTest() {
// TODO: test arrayNumber
}

View File

@@ -16,28 +16,27 @@ package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import org.openapitools.client.model.ReadOnlyFirst;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.jupiter.api.Test;
/**
* Model tests for ArrayTest
*/
public class ArrayTestTest {
class ArrayTestTest {
private final ArrayTest model = new ArrayTest();
/**
* Model tests for ArrayTest
*/
@Test
public void testArrayTest() {
void testArrayTest() {
// TODO: test ArrayTest
}
@@ -45,7 +44,7 @@ public class ArrayTestTest {
* Test the property 'arrayOfString'
*/
@Test
public void arrayOfStringTest() {
void arrayOfStringTest() {
// TODO: test arrayOfString
}
@@ -53,7 +52,7 @@ public class ArrayTestTest {
* Test the property 'arrayArrayOfInteger'
*/
@Test
public void arrayArrayOfIntegerTest() {
void arrayArrayOfIntegerTest() {
// TODO: test arrayArrayOfInteger
}
@@ -61,7 +60,7 @@ public class ArrayTestTest {
* Test the property 'arrayArrayOfModel'
*/
@Test
public void arrayArrayOfModelTest() {
void arrayArrayOfModelTest() {
// TODO: test arrayArrayOfModel
}

View File

@@ -16,25 +16,24 @@ package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.jupiter.api.Test;
/**
* Model tests for BigCatAllOf
*/
public class BigCatAllOfTest {
class BigCatAllOfTest {
private final BigCatAllOf model = new BigCatAllOf();
/**
* Model tests for BigCatAllOf
*/
@Test
public void testBigCatAllOf() {
void testBigCatAllOf() {
// TODO: test BigCatAllOf
}
@@ -42,7 +41,7 @@ public class BigCatAllOfTest {
* Test the property 'kind'
*/
@Test
public void kindTest() {
void kindTest() {
// TODO: test kind
}

View File

@@ -18,27 +18,26 @@ 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.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.openapitools.client.model.BigCatAllOf;
import org.openapitools.client.model.Cat;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.jupiter.api.Test;
/**
* Model tests for BigCat
*/
public class BigCatTest {
class BigCatTest {
private final BigCat model = new BigCat();
/**
* Model tests for BigCat
*/
@Test
public void testBigCat() {
void testBigCat() {
// TODO: test BigCat
}
@@ -46,7 +45,7 @@ public class BigCatTest {
* Test the property 'className'
*/
@Test
public void classNameTest() {
void classNameTest() {
// TODO: test className
}
@@ -54,7 +53,7 @@ public class BigCatTest {
* Test the property 'color'
*/
@Test
public void colorTest() {
void colorTest() {
// TODO: test color
}
@@ -62,7 +61,7 @@ public class BigCatTest {
* Test the property 'declawed'
*/
@Test
public void declawedTest() {
void declawedTest() {
// TODO: test declawed
}
@@ -70,7 +69,7 @@ public class BigCatTest {
* Test the property 'kind'
*/
@Test
public void kindTest() {
void kindTest() {
// TODO: test kind
}

View File

@@ -16,25 +16,24 @@ package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.jupiter.api.Test;
/**
* Model tests for Capitalization
*/
public class CapitalizationTest {
class CapitalizationTest {
private final Capitalization model = new Capitalization();
/**
* Model tests for Capitalization
*/
@Test
public void testCapitalization() {
void testCapitalization() {
// TODO: test Capitalization
}
@@ -42,7 +41,7 @@ public class CapitalizationTest {
* Test the property 'smallCamel'
*/
@Test
public void smallCamelTest() {
void smallCamelTest() {
// TODO: test smallCamel
}
@@ -50,7 +49,7 @@ public class CapitalizationTest {
* Test the property 'capitalCamel'
*/
@Test
public void capitalCamelTest() {
void capitalCamelTest() {
// TODO: test capitalCamel
}
@@ -58,7 +57,7 @@ public class CapitalizationTest {
* Test the property 'smallSnake'
*/
@Test
public void smallSnakeTest() {
void smallSnakeTest() {
// TODO: test smallSnake
}
@@ -66,7 +65,7 @@ public class CapitalizationTest {
* Test the property 'capitalSnake'
*/
@Test
public void capitalSnakeTest() {
void capitalSnakeTest() {
// TODO: test capitalSnake
}
@@ -74,7 +73,7 @@ public class CapitalizationTest {
* Test the property 'scAETHFlowPoints'
*/
@Test
public void scAETHFlowPointsTest() {
void scAETHFlowPointsTest() {
// TODO: test scAETHFlowPoints
}
@@ -82,7 +81,7 @@ public class CapitalizationTest {
* Test the property 'ATT_NAME'
*/
@Test
public void ATT_NAMETest() {
void ATT_NAMETest() {
// TODO: test ATT_NAME
}

View File

@@ -16,25 +16,24 @@ package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.jupiter.api.Test;
/**
* Model tests for CatAllOf
*/
public class CatAllOfTest {
class CatAllOfTest {
private final CatAllOf model = new CatAllOf();
/**
* Model tests for CatAllOf
*/
@Test
public void testCatAllOf() {
void testCatAllOf() {
// TODO: test CatAllOf
}
@@ -42,7 +41,7 @@ public class CatAllOfTest {
* Test the property 'declawed'
*/
@Test
public void declawedTest() {
void declawedTest() {
// TODO: test declawed
}

View File

@@ -18,28 +18,27 @@ 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.JsonTypeName;
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;
import org.junit.Test;
import org.junit.jupiter.api.Test;
/**
* Model tests for Cat
*/
public class CatTest {
class CatTest {
private final Cat model = new Cat();
/**
* Model tests for Cat
*/
@Test
public void testCat() {
void testCat() {
// TODO: test Cat
}
@@ -47,7 +46,7 @@ public class CatTest {
* Test the property 'className'
*/
@Test
public void classNameTest() {
void classNameTest() {
// TODO: test className
}
@@ -55,7 +54,7 @@ public class CatTest {
* Test the property 'color'
*/
@Test
public void colorTest() {
void colorTest() {
// TODO: test color
}
@@ -63,7 +62,7 @@ public class CatTest {
* Test the property 'declawed'
*/
@Test
public void declawedTest() {
void declawedTest() {
// TODO: test declawed
}

View File

@@ -16,25 +16,24 @@ package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.jupiter.api.Test;
/**
* Model tests for Category
*/
public class CategoryTest {
class CategoryTest {
private final Category model = new Category();
/**
* Model tests for Category
*/
@Test
public void testCategory() {
void testCategory() {
// TODO: test Category
}
@@ -42,7 +41,7 @@ public class CategoryTest {
* Test the property 'id'
*/
@Test
public void idTest() {
void idTest() {
// TODO: test id
}
@@ -50,7 +49,7 @@ public class CategoryTest {
* Test the property 'name'
*/
@Test
public void nameTest() {
void nameTest() {
// TODO: test name
}

View File

@@ -16,25 +16,24 @@ package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.jupiter.api.Test;
/**
* Model tests for ClassModel
*/
public class ClassModelTest {
class ClassModelTest {
private final ClassModel model = new ClassModel();
/**
* Model tests for ClassModel
*/
@Test
public void testClassModel() {
void testClassModel() {
// TODO: test ClassModel
}
@@ -42,7 +41,7 @@ public class ClassModelTest {
* Test the property 'propertyClass'
*/
@Test
public void propertyClassTest() {
void propertyClassTest() {
// TODO: test propertyClass
}

View File

@@ -16,25 +16,24 @@ package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.jupiter.api.Test;
/**
* Model tests for Client
*/
public class ClientTest {
class ClientTest {
private final Client model = new Client();
/**
* Model tests for Client
*/
@Test
public void testClient() {
void testClient() {
// TODO: test Client
}
@@ -42,7 +41,7 @@ public class ClientTest {
* Test the property 'client'
*/
@Test
public void clientTest() {
void clientTest() {
// TODO: test client
}

View File

@@ -16,25 +16,24 @@ package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.jupiter.api.Test;
/**
* Model tests for DogAllOf
*/
public class DogAllOfTest {
class DogAllOfTest {
private final DogAllOf model = new DogAllOf();
/**
* Model tests for DogAllOf
*/
@Test
public void testDogAllOf() {
void testDogAllOf() {
// TODO: test DogAllOf
}
@@ -42,7 +41,7 @@ public class DogAllOfTest {
* Test the property 'breed'
*/
@Test
public void breedTest() {
void breedTest() {
// TODO: test breed
}

View File

@@ -18,27 +18,26 @@ 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.JsonTypeName;
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.DogAllOf;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.jupiter.api.Test;
/**
* Model tests for Dog
*/
public class DogTest {
class DogTest {
private final Dog model = new Dog();
/**
* Model tests for Dog
*/
@Test
public void testDog() {
void testDog() {
// TODO: test Dog
}
@@ -46,7 +45,7 @@ public class DogTest {
* Test the property 'className'
*/
@Test
public void classNameTest() {
void classNameTest() {
// TODO: test className
}
@@ -54,7 +53,7 @@ public class DogTest {
* Test the property 'color'
*/
@Test
public void colorTest() {
void colorTest() {
// TODO: test color
}
@@ -62,7 +61,7 @@ public class DogTest {
* Test the property 'breed'
*/
@Test
public void breedTest() {
void breedTest() {
// TODO: test breed
}

View File

@@ -16,27 +16,26 @@ package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.jupiter.api.Test;
/**
* Model tests for EnumArrays
*/
public class EnumArraysTest {
class EnumArraysTest {
private final EnumArrays model = new EnumArrays();
/**
* Model tests for EnumArrays
*/
@Test
public void testEnumArrays() {
void testEnumArrays() {
// TODO: test EnumArrays
}
@@ -44,7 +43,7 @@ public class EnumArraysTest {
* Test the property 'justSymbol'
*/
@Test
public void justSymbolTest() {
void justSymbolTest() {
// TODO: test justSymbol
}
@@ -52,7 +51,7 @@ public class EnumArraysTest {
* Test the property 'arrayEnum'
*/
@Test
public void arrayEnumTest() {
void arrayEnumTest() {
// TODO: test arrayEnum
}

View File

@@ -13,20 +13,18 @@
package org.openapitools.client.model;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.jupiter.api.Test;
/**
* Model tests for EnumClass
*/
public class EnumClassTest {
class EnumClassTest {
/**
* Model tests for EnumClass
*/
@Test
public void testEnumClass() {
void testEnumClass() {
// TODO: test EnumClass
}

View File

@@ -16,26 +16,25 @@ package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.openapitools.client.model.OuterEnum;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.jupiter.api.Test;
/**
* Model tests for EnumTest
*/
public class EnumTestTest {
class EnumTestTest {
private final EnumTest model = new EnumTest();
/**
* Model tests for EnumTest
*/
@Test
public void testEnumTest() {
void testEnumTest() {
// TODO: test EnumTest
}
@@ -43,7 +42,7 @@ public class EnumTestTest {
* Test the property 'enumString'
*/
@Test
public void enumStringTest() {
void enumStringTest() {
// TODO: test enumString
}
@@ -51,7 +50,7 @@ public class EnumTestTest {
* Test the property 'enumStringRequired'
*/
@Test
public void enumStringRequiredTest() {
void enumStringRequiredTest() {
// TODO: test enumStringRequired
}
@@ -59,7 +58,7 @@ public class EnumTestTest {
* Test the property 'enumInteger'
*/
@Test
public void enumIntegerTest() {
void enumIntegerTest() {
// TODO: test enumInteger
}
@@ -67,7 +66,7 @@ public class EnumTestTest {
* Test the property 'enumNumber'
*/
@Test
public void enumNumberTest() {
void enumNumberTest() {
// TODO: test enumNumber
}
@@ -75,7 +74,7 @@ public class EnumTestTest {
* Test the property 'outerEnum'
*/
@Test
public void outerEnumTest() {
void outerEnumTest() {
// TODO: test outerEnum
}

View File

@@ -16,27 +16,26 @@ package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.jupiter.api.Test;
/**
* Model tests for FileSchemaTestClass
*/
public class FileSchemaTestClassTest {
class FileSchemaTestClassTest {
private final FileSchemaTestClass model = new FileSchemaTestClass();
/**
* Model tests for FileSchemaTestClass
*/
@Test
public void testFileSchemaTestClass() {
void testFileSchemaTestClass() {
// TODO: test FileSchemaTestClass
}
@@ -44,7 +43,7 @@ public class FileSchemaTestClassTest {
* Test the property 'file'
*/
@Test
public void fileTest() {
void fileTest() {
// TODO: test file
}
@@ -52,7 +51,7 @@ public class FileSchemaTestClassTest {
* Test the property 'files'
*/
@Test
public void filesTest() {
void filesTest() {
// TODO: test files
}

View File

@@ -16,6 +16,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.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
@@ -24,22 +25,20 @@ import java.math.BigDecimal;
import java.util.UUID;
import org.threeten.bp.LocalDate;
import org.threeten.bp.OffsetDateTime;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.jupiter.api.Test;
/**
* Model tests for FormatTest
*/
public class FormatTestTest {
class FormatTestTest {
private final FormatTest model = new FormatTest();
/**
* Model tests for FormatTest
*/
@Test
public void testFormatTest() {
void testFormatTest() {
// TODO: test FormatTest
}
@@ -47,7 +46,7 @@ public class FormatTestTest {
* Test the property 'integer'
*/
@Test
public void integerTest() {
void integerTest() {
// TODO: test integer
}
@@ -55,7 +54,7 @@ public class FormatTestTest {
* Test the property 'int32'
*/
@Test
public void int32Test() {
void int32Test() {
// TODO: test int32
}
@@ -63,7 +62,7 @@ public class FormatTestTest {
* Test the property 'int64'
*/
@Test
public void int64Test() {
void int64Test() {
// TODO: test int64
}
@@ -71,7 +70,7 @@ public class FormatTestTest {
* Test the property 'number'
*/
@Test
public void numberTest() {
void numberTest() {
// TODO: test number
}
@@ -79,7 +78,7 @@ public class FormatTestTest {
* Test the property '_float'
*/
@Test
public void _floatTest() {
void _floatTest() {
// TODO: test _float
}
@@ -87,7 +86,7 @@ public class FormatTestTest {
* Test the property '_double'
*/
@Test
public void _doubleTest() {
void _doubleTest() {
// TODO: test _double
}
@@ -95,7 +94,7 @@ public class FormatTestTest {
* Test the property 'string'
*/
@Test
public void stringTest() {
void stringTest() {
// TODO: test string
}
@@ -103,7 +102,7 @@ public class FormatTestTest {
* Test the property '_byte'
*/
@Test
public void _byteTest() {
void _byteTest() {
// TODO: test _byte
}
@@ -111,7 +110,7 @@ public class FormatTestTest {
* Test the property 'binary'
*/
@Test
public void binaryTest() {
void binaryTest() {
// TODO: test binary
}
@@ -119,7 +118,7 @@ public class FormatTestTest {
* Test the property 'date'
*/
@Test
public void dateTest() {
void dateTest() {
// TODO: test date
}
@@ -127,7 +126,7 @@ public class FormatTestTest {
* Test the property 'dateTime'
*/
@Test
public void dateTimeTest() {
void dateTimeTest() {
// TODO: test dateTime
}
@@ -135,7 +134,7 @@ public class FormatTestTest {
* Test the property 'uuid'
*/
@Test
public void uuidTest() {
void uuidTest() {
// TODO: test uuid
}
@@ -143,7 +142,7 @@ public class FormatTestTest {
* Test the property 'password'
*/
@Test
public void passwordTest() {
void passwordTest() {
// TODO: test password
}
@@ -151,7 +150,7 @@ public class FormatTestTest {
* Test the property 'bigDecimal'
*/
@Test
public void bigDecimalTest() {
void bigDecimalTest() {
// TODO: test bigDecimal
}

View File

@@ -16,25 +16,24 @@ package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.jupiter.api.Test;
/**
* Model tests for HasOnlyReadOnly
*/
public class HasOnlyReadOnlyTest {
class HasOnlyReadOnlyTest {
private final HasOnlyReadOnly model = new HasOnlyReadOnly();
/**
* Model tests for HasOnlyReadOnly
*/
@Test
public void testHasOnlyReadOnly() {
void testHasOnlyReadOnly() {
// TODO: test HasOnlyReadOnly
}
@@ -42,7 +41,7 @@ public class HasOnlyReadOnlyTest {
* Test the property 'bar'
*/
@Test
public void barTest() {
void barTest() {
// TODO: test bar
}
@@ -50,7 +49,7 @@ public class HasOnlyReadOnlyTest {
* Test the property 'foo'
*/
@Test
public void fooTest() {
void fooTest() {
// TODO: test foo
}

View File

@@ -16,28 +16,27 @@ package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.jupiter.api.Test;
/**
* Model tests for MapTest
*/
public class MapTestTest {
class MapTestTest {
private final MapTest model = new MapTest();
/**
* Model tests for MapTest
*/
@Test
public void testMapTest() {
void testMapTest() {
// TODO: test MapTest
}
@@ -45,7 +44,7 @@ public class MapTestTest {
* Test the property 'mapMapOfString'
*/
@Test
public void mapMapOfStringTest() {
void mapMapOfStringTest() {
// TODO: test mapMapOfString
}
@@ -53,7 +52,7 @@ public class MapTestTest {
* Test the property 'mapOfEnumString'
*/
@Test
public void mapOfEnumStringTest() {
void mapOfEnumStringTest() {
// TODO: test mapOfEnumString
}
@@ -61,7 +60,7 @@ public class MapTestTest {
* Test the property 'directMap'
*/
@Test
public void directMapTest() {
void directMapTest() {
// TODO: test directMap
}
@@ -69,7 +68,7 @@ public class MapTestTest {
* Test the property 'indirectMap'
*/
@Test
public void indirectMapTest() {
void indirectMapTest() {
// TODO: test indirectMap
}

View File

@@ -16,6 +16,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.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
@@ -25,22 +26,20 @@ import java.util.Map;
import java.util.UUID;
import org.openapitools.client.model.Animal;
import org.threeten.bp.OffsetDateTime;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.jupiter.api.Test;
/**
* Model tests for MixedPropertiesAndAdditionalPropertiesClass
*/
public class MixedPropertiesAndAdditionalPropertiesClassTest {
class MixedPropertiesAndAdditionalPropertiesClassTest {
private final MixedPropertiesAndAdditionalPropertiesClass model = new MixedPropertiesAndAdditionalPropertiesClass();
/**
* Model tests for MixedPropertiesAndAdditionalPropertiesClass
*/
@Test
public void testMixedPropertiesAndAdditionalPropertiesClass() {
void testMixedPropertiesAndAdditionalPropertiesClass() {
// TODO: test MixedPropertiesAndAdditionalPropertiesClass
}
@@ -48,7 +47,7 @@ public class MixedPropertiesAndAdditionalPropertiesClassTest {
* Test the property 'uuid'
*/
@Test
public void uuidTest() {
void uuidTest() {
// TODO: test uuid
}
@@ -56,7 +55,7 @@ public class MixedPropertiesAndAdditionalPropertiesClassTest {
* Test the property 'dateTime'
*/
@Test
public void dateTimeTest() {
void dateTimeTest() {
// TODO: test dateTime
}
@@ -64,7 +63,7 @@ public class MixedPropertiesAndAdditionalPropertiesClassTest {
* Test the property 'map'
*/
@Test
public void mapTest() {
void mapTest() {
// TODO: test map
}

View File

@@ -16,25 +16,24 @@ package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.jupiter.api.Test;
/**
* Model tests for Model200Response
*/
public class Model200ResponseTest {
class Model200ResponseTest {
private final Model200Response model = new Model200Response();
/**
* Model tests for Model200Response
*/
@Test
public void testModel200Response() {
void testModel200Response() {
// TODO: test Model200Response
}
@@ -42,7 +41,7 @@ public class Model200ResponseTest {
* Test the property 'name'
*/
@Test
public void nameTest() {
void nameTest() {
// TODO: test name
}
@@ -50,7 +49,7 @@ public class Model200ResponseTest {
* Test the property 'propertyClass'
*/
@Test
public void propertyClassTest() {
void propertyClassTest() {
// TODO: test propertyClass
}

View File

@@ -16,25 +16,24 @@ package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.jupiter.api.Test;
/**
* Model tests for ModelApiResponse
*/
public class ModelApiResponseTest {
class ModelApiResponseTest {
private final ModelApiResponse model = new ModelApiResponse();
/**
* Model tests for ModelApiResponse
*/
@Test
public void testModelApiResponse() {
void testModelApiResponse() {
// TODO: test ModelApiResponse
}
@@ -42,7 +41,7 @@ public class ModelApiResponseTest {
* Test the property 'code'
*/
@Test
public void codeTest() {
void codeTest() {
// TODO: test code
}
@@ -50,7 +49,7 @@ public class ModelApiResponseTest {
* Test the property 'type'
*/
@Test
public void typeTest() {
void typeTest() {
// TODO: test type
}
@@ -58,7 +57,7 @@ public class ModelApiResponseTest {
* Test the property 'message'
*/
@Test
public void messageTest() {
void messageTest() {
// TODO: test message
}

View File

@@ -16,25 +16,24 @@ package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.jupiter.api.Test;
/**
* Model tests for ModelReturn
*/
public class ModelReturnTest {
class ModelReturnTest {
private final ModelReturn model = new ModelReturn();
/**
* Model tests for ModelReturn
*/
@Test
public void testModelReturn() {
void testModelReturn() {
// TODO: test ModelReturn
}
@@ -42,7 +41,7 @@ public class ModelReturnTest {
* Test the property '_return'
*/
@Test
public void _returnTest() {
void _returnTest() {
// TODO: test _return
}

View File

@@ -16,25 +16,24 @@ package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.jupiter.api.Test;
/**
* Model tests for Name
*/
public class NameTest {
class NameTest {
private final Name model = new Name();
/**
* Model tests for Name
*/
@Test
public void testName() {
void testName() {
// TODO: test Name
}
@@ -42,7 +41,7 @@ public class NameTest {
* Test the property 'name'
*/
@Test
public void nameTest() {
void nameTest() {
// TODO: test name
}
@@ -50,7 +49,7 @@ public class NameTest {
* Test the property 'snakeCase'
*/
@Test
public void snakeCaseTest() {
void snakeCaseTest() {
// TODO: test snakeCase
}
@@ -58,7 +57,7 @@ public class NameTest {
* Test the property 'property'
*/
@Test
public void propertyTest() {
void propertyTest() {
// TODO: test property
}
@@ -66,7 +65,7 @@ public class NameTest {
* Test the property '_123number'
*/
@Test
public void _123numberTest() {
void _123numberTest() {
// TODO: test _123number
}

View File

@@ -16,26 +16,25 @@ package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.jupiter.api.Test;
/**
* Model tests for NumberOnly
*/
public class NumberOnlyTest {
class NumberOnlyTest {
private final NumberOnly model = new NumberOnly();
/**
* Model tests for NumberOnly
*/
@Test
public void testNumberOnly() {
void testNumberOnly() {
// TODO: test NumberOnly
}
@@ -43,7 +42,7 @@ public class NumberOnlyTest {
* Test the property 'justNumber'
*/
@Test
public void justNumberTest() {
void justNumberTest() {
// TODO: test justNumber
}

View File

@@ -16,26 +16,25 @@ package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.threeten.bp.OffsetDateTime;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.jupiter.api.Test;
/**
* Model tests for Order
*/
public class OrderTest {
class OrderTest {
private final Order model = new Order();
/**
* Model tests for Order
*/
@Test
public void testOrder() {
void testOrder() {
// TODO: test Order
}
@@ -43,7 +42,7 @@ public class OrderTest {
* Test the property 'id'
*/
@Test
public void idTest() {
void idTest() {
// TODO: test id
}
@@ -51,7 +50,7 @@ public class OrderTest {
* Test the property 'petId'
*/
@Test
public void petIdTest() {
void petIdTest() {
// TODO: test petId
}
@@ -59,7 +58,7 @@ public class OrderTest {
* Test the property 'quantity'
*/
@Test
public void quantityTest() {
void quantityTest() {
// TODO: test quantity
}
@@ -67,7 +66,7 @@ public class OrderTest {
* Test the property 'shipDate'
*/
@Test
public void shipDateTest() {
void shipDateTest() {
// TODO: test shipDate
}
@@ -75,7 +74,7 @@ public class OrderTest {
* Test the property 'status'
*/
@Test
public void statusTest() {
void statusTest() {
// TODO: test status
}
@@ -83,7 +82,7 @@ public class OrderTest {
* Test the property 'complete'
*/
@Test
public void completeTest() {
void completeTest() {
// TODO: test complete
}

View File

@@ -16,26 +16,25 @@ package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.jupiter.api.Test;
/**
* Model tests for OuterComposite
*/
public class OuterCompositeTest {
class OuterCompositeTest {
private final OuterComposite model = new OuterComposite();
/**
* Model tests for OuterComposite
*/
@Test
public void testOuterComposite() {
void testOuterComposite() {
// TODO: test OuterComposite
}
@@ -43,7 +42,7 @@ public class OuterCompositeTest {
* Test the property 'myNumber'
*/
@Test
public void myNumberTest() {
void myNumberTest() {
// TODO: test myNumber
}
@@ -51,7 +50,7 @@ public class OuterCompositeTest {
* Test the property 'myString'
*/
@Test
public void myStringTest() {
void myStringTest() {
// TODO: test myString
}
@@ -59,7 +58,7 @@ public class OuterCompositeTest {
* Test the property 'myBoolean'
*/
@Test
public void myBooleanTest() {
void myBooleanTest() {
// TODO: test myBoolean
}

View File

@@ -13,20 +13,18 @@
package org.openapitools.client.model;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.jupiter.api.Test;
/**
* Model tests for OuterEnum
*/
public class OuterEnumTest {
class OuterEnumTest {
/**
* Model tests for OuterEnum
*/
@Test
public void testOuterEnum() {
void testOuterEnum() {
// TODO: test OuterEnum
}

View File

@@ -16,6 +16,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.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
@@ -25,22 +26,20 @@ import java.util.List;
import java.util.Set;
import org.openapitools.client.model.Category;
import org.openapitools.client.model.Tag;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.jupiter.api.Test;
/**
* Model tests for Pet
*/
public class PetTest {
class PetTest {
private final Pet model = new Pet();
/**
* Model tests for Pet
*/
@Test
public void testPet() {
void testPet() {
// TODO: test Pet
}
@@ -48,7 +47,7 @@ public class PetTest {
* Test the property 'id'
*/
@Test
public void idTest() {
void idTest() {
// TODO: test id
}
@@ -56,7 +55,7 @@ public class PetTest {
* Test the property 'category'
*/
@Test
public void categoryTest() {
void categoryTest() {
// TODO: test category
}
@@ -64,7 +63,7 @@ public class PetTest {
* Test the property 'name'
*/
@Test
public void nameTest() {
void nameTest() {
// TODO: test name
}
@@ -72,7 +71,7 @@ public class PetTest {
* Test the property 'photoUrls'
*/
@Test
public void photoUrlsTest() {
void photoUrlsTest() {
// TODO: test photoUrls
}
@@ -80,7 +79,7 @@ public class PetTest {
* Test the property 'tags'
*/
@Test
public void tagsTest() {
void tagsTest() {
// TODO: test tags
}
@@ -88,7 +87,7 @@ public class PetTest {
* Test the property 'status'
*/
@Test
public void statusTest() {
void statusTest() {
// TODO: test status
}

View File

@@ -16,25 +16,24 @@ package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.jupiter.api.Test;
/**
* Model tests for ReadOnlyFirst
*/
public class ReadOnlyFirstTest {
class ReadOnlyFirstTest {
private final ReadOnlyFirst model = new ReadOnlyFirst();
/**
* Model tests for ReadOnlyFirst
*/
@Test
public void testReadOnlyFirst() {
void testReadOnlyFirst() {
// TODO: test ReadOnlyFirst
}
@@ -42,7 +41,7 @@ public class ReadOnlyFirstTest {
* Test the property 'bar'
*/
@Test
public void barTest() {
void barTest() {
// TODO: test bar
}
@@ -50,7 +49,7 @@ public class ReadOnlyFirstTest {
* Test the property 'baz'
*/
@Test
public void bazTest() {
void bazTest() {
// TODO: test baz
}

View File

@@ -16,25 +16,24 @@ package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.jupiter.api.Test;
/**
* Model tests for SpecialModelName
*/
public class SpecialModelNameTest {
class SpecialModelNameTest {
private final SpecialModelName model = new SpecialModelName();
/**
* Model tests for SpecialModelName
*/
@Test
public void testSpecialModelName() {
void testSpecialModelName() {
// TODO: test SpecialModelName
}
@@ -42,7 +41,7 @@ public class SpecialModelNameTest {
* Test the property '$specialPropertyName'
*/
@Test
public void $specialPropertyNameTest() {
void $specialPropertyNameTest() {
// TODO: test $specialPropertyName
}

View File

@@ -16,25 +16,24 @@ package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.jupiter.api.Test;
/**
* Model tests for Tag
*/
public class TagTest {
class TagTest {
private final Tag model = new Tag();
/**
* Model tests for Tag
*/
@Test
public void testTag() {
void testTag() {
// TODO: test Tag
}
@@ -42,7 +41,7 @@ public class TagTest {
* Test the property 'id'
*/
@Test
public void idTest() {
void idTest() {
// TODO: test id
}
@@ -50,7 +49,7 @@ public class TagTest {
* Test the property 'name'
*/
@Test
public void nameTest() {
void nameTest() {
// TODO: test name
}

View File

@@ -16,28 +16,27 @@ package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.jupiter.api.Test;
/**
* Model tests for TypeHolderDefault
*/
public class TypeHolderDefaultTest {
class TypeHolderDefaultTest {
private final TypeHolderDefault model = new TypeHolderDefault();
/**
* Model tests for TypeHolderDefault
*/
@Test
public void testTypeHolderDefault() {
void testTypeHolderDefault() {
// TODO: test TypeHolderDefault
}
@@ -45,7 +44,7 @@ public class TypeHolderDefaultTest {
* Test the property 'stringItem'
*/
@Test
public void stringItemTest() {
void stringItemTest() {
// TODO: test stringItem
}
@@ -53,7 +52,7 @@ public class TypeHolderDefaultTest {
* Test the property 'numberItem'
*/
@Test
public void numberItemTest() {
void numberItemTest() {
// TODO: test numberItem
}
@@ -61,7 +60,7 @@ public class TypeHolderDefaultTest {
* Test the property 'integerItem'
*/
@Test
public void integerItemTest() {
void integerItemTest() {
// TODO: test integerItem
}
@@ -69,7 +68,7 @@ public class TypeHolderDefaultTest {
* Test the property 'boolItem'
*/
@Test
public void boolItemTest() {
void boolItemTest() {
// TODO: test boolItem
}
@@ -77,7 +76,7 @@ public class TypeHolderDefaultTest {
* Test the property 'arrayItem'
*/
@Test
public void arrayItemTest() {
void arrayItemTest() {
// TODO: test arrayItem
}

View File

@@ -16,28 +16,27 @@ package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.jupiter.api.Test;
/**
* Model tests for TypeHolderExample
*/
public class TypeHolderExampleTest {
class TypeHolderExampleTest {
private final TypeHolderExample model = new TypeHolderExample();
/**
* Model tests for TypeHolderExample
*/
@Test
public void testTypeHolderExample() {
void testTypeHolderExample() {
// TODO: test TypeHolderExample
}
@@ -45,7 +44,7 @@ public class TypeHolderExampleTest {
* Test the property 'stringItem'
*/
@Test
public void stringItemTest() {
void stringItemTest() {
// TODO: test stringItem
}
@@ -53,7 +52,7 @@ public class TypeHolderExampleTest {
* Test the property 'numberItem'
*/
@Test
public void numberItemTest() {
void numberItemTest() {
// TODO: test numberItem
}
@@ -61,7 +60,7 @@ public class TypeHolderExampleTest {
* Test the property 'floatItem'
*/
@Test
public void floatItemTest() {
void floatItemTest() {
// TODO: test floatItem
}
@@ -69,7 +68,7 @@ public class TypeHolderExampleTest {
* Test the property 'integerItem'
*/
@Test
public void integerItemTest() {
void integerItemTest() {
// TODO: test integerItem
}
@@ -77,7 +76,7 @@ public class TypeHolderExampleTest {
* Test the property 'boolItem'
*/
@Test
public void boolItemTest() {
void boolItemTest() {
// TODO: test boolItem
}
@@ -85,7 +84,7 @@ public class TypeHolderExampleTest {
* Test the property 'arrayItem'
*/
@Test
public void arrayItemTest() {
void arrayItemTest() {
// TODO: test arrayItem
}

View File

@@ -16,25 +16,24 @@ package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.jupiter.api.Test;
/**
* Model tests for User
*/
public class UserTest {
class UserTest {
private final User model = new User();
/**
* Model tests for User
*/
@Test
public void testUser() {
void testUser() {
// TODO: test User
}
@@ -42,7 +41,7 @@ public class UserTest {
* Test the property 'id'
*/
@Test
public void idTest() {
void idTest() {
// TODO: test id
}
@@ -50,7 +49,7 @@ public class UserTest {
* Test the property 'username'
*/
@Test
public void usernameTest() {
void usernameTest() {
// TODO: test username
}
@@ -58,7 +57,7 @@ public class UserTest {
* Test the property 'firstName'
*/
@Test
public void firstNameTest() {
void firstNameTest() {
// TODO: test firstName
}
@@ -66,7 +65,7 @@ public class UserTest {
* Test the property 'lastName'
*/
@Test
public void lastNameTest() {
void lastNameTest() {
// TODO: test lastName
}
@@ -74,7 +73,7 @@ public class UserTest {
* Test the property 'email'
*/
@Test
public void emailTest() {
void emailTest() {
// TODO: test email
}
@@ -82,7 +81,7 @@ public class UserTest {
* Test the property 'password'
*/
@Test
public void passwordTest() {
void passwordTest() {
// TODO: test password
}
@@ -90,7 +89,7 @@ public class UserTest {
* Test the property 'phone'
*/
@Test
public void phoneTest() {
void phoneTest() {
// TODO: test phone
}
@@ -98,7 +97,7 @@ public class UserTest {
* Test the property 'userStatus'
*/
@Test
public void userStatusTest() {
void userStatusTest() {
// TODO: test userStatus
}

View File

@@ -16,28 +16,27 @@ package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.jupiter.api.Test;
/**
* Model tests for XmlItem
*/
public class XmlItemTest {
class XmlItemTest {
private final XmlItem model = new XmlItem();
/**
* Model tests for XmlItem
*/
@Test
public void testXmlItem() {
void testXmlItem() {
// TODO: test XmlItem
}
@@ -45,7 +44,7 @@ public class XmlItemTest {
* Test the property 'attributeString'
*/
@Test
public void attributeStringTest() {
void attributeStringTest() {
// TODO: test attributeString
}
@@ -53,7 +52,7 @@ public class XmlItemTest {
* Test the property 'attributeNumber'
*/
@Test
public void attributeNumberTest() {
void attributeNumberTest() {
// TODO: test attributeNumber
}
@@ -61,7 +60,7 @@ public class XmlItemTest {
* Test the property 'attributeInteger'
*/
@Test
public void attributeIntegerTest() {
void attributeIntegerTest() {
// TODO: test attributeInteger
}
@@ -69,7 +68,7 @@ public class XmlItemTest {
* Test the property 'attributeBoolean'
*/
@Test
public void attributeBooleanTest() {
void attributeBooleanTest() {
// TODO: test attributeBoolean
}
@@ -77,7 +76,7 @@ public class XmlItemTest {
* Test the property 'wrappedArray'
*/
@Test
public void wrappedArrayTest() {
void wrappedArrayTest() {
// TODO: test wrappedArray
}
@@ -85,7 +84,7 @@ public class XmlItemTest {
* Test the property 'nameString'
*/
@Test
public void nameStringTest() {
void nameStringTest() {
// TODO: test nameString
}
@@ -93,7 +92,7 @@ public class XmlItemTest {
* Test the property 'nameNumber'
*/
@Test
public void nameNumberTest() {
void nameNumberTest() {
// TODO: test nameNumber
}
@@ -101,7 +100,7 @@ public class XmlItemTest {
* Test the property 'nameInteger'
*/
@Test
public void nameIntegerTest() {
void nameIntegerTest() {
// TODO: test nameInteger
}
@@ -109,7 +108,7 @@ public class XmlItemTest {
* Test the property 'nameBoolean'
*/
@Test
public void nameBooleanTest() {
void nameBooleanTest() {
// TODO: test nameBoolean
}
@@ -117,7 +116,7 @@ public class XmlItemTest {
* Test the property 'nameArray'
*/
@Test
public void nameArrayTest() {
void nameArrayTest() {
// TODO: test nameArray
}
@@ -125,7 +124,7 @@ public class XmlItemTest {
* Test the property 'nameWrappedArray'
*/
@Test
public void nameWrappedArrayTest() {
void nameWrappedArrayTest() {
// TODO: test nameWrappedArray
}
@@ -133,7 +132,7 @@ public class XmlItemTest {
* Test the property 'prefixString'
*/
@Test
public void prefixStringTest() {
void prefixStringTest() {
// TODO: test prefixString
}
@@ -141,7 +140,7 @@ public class XmlItemTest {
* Test the property 'prefixNumber'
*/
@Test
public void prefixNumberTest() {
void prefixNumberTest() {
// TODO: test prefixNumber
}
@@ -149,7 +148,7 @@ public class XmlItemTest {
* Test the property 'prefixInteger'
*/
@Test
public void prefixIntegerTest() {
void prefixIntegerTest() {
// TODO: test prefixInteger
}
@@ -157,7 +156,7 @@ public class XmlItemTest {
* Test the property 'prefixBoolean'
*/
@Test
public void prefixBooleanTest() {
void prefixBooleanTest() {
// TODO: test prefixBoolean
}
@@ -165,7 +164,7 @@ public class XmlItemTest {
* Test the property 'prefixArray'
*/
@Test
public void prefixArrayTest() {
void prefixArrayTest() {
// TODO: test prefixArray
}
@@ -173,7 +172,7 @@ public class XmlItemTest {
* Test the property 'prefixWrappedArray'
*/
@Test
public void prefixWrappedArrayTest() {
void prefixWrappedArrayTest() {
// TODO: test prefixWrappedArray
}
@@ -181,7 +180,7 @@ public class XmlItemTest {
* Test the property 'namespaceString'
*/
@Test
public void namespaceStringTest() {
void namespaceStringTest() {
// TODO: test namespaceString
}
@@ -189,7 +188,7 @@ public class XmlItemTest {
* Test the property 'namespaceNumber'
*/
@Test
public void namespaceNumberTest() {
void namespaceNumberTest() {
// TODO: test namespaceNumber
}
@@ -197,7 +196,7 @@ public class XmlItemTest {
* Test the property 'namespaceInteger'
*/
@Test
public void namespaceIntegerTest() {
void namespaceIntegerTest() {
// TODO: test namespaceInteger
}
@@ -205,7 +204,7 @@ public class XmlItemTest {
* Test the property 'namespaceBoolean'
*/
@Test
public void namespaceBooleanTest() {
void namespaceBooleanTest() {
// TODO: test namespaceBoolean
}
@@ -213,7 +212,7 @@ public class XmlItemTest {
* Test the property 'namespaceArray'
*/
@Test
public void namespaceArrayTest() {
void namespaceArrayTest() {
// TODO: test namespaceArray
}
@@ -221,7 +220,7 @@ public class XmlItemTest {
* Test the property 'namespaceWrappedArray'
*/
@Test
public void namespaceWrappedArrayTest() {
void namespaceWrappedArrayTest() {
// TODO: test namespaceWrappedArray
}
@@ -229,7 +228,7 @@ public class XmlItemTest {
* Test the property 'prefixNsString'
*/
@Test
public void prefixNsStringTest() {
void prefixNsStringTest() {
// TODO: test prefixNsString
}
@@ -237,7 +236,7 @@ public class XmlItemTest {
* Test the property 'prefixNsNumber'
*/
@Test
public void prefixNsNumberTest() {
void prefixNsNumberTest() {
// TODO: test prefixNsNumber
}
@@ -245,7 +244,7 @@ public class XmlItemTest {
* Test the property 'prefixNsInteger'
*/
@Test
public void prefixNsIntegerTest() {
void prefixNsIntegerTest() {
// TODO: test prefixNsInteger
}
@@ -253,7 +252,7 @@ public class XmlItemTest {
* Test the property 'prefixNsBoolean'
*/
@Test
public void prefixNsBooleanTest() {
void prefixNsBooleanTest() {
// TODO: test prefixNsBoolean
}
@@ -261,7 +260,7 @@ public class XmlItemTest {
* Test the property 'prefixNsArray'
*/
@Test
public void prefixNsArrayTest() {
void prefixNsArrayTest() {
// TODO: test prefixNsArray
}
@@ -269,7 +268,7 @@ public class XmlItemTest {
* Test the property 'prefixNsWrappedArray'
*/
@Test
public void prefixNsWrappedArrayTest() {
void prefixNsWrappedArrayTest() {
// TODO: test prefixNsWrappedArray
}

View File

@@ -0,0 +1,10 @@
<configuration>
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
</encoder>
</appender>
<root level="INFO">
<appender-ref ref="STDOUT" />
</root>
</configuration>

View File

@@ -0,0 +1,18 @@
{
"id": 85,
"category": {
"id": 1,
"name": "Dogs"
},
"name": "LvRcat",
"photoUrls": [
"string"
],
"tags": [
{
"id": 10,
"name": "tag"
}
],
"status": "available"
}

View File

@@ -0,0 +1,38 @@
[
{
"id": 85,
"category": {
"id": 1,
"name": "Dogs"
},
"name": "LvRcat",
"photoUrls": [
"string"
],
"tags": [
{
"id": 10,
"name": "tag"
}
],
"status": "available"
},
{
"id": 42,
"category": {
"id": 1,
"name": "Dogs"
},
"name": "Louise",
"photoUrls": [
"photo"
],
"tags": [
{
"id": 0,
"name": "obedient"
}
],
"status": "sold"
}
]